diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index 5524744f7694..3691df72fdc6 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -70,7 +70,7 @@
/sdk/identity/ @christothes @JonathanCrd @Azure/azure-sdk-write-identity
# ServiceLabel: %Azure.Identity
-# AzureSdkOwners: @christothes @JonathanCrd
+# AzureSdkOwners: @JonathanCrd
# PRLabel: %Extensions
/sdk/extensions/ @jsquire
@@ -818,30 +818,6 @@
# ServiceLabel: %SignalR
# ServiceOwners: @chenkennt @vicancy @JialinXin @Y-Sindo
-# PRLabel: %SQL
-/sdk/sqlmanagement/ @ericshape @jeremyfrosti
-
-# ServiceLabel: %SQL
-# ServiceOwners: @ericshape @jeremyfrosti
-
-# ServiceLabel: %SQL - Backup & Restore
-# ServiceOwners: @ericshape @jeremyfrosti
-
-# ServiceLabel: %SQL - Data Security
-# ServiceOwners: @ericshape @jeremyfrosti
-
-# ServiceLabel: %SQL - Elastic Jobs
-# ServiceOwners: @ericshape @jeremyfrosti
-
-# ServiceLabel: %SQL - Managed Instance
-# ServiceOwners: @ericshape @jeremyfrosti
-
-# ServiceLabel: %SQL - Replication & Failover
-# ServiceOwners: @ericshape @jeremyfrosti
-
-# ServiceLabel: %SQL - VM
-# ServiceOwners: @ericshape @jeremyfrosti
-
# PRLabel: %Storage
/sdk/storage*/ @seanmcc-msft @amnguye @jaschrep-msft @jalauzon-msft @nickliu-msft
@@ -1144,14 +1120,38 @@
# PRLabel: %Service Fabric
/sdk/servicefabric/Azure.ResourceManager.*/ @QingChenmsft @vaishnavk @juhacket
-# ServiceLabel: %Service Fabric
+# ServiceLabel: %Service Fabric %Mgmt
# ServiceOwners: @QingChenmsft @vaishnavk @juhacket
# PRLabel: %SiteManager
-/sdk/sitemanager/Azure.ResourceManager.*/ @bsomeshekar
+/sdk/sitemanager/Azure.ResourceManager.*/ @bsomeshekar @ArcturusZhang @ArthurMa1978
# ServiceLabel: %SiteManager %Mgmt
-# ServiceOwners: @bsomeshekar
+# ServiceOwners: @bsomeshekar @ArcturusZhang @ArthurMa1978
+
+# PRLabel: %SQL
+/sdk/sqlmanagement/ @ericshape @ArcturusZhang @ArthurMa1978
+
+# ServiceLabel: %SQL %Mgmt
+# ServiceOwners: @ericshape
+
+# ServiceLabel: %SQL - Backup & Restore %Mgmt
+# ServiceOwners: @ericshape
+
+# ServiceLabel: %SQL - Data Security %Mgmt
+# ServiceOwners: @ericshape
+
+# ServiceLabel: %SQL - Elastic Jobs %Mgmt
+# ServiceOwners: @ericshape
+
+# ServiceLabel: %SQL - Managed Instance %Mgmt
+# ServiceOwners: @ericshape
+
+# ServiceLabel: %SQL - Replication & Failover %Mgmt
+# ServiceOwners: @ericshape
+
+# ServiceLabel: %SQL - VM %Mgmt
+# ServiceOwners: @ericshape
# ServiceLabel: %Virtual Enclaves %Mgmt
# ServiceOwners: @jchavaherrera
diff --git a/.gitignore b/.gitignore
index a700a4869611..de5cb2f5f42e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -178,6 +178,7 @@ artifacts
# Temporary typespec folders for typespec generation
TempTypeSpecFiles/
+tsp_client_metadata.yaml
# Common toolchain intermediate files
temp
diff --git a/doc/GeneratorMigration/Library_Inventory.md b/doc/GeneratorMigration/Library_Inventory.md
index 7663385a7272..0a0578f84e34 100644
--- a/doc/GeneratorMigration/Library_Inventory.md
+++ b/doc/GeneratorMigration/Library_Inventory.md
@@ -4,9 +4,9 @@
- Total libraries: 417
- Management Plane (Swagger): 163
-- Management Plane (TSP-Old): 45
+- Management Plane (TSP-Old): 44
- Management Plane (TypeSpec - @azure-typespec/http-client-csharp): 0
-- Management Plane (TypeSpec - @azure-typespec/http-client-csharp-mgmt): 17
+- Management Plane (TypeSpec - @azure-typespec/http-client-csharp-mgmt): 18
- Management Plane (TypeSpec - @typespec/http-client-csharp): 0
- Management Plane (TypeSpec - Unknown TypeSpec Generator: eng/emitter-package.json): 0
- Data Plane (Swagger): 110
@@ -203,7 +203,7 @@ Total: 110
## Management Plane Libraries using TypeSpec (@azure-typespec/http-client-csharp-mgmt)
-TypeSpec with @azure-typespec/http-client-csharp-mgmt generator is detected by the presence of a tsp-location.yaml file with an emitterPackageJsonPath value referencing @azure-typespec/http-client-csharp-mgmt, or through special handling for specific libraries. Total: 17
+TypeSpec with @azure-typespec/http-client-csharp-mgmt generator is detected by the presence of a tsp-location.yaml file with an emitterPackageJsonPath value referencing @azure-typespec/http-client-csharp-mgmt, or through special handling for specific libraries. Total: 18
| Service | Library | Path |
| ------- | ------- | ---- |
@@ -211,7 +211,9 @@ TypeSpec with @azure-typespec/http-client-csharp-mgmt generator is detected by t
| arizeaiobservabilityeval | Azure.ResourceManager.ArizeAIObservabilityEval | sdk/arizeaiobservabilityeval/Azure.ResourceManager.ArizeAIObservabilityEval |
| computerecommender | Azure.ResourceManager.Compute.Recommender | sdk/computerecommender/Azure.ResourceManager.Compute.Recommender |
| dellstorage | Azure.ResourceManager.Dell.Storage | sdk/dellstorage/Azure.ResourceManager.Dell.Storage |
+| dependencymap | Azure.ResourceManager.DependencyMap | sdk/dependencymap/Azure.ResourceManager.DependencyMap |
| deviceregistry | Azure.ResourceManager.DeviceRegistry | sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry |
+| durabletask | Azure.ResourceManager.DurableTask | sdk/durabletask/Azure.ResourceManager.DurableTask |
| healthdataaiservices | Azure.ResourceManager.HealthDataAIServices | sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices |
| hybridkubernetes | Azure.ResourceManager.Kubernetes | sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes |
| informaticadatamanagement | Azure.ResourceManager.InformaticaDataManagement | sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement |
@@ -228,7 +230,7 @@ TypeSpec with @azure-typespec/http-client-csharp-mgmt generator is detected by t
## Management Plane Libraries using TypeSpec (Old Generator)
-TypeSpec with old generator is detected by the presence of a tsp-location.yaml file without an emitterPackageJsonPath value, tspconfig.yaml file, tsp directory, or *.tsp files. Total: 45
+TypeSpec with old generator is detected by the presence of a tsp-location.yaml file without an emitterPackageJsonPath value, tspconfig.yaml file, tsp directory, or *.tsp files. Total: 44
| Service | Library | Path |
| ------- | ------- | ---- |
@@ -243,11 +245,9 @@ TypeSpec with old generator is detected by the presence of a tsp-location.yaml f
| containerorchestratorruntime | Azure.ResourceManager.ContainerOrchestratorRuntime | sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime |
| databasewatcher | Azure.ResourceManager.DatabaseWatcher | sdk/databasewatcher/Azure.ResourceManager.DatabaseWatcher |
| databox | Azure.ResourceManager.DataBox | sdk/databox/Azure.ResourceManager.DataBox |
-| dependencymap | Azure.ResourceManager.DependencyMap | sdk/dependencymap/Azure.ResourceManager.DependencyMap |
| deviceprovisioningservices | Azure.ResourceManager.DeviceProvisioningServices | sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices |
| devopsinfrastructure | Azure.ResourceManager.DevOpsInfrastructure | sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure |
| disconnectedoperations | Azure.ResourceManager.DisconnectedOperations | sdk/disconnectedoperations/Azure.ResourceManager.DisconnectedOperations |
-| durabletask | Azure.ResourceManager.DurableTask | sdk/durabletask/Azure.ResourceManager.DurableTask |
| elasticsan | Azure.ResourceManager.ElasticSan | sdk/elasticsan/Azure.ResourceManager.ElasticSan |
| fabric | Azure.ResourceManager.Fabric | sdk/fabric/Azure.ResourceManager.Fabric |
| grafana | Azure.ResourceManager.Grafana | sdk/grafana/Azure.ResourceManager.Grafana |
diff --git a/eng/CodeGeneration.targets b/eng/CodeGeneration.targets
index 78883666bd68..289f789d2c6a 100644
--- a/eng/CodeGeneration.targets
+++ b/eng/CodeGeneration.targets
@@ -21,7 +21,11 @@
-
+
+
+
+
+
diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props
index e4d1ed942d12..2289ec286ae1 100644
--- a/eng/Packages.Data.props
+++ b/eng/Packages.Data.props
@@ -86,7 +86,7 @@
-
+
@@ -102,7 +102,7 @@
-
+
@@ -204,15 +204,15 @@
-
+
-
+
-
+
@@ -409,6 +409,7 @@
+
@@ -430,6 +431,7 @@
+
@@ -444,7 +446,8 @@
-
+
+
@@ -458,6 +461,7 @@
+
@@ -477,7 +481,7 @@
1.0.0-dev.20250930.1
- 1.0.0-alpha.20251029.3
+ 1.0.0-alpha.20251103.8
1.0.0-alpha.20251022.3
\ No newline at end of file
diff --git a/eng/azure-typespec-http-client-csharp-emitter-package-lock.json b/eng/azure-typespec-http-client-csharp-emitter-package-lock.json
index 7035ff5c3d0d..02729f97f60d 100644
--- a/eng/azure-typespec-http-client-csharp-emitter-package-lock.json
+++ b/eng/azure-typespec-http-client-csharp-emitter-package-lock.json
@@ -5,7 +5,7 @@
"packages": {
"": {
"dependencies": {
- "@azure-typespec/http-client-csharp": "1.0.0-alpha.20251029.2"
+ "@azure-typespec/http-client-csharp": "1.0.0-alpha.20251105.1"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.61.0",
@@ -125,12 +125,12 @@
}
},
"node_modules/@azure-typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20251029.2",
- "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251029.2.tgz",
- "integrity": "sha512-bl/vqKEgrwaXTchmh+M/6+3yIdD0irds3hWbmXOz7sly+/KE3XwwGkdVgq2KSfzxjATs/jpk4SILD8CZ0ZOzJg==",
+ "version": "1.0.0-alpha.20251105.1",
+ "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251105.1.tgz",
+ "integrity": "sha512-oUbqU3Kh8dPQ+3Le3p3z07vR/przIdhqbDiFBftJZmeY6ZAeaS55Rn7iOI2WRQRARMf9sgKvemqNuhyfWuPeqw==",
"license": "MIT",
"dependencies": {
- "@typespec/http-client-csharp": "1.0.0-alpha.20251029.2"
+ "@typespec/http-client-csharp": "1.0.0-alpha.20251103.8"
}
},
"node_modules/@babel/code-frame": {
@@ -613,9 +613,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20251029.2",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251029.2.tgz",
- "integrity": "sha512-ooiEChGSqnNZ3QO38ZR2y0WGbWNe9/rSh8wJnK+2jg5UonTAsK2L3U08qOUhMlGExs3wnuccBM5mWr7DeMv5jg==",
+ "version": "1.0.0-alpha.20251103.8",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251103.8.tgz",
+ "integrity": "sha512-axVV4R4LSIRHl8Cczg93XQDmHEzTAlgWk/X40B9oNIT8TfHqDa1qIeyGG5OPcAh0sbrtOc5VNqb1LPmKQn765Q==",
"license": "MIT",
"peerDependencies": {
"@azure-tools/typespec-client-generator-core": ">=0.61.0 < 0.62.0 || ~0.62.0-0",
@@ -1373,10 +1373,10 @@
}
},
"node_modules/tar": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz",
- "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==",
- "license": "ISC",
+ "version": "7.5.2",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz",
+ "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==",
+ "license": "BlueOak-1.0.0",
"dependencies": {
"@isaacs/fs-minipass": "^4.0.0",
"chownr": "^3.0.0",
diff --git a/eng/azure-typespec-http-client-csharp-emitter-package.json b/eng/azure-typespec-http-client-csharp-emitter-package.json
index d52f65447c5a..15dc2e1e804f 100644
--- a/eng/azure-typespec-http-client-csharp-emitter-package.json
+++ b/eng/azure-typespec-http-client-csharp-emitter-package.json
@@ -1,7 +1,7 @@
{
"main": "dist/src/index.js",
"dependencies": {
- "@azure-typespec/http-client-csharp": "1.0.0-alpha.20251029.2"
+ "@azure-typespec/http-client-csharp": "1.0.0-alpha.20251105.1"
},
"devDependencies": {
"@azure-tools/typespec-azure-core": "0.61.0",
diff --git a/eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json b/eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json
index ddc2cfe8c44c..a23a0156e723 100644
--- a/eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json
+++ b/eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json
@@ -5,7 +5,7 @@
"packages": {
"": {
"dependencies": {
- "@azure-typespec/http-client-csharp-mgmt": "1.0.0-alpha.20251026.2"
+ "@azure-typespec/http-client-csharp-mgmt": "1.0.0-alpha.20251103.1"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.61.0",
@@ -142,9 +142,9 @@
}
},
"node_modules/@azure-typespec/http-client-csharp-mgmt": {
- "version": "1.0.0-alpha.20251026.2",
- "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp-mgmt/-/http-client-csharp-mgmt-1.0.0-alpha.20251026.2.tgz",
- "integrity": "sha512-d4xu8LlLBi7i7VO7gqrEVzEdFQTymYDntWYjwJtaFNehpkHg+2YZ5MBGrt8FTzUfQJlUDvnNJh2HwRHSuFGiyA==",
+ "version": "1.0.0-alpha.20251103.1",
+ "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp-mgmt/-/http-client-csharp-mgmt-1.0.0-alpha.20251103.1.tgz",
+ "integrity": "sha512-6NVMZqHaqQ1cGn7zj9kt4ulCETMtQy0DsyXcFRyri9GKlCt+CM1oL1I1icVN7b4Vl3mMdwLjw+06nfmj9eLcEQ==",
"license": "MIT",
"dependencies": {
"@azure-typespec/http-client-csharp": "1.0.0-alpha.20251022.3"
@@ -783,9 +783,9 @@
"license": "MIT"
},
"node_modules/chardet": {
- "version": "2.1.0",
- "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.0.tgz",
- "integrity": "sha512-bNFETTG/pM5ryzQ9Ad0lJOTa6HWD/YsScAR3EnCPZRPlQh77JocYktSHOUHelyhm8IARL+o4c4F1bP5KVOjiRA==",
+ "version": "2.1.1",
+ "resolved": "https://registry.npmjs.org/chardet/-/chardet-2.1.1.tgz",
+ "integrity": "sha512-PsezH1rqdV9VvyNhxxOW32/d75r01NY7TQCmOqomRo15ZSOKbpTFVsfjghxo6JloQUCGnH4k1LGu0R4yCLlWQQ==",
"license": "MIT"
},
"node_modules/chownr": {
@@ -1390,10 +1390,10 @@
}
},
"node_modules/tar": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz",
- "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==",
- "license": "ISC",
+ "version": "7.5.2",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz",
+ "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==",
+ "license": "BlueOak-1.0.0",
"dependencies": {
"@isaacs/fs-minipass": "^4.0.0",
"chownr": "^3.0.0",
diff --git a/eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json b/eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json
index b91a929c081a..a37ec93322a1 100644
--- a/eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json
+++ b/eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json
@@ -1,7 +1,7 @@
{
"main": "dist/src/index.js",
"dependencies": {
- "@azure-typespec/http-client-csharp-mgmt": "1.0.0-alpha.20251026.2"
+ "@azure-typespec/http-client-csharp-mgmt": "1.0.0-alpha.20251103.1"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.61.0",
diff --git a/eng/common/instructions/azsdk-tools/check-package-validation.instructions.md b/eng/common/instructions/azsdk-tools/check-package-validation.instructions.md
new file mode 100644
index 000000000000..8a1238c81f09
--- /dev/null
+++ b/eng/common/instructions/azsdk-tools/check-package-validation.instructions.md
@@ -0,0 +1,23 @@
+---
+description: 'Run the package validation checks for the SDK package.'
+---
+## Goal
+Run the validation checks for the SDK package by collecting the required information from the user and executing the `azsdk_package_run_check` tool.
+
+## Instructions
+1. **Collect Required Information**:
+ - Prompt the user for the absolute package path to the package directory for the SDK package they want to check.
+ - Prompt the user to specify values for each of the parameters required by the azsdk_package_run_check tool. Present the user with options to pick from for the allowed values specified by the parameter schema.
+
+2. **Execute Check**:
+ - Use the `azsdk_package_run_check` tool with the package path and check type.
+
+3. **Present Results**:
+ - If the package has passed all validation checks, highlight and finish
+ - If the package is not ready, display the specific check types that need to be fixed for each language.
+
+## Expected User Interaction Flow
+1. Ask: "What is the exact path of the package you want to check for validation?"
+2. Ask: "Please specify the check type you want to run (e.g., 'all', 'linting', 'format', etc.)"
+3. Execute the check using the provided information
+4. Display results and next steps
\ No newline at end of file
diff --git a/eng/common/instructions/azsdk-tools/verify-setup.instructions.md b/eng/common/instructions/azsdk-tools/verify-setup.instructions.md
new file mode 100644
index 000000000000..284e38417701
--- /dev/null
+++ b/eng/common/instructions/azsdk-tools/verify-setup.instructions.md
@@ -0,0 +1,20 @@
+---
+description: 'Verify Setup'
+---
+
+## Goal
+This tool verifies the developer's environment for SDK development and release tasks. It returns what requirements are missing for the specified languages and repo.
+
+Your goal is to identify the project repo root, and pass in the `packagePath` to the Verify Setup tool. For a language repo, pass in the language of the repo.
+
+## Examples
+- in `azure-sdk-for-js`, run `azsdk_verify_setup` with `(langs=javascript, packagePath=/azure-sdk-for-js)`.
+- in `azure-sdk-for-python`, run `azsdk_verify_setup` with `(langs=python, packagePath=/azure-sdk-for-python, venvPath=)`.
+
+## Parameter Requirements
+WHENEVER Python is included in `langs`, BEFORE RUNNING `azsdk_verify_setup`, you MUST ASK THE USER TO SPECIFY WHICH virtual environment they want to check. DO NOT ASSUME THE VENV WITHOUT ASKING THE USER. After obtaining the `venvPath`, you can run the tool.
+
+The user can specify multiple languages to check. If the user wants to check all languages, pass in ALL supported languages and STILL ASK for a `venvPath`. Passing in no languages will only check the core requirements.
+
+## Output
+Display results in a user-friendly and concise format, highlighting any missing dependencies that need to be addressed.
diff --git a/eng/http-client-csharp-emitter-package-lock.json b/eng/http-client-csharp-emitter-package-lock.json
index b9c72cc9885c..6c9f9167e74c 100644
--- a/eng/http-client-csharp-emitter-package-lock.json
+++ b/eng/http-client-csharp-emitter-package-lock.json
@@ -5,7 +5,7 @@
"packages": {
"": {
"dependencies": {
- "@typespec/http-client-csharp": "1.0.0-alpha.20251029.3",
+ "@typespec/http-client-csharp": "1.0.0-alpha.20251103.8",
"client-plugin": "file:../../../../eng/packages/plugins/client"
},
"devDependencies": {
@@ -607,9 +607,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20251029.3",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251029.3.tgz",
- "integrity": "sha512-MfbuD67sfkPf14vtulmtn57z3tmKRnSXeBYEV7lbs+AFkGHggBOuV1wloFdwqPSYudZVjIJk/flkNiXbZXKrVA==",
+ "version": "1.0.0-alpha.20251103.8",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251103.8.tgz",
+ "integrity": "sha512-axVV4R4LSIRHl8Cczg93XQDmHEzTAlgWk/X40B9oNIT8TfHqDa1qIeyGG5OPcAh0sbrtOc5VNqb1LPmKQn765Q==",
"license": "MIT",
"peerDependencies": {
"@azure-tools/typespec-client-generator-core": ">=0.61.0 < 0.62.0 || ~0.62.0-0",
@@ -1370,10 +1370,10 @@
}
},
"node_modules/tar": {
- "version": "7.5.1",
- "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.1.tgz",
- "integrity": "sha512-nlGpxf+hv0v7GkWBK2V9spgactGOp0qvfWRxUMjqHyzrt3SgwE48DIv/FhqPHJYLHpgW1opq3nERbz5Anq7n1g==",
- "license": "ISC",
+ "version": "7.5.2",
+ "resolved": "https://registry.npmjs.org/tar/-/tar-7.5.2.tgz",
+ "integrity": "sha512-7NyxrTE4Anh8km8iEy7o0QYPs+0JKBTj5ZaqHg6B39erLg0qYXN3BijtShwbsNSvQ+LN75+KV+C4QR/f6Gwnpg==",
+ "license": "BlueOak-1.0.0",
"dependencies": {
"@isaacs/fs-minipass": "^4.0.0",
"chownr": "^3.0.0",
@@ -1600,4 +1600,4 @@
}
}
}
-}
+}
\ No newline at end of file
diff --git a/eng/http-client-csharp-emitter-package.json b/eng/http-client-csharp-emitter-package.json
index 90bacbf5bcdb..984273db5fdd 100644
--- a/eng/http-client-csharp-emitter-package.json
+++ b/eng/http-client-csharp-emitter-package.json
@@ -2,7 +2,7 @@
"main": "dist/src/index.js",
"dependencies": {
"client-plugin": "file:../../../../eng/packages/plugins/client",
- "@typespec/http-client-csharp": "1.0.0-alpha.20251029.3"
+ "@typespec/http-client-csharp": "1.0.0-alpha.20251103.8"
},
"devDependencies": {
"@azure-tools/typespec-client-generator-core": "0.61.0",
diff --git a/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts b/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts
index 06adaa6496b7..1154e70fd602 100644
--- a/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts
+++ b/eng/packages/http-client-csharp-mgmt/emitter/src/resource-detection.ts
@@ -369,6 +369,8 @@ function getOperationScope(path: string): ResourceScope {
return ResourceScope.ResourceGroup;
} else if (path.startsWith("/subscriptions/{subscriptionId}/")) {
return ResourceScope.Subscription;
+ } else if (path.startsWith("/providers/Microsoft.Management/managementGroups/{managementGroupId}/")) {
+ return ResourceScope.ManagementGroup;
}
return ResourceScope.Tenant; // all the templates work as if there is a tenant decorator when there is no such decorator
}
diff --git a/eng/packages/http-client-csharp-mgmt/emitter/src/resource-metadata.ts b/eng/packages/http-client-csharp-mgmt/emitter/src/resource-metadata.ts
index 360e6d51b041..8d1022d74c4f 100644
--- a/eng/packages/http-client-csharp-mgmt/emitter/src/resource-metadata.ts
+++ b/eng/packages/http-client-csharp-mgmt/emitter/src/resource-metadata.ts
@@ -5,6 +5,7 @@ const ResourceGroupScopePrefix =
"/subscriptions/{subscriptionId}/resourceGroups";
const SubscriptionScopePrefix = "/subscriptions";
const TenantScopePrefix = "/tenants";
+const ManagementGroupScopePrefix = "/providers/Microsoft.Management/managementGroups";
const Providers = "/providers";
export function calculateResourceTypeFromPath(path: string): string {
@@ -16,6 +17,8 @@ export function calculateResourceTypeFromPath(path: string): string {
return "Microsoft.Resources/subscriptions";
} else if (path.startsWith(TenantScopePrefix)) {
return "Microsoft.Resources/tenants";
+ } else if (path.startsWith(ManagementGroupScopePrefix)) {
+ return "Microsoft.Resources/managementGroups";
}
throw `Path ${path} doesn't have resource type`;
}
@@ -33,7 +36,8 @@ export function calculateResourceTypeFromPath(path: string): string {
export enum ResourceScope {
Tenant = "Tenant",
Subscription = "Subscription",
- ResourceGroup = "ResourceGroup"
+ ResourceGroup = "ResourceGroup",
+ ManagementGroup = "ManagementGroup"
}
export interface ResourceMetadata {
diff --git a/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts b/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts
index bba765563d78..5f623487fc17 100644
--- a/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts
+++ b/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts
@@ -1147,4 +1147,55 @@ interface Employees {
);
ok(listByParentEntry);
});
+
+ it("resource scope as ManagementGroup", async () => {
+ const program = await typeSpecCompile(
+ `
+/** An Employee resource */
+model Employee is TrackedResource {
+ ...ResourceNameParameter;
+}
+
+/** Employee properties */
+model EmployeeProperties {
+ /** Age of employee */
+ age?: int32;
+
+ /** City of employee */
+ city?: string;
+}
+
+interface Operations extends Azure.ResourceManager.Operations {}
+
+@armResourceOperations
+interface Employees {
+ get is Extension.Read<
+ Extension.ManagementGroup<"managementGroupId">,
+ Employee
+ >;
+}
+`,
+ runner
+ );
+ const context = createEmitterContext(program);
+ const sdkContext = await createCSharpSdkContext(context);
+ const root = createModel(sdkContext);
+ updateClients(root, sdkContext);
+
+ const employeeClient = getAllClients(root).find((c) => c.name === "Employees");
+ ok(employeeClient);
+
+ const employeeModel = root.models.find((m) => m.name === "Employee");
+ ok(employeeModel);
+
+ // Validate Employee resource metadata should be null (no CRUD operations)
+ const employeeResourceMetadataDecorator = employeeModel.decorators?.find(
+ (d) => d.name === resourceMetadata
+ );
+ ok(employeeResourceMetadataDecorator);
+ strictEqual(
+ employeeResourceMetadataDecorator.arguments.resourceScope,
+ "ManagementGroup"
+ );
+ });
});
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Extensions/StringExtensions.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Extensions/StringExtensions.cs
deleted file mode 100644
index 392ca7533fcc..000000000000
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Extensions/StringExtensions.cs
+++ /dev/null
@@ -1,25 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using Humanizer;
-using System.Collections.Generic;
-using System.Linq;
-
-namespace Azure.Generator.Management.Extensions
-{
- internal static class StringExtensions
- {
- public static IEnumerable SplitByCamelCase(this string camelCase)
- {
- return camelCase.Humanize().Split(' ').Select(w => w.FirstCharToUpperCase());
- }
-
- public static string FirstCharToUpperCase(this string str)
- {
- if (string.IsNullOrEmpty(str) || char.IsUpper(str[0]))
- return str;
-
- return char.ToUpper(str[0]) + str.Substring(1);
- }
- }
-}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownManagementTypes.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownManagementTypes.cs
index 99480cc4832d..26925c2ce34d 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownManagementTypes.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownManagementTypes.cs
@@ -46,6 +46,7 @@ internal class KnownManagementTypes
["Azure.ResourceManager.CommonTypes.SystemData"] = typeof(SystemData),
["Azure.ResourceManager.CommonTypes.UserAssignedIdentity"] = typeof(UserAssignedIdentity),
["Azure.ResourceManager.Models.SubResource"] = typeof(SubResource),
+ ["Azure.ResourceManager.CommonTypes.ErrorDetail"] = typeof(ResponseError),
};
private static readonly Dictionary _idToPrimitiveTypeMap = new Dictionary()
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/PageableOperationMethodProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/PageableOperationMethodProvider.cs
index fe35d7e737f3..85c9d0643943 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/PageableOperationMethodProvider.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/PageableOperationMethodProvider.cs
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-using Azure.Generator.Management.Extensions;
using Azure.Generator.Management.Models;
using Azure.Generator.Management.Snippets;
using Azure.Generator.Management.Utilities;
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/ResourceOperationMethodProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/ResourceOperationMethodProvider.cs
index d3a18a4224e1..7eeb2e7e8fb5 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/ResourceOperationMethodProvider.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/ResourceOperationMethodProvider.cs
@@ -2,7 +2,6 @@
// Licensed under the MIT License.
using Azure.Core;
-using Azure.Generator.Management.Extensions;
using Azure.Generator.Management.Models;
using Azure.Generator.Management.Primitives;
using Azure.Generator.Management.Snippets;
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/UpdateOperationMethodProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/UpdateOperationMethodProvider.cs
index cb274f40372a..61f14130e717 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/UpdateOperationMethodProvider.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationMethodProviders/UpdateOperationMethodProvider.cs
@@ -16,8 +16,9 @@ public UpdateOperationMethodProvider(
RestClientInfo restClientInfo,
InputServiceMethod method,
bool isAsync,
- ResourceOperationKind methodKind)
- : base(resource, contextualPath, restClientInfo, method, isAsync, methodName: isAsync ? "UpdateAsync" : "Update", description: GetDescription(resource, methodKind))
+ ResourceOperationKind methodKind,
+ bool forceLro = false)
+ : base(resource, contextualPath, restClientInfo, method, isAsync, methodName: isAsync ? "UpdateAsync" : "Update", description: GetDescription(resource, methodKind), forceLro: forceLro)
{
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceClientProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceClientProvider.cs
index d8c181800c4b..7f89f2382f79 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceClientProvider.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceClientProvider.cs
@@ -3,7 +3,6 @@
using Azure.Core;
using Azure.Core.Pipeline;
-using Azure.Generator.Management.Extensions;
using Azure.Generator.Management.Models;
using Azure.Generator.Management.Providers.OperationMethodProviders;
using Azure.Generator.Management.Providers.TagMethodProviders;
@@ -434,10 +433,10 @@ protected override MethodProvider[] BuildMethods()
if (isUpdateOperation)
{
- var updateAsyncMethodProvider = new UpdateOperationMethodProvider(this, _contextualPath, restClientInfo, method, true, methodKind);
+ var updateAsyncMethodProvider = new UpdateOperationMethodProvider(this, _contextualPath, restClientInfo, method, true, methodKind, isFakeLro);
operationMethods.Add(updateAsyncMethodProvider);
- updateMethodProvider = new UpdateOperationMethodProvider(this, _contextualPath, restClientInfo, method, false, methodKind);
+ updateMethodProvider = new UpdateOperationMethodProvider(this, _contextualPath, restClientInfo, method, false, methodKind, isFakeLro);
operationMethods.Add(updateMethodProvider);
}
else
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceCollectionClientProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceCollectionClientProvider.cs
index ab099be124fe..970f345c3e8e 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceCollectionClientProvider.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceCollectionClientProvider.cs
@@ -2,7 +2,6 @@
// Licensed under the MIT License.
using Azure.Core;
using Azure.Core.Pipeline;
-using Azure.Generator.Management.Extensions;
using Azure.Generator.Management.Models;
using Azure.Generator.Management.Primitives;
using Azure.Generator.Management.Providers.OperationMethodProviders;
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/TagMethodProviders/BaseTagMethodProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/TagMethodProviders/BaseTagMethodProvider.cs
index c3ebd94d95a9..8d654627606d 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/TagMethodProviders/BaseTagMethodProvider.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/TagMethodProviders/BaseTagMethodProvider.cs
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-using Azure.Generator.Management.Extensions;
using Azure.Generator.Management.Models;
using Azure.Generator.Management.Primitives;
using Azure.Generator.Management.Providers.OperationMethodProviders;
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Extensions/ClientProviderExtensions.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ClientProviderExtensions.cs
similarity index 94%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Extensions/ClientProviderExtensions.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ClientProviderExtensions.cs
index f6a9a209476b..146a8a07be07 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Extensions/ClientProviderExtensions.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ClientProviderExtensions.cs
@@ -5,7 +5,7 @@
using Microsoft.TypeSpec.Generator.Input;
using Microsoft.TypeSpec.Generator.Providers;
-namespace Azure.Generator.Management.Extensions
+namespace Azure.Generator.Management.Utilities
{
internal static class ClientProviderExtensions
{
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ContextualParameterBuilder.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ContextualParameterBuilder.cs
index 824b91a263b5..6f88a8dee4fc 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ContextualParameterBuilder.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ContextualParameterBuilder.cs
@@ -105,9 +105,10 @@ private static void BuildContextualParameterHierarchy(RequestPathPattern current
}
else // in this branch value is a constant
{
- if (key.IsProvidersSegment)
+ if (!key.IsProvidersSegment)
{
- // if the key is not providers, we need to skip this level and increment the parent hierarchy
+ // When the value is a constant (e.g., a singleton resource name) and the key is not providers,
+ // we need to skip this level and increment the parent hierarchy so that parameters from parent segments get the correct .Parent reference
appendParent = true;
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/PropertyHelpers.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/PropertyHelpers.cs
index 3aafc46e1a5e..b2d2c06b0c80 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/PropertyHelpers.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/PropertyHelpers.cs
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-using Azure.Generator.Management.Extensions;
using Humanizer;
using Microsoft.TypeSpec.Generator.Expressions;
using Microsoft.TypeSpec.Generator.Primitives;
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/StringExtensions.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/StringExtensions.cs
index e2f5b3723720..bf9e46fbd5ec 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/StringExtensions.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/StringExtensions.cs
@@ -1,7 +1,10 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+using Humanizer;
using System;
+using System.Collections.Generic;
+using System.Linq;
namespace Azure.Generator.Management.Utilities
{
@@ -14,5 +17,17 @@ public static string FirstCharToLowerCase(this string str)
return string.Concat(char.ToLower(str[0]), str.AsSpan(1).ToString());
}
+ public static IEnumerable SplitByCamelCase(this string camelCase)
+ {
+ return camelCase.Humanize().Split(' ').Select(w => w.FirstCharToUpperCase());
+ }
+
+ public static string FirstCharToUpperCase(this string str)
+ {
+ if (string.IsNullOrEmpty(str) || char.IsUpper(str[0]))
+ return str;
+
+ return char.ToUpper(str[0]) + str.Substring(1);
+ }
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/FlattenPropertyVisitor.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/FlattenPropertyVisitor.cs
index 3496fa189ea3..c9d6264f6117 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/FlattenPropertyVisitor.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Visitors/FlattenPropertyVisitor.cs
@@ -215,21 +215,25 @@ private ValueExpression[] BuildConstructorParameters(CSharpType propertyType, Li
fullConstructorParameterIndex++;
}
var (isOverriddenValueType, flattenedProperty) = flattenedProperties[flattenedPropertyIndex];
- var propertyParameter = flattenedProperty.AsParameter;
var flattenedPropertyType = flattenedProperty.Type;
var constructorParameterType = fullConstructorParameters[fullConstructorParameterIndex].Type;
// If the internal property type is the same as the property type, we can use the flattened property directly.
if (constructorParameterType.AreNamesEqual(flattenedPropertyType))
{
- if (parameterMap.TryGetValue(propertyParameter, out var updatedParameter))
- {
- parameters.Add(isOverriddenValueType ? updatedParameter.Property("Value") : updatedParameter);
- }
- else
- {
- parameters.Add(isOverriddenValueType ? propertyParameter.Property("Value") : propertyParameter);
- }
+ var propertyParameter = flattenedProperty.AsParameter;
+ var parameter = (parameterMap.TryGetValue(propertyParameter, out var updatedParameter)
+ ? updatedParameter
+ : propertyParameter);
+
+ // TODO: Ideally we could just call parameter.ToPublicInputParameter() to build the input type parameter, which is not working properly
+ // update the parameter type to match the constructor parameter type for now
+ parameter.Update(type: parameter.Type.InputType);
+
+ parameters.Add(isOverriddenValueType
+ ? parameter.Property("Value")
+ : IsNonReadOnlyMemoryList(parameter) ? parameter.ToList() : parameter);
+
// only increase flattenedPropertyIndex when we use a flattened property
flattenedPropertyIndex++;
}
@@ -268,6 +272,9 @@ int GetAdditionalPropertyIndex()
}
return additionalPropertyIndex;
}
+
+ bool IsNonReadOnlyMemoryList(ParameterProvider parameter) =>
+ parameter.Type is { IsList: true, IsReadOnlyMemory: false };
}
// This dictionary holds the flattened model types, where the key is the CSharpType of the model and the value is a dictionary of property names to flattened PropertyProvider.
@@ -366,7 +373,7 @@ private bool PropertyFlatten(ModelProvider model, Dictionary;
+
+ createOrUpdate is ArmResourceCreateOrReplaceSync;
}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarSettingsResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarSettingsResource.cs
index 11ca11f61571..d2d081c45d2b 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarSettingsResource.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/BarSettingsResource.cs
@@ -128,7 +128,7 @@ public virtual async Task> CreateOrUpdateAsync
{
CancellationToken = cancellationToken
};
- HttpMessage message = _barSettingsOperationsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, BarSettingsResourceData.ToRequestContent(data), context);
+ HttpMessage message = _barSettingsOperationsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, BarSettingsResourceData.ToRequestContent(data), context);
Response response = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
TestsArmOperation operation = new TestsArmOperation(
new BarSettingsResourceOperationSource(Client),
@@ -187,7 +187,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn
{
CancellationToken = cancellationToken
};
- HttpMessage message = _barSettingsOperationsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, BarSettingsResourceData.ToRequestContent(data), context);
+ HttpMessage message = _barSettingsOperationsRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, BarSettingsResourceData.ToRequestContent(data), context);
Response response = Pipeline.ProcessMessage(message, context);
TestsArmOperation operation = new TestsArmOperation(
new BarSettingsResourceOperationSource(Client),
@@ -241,7 +241,7 @@ public virtual async Task> GetAsync(CancellationTo
{
CancellationToken = cancellationToken
};
- HttpMessage message = _barSettingsOperationsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context);
+ HttpMessage message = _barSettingsOperationsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, context);
Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
Response response = Response.FromValue(BarSettingsResourceData.FromResponse(result), result);
if (response.Value == null)
@@ -289,7 +289,7 @@ public virtual Response Get(CancellationToken cancellationT
{
CancellationToken = cancellationToken
};
- HttpMessage message = _barSettingsOperationsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Name, Id.Name, context);
+ HttpMessage message = _barSettingsOperationsRestClient.CreateGetRequest(Guid.Parse(Id.SubscriptionId), Id.ResourceGroupName, Id.Parent.Parent.Name, Id.Parent.Name, context);
Response result = Pipeline.ProcessMessage(message, context);
Response response = Response.FromValue(BarSettingsResourceData.FromResponse(result), result);
if (response.Value == null)
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/AzureGeneratorMgmtTypeSpecTestsExtensions.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/AzureGeneratorMgmtTypeSpecTestsExtensions.cs
index 87249d4d62fa..749a9f3ee268 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/AzureGeneratorMgmtTypeSpecTestsExtensions.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/AzureGeneratorMgmtTypeSpecTestsExtensions.cs
@@ -13,6 +13,7 @@
using Azure.Generator.MgmtTypeSpec.Tests.Mocking;
using Azure.Generator.MgmtTypeSpec.Tests.Models;
using Azure.ResourceManager;
+using Azure.ResourceManager.ManagementGroups;
using Azure.ResourceManager.Resources;
namespace Azure.Generator.MgmtTypeSpec.Tests
@@ -44,6 +45,12 @@ private static MockableAzureGeneratorMgmtTypeSpecTestsTenantResource GetMockable
return tenantResource.GetCachedClient(client => new MockableAzureGeneratorMgmtTypeSpecTestsTenantResource(client, tenantResource.Id));
}
+ ///
+ private static MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource GetMockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource(ManagementGroupResource managementGroupResource)
+ {
+ return managementGroupResource.GetCachedClient(client => new MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource(client, managementGroupResource.Id));
+ }
+
/// Gets an object representing a along with the instance operations that can be performed on it but with no data.
/// The the method will execute against.
/// The resource ID of the resource to get.
@@ -591,66 +598,63 @@ public static Response PreviewActions(this SubscriptionResourc
return GetMockableAzureGeneratorMgmtTypeSpecTestsSubscriptionResource(subscriptionResource).PreviewActions(location, body, cancellationToken);
}
- /// Gets a collection of GroupQuotaSubscriptionRequestStatuses in the .
+ /// Starts a failed runtime resource.
/// The the method will execute against.
- /// The managementGroupId for the resource.
+ /// The cancellation token to use.
/// is null.
- /// An object representing collection of GroupQuotaSubscriptionRequestStatuses and their operations over a GroupQuotaSubscriptionRequestStatusResource.
- public static GroupQuotaSubscriptionRequestStatusCollection GetGroupQuotaSubscriptionRequestStatuses(this TenantResource tenantResource, string managementGroupId)
+ public static async Task StartFailedServerlessRuntimeAsync(this TenantResource tenantResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(tenantResource, nameof(tenantResource));
- return GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).GetGroupQuotaSubscriptionRequestStatuses(managementGroupId);
+ return await GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).StartFailedServerlessRuntimeAsync(cancellationToken).ConfigureAwait(false);
}
- /// Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.
+ /// Starts a failed runtime resource.
/// The the method will execute against.
- /// The managementGroupId for the resource.
- /// The name of the GroupQuotaSubscriptionRequestStatus.
/// The cancellation token to use.
/// is null.
- [ForwardsClientCalls]
- public static async Task> GetGroupQuotaSubscriptionRequestStatusAsync(this TenantResource tenantResource, string managementGroupId, string requestId, CancellationToken cancellationToken = default)
+ public static Response StartFailedServerlessRuntime(this TenantResource tenantResource, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(tenantResource, nameof(tenantResource));
- return await GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).GetGroupQuotaSubscriptionRequestStatusAsync(managementGroupId, requestId, cancellationToken).ConfigureAwait(false);
+ return GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).StartFailedServerlessRuntime(cancellationToken);
}
- /// Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.
- /// The the method will execute against.
- /// The managementGroupId for the resource.
- /// The name of the GroupQuotaSubscriptionRequestStatus.
- /// The cancellation token to use.
- /// is null.
- [ForwardsClientCalls]
- public static Response GetGroupQuotaSubscriptionRequestStatus(this TenantResource tenantResource, string managementGroupId, string requestId, CancellationToken cancellationToken = default)
+ /// Gets a collection of GroupQuotaSubscriptionRequestStatuses in the .
+ /// The the method will execute against.
+ /// is null.
+ /// An object representing collection of GroupQuotaSubscriptionRequestStatuses and their operations over a GroupQuotaSubscriptionRequestStatusResource.
+ public static GroupQuotaSubscriptionRequestStatusCollection GetGroupQuotaSubscriptionRequestStatuses(this ManagementGroupResource managementGroupResource)
{
- Argument.AssertNotNull(tenantResource, nameof(tenantResource));
+ Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource));
- return GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).GetGroupQuotaSubscriptionRequestStatus(managementGroupId, requestId, cancellationToken);
+ return GetMockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource(managementGroupResource).GetGroupQuotaSubscriptionRequestStatuses();
}
- /// Starts a failed runtime resource.
- /// The the method will execute against.
+ /// Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.
+ /// The the method will execute against.
+ /// The name of the GroupQuotaSubscriptionRequestStatus.
/// The cancellation token to use.
- /// is null.
- public static async Task StartFailedServerlessRuntimeAsync(this TenantResource tenantResource, CancellationToken cancellationToken = default)
+ /// is null.
+ [ForwardsClientCalls]
+ public static async Task> GetGroupQuotaSubscriptionRequestStatusAsync(this ManagementGroupResource managementGroupResource, string requestId, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(tenantResource, nameof(tenantResource));
+ Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource));
- return await GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).StartFailedServerlessRuntimeAsync(cancellationToken).ConfigureAwait(false);
+ return await GetMockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource(managementGroupResource).GetGroupQuotaSubscriptionRequestStatusAsync(requestId, cancellationToken).ConfigureAwait(false);
}
- /// Starts a failed runtime resource.
- /// The the method will execute against.
+ /// Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.
+ /// The the method will execute against.
+ /// The name of the GroupQuotaSubscriptionRequestStatus.
/// The cancellation token to use.
- /// is null.
- public static Response StartFailedServerlessRuntime(this TenantResource tenantResource, CancellationToken cancellationToken = default)
+ /// is null.
+ [ForwardsClientCalls]
+ public static Response GetGroupQuotaSubscriptionRequestStatus(this ManagementGroupResource managementGroupResource, string requestId, CancellationToken cancellationToken = default)
{
- Argument.AssertNotNull(tenantResource, nameof(tenantResource));
+ Argument.AssertNotNull(managementGroupResource, nameof(managementGroupResource));
- return GetMockableAzureGeneratorMgmtTypeSpecTestsTenantResource(tenantResource).StartFailedServerlessRuntime(cancellationToken);
+ return GetMockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource(managementGroupResource).GetGroupQuotaSubscriptionRequestStatus(requestId, cancellationToken);
}
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource.cs
new file mode 100644
index 000000000000..d4b9d296c719
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource.cs
@@ -0,0 +1,99 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure;
+using Azure.Core;
+using Azure.Generator.MgmtTypeSpec.Tests;
+using Azure.ResourceManager;
+using Azure.ResourceManager.ManagementGroups;
+
+namespace Azure.Generator.MgmtTypeSpec.Tests.Mocking
+{
+ /// A class to add extension methods to .
+ public partial class MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource : ArmResource
+ {
+ /// Initializes a new instance of MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource for mocking.
+ protected MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource()
+ {
+ }
+
+ /// Initializes a new instance of class.
+ /// The client parameters to use in these operations.
+ /// The identifier of the resource that is the target of operations.
+ internal MockableAzureGeneratorMgmtTypeSpecTestsManagementGroupResource(ArmClient client, ResourceIdentifier id) : base(client, id)
+ {
+ }
+
+ /// Gets a collection of GroupQuotaSubscriptionRequestStatuses in the .
+ /// An object representing collection of GroupQuotaSubscriptionRequestStatuses and their operations over a GroupQuotaSubscriptionRequestStatusResource.
+ public virtual GroupQuotaSubscriptionRequestStatusCollection GetGroupQuotaSubscriptionRequestStatuses()
+ {
+ return GetCachedClient(client => new GroupQuotaSubscriptionRequestStatusCollection(client, Id));
+ }
+
+ ///
+ /// Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.
+ ///
+ /// -
+ /// Request Path.
+ /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/MgmtTypeSpec/quotas/{requestId}.
+ ///
+ /// -
+ /// Operation Id.
+ /// GroupQuotaSubscriptionRequestStatuses_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-05-01.
+ ///
+ ///
+ ///
+ /// The name of the GroupQuotaSubscriptionRequestStatus.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual async Task> GetGroupQuotaSubscriptionRequestStatusAsync(string requestId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(requestId, nameof(requestId));
+
+ return await GetGroupQuotaSubscriptionRequestStatuses().GetAsync(requestId, cancellationToken).ConfigureAwait(false);
+ }
+
+ ///
+ /// Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.
+ ///
+ /// -
+ /// Request Path.
+ /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/MgmtTypeSpec/quotas/{requestId}.
+ ///
+ /// -
+ /// Operation Id.
+ /// GroupQuotaSubscriptionRequestStatuses_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-05-01.
+ ///
+ ///
+ ///
+ /// The name of the GroupQuotaSubscriptionRequestStatus.
+ /// The cancellation token to use.
+ /// is null.
+ /// is an empty string, and was expected to be non-empty.
+ [ForwardsClientCalls]
+ public virtual Response GetGroupQuotaSubscriptionRequestStatus(string requestId, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNullOrEmpty(requestId, nameof(requestId));
+
+ return GetGroupQuotaSubscriptionRequestStatuses().Get(requestId, cancellationToken);
+ }
+ }
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource.cs
index 5bbb3eeed082..a68b5f2c2bf1 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsResourceGroupResource.cs
@@ -47,7 +47,7 @@ public virtual FooCollection GetFoos()
///
/// -
/// Operation Id.
- /// Get.
+ /// Foos_Get.
///
/// -
/// Default Api Version.
@@ -76,7 +76,7 @@ public virtual async Task> GetFooAsync(string fooName, Can
///
/// -
/// Operation Id.
- /// Get.
+ /// Foos_Get.
///
/// -
/// Default Api Version.
@@ -105,7 +105,7 @@ public virtual Response GetFoo(string fooName, CancellationToken ca
///
/// -
/// Operation Id.
- /// Get.
+ /// FooSettingsOperations_Get.
///
/// -
/// Default Api Version.
@@ -139,7 +139,7 @@ public virtual BazCollection GetBazs()
///
/// -
/// Operation Id.
- /// Get.
+ /// Bazs_Get.
///
/// -
/// Default Api Version.
@@ -168,7 +168,7 @@ public virtual async Task> GetBazAsync(string bazName, Can
///
/// -
/// Operation Id.
- /// Get.
+ /// Bazs_Get.
///
/// -
/// Default Api Version.
@@ -204,7 +204,7 @@ public virtual ZooCollection GetZoos()
///
/// -
/// Operation Id.
- /// Get.
+ /// Zoos_Get.
///
/// -
/// Default Api Version.
@@ -233,7 +233,7 @@ public virtual async Task> GetZooAsync(string zooName, Can
///
/// -
/// Operation Id.
- /// Get.
+ /// Zoos_Get.
///
/// -
/// Default Api Version.
@@ -269,7 +269,7 @@ public virtual JobResourceCollection GetJobResources()
///
/// -
/// Operation Id.
- /// Get.
+ /// JobResources_Get.
///
/// -
/// Default Api Version.
@@ -299,7 +299,7 @@ public virtual async Task> GetJobResourceAsync(string jobN
///
/// -
/// Operation Id.
- /// Get.
+ /// JobResources_Get.
///
/// -
/// Default Api Version.
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsSubscriptionResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsSubscriptionResource.cs
index ced3a2623ae8..95cb9aebd165 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsSubscriptionResource.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsSubscriptionResource.cs
@@ -75,7 +75,7 @@ public virtual PlaywrightQuotaCollection GetAllPlaywrightQuota(AzureLocation loc
///
/// -
/// Operation Id.
- /// Get.
+ /// PlaywrightQuotas_Get.
///
/// -
/// Default Api Version.
@@ -101,7 +101,7 @@ public virtual async Task> GetPlaywrightQuotaA
///
/// -
/// Operation Id.
- /// Get.
+ /// PlaywrightQuotas_Get.
///
/// -
/// Default Api Version.
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsTenantResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsTenantResource.cs
index 7bbffdc3fef4..ec2fca6fd45f 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsTenantResource.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Extensions/MockableAzureGeneratorMgmtTypeSpecTestsTenantResource.cs
@@ -39,74 +39,6 @@ internal MockableAzureGeneratorMgmtTypeSpecTestsTenantResource(ArmClient client,
private PrivateLinks PrivateLinksRestClient => _privateLinksRestClient ??= new PrivateLinks(PrivateLinksClientDiagnostics, Pipeline, Endpoint, "2024-05-01");
- /// Gets a collection of GroupQuotaSubscriptionRequestStatuses in the .
- /// The managementGroupId for the resource.
- /// An object representing collection of GroupQuotaSubscriptionRequestStatuses and their operations over a GroupQuotaSubscriptionRequestStatusResource.
- public virtual GroupQuotaSubscriptionRequestStatusCollection GetGroupQuotaSubscriptionRequestStatuses(string managementGroupId)
- {
- return GetCachedClient(client => new GroupQuotaSubscriptionRequestStatusCollection(client, Id, managementGroupId));
- }
-
- ///
- /// Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.
- ///
- /// -
- /// Request Path.
- /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/MgmtTypeSpec/quotas/{requestId}.
- ///
- /// -
- /// Operation Id.
- /// Get.
- ///
- /// -
- /// Default Api Version.
- /// 2024-05-01.
- ///
- ///
- ///
- /// The managementGroupId for the resource.
- /// The name of the GroupQuotaSubscriptionRequestStatus.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual async Task> GetGroupQuotaSubscriptionRequestStatusAsync(string managementGroupId, string requestId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(requestId, nameof(requestId));
-
- return await GetGroupQuotaSubscriptionRequestStatuses(managementGroupId).GetAsync(requestId, cancellationToken).ConfigureAwait(false);
- }
-
- ///
- /// Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.
- ///
- /// -
- /// Request Path.
- /// /providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/MgmtTypeSpec/quotas/{requestId}.
- ///
- /// -
- /// Operation Id.
- /// Get.
- ///
- /// -
- /// Default Api Version.
- /// 2024-05-01.
- ///
- ///
- ///
- /// The managementGroupId for the resource.
- /// The name of the GroupQuotaSubscriptionRequestStatus.
- /// The cancellation token to use.
- /// is null.
- /// is an empty string, and was expected to be non-empty.
- [ForwardsClientCalls]
- public virtual Response GetGroupQuotaSubscriptionRequestStatus(string managementGroupId, string requestId, CancellationToken cancellationToken = default)
- {
- Argument.AssertNotNullOrEmpty(requestId, nameof(requestId));
-
- return GetGroupQuotaSubscriptionRequestStatuses(managementGroupId).Get(requestId, cancellationToken);
- }
-
///
/// Starts a failed runtime resource
///
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GroupQuotaSubscriptionRequestStatusCollection.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GroupQuotaSubscriptionRequestStatusCollection.cs
index f446e700ea39..b457c4a4bd77 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GroupQuotaSubscriptionRequestStatusCollection.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GroupQuotaSubscriptionRequestStatusCollection.cs
@@ -13,7 +13,6 @@
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager;
-using Azure.ResourceManager.Resources;
namespace Azure.Generator.MgmtTypeSpec.Tests
{
@@ -26,8 +25,6 @@ public partial class GroupQuotaSubscriptionRequestStatusCollection : ArmCollecti
{
private readonly ClientDiagnostics _groupQuotaSubscriptionRequestStatusesClientDiagnostics;
private readonly GroupQuotaSubscriptionRequestStatuses _groupQuotaSubscriptionRequestStatusesRestClient;
- /// The managementGroupId.
- private readonly string _managementGroupId;
/// Initializes a new instance of GroupQuotaSubscriptionRequestStatusCollection for mocking.
protected GroupQuotaSubscriptionRequestStatusCollection()
@@ -37,11 +34,9 @@ protected GroupQuotaSubscriptionRequestStatusCollection()
/// Initializes a new instance of class.
/// The client parameters to use in these operations.
/// The identifier of the resource that is the target of operations.
- /// The managementGroupId for the resource.
- internal GroupQuotaSubscriptionRequestStatusCollection(ArmClient client, ResourceIdentifier id, string managementGroupId) : base(client, id)
+ internal GroupQuotaSubscriptionRequestStatusCollection(ArmClient client, ResourceIdentifier id) : base(client, id)
{
TryGetApiVersion(GroupQuotaSubscriptionRequestStatusResource.ResourceType, out string groupQuotaSubscriptionRequestStatusApiVersion);
- _managementGroupId = managementGroupId;
_groupQuotaSubscriptionRequestStatusesClientDiagnostics = new ClientDiagnostics("Azure.Generator.MgmtTypeSpec.Tests", GroupQuotaSubscriptionRequestStatusResource.ResourceType.Namespace, Diagnostics);
_groupQuotaSubscriptionRequestStatusesRestClient = new GroupQuotaSubscriptionRequestStatuses(_groupQuotaSubscriptionRequestStatusesClientDiagnostics, Pipeline, Endpoint, groupQuotaSubscriptionRequestStatusApiVersion ?? "2024-05-01");
ValidateResourceId(id);
@@ -51,9 +46,9 @@ internal GroupQuotaSubscriptionRequestStatusCollection(ArmClient client, Resourc
[Conditional("DEBUG")]
internal static void ValidateResourceId(ResourceIdentifier id)
{
- if (id.ResourceType != TenantResource.ResourceType)
+ if (id.ResourceType != GroupQuotaSubscriptionRequestStatusResource.ResourceType)
{
- throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, TenantResource.ResourceType), id);
+ throw new ArgumentException(string.Format("Invalid resource type {0} expected {1}", id.ResourceType, GroupQuotaSubscriptionRequestStatusResource.ResourceType), id);
}
}
@@ -90,7 +85,7 @@ public virtual async Task>
{
CancellationToken = cancellationToken
};
- HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(_managementGroupId, requestId, context);
+ HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(Id.Name, requestId, context);
Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
Response response = Response.FromValue(GroupQuotaSubscriptionRequestStatusData.FromResponse(result), result);
if (response.Value == null)
@@ -139,7 +134,7 @@ public virtual Response Get(string
{
CancellationToken = cancellationToken
};
- HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(_managementGroupId, requestId, context);
+ HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(Id.Name, requestId, context);
Response result = Pipeline.ProcessMessage(message, context);
Response response = Response.FromValue(GroupQuotaSubscriptionRequestStatusData.FromResponse(result), result);
if (response.Value == null)
@@ -188,7 +183,7 @@ public virtual async Task> ExistsAsync(string requestId, Cancella
{
CancellationToken = cancellationToken
};
- HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(_managementGroupId, requestId, context);
+ HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(Id.Name, requestId, context);
await Pipeline.SendAsync(message, context.CancellationToken).ConfigureAwait(false);
Response result = message.Response;
Response response = default;
@@ -245,7 +240,7 @@ public virtual Response Exists(string requestId, CancellationToken cancell
{
CancellationToken = cancellationToken
};
- HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(_managementGroupId, requestId, context);
+ HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(Id.Name, requestId, context);
Pipeline.Send(message, context.CancellationToken);
Response result = message.Response;
Response response = default;
@@ -302,7 +297,7 @@ public virtual async Task response = default;
@@ -363,7 +358,7 @@ public virtual NullableResponse Get
{
CancellationToken = cancellationToken
};
- HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(_managementGroupId, requestId, context);
+ HttpMessage message = _groupQuotaSubscriptionRequestStatusesRestClient.CreateGetRequest(Id.Name, requestId, context);
Pipeline.Send(message, context.CancellationToken);
Response result = message.Response;
Response response = default;
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GroupQuotaSubscriptionRequestStatusResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GroupQuotaSubscriptionRequestStatusResource.cs
index ac3ca3d2341e..0cd3815b2448 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GroupQuotaSubscriptionRequestStatusResource.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/GroupQuotaSubscriptionRequestStatusResource.cs
@@ -13,14 +13,14 @@
using Azure.Core;
using Azure.Core.Pipeline;
using Azure.ResourceManager;
-using Azure.ResourceManager.Resources;
+using Azure.ResourceManager.ManagementGroups;
namespace Azure.Generator.MgmtTypeSpec.Tests
{
///
/// A class representing a GroupQuotaSubscriptionRequestStatus along with the instance operations that can be performed on it.
/// If you have a you can construct a from an instance of using the GetResource method.
- /// Otherwise you can get one from its parent resource using the GetGroupQuotaSubscriptionRequestStatuses method.
+ /// Otherwise you can get one from its parent resource using the GetGroupQuotaSubscriptionRequestStatuses method.
///
public partial class GroupQuotaSubscriptionRequestStatusResource : ArmResource
{
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs
index a41c42b19e5d..ca04b323afd5 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/MgmtTypeSpecTestsModelFactory.cs
@@ -46,7 +46,7 @@ public static FooPreviewAction FooPreviewAction(string action = default, string
///
/// , or is null.
/// A new instance for mocking.
- public static FooData FooData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, Uri serviceUri = default, ManagedServiceIdentity something = default, bool? boolValue = default, float? floatValue = default, double? doubleValue = default, IList prop1 = default, IList prop2 = default, ETag? etag = default, FooProperties nestedPropertyProperties = default, ExtendedLocation extendedLocation = default)
+ public static FooData FooData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, Uri serviceUri = default, ManagedServiceIdentity something = default, bool? boolValue = default, float? floatValue = default, double? doubleValue = default, IEnumerable prop1 = default, IEnumerable prop2 = default, ETag? etag = default, FooProperties nestedPropertyProperties = default, ExtendedLocation extendedLocation = default)
{
tags ??= new ChangeTrackingDictionary();
@@ -64,8 +64,8 @@ public static FooData FooData(ResourceIdentifier id = default, string name = def
boolValue,
floatValue,
doubleValue,
- prop1,
- prop2,
+ prop1.ToList(),
+ prop2.ToList(),
new NestedFooModel(nestedPropertyProperties, new Dictionary()),
etag,
new Dictionary()),
@@ -111,10 +111,11 @@ public static FooActionRequest FooActionRequest(string id = default)
/// The FooActionResult.
///
+ ///
/// A new instance for mocking.
- public static FooActionResult FooActionResult(string msg = default)
+ public static FooActionResult FooActionResult(string msg = default, ResponseError error = default)
{
- return new FooActionResult(msg, additionalBinaryDataProperties: null);
+ return new FooActionResult(msg, error, additionalBinaryDataProperties: null);
}
/// Concrete proxy resource types can be created by aliasing this type using a specific property type.
@@ -141,14 +142,14 @@ public static FooSettingsData FooSettingsData(ResourceIdentifier id = default, s
///
/// Gets the MetaDatas.
/// A new instance for mocking.
- public static FooSettingsProperties FooSettingsProperties(MarketplaceDetails marketplace = default, UserDetails user = default, ResourceProvisioningState? provisioningState = default, bool? accessControlEnabled = default, IList metaDatas = default)
+ public static FooSettingsProperties FooSettingsProperties(MarketplaceDetails marketplace = default, UserDetails user = default, ResourceProvisioningState? provisioningState = default, bool? accessControlEnabled = default, IEnumerable metaDatas = default)
{
return new FooSettingsProperties(
marketplace,
user,
provisioningState,
accessControlEnabled,
- metaDatas is null ? default : new FooSettingsPropertiesMetaData(metaDatas, new Dictionary()),
+ metaDatas is null ? default : new FooSettingsPropertiesMetaData(metaDatas.ToList(), new Dictionary()),
additionalBinaryDataProperties: null);
}
@@ -227,7 +228,7 @@ public static BarData BarData(ResourceIdentifier id = default, string name = def
/// Gets the RandomCollectionProp.
///
/// A new instance for mocking.
- public static BarSettingsResourceData BarSettingsResourceData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, bool? isEnabled = default, IEnumerable stringArray = default, int? propertyLeft = default, int? anotherPropertyLeft = default, int? innerProp1 = default, string innerProp2 = default, int? middleProp1 = default, IDictionary middleProp2 = default, IList prop1 = default, int? prop2 = default, IList optionalFlattenPropertyRandomCollectionProp = default, LimitJsonObject discriminatorProperty = default)
+ public static BarSettingsResourceData BarSettingsResourceData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, bool? isEnabled = default, IEnumerable stringArray = default, int? propertyLeft = default, int? anotherPropertyLeft = default, int? innerProp1 = default, string innerProp2 = default, int? middleProp1 = default, IDictionary middleProp2 = default, IEnumerable prop1 = default, int? prop2 = default, IEnumerable optionalFlattenPropertyRandomCollectionProp = default, LimitJsonObject discriminatorProperty = default)
{
stringArray ??= new ChangeTrackingList();
@@ -247,9 +248,9 @@ public static BarSettingsResourceData BarSettingsResourceData(ResourceIdentifier
new Dictionary(),
middleProp1.Value,
middleProp2,
- prop1,
+ prop1.ToList(),
prop2.Value),
- optionalFlattenPropertyRandomCollectionProp is null ? default : new OptionalFlattenPropertyType(optionalFlattenPropertyRandomCollectionProp, new Dictionary()),
+ optionalFlattenPropertyRandomCollectionProp is null ? default : new OptionalFlattenPropertyType(optionalFlattenPropertyRandomCollectionProp.ToList(), new Dictionary()),
discriminatorProperty);
}
@@ -509,7 +510,7 @@ public static GroupQuotaSubscriptionRequestStatusData GroupQuotaSubscriptionRequ
/// The available Group Quota Limit at the MG level. This Group quota can be allocated to subscription(s).
/// List of Group Quota Limit allocated to subscriptions.
/// A new instance for mocking.
- public static GroupQuotaLimitProperties GroupQuotaLimitProperties(string resourceName = default, long? limit = default, string comment = default, string unit = default, long? availableLimit = default, IList allocatedToSubscriptionsValue = default)
+ public static GroupQuotaLimitProperties GroupQuotaLimitProperties(string resourceName = default, long? limit = default, string comment = default, string unit = default, long? availableLimit = default, IEnumerable allocatedToSubscriptionsValue = default)
{
return new GroupQuotaLimitProperties(
resourceName,
@@ -517,7 +518,7 @@ public static GroupQuotaLimitProperties GroupQuotaLimitProperties(string resourc
comment,
unit,
availableLimit,
- allocatedToSubscriptionsValue is null ? default : new AllocatedQuotaToSubscriptionList(allocatedToSubscriptionsValue, new Dictionary()),
+ allocatedToSubscriptionsValue is null ? default : new AllocatedQuotaToSubscriptionList(allocatedToSubscriptionsValue.ToList(), new Dictionary()),
additionalBinaryDataProperties: null);
}
@@ -528,7 +529,7 @@ public static GroupQuotaLimitProperties GroupQuotaLimitProperties(string resourc
/// The available Group Quota Limit at the MG level. This Group quota can be allocated to subscription(s).
/// List of Group Quota Limit allocated to subscriptions.
/// A new instance for mocking.
- public static GroupQuotaDetails GroupQuotaDetails(string resourceName = default, long? limit = default, string comment = default, string unit = default, long? availableLimit = default, IList allocatedToSubscriptionsValue = default)
+ public static GroupQuotaDetails GroupQuotaDetails(string resourceName = default, long? limit = default, string comment = default, string unit = default, long? availableLimit = default, IEnumerable allocatedToSubscriptionsValue = default)
{
return new GroupQuotaDetails(
resourceName,
@@ -536,7 +537,7 @@ public static GroupQuotaDetails GroupQuotaDetails(string resourceName = default,
comment,
unit,
availableLimit,
- allocatedToSubscriptionsValue is null ? default : new AllocatedQuotaToSubscriptionList(allocatedToSubscriptionsValue, new Dictionary()),
+ allocatedToSubscriptionsValue is null ? default : new AllocatedQuotaToSubscriptionList(allocatedToSubscriptionsValue.ToList(), new Dictionary()),
additionalBinaryDataProperties: null);
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsContext.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsContext.cs
index aee6cb6f8e97..b30b8a2739a0 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsContext.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/AzureGeneratorMgmtTypeSpecTestsContext.cs
@@ -6,6 +6,7 @@
#nullable disable
using System.ClientModel.Primitives;
+using Azure;
using Azure.Generator.MgmtTypeSpec.Tests.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
@@ -76,6 +77,7 @@ namespace Azure.Generator.MgmtTypeSpec.Tests
[ModelReaderWriterBuildable(typeof(PlaywrightQuotaListResult))]
[ModelReaderWriterBuildable(typeof(PlaywrightQuotaProperties))]
[ModelReaderWriterBuildable(typeof(PlaywrightQuotaResource))]
+ [ModelReaderWriterBuildable(typeof(ResponseError))]
[ModelReaderWriterBuildable(typeof(SelfHelpResource))]
[ModelReaderWriterBuildable(typeof(SelfHelpResourceData))]
[ModelReaderWriterBuildable(typeof(SelfHelpResourceProperties))]
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooActionResult.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooActionResult.Serialization.cs
index cb5fee4d80a7..540dfda3636a 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooActionResult.Serialization.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooActionResult.Serialization.cs
@@ -8,6 +8,7 @@
using System;
using System.ClientModel.Primitives;
using System.Collections.Generic;
+using System.Text;
using System.Text.Json;
using Azure;
using Azure.Generator.MgmtTypeSpec.Tests;
@@ -42,6 +43,11 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
writer.WritePropertyName("msg"u8);
writer.WriteStringValue(Msg);
+ if (Optional.IsDefined(Error))
+ {
+ writer.WritePropertyName("error"u8);
+ ((IJsonModel)Error).Write(writer, options);
+ }
if (options.Format != "W" && _additionalBinaryDataProperties != null)
{
foreach (var item in _additionalBinaryDataProperties)
@@ -85,6 +91,7 @@ internal static FooActionResult DeserializeFooActionResult(JsonElement element,
return null;
}
string msg = default;
+ ResponseError error = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
@@ -93,12 +100,21 @@ internal static FooActionResult DeserializeFooActionResult(JsonElement element,
msg = prop.Value.GetString();
continue;
}
+ if (prop.NameEquals("error"u8))
+ {
+ if (prop.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ error = ModelReaderWriter.Read(new BinaryData(Encoding.UTF8.GetBytes(prop.Value.GetRawText())), ModelSerializationExtensions.WireOptions, AzureGeneratorMgmtTypeSpecTestsContext.Default);
+ continue;
+ }
if (options.Format != "W")
{
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
}
- return new FooActionResult(msg, additionalBinaryDataProperties);
+ return new FooActionResult(msg, error, additionalBinaryDataProperties);
}
/// The client options for reading and writing models.
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooActionResult.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooActionResult.cs
index 0e80f2a8cac5..862bf643e512 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooActionResult.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooActionResult.cs
@@ -7,6 +7,7 @@
using System;
using System.Collections.Generic;
+using Azure;
using Azure.Generator.MgmtTypeSpec.Tests;
namespace Azure.Generator.MgmtTypeSpec.Tests.Models
@@ -26,15 +27,21 @@ internal FooActionResult(string msg)
/// Initializes a new instance of .
///
+ ///
/// Keeps track of any properties unknown to the library.
- internal FooActionResult(string msg, IDictionary additionalBinaryDataProperties)
+ internal FooActionResult(string msg, ResponseError error, IDictionary additionalBinaryDataProperties)
{
Msg = msg;
+ Error = error;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
/// Gets the Msg.
[WirePath("msg")]
public string Msg { get; }
+
+ /// Gets the Error.
+ [WirePath("error")]
+ public ResponseError Error { get; }
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PlaywrightQuotaProperties.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PlaywrightQuotaProperties.cs
index 830b4ffc7f3f..690caa5ef65f 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PlaywrightQuotaProperties.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/PlaywrightQuotaProperties.cs
@@ -18,7 +18,7 @@ public partial class PlaywrightQuotaProperties
private protected readonly IDictionary _additionalBinaryDataProperties;
/// Initializes a new instance of .
- internal PlaywrightQuotaProperties()
+ public PlaywrightQuotaProperties()
{
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaCollection.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaCollection.cs
index 95e28b4f86a5..a5efe46a9137 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaCollection.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaCollection.cs
@@ -60,6 +60,112 @@ internal static void ValidateResourceId(ResourceIdentifier id)
}
}
+ ///
+ /// Create a PlaywrightQuota
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// PlaywrightQuotas_CreateOrUpdate.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-05-01.
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The name of the PlaywrightQuota.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, PlaywrightQuotaName playwrightQuotaName, PlaywrightQuotaData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using DiagnosticScope scope = _playwrightQuotasClientDiagnostics.CreateScope("PlaywrightQuotaCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _playwrightQuotasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), _location, playwrightQuotaName.ToString(), PlaywrightQuotaData.ToRequestContent(data), context);
+ Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ Response response = Response.FromValue(PlaywrightQuotaData.FromResponse(result), result);
+ RequestUriBuilder uri = message.Request.Uri;
+ RehydrationToken rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ TestsArmOperation operation = new TestsArmOperation(Response.FromValue(new PlaywrightQuotaResource(Client, response.Value), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a PlaywrightQuota
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// PlaywrightQuotas_CreateOrUpdate.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-05-01.
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// The name of the PlaywrightQuota.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, PlaywrightQuotaName playwrightQuotaName, PlaywrightQuotaData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using DiagnosticScope scope = _playwrightQuotasClientDiagnostics.CreateScope("PlaywrightQuotaCollection.CreateOrUpdate");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _playwrightQuotasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), _location, playwrightQuotaName.ToString(), PlaywrightQuotaData.ToRequestContent(data), context);
+ Response result = Pipeline.ProcessMessage(message, context);
+ Response response = Response.FromValue(PlaywrightQuotaData.FromResponse(result), result);
+ RequestUriBuilder uri = message.Request.Uri;
+ RehydrationToken rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ TestsArmOperation operation = new TestsArmOperation(Response.FromValue(new PlaywrightQuotaResource(Client, response.Value), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ operation.WaitForCompletion(cancellationToken);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
///
/// Get subscription-level location-based Playwright quota resource by name.
///
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaData.Serialization.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaData.Serialization.cs
index 7ac88ba4d69b..e87ba9162dff 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaData.Serialization.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaData.Serialization.cs
@@ -174,6 +174,18 @@ protected virtual ResourceData PersistableModelCreateCore(BinaryData data, Model
/// The client options for reading and writing models.
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ /// The to serialize into .
+ internal static RequestContent ToRequestContent(PlaywrightQuotaData playwrightQuotaData)
+ {
+ if (playwrightQuotaData == null)
+ {
+ return null;
+ }
+ Utf8JsonRequestContent content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(playwrightQuotaData, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+
/// The to deserialize the from.
internal static PlaywrightQuotaData FromResponse(Response result)
{
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaData.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaData.cs
index 8272ca47fb1e..4277123125f7 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaData.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaData.cs
@@ -20,7 +20,7 @@ public partial class PlaywrightQuotaData : ResourceData
private protected readonly IDictionary _additionalBinaryDataProperties;
/// Initializes a new instance of .
- internal PlaywrightQuotaData()
+ public PlaywrightQuotaData()
{
}
@@ -39,6 +39,6 @@ internal PlaywrightQuotaData(ResourceIdentifier id, string name, ResourceType re
/// The resource-specific properties for this resource.
[WirePath("properties")]
- public PlaywrightQuotaProperties Properties { get; }
+ public PlaywrightQuotaProperties Properties { get; set; }
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaResource.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaResource.cs
index 3662fe7c405b..5dcb6f463daf 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaResource.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/PlaywrightQuotaResource.cs
@@ -187,5 +187,117 @@ public virtual Response Get(CancellationToken cancellat
throw;
}
}
+
+ ///
+ /// Create a PlaywrightQuota
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// PlaywrightQuotas_CreateOrUpdate.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-05-01.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual async Task> UpdateAsync(WaitUntil waitUntil, PlaywrightQuotaData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using DiagnosticScope scope = _playwrightQuotasClientDiagnostics.CreateScope("PlaywrightQuotaResource.Update");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _playwrightQuotasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.Parent.Name, Id.Name, PlaywrightQuotaData.ToRequestContent(data), context);
+ Response result = await Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ Response response = Response.FromValue(PlaywrightQuotaData.FromResponse(result), result);
+ RequestUriBuilder uri = message.Request.Uri;
+ RehydrationToken rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ TestsArmOperation operation = new TestsArmOperation(Response.FromValue(new PlaywrightQuotaResource(Client, response.Value), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
+
+ ///
+ /// Create a PlaywrightQuota
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// PlaywrightQuotas_CreateOrUpdate.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-05-01.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
+ /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
+ /// Resource create parameters.
+ /// The cancellation token to use.
+ /// is null.
+ public virtual ArmOperation Update(WaitUntil waitUntil, PlaywrightQuotaData data, CancellationToken cancellationToken = default)
+ {
+ Argument.AssertNotNull(data, nameof(data));
+
+ using DiagnosticScope scope = _playwrightQuotasClientDiagnostics.CreateScope("PlaywrightQuotaResource.Update");
+ scope.Start();
+ try
+ {
+ RequestContext context = new RequestContext
+ {
+ CancellationToken = cancellationToken
+ };
+ HttpMessage message = _playwrightQuotasRestClient.CreateCreateOrUpdateRequest(Guid.Parse(Id.SubscriptionId), Id.Parent.Name, Id.Name, PlaywrightQuotaData.ToRequestContent(data), context);
+ Response result = Pipeline.ProcessMessage(message, context);
+ Response response = Response.FromValue(PlaywrightQuotaData.FromResponse(result), result);
+ RequestUriBuilder uri = message.Request.Uri;
+ RehydrationToken rehydrationToken = NextLinkOperationImplementation.GetRehydrationToken(RequestMethod.Put, uri.ToUri(), uri.ToString(), "None", null, OperationFinalStateVia.OriginalUri.ToString());
+ TestsArmOperation operation = new TestsArmOperation(Response.FromValue(new PlaywrightQuotaResource(Client, response.Value), response.GetRawResponse()), rehydrationToken);
+ if (waitUntil == WaitUntil.Completed)
+ {
+ operation.WaitForCompletion(cancellationToken);
+ }
+ return operation;
+ }
+ catch (Exception e)
+ {
+ scope.Failed(e);
+ throw;
+ }
+ }
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PlaywrightQuotasRestOperations.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PlaywrightQuotasRestOperations.cs
index e45ec1c7d38f..d7aab660474d 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PlaywrightQuotasRestOperations.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/RestOperations/PlaywrightQuotasRestOperations.cs
@@ -89,5 +89,26 @@ internal HttpMessage CreateNextGetBySubscriptionRequest(Uri nextPage, Guid subsc
request.Headers.SetValue("Accept", "application/json");
return message;
}
+
+ internal HttpMessage CreateCreateOrUpdateRequest(Guid subscriptionId, AzureLocation location, string playwrightQuotaName, RequestContent content, RequestContext context)
+ {
+ RawRequestUriBuilder uri = new RawRequestUriBuilder();
+ uri.Reset(_endpoint);
+ uri.AppendPath("/subscriptions/", false);
+ uri.AppendPath(subscriptionId.ToString(), true);
+ uri.AppendPath("/providers/MgmtTypeSpec/locations/", false);
+ uri.AppendPath(location.ToString(), true);
+ uri.AppendPath("/playwrightQuotas/", false);
+ uri.AppendPath(playwrightQuotaName, true);
+ uri.AppendQuery("api-version", _apiVersion, true);
+ HttpMessage message = Pipeline.CreateMessage();
+ Request request = message.Request;
+ request.Uri = uri;
+ request.Method = RequestMethod.Put;
+ request.Headers.SetValue("Content-Type", "application/json");
+ request.Headers.SetValue("Accept", "application/json");
+ request.Content = content;
+ return message;
+ }
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json
index 25e6702a7897..1f3beae050bd 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/tspCodeModel.json
@@ -1757,7 +1757,7 @@
{
"$id": "192",
"kind": "constant",
- "name": "getContentType9",
+ "name": "createOrUpdateContentType24",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1773,7 +1773,7 @@
{
"$id": "194",
"kind": "constant",
- "name": "updateContentType16",
+ "name": "createOrUpdateContentType25",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1789,7 +1789,7 @@
{
"$id": "196",
"kind": "constant",
- "name": "updateContentType17",
+ "name": "getContentType9",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1805,7 +1805,7 @@
{
"$id": "198",
"kind": "constant",
- "name": "updateContentType18",
+ "name": "updateContentType16",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1821,7 +1821,7 @@
{
"$id": "200",
"kind": "constant",
- "name": "updateContentType19",
+ "name": "updateContentType17",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1837,7 +1837,7 @@
{
"$id": "202",
"kind": "constant",
- "name": "getContentType10",
+ "name": "updateContentType18",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1853,7 +1853,7 @@
{
"$id": "204",
"kind": "constant",
- "name": "getContentType11",
+ "name": "updateContentType19",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1869,7 +1869,7 @@
{
"$id": "206",
"kind": "constant",
- "name": "getContentType12",
+ "name": "getContentType10",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1885,7 +1885,7 @@
{
"$id": "208",
"kind": "constant",
- "name": "updateContentType20",
+ "name": "getContentType11",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1901,7 +1901,7 @@
{
"$id": "210",
"kind": "constant",
- "name": "updateContentType21",
+ "name": "getContentType12",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1917,7 +1917,7 @@
{
"$id": "212",
"kind": "constant",
- "name": "recommendContentType",
+ "name": "updateContentType20",
"namespace": "",
"usage": "None",
"valueType": {
@@ -1929,11 +1929,43 @@
},
"value": "application/json",
"decorators": []
+ },
+ {
+ "$id": "214",
+ "kind": "constant",
+ "name": "updateContentType21",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "215",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "216",
+ "kind": "constant",
+ "name": "recommendContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "217",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
}
],
"models": [
{
- "$id": "214",
+ "$id": "218",
"kind": "model",
"name": "FooPreviewAction",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -1947,13 +1979,13 @@
],
"properties": [
{
- "$id": "215",
+ "$id": "219",
"kind": "property",
"name": "action",
"serializedName": "action",
"doc": "The action to be performed.",
"type": {
- "$id": "216",
+ "$id": "220",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1973,12 +2005,12 @@
"isHttpMetadata": false
},
{
- "$id": "217",
+ "$id": "221",
"kind": "property",
"name": "result",
"serializedName": "result",
"type": {
- "$id": "218",
+ "$id": "222",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2000,7 +2032,7 @@
]
},
{
- "$id": "219",
+ "$id": "223",
"kind": "model",
"name": "ErrorResponse",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2016,13 +2048,13 @@
],
"properties": [
{
- "$id": "220",
+ "$id": "224",
"kind": "property",
"name": "error",
"serializedName": "error",
"doc": "The error object.",
"type": {
- "$id": "221",
+ "$id": "225",
"kind": "model",
"name": "ErrorDetail",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2037,13 +2069,13 @@
],
"properties": [
{
- "$id": "222",
+ "$id": "226",
"kind": "property",
"name": "code",
"serializedName": "code",
"doc": "The error code.",
"type": {
- "$id": "223",
+ "$id": "227",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2063,13 +2095,13 @@
"isHttpMetadata": false
},
{
- "$id": "224",
+ "$id": "228",
"kind": "property",
"name": "message",
"serializedName": "message",
"doc": "The error message.",
"type": {
- "$id": "225",
+ "$id": "229",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2089,13 +2121,13 @@
"isHttpMetadata": false
},
{
- "$id": "226",
+ "$id": "230",
"kind": "property",
"name": "target",
"serializedName": "target",
"doc": "The error target.",
"type": {
- "$id": "227",
+ "$id": "231",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2115,17 +2147,17 @@
"isHttpMetadata": false
},
{
- "$id": "228",
+ "$id": "232",
"kind": "property",
"name": "details",
"serializedName": "details",
"doc": "The error details.",
"type": {
- "$id": "229",
+ "$id": "233",
"kind": "array",
"name": "ArrayErrorDetail",
"valueType": {
- "$ref": "221"
+ "$ref": "225"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -2144,17 +2176,17 @@
"isHttpMetadata": false
},
{
- "$id": "230",
+ "$id": "234",
"kind": "property",
"name": "additionalInfo",
"serializedName": "additionalInfo",
"doc": "The error additional info.",
"type": {
- "$id": "231",
+ "$id": "235",
"kind": "array",
"name": "ArrayErrorAdditionalInfo",
"valueType": {
- "$id": "232",
+ "$id": "236",
"kind": "model",
"name": "ErrorAdditionalInfo",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2169,13 +2201,13 @@
],
"properties": [
{
- "$id": "233",
+ "$id": "237",
"kind": "property",
"name": "type",
"serializedName": "type",
"doc": "The additional info type.",
"type": {
- "$id": "234",
+ "$id": "238",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2195,13 +2227,13 @@
"isHttpMetadata": false
},
{
- "$id": "235",
+ "$id": "239",
"kind": "property",
"name": "info",
"serializedName": "info",
"doc": "The additional info.",
"type": {
- "$id": "236",
+ "$id": "240",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -2256,13 +2288,13 @@
]
},
{
- "$ref": "221"
+ "$ref": "225"
},
{
- "$ref": "232"
+ "$ref": "236"
},
{
- "$id": "237",
+ "$id": "241",
"kind": "model",
"name": "OperationListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2277,17 +2309,17 @@
],
"properties": [
{
- "$id": "238",
+ "$id": "242",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The Operation items on this page",
"type": {
- "$id": "239",
+ "$id": "243",
"kind": "array",
"name": "ArrayOperation",
"valueType": {
- "$id": "240",
+ "$id": "244",
"kind": "model",
"name": "Operation",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2303,13 +2335,13 @@
],
"properties": [
{
- "$id": "241",
+ "$id": "245",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the operation, as per Resource-Based Access Control (RBAC). Examples: \"Microsoft.Compute/virtualMachines/write\", \"Microsoft.Compute/virtualMachines/capture/action\"",
"type": {
- "$id": "242",
+ "$id": "246",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2329,13 +2361,13 @@
"isHttpMetadata": false
},
{
- "$id": "243",
+ "$id": "247",
"kind": "property",
"name": "isDataAction",
"serializedName": "isDataAction",
"doc": "Whether the operation applies to data-plane. This is \"true\" for data-plane operations and \"false\" for Azure Resource Manager/control-plane operations.",
"type": {
- "$id": "244",
+ "$id": "248",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -2355,13 +2387,13 @@
"isHttpMetadata": false
},
{
- "$id": "245",
+ "$id": "249",
"kind": "property",
"name": "display",
"serializedName": "display",
"doc": "Localized display information for this particular operation.",
"type": {
- "$id": "246",
+ "$id": "250",
"kind": "model",
"name": "OperationDisplay",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2376,13 +2408,13 @@
],
"properties": [
{
- "$id": "247",
+ "$id": "251",
"kind": "property",
"name": "provider",
"serializedName": "provider",
"doc": "The localized friendly form of the resource provider name, e.g. \"Microsoft Monitoring Insights\" or \"Microsoft Compute\".",
"type": {
- "$id": "248",
+ "$id": "252",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2402,13 +2434,13 @@
"isHttpMetadata": false
},
{
- "$id": "249",
+ "$id": "253",
"kind": "property",
"name": "resource",
"serializedName": "resource",
"doc": "The localized friendly name of the resource type related to this operation. E.g. \"Virtual Machines\" or \"Job Schedule Collections\".",
"type": {
- "$id": "250",
+ "$id": "254",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2428,13 +2460,13 @@
"isHttpMetadata": false
},
{
- "$id": "251",
+ "$id": "255",
"kind": "property",
"name": "operation",
"serializedName": "operation",
"doc": "The concise, localized friendly name for the operation; suitable for dropdowns. E.g. \"Create or Update Virtual Machine\", \"Restart Virtual Machine\".",
"type": {
- "$id": "252",
+ "$id": "256",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2454,13 +2486,13 @@
"isHttpMetadata": false
},
{
- "$id": "253",
+ "$id": "257",
"kind": "property",
"name": "description",
"serializedName": "description",
"doc": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
"type": {
- "$id": "254",
+ "$id": "258",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2495,7 +2527,7 @@
"isHttpMetadata": false
},
{
- "$id": "255",
+ "$id": "259",
"kind": "property",
"name": "origin",
"serializedName": "origin",
@@ -2517,7 +2549,7 @@
"isHttpMetadata": false
},
{
- "$id": "256",
+ "$id": "260",
"kind": "property",
"name": "actionType",
"serializedName": "actionType",
@@ -2557,18 +2589,18 @@
"isHttpMetadata": false
},
{
- "$id": "257",
+ "$id": "261",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "258",
+ "$id": "262",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "259",
+ "$id": "263",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -2592,13 +2624,13 @@
]
},
{
- "$ref": "240"
+ "$ref": "244"
},
{
- "$ref": "246"
+ "$ref": "250"
},
{
- "$id": "260",
+ "$id": "264",
"kind": "model",
"name": "PrivateLinkListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2613,17 +2645,17 @@
],
"properties": [
{
- "$id": "261",
+ "$id": "265",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The PrivateLink items on this page",
"type": {
- "$id": "262",
+ "$id": "266",
"kind": "array",
"name": "ArrayPrivateLink",
"valueType": {
- "$id": "263",
+ "$id": "267",
"kind": "model",
"name": "PrivateLink",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2641,7 +2673,7 @@
}
],
"baseModel": {
- "$id": "264",
+ "$id": "268",
"kind": "model",
"name": "ProxyResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2656,7 +2688,7 @@
}
],
"baseModel": {
- "$id": "265",
+ "$id": "269",
"kind": "model",
"name": "Resource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2672,18 +2704,18 @@
],
"properties": [
{
- "$id": "266",
+ "$id": "270",
"kind": "property",
"name": "id",
"serializedName": "id",
"doc": "Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}",
"type": {
- "$id": "267",
+ "$id": "271",
"kind": "string",
"name": "armResourceIdentifier",
"crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier",
"baseType": {
- "$id": "268",
+ "$id": "272",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2705,13 +2737,13 @@
"isHttpMetadata": false
},
{
- "$id": "269",
+ "$id": "273",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the resource",
"type": {
- "$id": "270",
+ "$id": "274",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2731,18 +2763,18 @@
"isHttpMetadata": false
},
{
- "$id": "271",
+ "$id": "275",
"kind": "property",
"name": "type",
"serializedName": "type",
"doc": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
"type": {
- "$id": "272",
+ "$id": "276",
"kind": "string",
"name": "armResourceType",
"crossLanguageDefinitionId": "Azure.Core.armResourceType",
"baseType": {
- "$id": "273",
+ "$id": "277",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2764,13 +2796,13 @@
"isHttpMetadata": false
},
{
- "$id": "274",
+ "$id": "278",
"kind": "property",
"name": "systemData",
"serializedName": "systemData",
"doc": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
"type": {
- "$id": "275",
+ "$id": "279",
"kind": "model",
"name": "SystemData",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2785,13 +2817,13 @@
],
"properties": [
{
- "$id": "276",
+ "$id": "280",
"kind": "property",
"name": "createdBy",
"serializedName": "createdBy",
"doc": "The identity that created the resource.",
"type": {
- "$id": "277",
+ "$id": "281",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2811,7 +2843,7 @@
"isHttpMetadata": false
},
{
- "$id": "278",
+ "$id": "282",
"kind": "property",
"name": "createdByType",
"serializedName": "createdByType",
@@ -2833,18 +2865,18 @@
"isHttpMetadata": false
},
{
- "$id": "279",
+ "$id": "283",
"kind": "property",
"name": "createdAt",
"serializedName": "createdAt",
"doc": "The timestamp of resource creation (UTC).",
"type": {
- "$id": "280",
+ "$id": "284",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "281",
+ "$id": "285",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2867,13 +2899,13 @@
"isHttpMetadata": false
},
{
- "$id": "282",
+ "$id": "286",
"kind": "property",
"name": "lastModifiedBy",
"serializedName": "lastModifiedBy",
"doc": "The identity that last modified the resource.",
"type": {
- "$id": "283",
+ "$id": "287",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2893,7 +2925,7 @@
"isHttpMetadata": false
},
{
- "$id": "284",
+ "$id": "288",
"kind": "property",
"name": "lastModifiedByType",
"serializedName": "lastModifiedByType",
@@ -2915,18 +2947,18 @@
"isHttpMetadata": false
},
{
- "$id": "285",
+ "$id": "289",
"kind": "property",
"name": "lastModifiedAt",
"serializedName": "lastModifiedAt",
"doc": "The timestamp of resource last modification (UTC)",
"type": {
- "$id": "286",
+ "$id": "290",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "287",
+ "$id": "291",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2969,13 +3001,13 @@
},
"properties": [
{
- "$id": "288",
+ "$id": "292",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "289",
+ "$id": "293",
"kind": "model",
"name": "PrivateLinkResourceProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -2990,13 +3022,13 @@
],
"properties": [
{
- "$id": "290",
+ "$id": "294",
"kind": "property",
"name": "groupId",
"serializedName": "groupId",
"doc": "The private link resource group id.",
"type": {
- "$id": "291",
+ "$id": "295",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3016,17 +3048,17 @@
"isHttpMetadata": false
},
{
- "$id": "292",
+ "$id": "296",
"kind": "property",
"name": "requiredMembers",
"serializedName": "requiredMembers",
"doc": "The private link resource required member names.",
"type": {
- "$id": "293",
+ "$id": "297",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "294",
+ "$id": "298",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3049,13 +3081,13 @@
"isHttpMetadata": false
},
{
- "$id": "295",
+ "$id": "299",
"kind": "property",
"name": "requiredZoneNames",
"serializedName": "requiredZoneNames",
"doc": "The private link resource private link DNS zone name.",
"type": {
- "$ref": "293"
+ "$ref": "297"
},
"optional": true,
"readOnly": false,
@@ -3086,13 +3118,13 @@
"isHttpMetadata": false
},
{
- "$id": "296",
+ "$id": "300",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the private link associated with the Azure resource.",
"type": {
- "$id": "297",
+ "$id": "301",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3112,13 +3144,13 @@
"isHttpMetadata": true
},
{
- "$id": "298",
+ "$id": "302",
"kind": "property",
"name": "identity",
"serializedName": "identity",
"doc": "The managed service identities assigned to this resource.",
"type": {
- "$id": "299",
+ "$id": "303",
"kind": "model",
"name": "ManagedServiceIdentity",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -3133,18 +3165,18 @@
],
"properties": [
{
- "$id": "300",
+ "$id": "304",
"kind": "property",
"name": "principalId",
"serializedName": "principalId",
"doc": "The service principal ID of the system assigned identity. This property will only be provided for a system assigned identity.",
"type": {
- "$id": "301",
+ "$id": "305",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "302",
+ "$id": "306",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3166,18 +3198,18 @@
"isHttpMetadata": false
},
{
- "$id": "303",
+ "$id": "307",
"kind": "property",
"name": "tenantId",
"serializedName": "tenantId",
"doc": "The tenant ID of the system assigned identity. This property will only be provided for a system assigned identity.",
"type": {
- "$id": "304",
+ "$id": "308",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "305",
+ "$id": "309",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3199,7 +3231,7 @@
"isHttpMetadata": false
},
{
- "$id": "306",
+ "$id": "310",
"kind": "property",
"name": "type",
"serializedName": "type",
@@ -3221,26 +3253,26 @@
"isHttpMetadata": false
},
{
- "$id": "307",
+ "$id": "311",
"kind": "property",
"name": "userAssignedIdentities",
"serializedName": "userAssignedIdentities",
"doc": "The identities assigned to this resource by the user.",
"type": {
- "$id": "308",
+ "$id": "312",
"kind": "dict",
"keyType": {
- "$id": "309",
+ "$id": "313",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "310",
+ "$id": "314",
"kind": "nullable",
"type": {
- "$id": "311",
+ "$id": "315",
"kind": "model",
"name": "UserAssignedIdentity",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -3255,18 +3287,18 @@
],
"properties": [
{
- "$id": "312",
+ "$id": "316",
"kind": "property",
"name": "principalId",
"serializedName": "principalId",
"doc": "The principal ID of the assigned identity.",
"type": {
- "$id": "313",
+ "$id": "317",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "314",
+ "$id": "318",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3288,18 +3320,18 @@
"isHttpMetadata": false
},
{
- "$id": "315",
+ "$id": "319",
"kind": "property",
"name": "clientId",
"serializedName": "clientId",
"doc": "The client ID of the assigned identity.",
"type": {
- "$id": "316",
+ "$id": "320",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "317",
+ "$id": "321",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3373,18 +3405,18 @@
"isHttpMetadata": false
},
{
- "$id": "318",
+ "$id": "322",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "319",
+ "$id": "323",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "320",
+ "$id": "324",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -3408,28 +3440,28 @@
]
},
{
- "$ref": "263"
+ "$ref": "267"
},
{
- "$ref": "289"
+ "$ref": "293"
},
{
- "$ref": "299"
+ "$ref": "303"
},
{
- "$ref": "311"
+ "$ref": "315"
},
{
- "$ref": "264"
+ "$ref": "268"
},
{
- "$ref": "265"
+ "$ref": "269"
},
{
- "$ref": "275"
+ "$ref": "279"
},
{
- "$id": "321",
+ "$id": "325",
"kind": "model",
"name": "StartParameterBody",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -3443,12 +3475,12 @@
],
"properties": [
{
- "$id": "322",
+ "$id": "326",
"kind": "property",
"name": "body",
"doc": "SAP Application server instance start request body.",
"type": {
- "$id": "323",
+ "$id": "327",
"kind": "model",
"name": "StartRequest",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -3463,13 +3495,13 @@
],
"properties": [
{
- "$id": "324",
+ "$id": "328",
"kind": "property",
"name": "startVm",
"serializedName": "startVm",
"doc": "The boolean value indicates whether to start the virtual machines before starting the SAP instances.",
"type": {
- "$id": "325",
+ "$id": "329",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -3502,10 +3534,10 @@
]
},
{
- "$ref": "323"
+ "$ref": "327"
},
{
- "$id": "326",
+ "$id": "330",
"kind": "model",
"name": "OperationStatusResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -3520,18 +3552,18 @@
],
"properties": [
{
- "$id": "327",
+ "$id": "331",
"kind": "property",
"name": "id",
"serializedName": "id",
"doc": "Fully qualified ID for the async operation.",
"type": {
- "$id": "328",
+ "$id": "332",
"kind": "string",
"name": "armResourceIdentifier",
"crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier",
"baseType": {
- "$id": "329",
+ "$id": "333",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3553,13 +3585,13 @@
"isHttpMetadata": false
},
{
- "$id": "330",
+ "$id": "334",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "Name of the async operation.",
"type": {
- "$id": "331",
+ "$id": "335",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3579,13 +3611,13 @@
"isHttpMetadata": false
},
{
- "$id": "332",
+ "$id": "336",
"kind": "property",
"name": "status",
"serializedName": "status",
"doc": "Operation status.",
"type": {
- "$id": "333",
+ "$id": "337",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3605,13 +3637,13 @@
"isHttpMetadata": false
},
{
- "$id": "334",
+ "$id": "338",
"kind": "property",
"name": "percentComplete",
"serializedName": "percentComplete",
"doc": "Percent of the operation that is complete.",
"type": {
- "$id": "335",
+ "$id": "339",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -3631,18 +3663,18 @@
"isHttpMetadata": false
},
{
- "$id": "336",
+ "$id": "340",
"kind": "property",
"name": "startTime",
"serializedName": "startTime",
"doc": "The start time of the operation.",
"type": {
- "$id": "337",
+ "$id": "341",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "338",
+ "$id": "342",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3665,18 +3697,18 @@
"isHttpMetadata": false
},
{
- "$id": "339",
+ "$id": "343",
"kind": "property",
"name": "endTime",
"serializedName": "endTime",
"doc": "The end time of the operation.",
"type": {
- "$id": "340",
+ "$id": "344",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "341",
+ "$id": "345",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3699,17 +3731,17 @@
"isHttpMetadata": false
},
{
- "$id": "342",
+ "$id": "346",
"kind": "property",
"name": "operations",
"serializedName": "operations",
"doc": "The operations list.",
"type": {
- "$id": "343",
+ "$id": "347",
"kind": "array",
"name": "ArrayOperationStatusResult",
"valueType": {
- "$ref": "326"
+ "$ref": "330"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3728,13 +3760,13 @@
"isHttpMetadata": false
},
{
- "$id": "344",
+ "$id": "348",
"kind": "property",
"name": "error",
"serializedName": "error",
"doc": "If present, details of the operation error.",
"type": {
- "$ref": "221"
+ "$ref": "225"
},
"optional": true,
"readOnly": false,
@@ -3750,18 +3782,18 @@
"isHttpMetadata": false
},
{
- "$id": "345",
+ "$id": "349",
"kind": "property",
"name": "resourceId",
"serializedName": "resourceId",
"doc": "Fully qualified ID of the resource against which the original async operation was started.",
"type": {
- "$id": "346",
+ "$id": "350",
"kind": "string",
"name": "armResourceIdentifier",
"crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier",
"baseType": {
- "$id": "347",
+ "$id": "351",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3785,7 +3817,7 @@
]
},
{
- "$id": "348",
+ "$id": "352",
"kind": "model",
"name": "ArmOperationStatusResourceProvisioningState",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -3800,7 +3832,7 @@
],
"properties": [
{
- "$id": "349",
+ "$id": "353",
"kind": "property",
"name": "status",
"serializedName": "status",
@@ -3822,13 +3854,13 @@
"isHttpMetadata": false
},
{
- "$id": "350",
+ "$id": "354",
"kind": "property",
"name": "id",
"serializedName": "id",
"doc": "The unique identifier for the operationStatus resource",
"type": {
- "$id": "351",
+ "$id": "355",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3848,13 +3880,13 @@
"isHttpMetadata": true
},
{
- "$id": "352",
+ "$id": "356",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the operationStatus resource",
"type": {
- "$id": "353",
+ "$id": "357",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3874,18 +3906,18 @@
"isHttpMetadata": false
},
{
- "$id": "354",
+ "$id": "358",
"kind": "property",
"name": "startTime",
"serializedName": "startTime",
"doc": "Operation start time",
"type": {
- "$id": "355",
+ "$id": "359",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "356",
+ "$id": "360",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3908,18 +3940,18 @@
"isHttpMetadata": false
},
{
- "$id": "357",
+ "$id": "361",
"kind": "property",
"name": "endTime",
"serializedName": "endTime",
"doc": "Operation complete time",
"type": {
- "$id": "358",
+ "$id": "362",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "359",
+ "$id": "363",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3942,13 +3974,13 @@
"isHttpMetadata": false
},
{
- "$id": "360",
+ "$id": "364",
"kind": "property",
"name": "percentComplete",
"serializedName": "percentComplete",
"doc": "The progress made toward completing the operation",
"type": {
- "$id": "361",
+ "$id": "365",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -3968,13 +4000,13 @@
"isHttpMetadata": false
},
{
- "$id": "362",
+ "$id": "366",
"kind": "property",
"name": "error",
"serializedName": "error",
"doc": "Errors that occurred if the operation ended with Canceled or Failed status",
"type": {
- "$ref": "221"
+ "$ref": "225"
},
"optional": true,
"readOnly": true,
@@ -3992,7 +4024,7 @@
]
},
{
- "$id": "363",
+ "$id": "367",
"kind": "model",
"name": "Foo",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4015,7 +4047,7 @@
"resourceType": "MgmtTypeSpec/foos",
"methods": [
{
- "$id": "364",
+ "$id": "368",
"methodId": "MgmtTypeSpec.Foos.createOrUpdate",
"kind": "Create",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}",
@@ -4023,7 +4055,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}"
},
{
- "$id": "365",
+ "$id": "369",
"methodId": "MgmtTypeSpec.Foos.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}",
@@ -4031,7 +4063,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}"
},
{
- "$id": "366",
+ "$id": "370",
"methodId": "MgmtTypeSpec.Foos.delete",
"kind": "Delete",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}",
@@ -4039,21 +4071,21 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}"
},
{
- "$id": "367",
+ "$id": "371",
"methodId": "MgmtTypeSpec.Foos.list",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos",
"operationScope": "ResourceGroup"
},
{
- "$id": "368",
+ "$id": "372",
"methodId": "MgmtTypeSpec.Foos.listBySubscription",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/foos",
"operationScope": "Subscription"
},
{
- "$id": "369",
+ "$id": "373",
"methodId": "MgmtTypeSpec.Foos.fooAction",
"kind": "Action",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/exportDependencies",
@@ -4067,7 +4099,7 @@
}
],
"baseModel": {
- "$id": "370",
+ "$id": "374",
"kind": "model",
"name": "TrackedResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4082,27 +4114,27 @@
}
],
"baseModel": {
- "$ref": "265"
+ "$ref": "269"
},
"properties": [
{
- "$id": "371",
+ "$id": "375",
"kind": "property",
"name": "tags",
"serializedName": "tags",
"doc": "Resource tags.",
"type": {
- "$id": "372",
+ "$id": "376",
"kind": "dict",
"keyType": {
- "$id": "373",
+ "$id": "377",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "374",
+ "$id": "378",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4124,18 +4156,18 @@
"isHttpMetadata": false
},
{
- "$id": "375",
+ "$id": "379",
"kind": "property",
"name": "location",
"serializedName": "location",
"doc": "The geo-location where the resource lives",
"type": {
- "$id": "376",
+ "$id": "380",
"kind": "string",
"name": "azureLocation",
"crossLanguageDefinitionId": "Azure.Core.azureLocation",
"baseType": {
- "$id": "377",
+ "$id": "381",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4160,13 +4192,13 @@
},
"properties": [
{
- "$id": "378",
+ "$id": "382",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "379",
+ "$id": "383",
"kind": "model",
"name": "FooProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4186,13 +4218,13 @@
],
"properties": [
{
- "$id": "380",
+ "$id": "384",
"kind": "property",
"name": "serviceUrl",
"serializedName": "serviceUrl",
"doc": "the service url",
"type": {
- "$id": "381",
+ "$id": "385",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -4212,13 +4244,13 @@
"isHttpMetadata": false
},
{
- "$id": "382",
+ "$id": "386",
"kind": "property",
"name": "something",
"serializedName": "something",
"doc": "something",
"type": {
- "$ref": "299"
+ "$ref": "303"
},
"optional": false,
"readOnly": false,
@@ -4234,13 +4266,13 @@
"isHttpMetadata": false
},
{
- "$id": "383",
+ "$id": "387",
"kind": "property",
"name": "boolValue",
"serializedName": "boolValue",
"doc": "boolean value",
"type": {
- "$id": "384",
+ "$id": "388",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -4260,13 +4292,13 @@
"isHttpMetadata": false
},
{
- "$id": "385",
+ "$id": "389",
"kind": "property",
"name": "floatValue",
"serializedName": "floatValue",
"doc": "float value",
"type": {
- "$id": "386",
+ "$id": "390",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -4286,13 +4318,13 @@
"isHttpMetadata": false
},
{
- "$id": "387",
+ "$id": "391",
"kind": "property",
"name": "doubleValue",
"serializedName": "doubleValue",
"doc": "double value",
"type": {
- "$id": "388",
+ "$id": "392",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -4312,12 +4344,12 @@
"isHttpMetadata": false
},
{
- "$id": "389",
+ "$id": "393",
"kind": "property",
"name": "prop1",
"serializedName": "prop1",
"type": {
- "$ref": "293"
+ "$ref": "297"
},
"optional": false,
"readOnly": false,
@@ -4333,16 +4365,16 @@
"isHttpMetadata": false
},
{
- "$id": "390",
+ "$id": "394",
"kind": "property",
"name": "prop2",
"serializedName": "prop2",
"type": {
- "$id": "391",
+ "$id": "395",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "392",
+ "$id": "396",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -4365,12 +4397,12 @@
"isHttpMetadata": false
},
{
- "$id": "393",
+ "$id": "397",
"kind": "property",
"name": "nestedProperty",
"serializedName": "nestedProperty",
"type": {
- "$id": "394",
+ "$id": "398",
"kind": "model",
"name": "NestedFooModel",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4384,12 +4416,12 @@
],
"properties": [
{
- "$id": "395",
+ "$id": "399",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"type": {
- "$ref": "379"
+ "$ref": "383"
},
"optional": false,
"readOnly": false,
@@ -4420,18 +4452,18 @@
"isHttpMetadata": false
},
{
- "$id": "396",
+ "$id": "400",
"kind": "property",
"name": "etag",
"serializedName": "etag",
"doc": "ETag property for testing etag parameter name generation",
"type": {
- "$id": "397",
+ "$id": "401",
"kind": "string",
"name": "eTag",
"crossLanguageDefinitionId": "Azure.Core.eTag",
"baseType": {
- "$id": "398",
+ "$id": "402",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4473,13 +4505,13 @@
"isHttpMetadata": false
},
{
- "$id": "399",
+ "$id": "403",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the Foo",
"type": {
- "$id": "400",
+ "$id": "404",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4499,12 +4531,12 @@
"isHttpMetadata": true
},
{
- "$id": "401",
+ "$id": "405",
"kind": "property",
"name": "extendedLocation",
"serializedName": "extendedLocation",
"type": {
- "$id": "402",
+ "$id": "406",
"kind": "model",
"name": "ExtendedLocation",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4519,13 +4551,13 @@
],
"properties": [
{
- "$id": "403",
+ "$id": "407",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the extended location.",
"type": {
- "$id": "404",
+ "$id": "408",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4545,7 +4577,7 @@
"isHttpMetadata": false
},
{
- "$id": "405",
+ "$id": "409",
"kind": "property",
"name": "type",
"serializedName": "type",
@@ -4584,19 +4616,19 @@
]
},
{
- "$ref": "379"
+ "$ref": "383"
},
{
- "$ref": "394"
+ "$ref": "398"
},
{
- "$ref": "402"
+ "$ref": "406"
},
{
- "$ref": "370"
+ "$ref": "374"
},
{
- "$id": "406",
+ "$id": "410",
"kind": "model",
"name": "FooListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4611,17 +4643,17 @@
],
"properties": [
{
- "$id": "407",
+ "$id": "411",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The Foo items on this page",
"type": {
- "$id": "408",
+ "$id": "412",
"kind": "array",
"name": "ArrayFoo",
"valueType": {
- "$ref": "363"
+ "$ref": "367"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -4640,18 +4672,18 @@
"isHttpMetadata": false
},
{
- "$id": "409",
+ "$id": "413",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "410",
+ "$id": "414",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "411",
+ "$id": "415",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -4675,7 +4707,7 @@
]
},
{
- "$id": "412",
+ "$id": "416",
"kind": "model",
"name": "FooActionRequest",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4689,12 +4721,12 @@
],
"properties": [
{
- "$id": "413",
+ "$id": "417",
"kind": "property",
"name": "id",
"serializedName": "id",
"type": {
- "$id": "414",
+ "$id": "418",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4716,7 +4748,7 @@
]
},
{
- "$id": "415",
+ "$id": "419",
"kind": "model",
"name": "FooActionResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4730,12 +4762,12 @@
],
"properties": [
{
- "$id": "416",
+ "$id": "420",
"kind": "property",
"name": "msg",
"serializedName": "msg",
"type": {
- "$id": "417",
+ "$id": "421",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4753,11 +4785,32 @@
}
},
"isHttpMetadata": false
+ },
+ {
+ "$id": "422",
+ "kind": "property",
+ "name": "error",
+ "serializedName": "error",
+ "type": {
+ "$ref": "225"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "MgmtTypeSpec.FooActionResult.error",
+ "serializationOptions": {
+ "json": {
+ "name": "error"
+ }
+ },
+ "isHttpMetadata": false
}
]
},
{
- "$id": "418",
+ "$id": "423",
"kind": "model",
"name": "FooSettings",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4784,7 +4837,7 @@
"resourceType": "MgmtTypeSpec/FooSettings",
"methods": [
{
- "$id": "419",
+ "$id": "424",
"methodId": "MgmtTypeSpec.FooSettingsOperations.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default",
@@ -4792,7 +4845,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default"
},
{
- "$id": "420",
+ "$id": "425",
"methodId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate",
"kind": "Create",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default",
@@ -4800,7 +4853,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default"
},
{
- "$id": "421",
+ "$id": "426",
"methodId": "MgmtTypeSpec.FooSettingsOperations.update",
"kind": "Update",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default",
@@ -4808,7 +4861,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default"
},
{
- "$id": "422",
+ "$id": "427",
"methodId": "MgmtTypeSpec.FooSettingsOperations.delete",
"kind": "Delete",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/FooSettings/default",
@@ -4823,17 +4876,17 @@
}
],
"baseModel": {
- "$ref": "264"
+ "$ref": "268"
},
"properties": [
{
- "$id": "423",
+ "$id": "428",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "424",
+ "$id": "429",
"kind": "model",
"name": "FooSettingsProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4848,13 +4901,13 @@
],
"properties": [
{
- "$id": "425",
+ "$id": "430",
"kind": "property",
"name": "marketplace",
"serializedName": "marketplace",
"doc": "Marketplace details of the resource.",
"type": {
- "$id": "426",
+ "$id": "431",
"kind": "model",
"name": "MarketplaceDetails",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4869,13 +4922,13 @@
],
"properties": [
{
- "$id": "427",
+ "$id": "432",
"kind": "property",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "Azure subscription id for the the marketplace offer is purchased from",
"type": {
- "$id": "428",
+ "$id": "433",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4895,7 +4948,7 @@
"isHttpMetadata": false
},
{
- "$id": "429",
+ "$id": "434",
"kind": "property",
"name": "subscriptionStatus",
"serializedName": "subscriptionStatus",
@@ -4917,13 +4970,13 @@
"isHttpMetadata": false
},
{
- "$id": "430",
+ "$id": "435",
"kind": "property",
"name": "offerDetails",
"serializedName": "offerDetails",
"doc": "Offer details for the marketplace that is selected by the user",
"type": {
- "$id": "431",
+ "$id": "436",
"kind": "model",
"name": "OfferDetails",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -4938,13 +4991,13 @@
],
"properties": [
{
- "$id": "432",
+ "$id": "437",
"kind": "property",
"name": "publisherId",
"serializedName": "publisherId",
"doc": "Publisher Id for the marketplace offer",
"type": {
- "$id": "433",
+ "$id": "438",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4964,13 +5017,13 @@
"isHttpMetadata": false
},
{
- "$id": "434",
+ "$id": "439",
"kind": "property",
"name": "offerId",
"serializedName": "offerId",
"doc": "Offer Id for the marketplace offer",
"type": {
- "$id": "435",
+ "$id": "440",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4990,13 +5043,13 @@
"isHttpMetadata": false
},
{
- "$id": "436",
+ "$id": "441",
"kind": "property",
"name": "planId",
"serializedName": "planId",
"doc": "Plan Id for the marketplace offer",
"type": {
- "$id": "437",
+ "$id": "442",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5016,13 +5069,13 @@
"isHttpMetadata": false
},
{
- "$id": "438",
+ "$id": "443",
"kind": "property",
"name": "planName",
"serializedName": "planName",
"doc": "Plan Name for the marketplace offer",
"type": {
- "$id": "439",
+ "$id": "444",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5042,13 +5095,13 @@
"isHttpMetadata": false
},
{
- "$id": "440",
+ "$id": "445",
"kind": "property",
"name": "termUnit",
"serializedName": "termUnit",
"doc": "Plan Display Name for the marketplace offer",
"type": {
- "$id": "441",
+ "$id": "446",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5068,13 +5121,13 @@
"isHttpMetadata": false
},
{
- "$id": "442",
+ "$id": "447",
"kind": "property",
"name": "termId",
"serializedName": "termId",
"doc": "Plan Display Name for the marketplace offer",
"type": {
- "$id": "443",
+ "$id": "448",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5094,7 +5147,7 @@
"isHttpMetadata": false
},
{
- "$id": "444",
+ "$id": "449",
"kind": "property",
"name": "renewalMode",
"serializedName": "renewalMode",
@@ -5116,18 +5169,18 @@
"isHttpMetadata": false
},
{
- "$id": "445",
+ "$id": "450",
"kind": "property",
"name": "endDate",
"serializedName": "endDate",
"doc": "Current subscription end date and time",
"type": {
- "$id": "446",
+ "$id": "451",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "447",
+ "$id": "452",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5180,13 +5233,13 @@
"isHttpMetadata": false
},
{
- "$id": "448",
+ "$id": "453",
"kind": "property",
"name": "user",
"serializedName": "user",
"doc": "Details of the user.",
"type": {
- "$id": "449",
+ "$id": "454",
"kind": "model",
"name": "UserDetails",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -5201,13 +5254,13 @@
],
"properties": [
{
- "$id": "450",
+ "$id": "455",
"kind": "property",
"name": "firstName",
"serializedName": "firstName",
"doc": "First name of the user",
"type": {
- "$id": "451",
+ "$id": "456",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5227,13 +5280,13 @@
"isHttpMetadata": false
},
{
- "$id": "452",
+ "$id": "457",
"kind": "property",
"name": "lastName",
"serializedName": "lastName",
"doc": "Last name of the user",
"type": {
- "$id": "453",
+ "$id": "458",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5253,18 +5306,18 @@
"isHttpMetadata": false
},
{
- "$id": "454",
+ "$id": "459",
"kind": "property",
"name": "emailAddress",
"serializedName": "emailAddress",
"doc": "Email address of the user",
"type": {
- "$id": "455",
+ "$id": "460",
"kind": "string",
"name": "email",
"crossLanguageDefinitionId": "LiftrBase.email",
"baseType": {
- "$id": "456",
+ "$id": "461",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5286,13 +5339,13 @@
"isHttpMetadata": false
},
{
- "$id": "457",
+ "$id": "462",
"kind": "property",
"name": "upn",
"serializedName": "upn",
"doc": "User's principal name",
"type": {
- "$id": "458",
+ "$id": "463",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5312,13 +5365,13 @@
"isHttpMetadata": false
},
{
- "$id": "459",
+ "$id": "464",
"kind": "property",
"name": "phoneNumber",
"serializedName": "phoneNumber",
"doc": "User's phone number",
"type": {
- "$id": "460",
+ "$id": "465",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5353,7 +5406,7 @@
"isHttpMetadata": false
},
{
- "$id": "461",
+ "$id": "466",
"kind": "property",
"name": "provisioningState",
"serializedName": "provisioningState",
@@ -5375,12 +5428,12 @@
"isHttpMetadata": false
},
{
- "$id": "462",
+ "$id": "467",
"kind": "property",
"name": "accessControlEnabled",
"serializedName": "accessControlEnabled",
"type": {
- "$id": "463",
+ "$id": "468",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -5400,12 +5453,12 @@
"isHttpMetadata": false
},
{
- "$id": "464",
+ "$id": "469",
"kind": "property",
"name": "metaData",
"serializedName": "metaData",
"type": {
- "$id": "465",
+ "$id": "470",
"kind": "model",
"name": "FooSettingsPropertiesMetaData",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -5419,12 +5472,12 @@
],
"properties": [
{
- "$id": "466",
+ "$id": "471",
"kind": "property",
"name": "metaDatas",
"serializedName": "metaDatas",
"type": {
- "$ref": "293"
+ "$ref": "297"
},
"optional": true,
"readOnly": false,
@@ -5470,13 +5523,13 @@
"isHttpMetadata": false
},
{
- "$id": "467",
+ "$id": "472",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The default Foo settings.",
"type": {
- "$id": "468",
+ "$id": "473",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5498,22 +5551,22 @@
]
},
{
- "$ref": "424"
+ "$ref": "429"
},
{
- "$ref": "426"
+ "$ref": "431"
},
{
- "$ref": "431"
+ "$ref": "436"
},
{
- "$ref": "449"
+ "$ref": "454"
},
{
- "$ref": "465"
+ "$ref": "470"
},
{
- "$id": "469",
+ "$id": "474",
"kind": "model",
"name": "FooSettingsUpdate",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -5528,13 +5581,13 @@
],
"properties": [
{
- "$id": "470",
+ "$id": "475",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "471",
+ "$id": "476",
"kind": "model",
"name": "FooSettingsUpdateProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -5549,13 +5602,13 @@
],
"properties": [
{
- "$id": "472",
+ "$id": "477",
"kind": "property",
"name": "marketplace",
"serializedName": "marketplace",
"doc": "Marketplace details of the resource.",
"type": {
- "$ref": "426"
+ "$ref": "431"
},
"optional": true,
"readOnly": false,
@@ -5571,13 +5624,13 @@
"isHttpMetadata": false
},
{
- "$id": "473",
+ "$id": "478",
"kind": "property",
"name": "user",
"serializedName": "user",
"doc": "Details of the user.",
"type": {
- "$ref": "449"
+ "$ref": "454"
},
"optional": true,
"readOnly": false,
@@ -5593,12 +5646,12 @@
"isHttpMetadata": false
},
{
- "$id": "474",
+ "$id": "479",
"kind": "property",
"name": "accessControlEnabled",
"serializedName": "accessControlEnabled",
"type": {
- "$id": "475",
+ "$id": "480",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -5635,10 +5688,10 @@
]
},
{
- "$ref": "471"
+ "$ref": "476"
},
{
- "$id": "476",
+ "$id": "481",
"kind": "model",
"name": "Bar",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -5665,7 +5718,7 @@
"resourceType": "MgmtTypeSpec/foos/bars",
"methods": [
{
- "$id": "477",
+ "$id": "482",
"methodId": "MgmtTypeSpec.Bars.createOrUpdate",
"kind": "Create",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}",
@@ -5673,7 +5726,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}"
},
{
- "$id": "478",
+ "$id": "483",
"methodId": "MgmtTypeSpec.Bars.delete",
"kind": "Delete",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}",
@@ -5681,7 +5734,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}"
},
{
- "$id": "479",
+ "$id": "484",
"methodId": "MgmtTypeSpec.Bars.list",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars",
@@ -5689,7 +5742,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}"
},
{
- "$id": "480",
+ "$id": "485",
"methodId": "MgmtTypeSpec.Bars.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}",
@@ -5697,7 +5750,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}"
},
{
- "$id": "481",
+ "$id": "486",
"methodId": "MgmtTypeSpec.Bars.update",
"kind": "Update",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}",
@@ -5705,7 +5758,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}"
},
{
- "$id": "482",
+ "$id": "487",
"methodId": "MgmtTypeSpec.Employees.listByParent",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/employees",
@@ -5720,17 +5773,17 @@
}
],
"baseModel": {
- "$ref": "370"
+ "$ref": "374"
},
"properties": [
{
- "$id": "483",
+ "$id": "488",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "484",
+ "$id": "489",
"kind": "model",
"name": "BarProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -5744,13 +5797,13 @@
],
"properties": [
{
- "$id": "485",
+ "$id": "490",
"kind": "property",
"name": "serviceUrl",
"serializedName": "serviceUrl",
"doc": "the service url",
"type": {
- "$id": "486",
+ "$id": "491",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -5770,13 +5823,13 @@
"isHttpMetadata": false
},
{
- "$id": "487",
+ "$id": "492",
"kind": "property",
"name": "something",
"serializedName": "something",
"doc": "something",
"type": {
- "$id": "488",
+ "$id": "493",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5796,13 +5849,13 @@
"isHttpMetadata": false
},
{
- "$id": "489",
+ "$id": "494",
"kind": "property",
"name": "boolValue",
"serializedName": "boolValue",
"doc": "boolean value",
"type": {
- "$id": "490",
+ "$id": "495",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -5822,13 +5875,13 @@
"isHttpMetadata": false
},
{
- "$id": "491",
+ "$id": "496",
"kind": "property",
"name": "floatValue",
"serializedName": "floatValue",
"doc": "float value",
"type": {
- "$id": "492",
+ "$id": "497",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -5848,13 +5901,13 @@
"isHttpMetadata": false
},
{
- "$id": "493",
+ "$id": "498",
"kind": "property",
"name": "doubleValue",
"serializedName": "doubleValue",
"doc": "double value",
"type": {
- "$id": "494",
+ "$id": "499",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -5889,13 +5942,13 @@
"isHttpMetadata": false
},
{
- "$id": "495",
+ "$id": "500",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the Bar",
"type": {
- "$id": "496",
+ "$id": "501",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5917,10 +5970,10 @@
]
},
{
- "$ref": "484"
+ "$ref": "489"
},
{
- "$id": "497",
+ "$id": "502",
"kind": "model",
"name": "BarListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -5935,17 +5988,17 @@
],
"properties": [
{
- "$id": "498",
+ "$id": "503",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The Bar items on this page",
"type": {
- "$id": "499",
+ "$id": "504",
"kind": "array",
"name": "ArrayBar",
"valueType": {
- "$ref": "476"
+ "$ref": "481"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -5964,18 +6017,18 @@
"isHttpMetadata": false
},
{
- "$id": "500",
+ "$id": "505",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "501",
+ "$id": "506",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "502",
+ "$id": "507",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -5999,7 +6052,7 @@
]
},
{
- "$id": "503",
+ "$id": "508",
"kind": "model",
"name": "BarSettingsResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6032,7 +6085,7 @@
"resourceType": "MgmtTypeSpec/foos/bars/settings",
"methods": [
{
- "$id": "504",
+ "$id": "509",
"methodId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate",
"kind": "Create",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current",
@@ -6040,7 +6093,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current"
},
{
- "$id": "505",
+ "$id": "510",
"methodId": "MgmtTypeSpec.BarSettingsOperations.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/settings/current",
@@ -6056,17 +6109,17 @@
}
],
"baseModel": {
- "$ref": "264"
+ "$ref": "268"
},
"properties": [
{
- "$id": "506",
+ "$id": "511",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "507",
+ "$id": "512",
"kind": "model",
"name": "BarSettingsProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6080,13 +6133,13 @@
],
"properties": [
{
- "$id": "508",
+ "$id": "513",
"kind": "property",
"name": "isEnabled",
"serializedName": "isEnabled",
"doc": "enabled",
"type": {
- "$id": "509",
+ "$id": "514",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -6121,13 +6174,13 @@
"isHttpMetadata": false
},
{
- "$id": "510",
+ "$id": "515",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the BarSettingsResource",
"type": {
- "$id": "511",
+ "$id": "516",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -6147,12 +6200,12 @@
"isHttpMetadata": true
},
{
- "$id": "512",
+ "$id": "517",
"kind": "property",
"name": "stringArray",
"serializedName": "stringArray",
"type": {
- "$ref": "293"
+ "$ref": "297"
},
"optional": true,
"readOnly": false,
@@ -6168,12 +6221,12 @@
"isHttpMetadata": false
},
{
- "$id": "513",
+ "$id": "518",
"kind": "property",
"name": "property",
"serializedName": "property",
"type": {
- "$id": "514",
+ "$id": "519",
"kind": "model",
"name": "BarQuotaProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6187,13 +6240,13 @@
],
"properties": [
{
- "$id": "515",
+ "$id": "520",
"kind": "property",
"name": "left",
"serializedName": "left",
"doc": "enabled",
"type": {
- "$id": "516",
+ "$id": "521",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -6228,12 +6281,12 @@
"isHttpMetadata": false
},
{
- "$id": "517",
+ "$id": "522",
"kind": "property",
"name": "anotherProperty",
"serializedName": "anotherProperty",
"type": {
- "$ref": "514"
+ "$ref": "519"
},
"optional": false,
"readOnly": false,
@@ -6249,12 +6302,12 @@
"isHttpMetadata": false
},
{
- "$id": "518",
+ "$id": "523",
"kind": "property",
"name": "flattenedNestedProperty",
"serializedName": "flattenedNestedProperty",
"type": {
- "$id": "519",
+ "$id": "524",
"kind": "model",
"name": "BarNestedQuotaProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6267,7 +6320,7 @@
}
],
"baseModel": {
- "$id": "520",
+ "$id": "525",
"kind": "model",
"name": "BarMiddleNestedQuotaProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6280,7 +6333,7 @@
}
],
"baseModel": {
- "$id": "521",
+ "$id": "526",
"kind": "model",
"name": "BarDeeplyNestedQuotaProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6294,12 +6347,12 @@
],
"properties": [
{
- "$id": "522",
+ "$id": "527",
"kind": "property",
"name": "innerProp1",
"serializedName": "innerProp1",
"type": {
- "$id": "523",
+ "$id": "528",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -6319,12 +6372,12 @@
"isHttpMetadata": false
},
{
- "$id": "524",
+ "$id": "529",
"kind": "property",
"name": "innerProp2",
"serializedName": "innerProp2",
"type": {
- "$id": "525",
+ "$id": "530",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -6347,12 +6400,12 @@
},
"properties": [
{
- "$id": "526",
+ "$id": "531",
"kind": "property",
"name": "middleProp1",
"serializedName": "middleProp1",
"type": {
- "$id": "527",
+ "$id": "532",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -6372,12 +6425,12 @@
"isHttpMetadata": false
},
{
- "$id": "528",
+ "$id": "533",
"kind": "property",
"name": "middleProp2",
"serializedName": "middleProp2",
"type": {
- "$ref": "372"
+ "$ref": "376"
},
"optional": false,
"readOnly": false,
@@ -6396,12 +6449,12 @@
},
"properties": [
{
- "$id": "529",
+ "$id": "534",
"kind": "property",
"name": "prop1",
"serializedName": "prop1",
"type": {
- "$ref": "293"
+ "$ref": "297"
},
"optional": false,
"readOnly": false,
@@ -6417,12 +6470,12 @@
"isHttpMetadata": false
},
{
- "$id": "530",
+ "$id": "535",
"kind": "property",
"name": "prop2",
"serializedName": "prop2",
"type": {
- "$id": "531",
+ "$id": "536",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -6462,12 +6515,12 @@
"isHttpMetadata": false
},
{
- "$id": "532",
+ "$id": "537",
"kind": "property",
"name": "optionalFlattenProperty",
"serializedName": "optionalFlattenProperty",
"type": {
- "$id": "533",
+ "$id": "538",
"kind": "model",
"name": "optionalFlattenPropertyType",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6481,12 +6534,12 @@
],
"properties": [
{
- "$id": "534",
+ "$id": "539",
"kind": "property",
"name": "randomCollectionProp",
"serializedName": "randomCollectionProp",
"type": {
- "$ref": "293"
+ "$ref": "297"
},
"optional": false,
"readOnly": false,
@@ -6517,12 +6570,12 @@
"isHttpMetadata": false
},
{
- "$id": "535",
+ "$id": "540",
"kind": "property",
"name": "discriminatorProperty",
"serializedName": "discriminatorProperty",
"type": {
- "$id": "536",
+ "$id": "541",
"kind": "model",
"name": "LimitJsonObject",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6536,7 +6589,7 @@
}
],
"discriminatorProperty": {
- "$id": "537",
+ "$id": "542",
"kind": "property",
"name": "limitObjectType",
"serializedName": "limitObjectType",
@@ -6559,7 +6612,7 @@
},
"properties": [
{
- "$ref": "537"
+ "$ref": "542"
}
]
},
@@ -6579,28 +6632,28 @@
]
},
{
- "$ref": "507"
+ "$ref": "512"
},
{
- "$ref": "514"
+ "$ref": "519"
},
{
- "$ref": "519"
+ "$ref": "524"
},
{
- "$ref": "520"
+ "$ref": "525"
},
{
- "$ref": "521"
+ "$ref": "526"
},
{
- "$ref": "533"
+ "$ref": "538"
},
{
- "$ref": "536"
+ "$ref": "541"
},
{
- "$id": "538",
+ "$id": "543",
"kind": "model",
"name": "BarQuotaResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6627,7 +6680,7 @@
"resourceType": "MgmtTypeSpec/foos/bars/quotas",
"methods": [
{
- "$id": "539",
+ "$id": "544",
"methodId": "MgmtTypeSpec.BarQuotaOperations.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}",
@@ -6635,7 +6688,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}"
},
{
- "$id": "540",
+ "$id": "545",
"methodId": "MgmtTypeSpec.BarQuotaOperations.update",
"kind": "Update",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/foos/{fooName}/bars/{barName}/quotas/{barQuotaResourceName}",
@@ -6650,17 +6703,17 @@
}
],
"baseModel": {
- "$ref": "264"
+ "$ref": "268"
},
"properties": [
{
- "$id": "541",
+ "$id": "546",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$ref": "514"
+ "$ref": "519"
},
"optional": true,
"readOnly": false,
@@ -6676,7 +6729,7 @@
"isHttpMetadata": false
},
{
- "$id": "542",
+ "$id": "547",
"kind": "property",
"name": "name",
"serializedName": "name",
@@ -6700,7 +6753,7 @@
]
},
{
- "$id": "543",
+ "$id": "548",
"kind": "model",
"name": "EmployeeListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6715,17 +6768,17 @@
],
"properties": [
{
- "$id": "544",
+ "$id": "549",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The Employee items on this page",
"type": {
- "$id": "545",
+ "$id": "550",
"kind": "array",
"name": "ArrayEmployee",
"valueType": {
- "$id": "546",
+ "$id": "551",
"kind": "model",
"name": "Employee",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6747,17 +6800,17 @@
}
],
"baseModel": {
- "$ref": "370"
+ "$ref": "374"
},
"properties": [
{
- "$id": "547",
+ "$id": "552",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "548",
+ "$id": "553",
"kind": "model",
"name": "EmployeeProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6772,13 +6825,13 @@
],
"properties": [
{
- "$id": "549",
+ "$id": "554",
"kind": "property",
"name": "age",
"serializedName": "age",
"doc": "Age of employee",
"type": {
- "$id": "550",
+ "$id": "555",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -6798,13 +6851,13 @@
"isHttpMetadata": false
},
{
- "$id": "551",
+ "$id": "556",
"kind": "property",
"name": "city",
"serializedName": "city",
"doc": "City of employee",
"type": {
- "$id": "552",
+ "$id": "557",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -6839,13 +6892,13 @@
"isHttpMetadata": false
},
{
- "$id": "553",
+ "$id": "558",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the Employee",
"type": {
- "$id": "554",
+ "$id": "559",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -6883,18 +6936,18 @@
"isHttpMetadata": false
},
{
- "$id": "555",
+ "$id": "560",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "556",
+ "$id": "561",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "557",
+ "$id": "562",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -6918,13 +6971,13 @@
]
},
{
- "$ref": "546"
+ "$ref": "551"
},
{
- "$ref": "548"
+ "$ref": "553"
},
{
- "$id": "558",
+ "$id": "563",
"kind": "model",
"name": "Baz",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -6947,7 +7000,7 @@
"resourceType": "MgmtTypeSpec/bazs",
"methods": [
{
- "$id": "559",
+ "$id": "564",
"methodId": "MgmtTypeSpec.Bazs.createOrUpdate",
"kind": "Create",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}",
@@ -6955,7 +7008,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}"
},
{
- "$id": "560",
+ "$id": "565",
"methodId": "MgmtTypeSpec.Bazs.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}",
@@ -6963,7 +7016,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}"
},
{
- "$id": "561",
+ "$id": "566",
"methodId": "MgmtTypeSpec.Bazs.delete",
"kind": "Delete",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}",
@@ -6971,7 +7024,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}"
},
{
- "$id": "562",
+ "$id": "567",
"methodId": "MgmtTypeSpec.Bazs.update",
"kind": "Update",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}",
@@ -6979,14 +7032,14 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs/{bazName}"
},
{
- "$id": "563",
+ "$id": "568",
"methodId": "MgmtTypeSpec.Bazs.list",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/bazs",
"operationScope": "ResourceGroup"
},
{
- "$id": "564",
+ "$id": "569",
"methodId": "MgmtTypeSpec.Bazs.listBySubscription",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/bazs",
@@ -6999,17 +7052,17 @@
}
],
"baseModel": {
- "$ref": "370"
+ "$ref": "374"
},
"properties": [
{
- "$id": "565",
+ "$id": "570",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "566",
+ "$id": "571",
"kind": "model",
"name": "BazProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7023,13 +7076,13 @@
],
"properties": [
{
- "$id": "567",
+ "$id": "572",
"kind": "property",
"name": "something",
"serializedName": "something",
"doc": "something",
"type": {
- "$id": "568",
+ "$id": "573",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7049,13 +7102,13 @@
"isHttpMetadata": false
},
{
- "$id": "569",
+ "$id": "574",
"kind": "property",
"name": "boolValue",
"serializedName": "boolValue",
"doc": "boolean value",
"type": {
- "$id": "570",
+ "$id": "575",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -7090,13 +7143,13 @@
"isHttpMetadata": false
},
{
- "$id": "571",
+ "$id": "576",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the Baz",
"type": {
- "$id": "572",
+ "$id": "577",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7118,10 +7171,10 @@
]
},
{
- "$ref": "566"
+ "$ref": "571"
},
{
- "$id": "573",
+ "$id": "578",
"kind": "model",
"name": "BazListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7136,17 +7189,17 @@
],
"properties": [
{
- "$id": "574",
+ "$id": "579",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The Baz items on this page",
"type": {
- "$id": "575",
+ "$id": "580",
"kind": "array",
"name": "ArrayBaz",
"valueType": {
- "$ref": "558"
+ "$ref": "563"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -7165,18 +7218,18 @@
"isHttpMetadata": false
},
{
- "$id": "576",
+ "$id": "581",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "577",
+ "$id": "582",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "578",
+ "$id": "583",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -7200,7 +7253,7 @@
]
},
{
- "$id": "579",
+ "$id": "584",
"kind": "model",
"name": "Zoo",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7223,7 +7276,7 @@
"resourceType": "MgmtTypeSpec/zoos",
"methods": [
{
- "$id": "580",
+ "$id": "585",
"methodId": "MgmtTypeSpec.Zoos.createOrUpdate",
"kind": "Create",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}",
@@ -7231,7 +7284,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}"
},
{
- "$id": "581",
+ "$id": "586",
"methodId": "MgmtTypeSpec.Zoos.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}",
@@ -7239,7 +7292,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}"
},
{
- "$id": "582",
+ "$id": "587",
"methodId": "MgmtTypeSpec.Zoos.delete",
"kind": "Delete",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}",
@@ -7247,7 +7300,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}"
},
{
- "$id": "583",
+ "$id": "588",
"methodId": "MgmtTypeSpec.Zoos.update",
"kind": "Update",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}",
@@ -7255,21 +7308,21 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}"
},
{
- "$id": "584",
+ "$id": "589",
"methodId": "MgmtTypeSpec.Zoos.list",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos",
"operationScope": "ResourceGroup"
},
{
- "$id": "585",
+ "$id": "590",
"methodId": "MgmtTypeSpec.Zoos.listBySubscription",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/zoos",
"operationScope": "Subscription"
},
{
- "$id": "586",
+ "$id": "591",
"methodId": "MgmtTypeSpec.Zoos.zooAddressList",
"kind": "Action",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/zooAddressList",
@@ -7277,7 +7330,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}"
},
{
- "$id": "587",
+ "$id": "592",
"methodId": "MgmtTypeSpec.Zoos.recommend",
"kind": "Action",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/zoos/{zooName}/recommend",
@@ -7291,17 +7344,17 @@
}
],
"baseModel": {
- "$ref": "370"
+ "$ref": "374"
},
"properties": [
{
- "$id": "588",
+ "$id": "593",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "589",
+ "$id": "594",
"kind": "model",
"name": "ZooProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7321,13 +7374,13 @@
],
"properties": [
{
- "$id": "590",
+ "$id": "595",
"kind": "property",
"name": "something",
"serializedName": "something",
"doc": "something",
"type": {
- "$id": "591",
+ "$id": "596",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7362,13 +7415,13 @@
"isHttpMetadata": false
},
{
- "$id": "592",
+ "$id": "597",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the Zoo",
"type": {
- "$id": "593",
+ "$id": "598",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7388,12 +7441,12 @@
"isHttpMetadata": true
},
{
- "$id": "594",
+ "$id": "599",
"kind": "property",
"name": "extendedLocation",
"serializedName": "extendedLocation",
"type": {
- "$ref": "402"
+ "$ref": "406"
},
"optional": true,
"readOnly": false,
@@ -7411,10 +7464,10 @@
]
},
{
- "$ref": "589"
+ "$ref": "594"
},
{
- "$id": "595",
+ "$id": "600",
"kind": "model",
"name": "ZooUpdate",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7429,13 +7482,13 @@
],
"properties": [
{
- "$id": "596",
+ "$id": "601",
"kind": "property",
"name": "tags",
"serializedName": "tags",
"doc": "Resource tags.",
"type": {
- "$ref": "372"
+ "$ref": "376"
},
"optional": true,
"readOnly": false,
@@ -7451,13 +7504,13 @@
"isHttpMetadata": false
},
{
- "$id": "597",
+ "$id": "602",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "598",
+ "$id": "603",
"kind": "model",
"name": "ZooUpdateProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7472,13 +7525,13 @@
],
"properties": [
{
- "$id": "599",
+ "$id": "604",
"kind": "property",
"name": "something",
"serializedName": "something",
"doc": "something",
"type": {
- "$id": "600",
+ "$id": "605",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7515,10 +7568,10 @@
]
},
{
- "$ref": "598"
+ "$ref": "603"
},
{
- "$id": "601",
+ "$id": "606",
"kind": "model",
"name": "ZooListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7533,17 +7586,17 @@
],
"properties": [
{
- "$id": "602",
+ "$id": "607",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The Zoo items on this page",
"type": {
- "$id": "603",
+ "$id": "608",
"kind": "array",
"name": "ArrayZoo",
"valueType": {
- "$ref": "579"
+ "$ref": "584"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -7562,18 +7615,18 @@
"isHttpMetadata": false
},
{
- "$id": "604",
+ "$id": "609",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "605",
+ "$id": "610",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "606",
+ "$id": "611",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -7597,7 +7650,7 @@
]
},
{
- "$id": "607",
+ "$id": "612",
"kind": "model",
"name": "ZooAddressListListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7612,17 +7665,17 @@
],
"properties": [
{
- "$id": "608",
+ "$id": "613",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The ZooAddress items on this page",
"type": {
- "$id": "609",
+ "$id": "614",
"kind": "array",
"name": "ArraySubResource",
"valueType": {
- "$id": "610",
+ "$id": "615",
"kind": "model",
"name": "SubResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7653,18 +7706,18 @@
"isHttpMetadata": false
},
{
- "$id": "611",
+ "$id": "616",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "612",
+ "$id": "617",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "613",
+ "$id": "618",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -7688,10 +7741,10 @@
]
},
{
- "$ref": "610"
+ "$ref": "615"
},
{
- "$id": "614",
+ "$id": "619",
"kind": "model",
"name": "EndpointResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7714,7 +7767,7 @@
"resourceType": "MgmtTypeSpec/endpoints",
"methods": [
{
- "$id": "615",
+ "$id": "620",
"methodId": "MgmtTypeSpec.EndpointResources.get",
"kind": "Get",
"operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}",
@@ -7722,7 +7775,7 @@
"resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}"
},
{
- "$id": "616",
+ "$id": "621",
"methodId": "MgmtTypeSpec.EndpointResources.createOrUpdate",
"kind": "Create",
"operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}",
@@ -7730,7 +7783,7 @@
"resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}"
},
{
- "$id": "617",
+ "$id": "622",
"methodId": "MgmtTypeSpec.EndpointResources.update",
"kind": "Update",
"operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}",
@@ -7738,7 +7791,7 @@
"resourceScope": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}"
},
{
- "$id": "618",
+ "$id": "623",
"methodId": "MgmtTypeSpec.EndpointResources.delete",
"kind": "Delete",
"operationPath": "/{resourceUri}/providers/MgmtTypeSpec/endpoints/{endpointName}",
@@ -7752,7 +7805,7 @@
}
],
"baseModel": {
- "$id": "619",
+ "$id": "624",
"kind": "model",
"name": "ExtensionResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7766,19 +7819,19 @@
}
],
"baseModel": {
- "$ref": "265"
+ "$ref": "269"
},
"properties": []
},
"properties": [
{
- "$id": "620",
+ "$id": "625",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "621",
+ "$id": "626",
"kind": "model",
"name": "EndpointProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7792,12 +7845,12 @@
],
"properties": [
{
- "$id": "622",
+ "$id": "627",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$id": "623",
+ "$id": "628",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7832,13 +7885,13 @@
"isHttpMetadata": false
},
{
- "$id": "624",
+ "$id": "629",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "625",
+ "$id": "630",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7860,13 +7913,13 @@
]
},
{
- "$ref": "621"
+ "$ref": "626"
},
{
- "$ref": "619"
+ "$ref": "624"
},
{
- "$id": "626",
+ "$id": "631",
"kind": "model",
"name": "SelfHelpResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7889,7 +7942,7 @@
"resourceType": "MgmtTypeSpec/selfHelps",
"methods": [
{
- "$id": "627",
+ "$id": "632",
"methodId": "MgmtTypeSpec.SolutionResources.get",
"kind": "Get",
"operationPath": "/{scope}/providers/MgmtTypeSpec/selfHelps/{selfHelpName}",
@@ -7903,17 +7956,17 @@
}
],
"baseModel": {
- "$ref": "619"
+ "$ref": "624"
},
"properties": [
{
- "$id": "628",
+ "$id": "633",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "629",
+ "$id": "634",
"kind": "model",
"name": "SelfHelpResourceProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -7927,12 +7980,12 @@
],
"properties": [
{
- "$id": "630",
+ "$id": "635",
"kind": "property",
"name": "selfHelpId",
"serializedName": "selfHelpId",
"type": {
- "$id": "631",
+ "$id": "636",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7967,13 +8020,13 @@
"isHttpMetadata": false
},
{
- "$id": "632",
+ "$id": "637",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the SelfHelpResource",
"type": {
- "$id": "633",
+ "$id": "638",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -7995,15 +8048,15 @@
]
},
{
- "$ref": "629"
+ "$ref": "634"
},
{
- "$id": "634",
+ "$id": "639",
"kind": "model",
"name": "PlaywrightQuota",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuota",
- "usage": "Output,Json",
+ "usage": "Input,Output,Json",
"doc": "Subscription-level location-based Playwright quota resource.",
"decorators": [
{
@@ -8025,7 +8078,7 @@
"resourceType": "MgmtTypeSpec/locations/playwrightQuotas",
"methods": [
{
- "$id": "635",
+ "$id": "640",
"methodId": "MgmtTypeSpec.PlaywrightQuotas.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}",
@@ -8033,11 +8086,19 @@
"resourceScope": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}"
},
{
- "$id": "636",
+ "$id": "641",
"methodId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription",
"kind": "List",
"operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas",
"operationScope": "Subscription"
+ },
+ {
+ "$id": "642",
+ "methodId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate",
+ "kind": "Create",
+ "operationPath": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}",
+ "operationScope": "Subscription",
+ "resourceScope": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}"
}
],
"resourceScope": "Subscription",
@@ -8046,22 +8107,22 @@
}
],
"baseModel": {
- "$ref": "264"
+ "$ref": "268"
},
"properties": [
{
- "$id": "637",
+ "$id": "643",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "638",
+ "$id": "644",
"kind": "model",
"name": "PlaywrightQuotaProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotaProperties",
- "usage": "Output,Json",
+ "usage": "Input,Output,Json",
"doc": "Subscription-level location-based Playwright quota resource properties.",
"decorators": [
{
@@ -8071,13 +8132,13 @@
],
"properties": [
{
- "$id": "639",
+ "$id": "645",
"kind": "property",
"name": "freeTrial",
"serializedName": "freeTrial",
"doc": "The subscription-level location-based Playwright quota resource free-trial properties.",
"type": {
- "$id": "640",
+ "$id": "646",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8097,13 +8158,13 @@
"isHttpMetadata": false
},
{
- "$id": "641",
+ "$id": "647",
"kind": "property",
"name": "provisioningState",
"serializedName": "provisioningState",
"doc": "The status of the last resource operation.",
"type": {
- "$id": "642",
+ "$id": "648",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8138,7 +8199,7 @@
"isHttpMetadata": false
},
{
- "$id": "643",
+ "$id": "649",
"kind": "property",
"name": "name",
"serializedName": "name",
@@ -8162,10 +8223,10 @@
]
},
{
- "$ref": "638"
+ "$ref": "644"
},
{
- "$id": "644",
+ "$id": "650",
"kind": "model",
"name": "PlaywrightQuotaListResult",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8180,17 +8241,17 @@
],
"properties": [
{
- "$id": "645",
+ "$id": "651",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The PlaywrightQuota items on this page",
"type": {
- "$id": "646",
+ "$id": "652",
"kind": "array",
"name": "ArrayPlaywrightQuota",
"valueType": {
- "$ref": "634"
+ "$ref": "639"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -8209,18 +8270,18 @@
"isHttpMetadata": false
},
{
- "$id": "647",
+ "$id": "653",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "648",
+ "$id": "654",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "649",
+ "$id": "655",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -8244,7 +8305,7 @@
]
},
{
- "$id": "650",
+ "$id": "656",
"kind": "model",
"name": "JobResource",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8267,7 +8328,7 @@
"resourceType": "MgmtTypeSpec/jobs",
"methods": [
{
- "$id": "651",
+ "$id": "657",
"methodId": "MgmtTypeSpec.JobResources.get",
"kind": "Get",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}",
@@ -8275,7 +8336,7 @@
"resourceScope": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}"
},
{
- "$id": "652",
+ "$id": "658",
"methodId": "MgmtTypeSpec.JobResources.update",
"kind": "Update",
"operationPath": "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/MgmtTypeSpec/jobs/{jobName}",
@@ -8289,17 +8350,17 @@
}
],
"baseModel": {
- "$ref": "370"
+ "$ref": "374"
},
"properties": [
{
- "$id": "653",
+ "$id": "659",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "654",
+ "$id": "660",
"kind": "model",
"name": "JobProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8313,12 +8374,12 @@
],
"properties": [
{
- "$id": "655",
+ "$id": "661",
"kind": "property",
"name": "jobName",
"serializedName": "jobName",
"type": {
- "$id": "656",
+ "$id": "662",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8353,13 +8414,13 @@
"isHttpMetadata": false
},
{
- "$id": "657",
+ "$id": "663",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the JobResource",
"type": {
- "$id": "658",
+ "$id": "664",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8381,10 +8442,10 @@
]
},
{
- "$ref": "654"
+ "$ref": "660"
},
{
- "$id": "659",
+ "$id": "665",
"kind": "model",
"name": "JobResourceUpdateParameter",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8398,12 +8459,12 @@
],
"properties": [
{
- "$id": "660",
+ "$id": "666",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"type": {
- "$ref": "654"
+ "$ref": "660"
},
"optional": true,
"readOnly": false,
@@ -8419,12 +8480,12 @@
"isHttpMetadata": false
},
{
- "$id": "661",
+ "$id": "667",
"kind": "property",
"name": "tags",
"serializedName": "tags",
"type": {
- "$ref": "372"
+ "$ref": "376"
},
"optional": true,
"readOnly": false,
@@ -8442,7 +8503,7 @@
]
},
{
- "$id": "662",
+ "$id": "668",
"kind": "model",
"name": "HciVmInstance",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8471,7 +8532,7 @@
"resourceType": "MgmtTypeSpec/virtualMachineInstances",
"methods": [
{
- "$id": "663",
+ "$id": "669",
"methodId": "MgmtTypeSpec.HciVmInstances.get",
"kind": "Get",
"operationPath": "/{resourceUri}/providers/MgmtTypeSpec/virtualMachineInstances/default",
@@ -8486,17 +8547,17 @@
}
],
"baseModel": {
- "$ref": "619"
+ "$ref": "624"
},
"properties": [
{
- "$id": "664",
+ "$id": "670",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "665",
+ "$id": "671",
"kind": "model",
"name": "HciVmInstanceProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8510,12 +8571,12 @@
],
"properties": [
{
- "$id": "666",
+ "$id": "672",
"kind": "property",
"name": "sku",
"serializedName": "sku",
"type": {
- "$id": "667",
+ "$id": "673",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8550,13 +8611,13 @@
"isHttpMetadata": false
},
{
- "$id": "668",
+ "$id": "674",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the HciVmInstance",
"type": {
- "$id": "669",
+ "$id": "675",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8578,10 +8639,10 @@
]
},
{
- "$ref": "665"
+ "$ref": "671"
},
{
- "$id": "670",
+ "$id": "676",
"kind": "model",
"name": "GroupQuotaSubscriptionRequestStatus",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8604,31 +8665,31 @@
"resourceType": "MgmtTypeSpec/quotas",
"methods": [
{
- "$id": "671",
+ "$id": "677",
"methodId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get",
"kind": "Get",
"operationPath": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/MgmtTypeSpec/quotas/{requestId}",
- "operationScope": "Tenant",
+ "operationScope": "ManagementGroup",
"resourceScope": "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/MgmtTypeSpec/quotas/{requestId}"
}
],
- "resourceScope": "Tenant",
+ "resourceScope": "ManagementGroup",
"resourceName": "GroupQuotaSubscriptionRequestStatus"
}
}
],
"baseModel": {
- "$ref": "264"
+ "$ref": "268"
},
"properties": [
{
- "$id": "672",
+ "$id": "678",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "673",
+ "$id": "679",
"kind": "model",
"name": "GroupQuotaLimitProperties",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8641,7 +8702,7 @@
}
],
"baseModel": {
- "$id": "674",
+ "$id": "680",
"kind": "model",
"name": "GroupQuotaDetails",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8656,13 +8717,13 @@
],
"properties": [
{
- "$id": "675",
+ "$id": "681",
"kind": "property",
"name": "resourceName",
"serializedName": "resourceName",
"doc": "The resource name, such as SKU name.",
"type": {
- "$id": "676",
+ "$id": "682",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8682,13 +8743,13 @@
"isHttpMetadata": false
},
{
- "$id": "677",
+ "$id": "683",
"kind": "property",
"name": "limit",
"serializedName": "limit",
"doc": "The current Group Quota Limit at the parentId level.",
"type": {
- "$id": "678",
+ "$id": "684",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -8708,13 +8769,13 @@
"isHttpMetadata": false
},
{
- "$id": "679",
+ "$id": "685",
"kind": "property",
"name": "comment",
"serializedName": "comment",
"doc": "Any comment related to quota request.",
"type": {
- "$id": "680",
+ "$id": "686",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8734,13 +8795,13 @@
"isHttpMetadata": false
},
{
- "$id": "681",
+ "$id": "687",
"kind": "property",
"name": "unit",
"serializedName": "unit",
"doc": "The usages units, such as Count and Bytes. When requesting quota, use the **unit** value returned in the GET response in the request body of your PUT operation.",
"type": {
- "$id": "682",
+ "$id": "688",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8760,13 +8821,13 @@
"isHttpMetadata": false
},
{
- "$id": "683",
+ "$id": "689",
"kind": "property",
"name": "availableLimit",
"serializedName": "availableLimit",
"doc": "The available Group Quota Limit at the MG level. This Group quota can be allocated to subscription(s).",
"type": {
- "$id": "684",
+ "$id": "690",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -8786,13 +8847,13 @@
"isHttpMetadata": false
},
{
- "$id": "685",
+ "$id": "691",
"kind": "property",
"name": "allocatedToSubscriptions",
"serializedName": "allocatedToSubscriptions",
"doc": "Quota allocated to subscriptions",
"type": {
- "$id": "686",
+ "$id": "692",
"kind": "model",
"name": "AllocatedQuotaToSubscriptionList",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8807,17 +8868,17 @@
],
"properties": [
{
- "$id": "687",
+ "$id": "693",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "List of Group Quota Limit allocated to subscriptions.",
"type": {
- "$id": "688",
+ "$id": "694",
"kind": "array",
"name": "ArrayAllocatedToSubscription",
"valueType": {
- "$id": "689",
+ "$id": "695",
"kind": "model",
"name": "AllocatedToSubscription",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8832,13 +8893,13 @@
],
"properties": [
{
- "$id": "690",
+ "$id": "696",
"kind": "property",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "An Azure subscriptionId.",
"type": {
- "$id": "691",
+ "$id": "697",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8858,13 +8919,13 @@
"isHttpMetadata": false
},
{
- "$id": "692",
+ "$id": "698",
"kind": "property",
"name": "quotaAllocated",
"serializedName": "quotaAllocated",
"doc": "The amount of quota allocated to this subscriptionId from the GroupQuotasEntity.",
"type": {
- "$id": "693",
+ "$id": "699",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -8934,13 +8995,13 @@
"isHttpMetadata": false
},
{
- "$id": "694",
+ "$id": "700",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the GroupQuotaSubscriptionRequestStatus",
"type": {
- "$id": "695",
+ "$id": "701",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -8962,19 +9023,19 @@
]
},
{
- "$ref": "673"
+ "$ref": "679"
},
{
- "$ref": "674"
+ "$ref": "680"
},
{
- "$ref": "686"
+ "$ref": "692"
},
{
- "$ref": "689"
+ "$ref": "695"
},
{
- "$id": "696",
+ "$id": "702",
"kind": "model",
"name": "ZooRecommendation",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
@@ -8988,13 +9049,13 @@
],
"properties": [
{
- "$id": "697",
+ "$id": "703",
"kind": "property",
"name": "recommendedValue",
"serializedName": "recommendedValue",
"doc": "The recommended value",
"type": {
- "$id": "698",
+ "$id": "704",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9014,13 +9075,13 @@
"isHttpMetadata": false
},
{
- "$id": "699",
+ "$id": "705",
"kind": "property",
"name": "reason",
"serializedName": "reason",
"doc": "The reason for the recommendation",
"type": {
- "$id": "700",
+ "$id": "706",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9044,13 +9105,13 @@
],
"clients": [
{
- "$id": "701",
+ "$id": "707",
"kind": "client",
"name": "MgmtTypeSpecClient",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "702",
+ "$id": "708",
"kind": "basic",
"name": "previewActions",
"accessibility": "public",
@@ -9059,20 +9120,20 @@
],
"doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.",
"operation": {
- "$id": "703",
+ "$id": "709",
"name": "previewActions",
"resourceName": "MgmtTypeSpec",
"doc": "Runs the input conditions against input object metadata properties and designates matched objects in response.",
"accessibility": "public",
"parameters": [
{
- "$id": "704",
+ "$id": "710",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "705",
+ "$id": "711",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9082,7 +9143,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "706",
+ "$id": "712",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9096,18 +9157,18 @@
"readOnly": false
},
{
- "$id": "707",
+ "$id": "713",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "708",
+ "$id": "714",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "709",
+ "$id": "715",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9127,17 +9188,17 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.subscriptionId"
},
{
- "$id": "710",
+ "$id": "716",
"kind": "path",
"name": "location",
"serializedName": "location",
"type": {
- "$id": "711",
+ "$id": "717",
"kind": "string",
"name": "azureLocation",
"crossLanguageDefinitionId": "Azure.Core.azureLocation",
"baseType": {
- "$id": "712",
+ "$id": "718",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9157,7 +9218,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.location"
},
{
- "$id": "713",
+ "$id": "719",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -9174,7 +9235,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.contentType"
},
{
- "$id": "714",
+ "$id": "720",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -9190,13 +9251,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.previewActions.accept"
},
{
- "$id": "715",
+ "$id": "721",
"kind": "body",
"name": "body",
"serializedName": "body",
"doc": "The request body",
"type": {
- "$ref": "214"
+ "$ref": "218"
},
"isApiVersion": false,
"contentTypes": [
@@ -9216,7 +9277,7 @@
200
],
"bodyType": {
- "$ref": "214"
+ "$ref": "218"
},
"headers": [],
"isErrorResponse": false,
@@ -9239,17 +9300,17 @@
},
"parameters": [
{
- "$id": "716",
+ "$id": "722",
"kind": "method",
"name": "location",
"serializedName": "location",
"type": {
- "$id": "717",
+ "$id": "723",
"kind": "string",
"name": "azureLocation",
"crossLanguageDefinitionId": "Azure.Core.azureLocation",
"baseType": {
- "$id": "718",
+ "$id": "724",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9267,13 +9328,13 @@
"decorators": []
},
{
- "$id": "719",
+ "$id": "725",
"kind": "method",
"name": "body",
"serializedName": "body",
"doc": "The request body",
"type": {
- "$ref": "214"
+ "$ref": "218"
},
"location": "Body",
"isApiVersion": false,
@@ -9285,7 +9346,7 @@
"decorators": []
},
{
- "$id": "720",
+ "$id": "726",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -9303,7 +9364,7 @@
"decorators": []
},
{
- "$id": "721",
+ "$id": "727",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -9322,7 +9383,7 @@
],
"response": {
"type": {
- "$ref": "214"
+ "$ref": "218"
}
},
"isOverride": false,
@@ -9333,13 +9394,13 @@
],
"parameters": [
{
- "$id": "722",
+ "$id": "728",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "723",
+ "$id": "729",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -9350,7 +9411,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "724",
+ "$id": "730",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9397,13 +9458,13 @@
],
"children": [
{
- "$id": "725",
+ "$id": "731",
"kind": "client",
"name": "Operations",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "726",
+ "$id": "732",
"kind": "paging",
"name": "list",
"accessibility": "public",
@@ -9412,20 +9473,20 @@
],
"doc": "List the operations for the provider",
"operation": {
- "$id": "727",
+ "$id": "733",
"name": "list",
"resourceName": "Operations",
"doc": "List the operations for the provider",
"accessibility": "public",
"parameters": [
{
- "$id": "728",
+ "$id": "734",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "729",
+ "$id": "735",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9435,7 +9496,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "730",
+ "$id": "736",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9449,7 +9510,7 @@
"readOnly": false
},
{
- "$id": "731",
+ "$id": "737",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -9471,7 +9532,7 @@
200
],
"bodyType": {
- "$ref": "237"
+ "$ref": "241"
},
"headers": [],
"isErrorResponse": false,
@@ -9491,7 +9552,7 @@
},
"parameters": [
{
- "$id": "732",
+ "$id": "738",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -9510,7 +9571,7 @@
],
"response": {
"type": {
- "$ref": "239"
+ "$ref": "243"
},
"resultSegments": [
"value"
@@ -9535,13 +9596,13 @@
],
"parameters": [
{
- "$id": "733",
+ "$id": "739",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "734",
+ "$id": "740",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -9552,7 +9613,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "735",
+ "$id": "741",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9571,17 +9632,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "736",
+ "$id": "742",
"kind": "client",
"name": "PrivateLinks",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "737",
+ "$id": "743",
"kind": "paging",
"name": "GetAllPrivateLinkResources",
"accessibility": "public",
@@ -9590,20 +9651,20 @@
],
"doc": "list private links on the given resource",
"operation": {
- "$id": "738",
+ "$id": "744",
"name": "GetAllPrivateLinkResources",
"resourceName": "PrivateLink",
"doc": "list private links on the given resource",
"accessibility": "public",
"parameters": [
{
- "$id": "739",
+ "$id": "745",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "740",
+ "$id": "746",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9613,7 +9674,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "741",
+ "$id": "747",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9627,18 +9688,18 @@
"readOnly": false
},
{
- "$id": "742",
+ "$id": "748",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "743",
+ "$id": "749",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "744",
+ "$id": "750",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9658,13 +9719,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.subscriptionId"
},
{
- "$id": "745",
+ "$id": "751",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "746",
+ "$id": "752",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9682,7 +9743,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster.resourceGroupName"
},
{
- "$id": "747",
+ "$id": "753",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -9704,7 +9765,7 @@
200
],
"bodyType": {
- "$ref": "260"
+ "$ref": "264"
},
"headers": [],
"isErrorResponse": false,
@@ -9729,13 +9790,13 @@
},
"parameters": [
{
- "$id": "748",
+ "$id": "754",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "749",
+ "$id": "755",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9751,7 +9812,7 @@
"decorators": []
},
{
- "$id": "750",
+ "$id": "756",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -9770,7 +9831,7 @@
],
"response": {
"type": {
- "$ref": "262"
+ "$ref": "266"
},
"resultSegments": [
"value"
@@ -9793,7 +9854,7 @@
}
},
{
- "$id": "751",
+ "$id": "757",
"kind": "lro",
"name": "start",
"accessibility": "public",
@@ -9802,20 +9863,20 @@
],
"doc": "Starts the SAP Application Server Instance.",
"operation": {
- "$id": "752",
+ "$id": "758",
"name": "start",
"resourceName": "PrivateLinks",
"doc": "Starts the SAP Application Server Instance.",
"accessibility": "public",
"parameters": [
{
- "$id": "753",
+ "$id": "759",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "754",
+ "$id": "760",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9825,7 +9886,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "755",
+ "$id": "761",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9839,18 +9900,18 @@
"readOnly": false
},
{
- "$id": "756",
+ "$id": "762",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "757",
+ "$id": "763",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "758",
+ "$id": "764",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9870,13 +9931,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.subscriptionId"
},
{
- "$id": "759",
+ "$id": "765",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "760",
+ "$id": "766",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9894,13 +9955,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.resourceGroupName"
},
{
- "$id": "761",
+ "$id": "767",
"kind": "path",
"name": "privateLinkResourceName",
"serializedName": "privateLinkResourceName",
"doc": "The name of the private link associated with the Azure resource.",
"type": {
- "$id": "762",
+ "$id": "768",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9918,7 +9979,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.privateLinkResourceName"
},
{
- "$id": "763",
+ "$id": "769",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -9935,7 +9996,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.contentType"
},
{
- "$id": "764",
+ "$id": "770",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -9951,13 +10012,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start.accept"
},
{
- "$id": "765",
+ "$id": "771",
"kind": "body",
"name": "body",
"serializedName": "body",
"doc": "SAP Application server instance start request body.",
"type": {
- "$ref": "323"
+ "$ref": "327"
},
"isApiVersion": false,
"contentTypes": [
@@ -9982,7 +10043,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "766",
+ "$id": "772",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -9994,7 +10055,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "767",
+ "$id": "773",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -10009,7 +10070,7 @@
200
],
"bodyType": {
- "$ref": "326"
+ "$ref": "330"
},
"headers": [],
"isErrorResponse": false,
@@ -10037,13 +10098,13 @@
},
"parameters": [
{
- "$id": "768",
+ "$id": "774",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "769",
+ "$id": "775",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10059,13 +10120,13 @@
"decorators": []
},
{
- "$id": "770",
+ "$id": "776",
"kind": "method",
"name": "privateLinkResourceName",
"serializedName": "privateLinkResourceName",
"doc": "The name of the private link associated with the Azure resource.",
"type": {
- "$id": "771",
+ "$id": "777",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10081,13 +10142,13 @@
"decorators": []
},
{
- "$id": "772",
+ "$id": "778",
"kind": "method",
"name": "body",
"serializedName": "body",
"doc": "The content of the action request",
"type": {
- "$ref": "321"
+ "$ref": "325"
},
"location": "",
"isApiVersion": false,
@@ -10099,18 +10160,18 @@
"decorators": []
},
{
- "$id": "773",
+ "$id": "779",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "774",
+ "$id": "780",
"kind": "enum",
"name": "startContentType",
"crossLanguageDefinitionId": "",
"valueType": {
- "$id": "775",
+ "$id": "781",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10118,12 +10179,12 @@
},
"values": [
{
- "$id": "776",
+ "$id": "782",
"kind": "enumvalue",
"name": "application/json",
"value": "application/json",
"valueType": {
- "$id": "777",
+ "$id": "783",
"kind": "string",
"decorators": [],
"doc": "A sequence of textual characters.",
@@ -10131,7 +10192,7 @@
"crossLanguageDefinitionId": "TypeSpec.string"
},
"enumType": {
- "$ref": "774"
+ "$ref": "780"
},
"decorators": []
}
@@ -10152,7 +10213,7 @@
"decorators": []
},
{
- "$id": "778",
+ "$id": "784",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -10171,7 +10232,7 @@
],
"response": {
"type": {
- "$ref": "326"
+ "$ref": "330"
}
},
"isOverride": false,
@@ -10185,13 +10246,13 @@
200
],
"bodyType": {
- "$ref": "326"
+ "$ref": "330"
}
}
}
},
{
- "$id": "779",
+ "$id": "785",
"kind": "basic",
"name": "startFailedServerlessRuntime",
"accessibility": "public",
@@ -10200,7 +10261,7 @@
],
"doc": "Starts a failed runtime resource",
"operation": {
- "$id": "780",
+ "$id": "786",
"name": "startFailedServerlessRuntime",
"resourceName": "PrivateLinks",
"doc": "Starts a failed runtime resource",
@@ -10234,13 +10295,13 @@
],
"parameters": [
{
- "$id": "781",
+ "$id": "787",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "782",
+ "$id": "788",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -10251,7 +10312,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "783",
+ "$id": "789",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -10275,17 +10336,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "784",
+ "$id": "790",
"kind": "client",
"name": "Foos",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "785",
+ "$id": "791",
"kind": "lro",
"name": "createOrUpdate",
"accessibility": "public",
@@ -10294,20 +10355,20 @@
],
"doc": "Create a Foo",
"operation": {
- "$id": "786",
+ "$id": "792",
"name": "createOrUpdate",
"resourceName": "Foo",
"doc": "Create a Foo",
"accessibility": "public",
"parameters": [
{
- "$id": "787",
+ "$id": "793",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "788",
+ "$id": "794",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10317,7 +10378,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "789",
+ "$id": "795",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -10331,18 +10392,18 @@
"readOnly": false
},
{
- "$id": "790",
+ "$id": "796",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "791",
+ "$id": "797",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "792",
+ "$id": "798",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10362,13 +10423,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.subscriptionId"
},
{
- "$id": "793",
+ "$id": "799",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "794",
+ "$id": "800",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10386,13 +10447,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.resourceGroupName"
},
{
- "$id": "795",
+ "$id": "801",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "796",
+ "$id": "802",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10410,7 +10471,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.fooName"
},
{
- "$id": "797",
+ "$id": "803",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -10427,7 +10488,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.contentType"
},
{
- "$id": "798",
+ "$id": "804",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -10443,13 +10504,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate.accept"
},
{
- "$id": "799",
+ "$id": "805",
"kind": "body",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "363"
+ "$ref": "367"
},
"isApiVersion": false,
"contentTypes": [
@@ -10469,7 +10530,7 @@
200
],
"bodyType": {
- "$ref": "363"
+ "$ref": "367"
},
"headers": [],
"isErrorResponse": false,
@@ -10482,7 +10543,7 @@
201
],
"bodyType": {
- "$ref": "363"
+ "$ref": "367"
},
"headers": [
{
@@ -10490,7 +10551,7 @@
"nameInResponse": "Azure-AsyncOperation",
"doc": "A link to the status monitor",
"type": {
- "$id": "800",
+ "$id": "806",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10502,7 +10563,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "801",
+ "$id": "807",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -10535,13 +10596,13 @@
},
"parameters": [
{
- "$id": "802",
+ "$id": "808",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "803",
+ "$id": "809",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10557,13 +10618,13 @@
"decorators": []
},
{
- "$id": "804",
+ "$id": "810",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "805",
+ "$id": "811",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10579,13 +10640,13 @@
"decorators": []
},
{
- "$id": "806",
+ "$id": "812",
"kind": "method",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "363"
+ "$ref": "367"
},
"location": "Body",
"isApiVersion": false,
@@ -10597,7 +10658,7 @@
"decorators": []
},
{
- "$id": "807",
+ "$id": "813",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -10615,7 +10676,7 @@
"decorators": []
},
{
- "$id": "808",
+ "$id": "814",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -10634,7 +10695,7 @@
],
"response": {
"type": {
- "$ref": "363"
+ "$ref": "367"
}
},
"isOverride": false,
@@ -10648,13 +10709,13 @@
200
],
"bodyType": {
- "$ref": "363"
+ "$ref": "367"
}
}
}
},
{
- "$id": "809",
+ "$id": "815",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -10663,20 +10724,20 @@
],
"doc": "Get a Foo",
"operation": {
- "$id": "810",
+ "$id": "816",
"name": "get",
"resourceName": "Foo",
"doc": "Get a Foo",
"accessibility": "public",
"parameters": [
{
- "$id": "811",
+ "$id": "817",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "812",
+ "$id": "818",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10686,7 +10747,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "813",
+ "$id": "819",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -10700,18 +10761,18 @@
"readOnly": false
},
{
- "$id": "814",
+ "$id": "820",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "815",
+ "$id": "821",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "816",
+ "$id": "822",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10731,13 +10792,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.subscriptionId"
},
{
- "$id": "817",
+ "$id": "823",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "818",
+ "$id": "824",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10755,13 +10816,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.resourceGroupName"
},
{
- "$id": "819",
+ "$id": "825",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "820",
+ "$id": "826",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10779,7 +10840,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get.fooName"
},
{
- "$id": "821",
+ "$id": "827",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -10801,7 +10862,7 @@
200
],
"bodyType": {
- "$ref": "363"
+ "$ref": "367"
},
"headers": [],
"isErrorResponse": false,
@@ -10826,13 +10887,13 @@
},
"parameters": [
{
- "$id": "822",
+ "$id": "828",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "823",
+ "$id": "829",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10848,13 +10909,13 @@
"decorators": []
},
{
- "$id": "824",
+ "$id": "830",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "825",
+ "$id": "831",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10870,7 +10931,7 @@
"decorators": []
},
{
- "$id": "826",
+ "$id": "832",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -10889,7 +10950,7 @@
],
"response": {
"type": {
- "$ref": "363"
+ "$ref": "367"
}
},
"isOverride": false,
@@ -10898,7 +10959,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get"
},
{
- "$id": "827",
+ "$id": "833",
"kind": "lro",
"name": "delete",
"accessibility": "public",
@@ -10907,20 +10968,20 @@
],
"doc": "Delete a Foo",
"operation": {
- "$id": "828",
+ "$id": "834",
"name": "delete",
"resourceName": "Foo",
"doc": "Delete a Foo",
"accessibility": "public",
"parameters": [
{
- "$id": "829",
+ "$id": "835",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "830",
+ "$id": "836",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10930,7 +10991,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "831",
+ "$id": "837",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -10944,18 +11005,18 @@
"readOnly": false
},
{
- "$id": "832",
+ "$id": "838",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "833",
+ "$id": "839",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "834",
+ "$id": "840",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10975,13 +11036,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete.subscriptionId"
},
{
- "$id": "835",
+ "$id": "841",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "836",
+ "$id": "842",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -10999,13 +11060,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete.resourceGroupName"
},
{
- "$id": "837",
+ "$id": "843",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "838",
+ "$id": "844",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11034,7 +11095,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "839",
+ "$id": "845",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11046,7 +11107,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "840",
+ "$id": "846",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -11080,13 +11141,13 @@
},
"parameters": [
{
- "$id": "841",
+ "$id": "847",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "842",
+ "$id": "848",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11102,13 +11163,13 @@
"decorators": []
},
{
- "$id": "843",
+ "$id": "849",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "844",
+ "$id": "850",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11139,7 +11200,7 @@
}
},
{
- "$id": "845",
+ "$id": "851",
"kind": "paging",
"name": "list",
"accessibility": "public",
@@ -11148,20 +11209,20 @@
],
"doc": "List Foo resources by resource group",
"operation": {
- "$id": "846",
+ "$id": "852",
"name": "list",
"resourceName": "Foo",
"doc": "List Foo resources by resource group",
"accessibility": "public",
"parameters": [
{
- "$id": "847",
+ "$id": "853",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "848",
+ "$id": "854",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11171,7 +11232,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "849",
+ "$id": "855",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -11185,18 +11246,18 @@
"readOnly": false
},
{
- "$id": "850",
+ "$id": "856",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "851",
+ "$id": "857",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "852",
+ "$id": "858",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11216,13 +11277,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.list.subscriptionId"
},
{
- "$id": "853",
+ "$id": "859",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "854",
+ "$id": "860",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11240,7 +11301,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.list.resourceGroupName"
},
{
- "$id": "855",
+ "$id": "861",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -11262,7 +11323,7 @@
200
],
"bodyType": {
- "$ref": "406"
+ "$ref": "410"
},
"headers": [],
"isErrorResponse": false,
@@ -11287,13 +11348,13 @@
},
"parameters": [
{
- "$id": "856",
+ "$id": "862",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "857",
+ "$id": "863",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11309,7 +11370,7 @@
"decorators": []
},
{
- "$id": "858",
+ "$id": "864",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -11328,7 +11389,7 @@
],
"response": {
"type": {
- "$ref": "408"
+ "$ref": "412"
},
"resultSegments": [
"value"
@@ -11351,7 +11412,7 @@
}
},
{
- "$id": "859",
+ "$id": "865",
"kind": "paging",
"name": "listBySubscription",
"accessibility": "public",
@@ -11360,20 +11421,20 @@
],
"doc": "List Foo resources by subscription ID",
"operation": {
- "$id": "860",
+ "$id": "866",
"name": "listBySubscription",
"resourceName": "Foo",
"doc": "List Foo resources by subscription ID",
"accessibility": "public",
"parameters": [
{
- "$id": "861",
+ "$id": "867",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "862",
+ "$id": "868",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11383,7 +11444,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "863",
+ "$id": "869",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -11397,18 +11458,18 @@
"readOnly": false
},
{
- "$id": "864",
+ "$id": "870",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "865",
+ "$id": "871",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "866",
+ "$id": "872",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11428,7 +11489,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.listBySubscription.subscriptionId"
},
{
- "$id": "867",
+ "$id": "873",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -11450,7 +11511,7 @@
200
],
"bodyType": {
- "$ref": "406"
+ "$ref": "410"
},
"headers": [],
"isErrorResponse": false,
@@ -11475,7 +11536,7 @@
},
"parameters": [
{
- "$id": "868",
+ "$id": "874",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -11494,7 +11555,7 @@
],
"response": {
"type": {
- "$ref": "408"
+ "$ref": "412"
},
"resultSegments": [
"value"
@@ -11517,7 +11578,7 @@
}
},
{
- "$id": "869",
+ "$id": "875",
"kind": "lro",
"name": "fooAction",
"accessibility": "public",
@@ -11526,20 +11587,20 @@
],
"doc": "A long-running resource action.",
"operation": {
- "$id": "870",
+ "$id": "876",
"name": "fooAction",
"resourceName": "Foos",
"doc": "A long-running resource action.",
"accessibility": "public",
"parameters": [
{
- "$id": "871",
+ "$id": "877",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "872",
+ "$id": "878",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11549,7 +11610,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "873",
+ "$id": "879",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -11563,18 +11624,18 @@
"readOnly": false
},
{
- "$id": "874",
+ "$id": "880",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "875",
+ "$id": "881",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "876",
+ "$id": "882",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11594,13 +11655,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.subscriptionId"
},
{
- "$id": "877",
+ "$id": "883",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "878",
+ "$id": "884",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11618,13 +11679,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.resourceGroupName"
},
{
- "$id": "879",
+ "$id": "885",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "880",
+ "$id": "886",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11642,7 +11703,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.fooName"
},
{
- "$id": "881",
+ "$id": "887",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -11659,7 +11720,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.contentType"
},
{
- "$id": "882",
+ "$id": "888",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -11675,13 +11736,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.fooAction.accept"
},
{
- "$id": "883",
+ "$id": "889",
"kind": "body",
"name": "body",
"serializedName": "body",
"doc": "The content of the action request",
"type": {
- "$ref": "412"
+ "$ref": "416"
},
"isApiVersion": false,
"contentTypes": [
@@ -11706,7 +11767,7 @@
"nameInResponse": "Azure-AsyncOperation",
"doc": "A link to the status monitor",
"type": {
- "$id": "884",
+ "$id": "890",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11718,7 +11779,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "885",
+ "$id": "891",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11730,7 +11791,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "886",
+ "$id": "892",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -11745,7 +11806,7 @@
200
],
"bodyType": {
- "$ref": "415"
+ "$ref": "419"
},
"headers": [],
"isErrorResponse": false,
@@ -11773,13 +11834,13 @@
},
"parameters": [
{
- "$id": "887",
+ "$id": "893",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "888",
+ "$id": "894",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11795,13 +11856,13 @@
"decorators": []
},
{
- "$id": "889",
+ "$id": "895",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "890",
+ "$id": "896",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11817,13 +11878,13 @@
"decorators": []
},
{
- "$id": "891",
+ "$id": "897",
"kind": "method",
"name": "body",
"serializedName": "body",
"doc": "The content of the action request",
"type": {
- "$ref": "412"
+ "$ref": "416"
},
"location": "Body",
"isApiVersion": false,
@@ -11835,7 +11896,7 @@
"decorators": []
},
{
- "$id": "892",
+ "$id": "898",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -11853,7 +11914,7 @@
"decorators": []
},
{
- "$id": "893",
+ "$id": "899",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -11872,7 +11933,7 @@
],
"response": {
"type": {
- "$ref": "415"
+ "$ref": "419"
}
},
"isOverride": false,
@@ -11886,7 +11947,7 @@
200
],
"bodyType": {
- "$ref": "415"
+ "$ref": "419"
}
}
}
@@ -11894,13 +11955,13 @@
],
"parameters": [
{
- "$id": "894",
+ "$id": "900",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "895",
+ "$id": "901",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -11911,7 +11972,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "896",
+ "$id": "902",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -11935,17 +11996,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "897",
+ "$id": "903",
"kind": "client",
"name": "FooSettingsOperations",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "898",
+ "$id": "904",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -11954,20 +12015,20 @@
],
"doc": "Get a FooSettings",
"operation": {
- "$id": "899",
+ "$id": "905",
"name": "get",
"resourceName": "FooSettings",
"doc": "Get a FooSettings",
"accessibility": "public",
"parameters": [
{
- "$id": "900",
+ "$id": "906",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "901",
+ "$id": "907",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -11977,7 +12038,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "902",
+ "$id": "908",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -11991,18 +12052,18 @@
"readOnly": false
},
{
- "$id": "903",
+ "$id": "909",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "904",
+ "$id": "910",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "905",
+ "$id": "911",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12022,13 +12083,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get.subscriptionId"
},
{
- "$id": "906",
+ "$id": "912",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "907",
+ "$id": "913",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12046,7 +12107,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get.resourceGroupName"
},
{
- "$id": "908",
+ "$id": "914",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -12068,7 +12129,7 @@
200
],
"bodyType": {
- "$ref": "418"
+ "$ref": "423"
},
"headers": [],
"isErrorResponse": false,
@@ -12093,13 +12154,13 @@
},
"parameters": [
{
- "$id": "909",
+ "$id": "915",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "910",
+ "$id": "916",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12115,7 +12176,7 @@
"decorators": []
},
{
- "$id": "911",
+ "$id": "917",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -12134,7 +12195,7 @@
],
"response": {
"type": {
- "$ref": "418"
+ "$ref": "423"
}
},
"isOverride": false,
@@ -12143,7 +12204,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.get"
},
{
- "$id": "912",
+ "$id": "918",
"kind": "basic",
"name": "createOrUpdate",
"accessibility": "public",
@@ -12152,20 +12213,20 @@
],
"doc": "Create a FooSettings",
"operation": {
- "$id": "913",
+ "$id": "919",
"name": "createOrUpdate",
"resourceName": "FooSettings",
"doc": "Create a FooSettings",
"accessibility": "public",
"parameters": [
{
- "$id": "914",
+ "$id": "920",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "915",
+ "$id": "921",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12175,7 +12236,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "916",
+ "$id": "922",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -12189,18 +12250,18 @@
"readOnly": false
},
{
- "$id": "917",
+ "$id": "923",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "918",
+ "$id": "924",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "919",
+ "$id": "925",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12220,13 +12281,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.subscriptionId"
},
{
- "$id": "920",
+ "$id": "926",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "921",
+ "$id": "927",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12244,7 +12305,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.resourceGroupName"
},
{
- "$id": "922",
+ "$id": "928",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -12261,7 +12322,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.contentType"
},
{
- "$id": "923",
+ "$id": "929",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -12277,13 +12338,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate.accept"
},
{
- "$id": "924",
+ "$id": "930",
"kind": "body",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "418"
+ "$ref": "423"
},
"isApiVersion": false,
"contentTypes": [
@@ -12303,7 +12364,7 @@
200
],
"bodyType": {
- "$ref": "418"
+ "$ref": "423"
},
"headers": [],
"isErrorResponse": false,
@@ -12316,7 +12377,7 @@
201
],
"bodyType": {
- "$ref": "418"
+ "$ref": "423"
},
"headers": [],
"isErrorResponse": false,
@@ -12344,13 +12405,13 @@
},
"parameters": [
{
- "$id": "925",
+ "$id": "931",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "926",
+ "$id": "932",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12366,13 +12427,13 @@
"decorators": []
},
{
- "$id": "927",
+ "$id": "933",
"kind": "method",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "418"
+ "$ref": "423"
},
"location": "Body",
"isApiVersion": false,
@@ -12384,7 +12445,7 @@
"decorators": []
},
{
- "$id": "928",
+ "$id": "934",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -12402,7 +12463,7 @@
"decorators": []
},
{
- "$id": "929",
+ "$id": "935",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -12421,7 +12482,7 @@
],
"response": {
"type": {
- "$ref": "418"
+ "$ref": "423"
}
},
"isOverride": false,
@@ -12430,7 +12491,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.createOrUpdate"
},
{
- "$id": "930",
+ "$id": "936",
"kind": "basic",
"name": "update",
"accessibility": "public",
@@ -12439,20 +12500,20 @@
],
"doc": "Update a FooSettings",
"operation": {
- "$id": "931",
+ "$id": "937",
"name": "update",
"resourceName": "FooSettings",
"doc": "Update a FooSettings",
"accessibility": "public",
"parameters": [
{
- "$id": "932",
+ "$id": "938",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "933",
+ "$id": "939",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12462,7 +12523,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "934",
+ "$id": "940",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -12476,18 +12537,18 @@
"readOnly": false
},
{
- "$id": "935",
+ "$id": "941",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "936",
+ "$id": "942",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "937",
+ "$id": "943",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12507,13 +12568,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.subscriptionId"
},
{
- "$id": "938",
+ "$id": "944",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "939",
+ "$id": "945",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12531,7 +12592,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.resourceGroupName"
},
{
- "$id": "940",
+ "$id": "946",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -12548,7 +12609,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.contentType"
},
{
- "$id": "941",
+ "$id": "947",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -12564,13 +12625,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update.accept"
},
{
- "$id": "942",
+ "$id": "948",
"kind": "body",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "469"
+ "$ref": "474"
},
"isApiVersion": false,
"contentTypes": [
@@ -12590,7 +12651,7 @@
200
],
"bodyType": {
- "$ref": "418"
+ "$ref": "423"
},
"headers": [],
"isErrorResponse": false,
@@ -12618,13 +12679,13 @@
},
"parameters": [
{
- "$id": "943",
+ "$id": "949",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "944",
+ "$id": "950",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12640,13 +12701,13 @@
"decorators": []
},
{
- "$id": "945",
+ "$id": "951",
"kind": "method",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "469"
+ "$ref": "474"
},
"location": "Body",
"isApiVersion": false,
@@ -12658,7 +12719,7 @@
"decorators": []
},
{
- "$id": "946",
+ "$id": "952",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -12676,7 +12737,7 @@
"decorators": []
},
{
- "$id": "947",
+ "$id": "953",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -12695,7 +12756,7 @@
],
"response": {
"type": {
- "$ref": "418"
+ "$ref": "423"
}
},
"isOverride": false,
@@ -12704,7 +12765,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.update"
},
{
- "$id": "948",
+ "$id": "954",
"kind": "basic",
"name": "delete",
"accessibility": "public",
@@ -12713,20 +12774,20 @@
],
"doc": "Delete a FooSettings",
"operation": {
- "$id": "949",
+ "$id": "955",
"name": "delete",
"resourceName": "FooSettings",
"doc": "Delete a FooSettings",
"accessibility": "public",
"parameters": [
{
- "$id": "950",
+ "$id": "956",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "951",
+ "$id": "957",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12736,7 +12797,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "952",
+ "$id": "958",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -12750,18 +12811,18 @@
"readOnly": false
},
{
- "$id": "953",
+ "$id": "959",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "954",
+ "$id": "960",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "955",
+ "$id": "961",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12781,13 +12842,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.FooSettingsOperations.delete.subscriptionId"
},
{
- "$id": "956",
+ "$id": "962",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "957",
+ "$id": "963",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12837,13 +12898,13 @@
},
"parameters": [
{
- "$id": "958",
+ "$id": "964",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "959",
+ "$id": "965",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12868,13 +12929,13 @@
],
"parameters": [
{
- "$id": "960",
+ "$id": "966",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "961",
+ "$id": "967",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -12885,7 +12946,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "962",
+ "$id": "968",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -12909,17 +12970,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "963",
+ "$id": "969",
"kind": "client",
"name": "Bars",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "964",
+ "$id": "970",
"kind": "lro",
"name": "createOrUpdate",
"accessibility": "public",
@@ -12928,20 +12989,20 @@
],
"doc": "Create a Bar",
"operation": {
- "$id": "965",
+ "$id": "971",
"name": "createOrUpdate",
"resourceName": "Bar",
"doc": "Create a Bar",
"accessibility": "public",
"parameters": [
{
- "$id": "966",
+ "$id": "972",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "967",
+ "$id": "973",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12951,7 +13012,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "968",
+ "$id": "974",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -12965,18 +13026,18 @@
"readOnly": false
},
{
- "$id": "969",
+ "$id": "975",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "970",
+ "$id": "976",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "971",
+ "$id": "977",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -12996,13 +13057,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.subscriptionId"
},
{
- "$id": "972",
+ "$id": "978",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "973",
+ "$id": "979",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13020,13 +13081,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.resourceGroupName"
},
{
- "$id": "974",
+ "$id": "980",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "975",
+ "$id": "981",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13044,13 +13105,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.fooName"
},
{
- "$id": "976",
+ "$id": "982",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "977",
+ "$id": "983",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13068,7 +13129,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.barName"
},
{
- "$id": "978",
+ "$id": "984",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -13085,7 +13146,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.contentType"
},
{
- "$id": "979",
+ "$id": "985",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -13101,13 +13162,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.createOrUpdate.accept"
},
{
- "$id": "980",
+ "$id": "986",
"kind": "body",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "476"
+ "$ref": "481"
},
"isApiVersion": false,
"contentTypes": [
@@ -13127,7 +13188,7 @@
200
],
"bodyType": {
- "$ref": "476"
+ "$ref": "481"
},
"headers": [],
"isErrorResponse": false,
@@ -13140,7 +13201,7 @@
201
],
"bodyType": {
- "$ref": "476"
+ "$ref": "481"
},
"headers": [
{
@@ -13148,7 +13209,7 @@
"nameInResponse": "Azure-AsyncOperation",
"doc": "A link to the status monitor",
"type": {
- "$id": "981",
+ "$id": "987",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13160,7 +13221,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "982",
+ "$id": "988",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -13193,13 +13254,13 @@
},
"parameters": [
{
- "$id": "983",
+ "$id": "989",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "984",
+ "$id": "990",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13215,13 +13276,13 @@
"decorators": []
},
{
- "$id": "985",
+ "$id": "991",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "986",
+ "$id": "992",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13237,13 +13298,13 @@
"decorators": []
},
{
- "$id": "987",
+ "$id": "993",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "988",
+ "$id": "994",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13259,13 +13320,13 @@
"decorators": []
},
{
- "$id": "989",
+ "$id": "995",
"kind": "method",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "476"
+ "$ref": "481"
},
"location": "Body",
"isApiVersion": false,
@@ -13277,7 +13338,7 @@
"decorators": []
},
{
- "$id": "990",
+ "$id": "996",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -13295,7 +13356,7 @@
"decorators": []
},
{
- "$id": "991",
+ "$id": "997",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -13314,7 +13375,7 @@
],
"response": {
"type": {
- "$ref": "476"
+ "$ref": "481"
}
},
"isOverride": false,
@@ -13328,13 +13389,13 @@
200
],
"bodyType": {
- "$ref": "476"
+ "$ref": "481"
}
}
}
},
{
- "$id": "992",
+ "$id": "998",
"kind": "lro",
"name": "delete",
"accessibility": "public",
@@ -13343,20 +13404,20 @@
],
"doc": "Delete a Bar",
"operation": {
- "$id": "993",
+ "$id": "999",
"name": "delete",
"resourceName": "Bar",
"doc": "Delete a Bar",
"accessibility": "public",
"parameters": [
{
- "$id": "994",
+ "$id": "1000",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "995",
+ "$id": "1001",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13366,7 +13427,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "996",
+ "$id": "1002",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -13380,18 +13441,18 @@
"readOnly": false
},
{
- "$id": "997",
+ "$id": "1003",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "998",
+ "$id": "1004",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "999",
+ "$id": "1005",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13411,13 +13472,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.subscriptionId"
},
{
- "$id": "1000",
+ "$id": "1006",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1001",
+ "$id": "1007",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13435,13 +13496,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.resourceGroupName"
},
{
- "$id": "1002",
+ "$id": "1008",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1003",
+ "$id": "1009",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13459,13 +13520,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.delete.fooName"
},
{
- "$id": "1004",
+ "$id": "1010",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1005",
+ "$id": "1011",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13494,7 +13555,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "1006",
+ "$id": "1012",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13506,7 +13567,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1007",
+ "$id": "1013",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -13540,13 +13601,13 @@
},
"parameters": [
{
- "$id": "1008",
+ "$id": "1014",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1009",
+ "$id": "1015",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13562,13 +13623,13 @@
"decorators": []
},
{
- "$id": "1010",
+ "$id": "1016",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1011",
+ "$id": "1017",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13584,13 +13645,13 @@
"decorators": []
},
{
- "$id": "1012",
+ "$id": "1018",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1013",
+ "$id": "1019",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13621,7 +13682,7 @@
}
},
{
- "$id": "1014",
+ "$id": "1020",
"kind": "paging",
"name": "list",
"accessibility": "public",
@@ -13630,20 +13691,20 @@
],
"doc": "List Bar resources by Foo",
"operation": {
- "$id": "1015",
+ "$id": "1021",
"name": "list",
"resourceName": "Bar",
"doc": "List Bar resources by Foo",
"accessibility": "public",
"parameters": [
{
- "$id": "1016",
+ "$id": "1022",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1017",
+ "$id": "1023",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13653,7 +13714,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1018",
+ "$id": "1024",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -13667,18 +13728,18 @@
"readOnly": false
},
{
- "$id": "1019",
+ "$id": "1025",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1020",
+ "$id": "1026",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1021",
+ "$id": "1027",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13698,13 +13759,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.subscriptionId"
},
{
- "$id": "1022",
+ "$id": "1028",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1023",
+ "$id": "1029",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13722,13 +13783,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.resourceGroupName"
},
{
- "$id": "1024",
+ "$id": "1030",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1025",
+ "$id": "1031",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13746,7 +13807,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.list.fooName"
},
{
- "$id": "1026",
+ "$id": "1032",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -13768,7 +13829,7 @@
200
],
"bodyType": {
- "$ref": "497"
+ "$ref": "502"
},
"headers": [],
"isErrorResponse": false,
@@ -13793,13 +13854,13 @@
},
"parameters": [
{
- "$id": "1027",
+ "$id": "1033",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1028",
+ "$id": "1034",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13815,13 +13876,13 @@
"decorators": []
},
{
- "$id": "1029",
+ "$id": "1035",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1030",
+ "$id": "1036",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13837,7 +13898,7 @@
"decorators": []
},
{
- "$id": "1031",
+ "$id": "1037",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -13856,7 +13917,7 @@
],
"response": {
"type": {
- "$ref": "499"
+ "$ref": "504"
},
"resultSegments": [
"value"
@@ -13881,13 +13942,13 @@
],
"parameters": [
{
- "$id": "1032",
+ "$id": "1038",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1033",
+ "$id": "1039",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -13898,7 +13959,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1034",
+ "$id": "1040",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -13922,17 +13983,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1035",
+ "$id": "1041",
"kind": "client",
"name": "BarSettingsOperations",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1036",
+ "$id": "1042",
"kind": "lro",
"name": "createOrUpdate",
"accessibility": "public",
@@ -13941,20 +14002,20 @@
],
"doc": "Create a BarSettingsResource",
"operation": {
- "$id": "1037",
+ "$id": "1043",
"name": "createOrUpdate",
"resourceName": "BarSettingsResource",
"doc": "Create a BarSettingsResource",
"accessibility": "public",
"parameters": [
{
- "$id": "1038",
+ "$id": "1044",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1039",
+ "$id": "1045",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -13964,7 +14025,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1040",
+ "$id": "1046",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -13978,18 +14039,18 @@
"readOnly": false
},
{
- "$id": "1041",
+ "$id": "1047",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1042",
+ "$id": "1048",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1043",
+ "$id": "1049",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14009,13 +14070,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.subscriptionId"
},
{
- "$id": "1044",
+ "$id": "1050",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1045",
+ "$id": "1051",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14033,13 +14094,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.resourceGroupName"
},
{
- "$id": "1046",
+ "$id": "1052",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1047",
+ "$id": "1053",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14057,13 +14118,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.fooName"
},
{
- "$id": "1048",
+ "$id": "1054",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1049",
+ "$id": "1055",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14081,7 +14142,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.barName"
},
{
- "$id": "1050",
+ "$id": "1056",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -14098,7 +14159,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.contentType"
},
{
- "$id": "1051",
+ "$id": "1057",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -14114,13 +14175,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.createOrUpdate.accept"
},
{
- "$id": "1052",
+ "$id": "1058",
"kind": "body",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "503"
+ "$ref": "508"
},
"isApiVersion": false,
"contentTypes": [
@@ -14140,7 +14201,7 @@
200
],
"bodyType": {
- "$ref": "503"
+ "$ref": "508"
},
"headers": [],
"isErrorResponse": false,
@@ -14153,7 +14214,7 @@
201
],
"bodyType": {
- "$ref": "503"
+ "$ref": "508"
},
"headers": [
{
@@ -14161,7 +14222,7 @@
"nameInResponse": "Azure-AsyncOperation",
"doc": "A link to the status monitor",
"type": {
- "$id": "1053",
+ "$id": "1059",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14173,7 +14234,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1054",
+ "$id": "1060",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -14206,13 +14267,13 @@
},
"parameters": [
{
- "$id": "1055",
+ "$id": "1061",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1056",
+ "$id": "1062",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14228,13 +14289,13 @@
"decorators": []
},
{
- "$id": "1057",
+ "$id": "1063",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1058",
+ "$id": "1064",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14250,13 +14311,13 @@
"decorators": []
},
{
- "$id": "1059",
+ "$id": "1065",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1060",
+ "$id": "1066",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14272,13 +14333,13 @@
"decorators": []
},
{
- "$id": "1061",
+ "$id": "1067",
"kind": "method",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "503"
+ "$ref": "508"
},
"location": "Body",
"isApiVersion": false,
@@ -14290,7 +14351,7 @@
"decorators": []
},
{
- "$id": "1062",
+ "$id": "1068",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -14308,7 +14369,7 @@
"decorators": []
},
{
- "$id": "1063",
+ "$id": "1069",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -14327,7 +14388,7 @@
],
"response": {
"type": {
- "$ref": "503"
+ "$ref": "508"
}
},
"isOverride": false,
@@ -14341,13 +14402,13 @@
200
],
"bodyType": {
- "$ref": "503"
+ "$ref": "508"
}
}
}
},
{
- "$id": "1064",
+ "$id": "1070",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -14356,20 +14417,20 @@
],
"doc": "Get a BarSettingsResource",
"operation": {
- "$id": "1065",
+ "$id": "1071",
"name": "get",
"resourceName": "BarSettingsResource",
"doc": "Get a BarSettingsResource",
"accessibility": "public",
"parameters": [
{
- "$id": "1066",
+ "$id": "1072",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1067",
+ "$id": "1073",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14379,7 +14440,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1068",
+ "$id": "1074",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -14393,18 +14454,18 @@
"readOnly": false
},
{
- "$id": "1069",
+ "$id": "1075",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1070",
+ "$id": "1076",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1071",
+ "$id": "1077",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14424,13 +14485,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.subscriptionId"
},
{
- "$id": "1072",
+ "$id": "1078",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1073",
+ "$id": "1079",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14448,13 +14509,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.resourceGroupName"
},
{
- "$id": "1074",
+ "$id": "1080",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1075",
+ "$id": "1081",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14472,13 +14533,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.fooName"
},
{
- "$id": "1076",
+ "$id": "1082",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1077",
+ "$id": "1083",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14496,7 +14557,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarSettingsOperations.get.barName"
},
{
- "$id": "1078",
+ "$id": "1084",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -14518,7 +14579,7 @@
200
],
"bodyType": {
- "$ref": "503"
+ "$ref": "508"
},
"headers": [],
"isErrorResponse": false,
@@ -14543,13 +14604,13 @@
},
"parameters": [
{
- "$id": "1079",
+ "$id": "1085",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1080",
+ "$id": "1086",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14565,13 +14626,13 @@
"decorators": []
},
{
- "$id": "1081",
+ "$id": "1087",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1082",
+ "$id": "1088",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14587,13 +14648,13 @@
"decorators": []
},
{
- "$id": "1083",
+ "$id": "1089",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1084",
+ "$id": "1090",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14609,7 +14670,7 @@
"decorators": []
},
{
- "$id": "1085",
+ "$id": "1091",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -14628,7 +14689,7 @@
],
"response": {
"type": {
- "$ref": "503"
+ "$ref": "508"
}
},
"isOverride": false,
@@ -14639,13 +14700,13 @@
],
"parameters": [
{
- "$id": "1086",
+ "$id": "1092",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1087",
+ "$id": "1093",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -14656,7 +14717,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1088",
+ "$id": "1094",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -14680,17 +14741,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1089",
+ "$id": "1095",
"kind": "client",
"name": "BarQuotaOperations",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1090",
+ "$id": "1096",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -14699,20 +14760,20 @@
],
"doc": "Get a BarQuotaResource",
"operation": {
- "$id": "1091",
+ "$id": "1097",
"name": "get",
"resourceName": "BarQuotaResource",
"doc": "Get a BarQuotaResource",
"accessibility": "public",
"parameters": [
{
- "$id": "1092",
+ "$id": "1098",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1093",
+ "$id": "1099",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14722,7 +14783,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1094",
+ "$id": "1100",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -14736,18 +14797,18 @@
"readOnly": false
},
{
- "$id": "1095",
+ "$id": "1101",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1096",
+ "$id": "1102",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1097",
+ "$id": "1103",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14767,13 +14828,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.subscriptionId"
},
{
- "$id": "1098",
+ "$id": "1104",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1099",
+ "$id": "1105",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14791,13 +14852,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.resourceGroupName"
},
{
- "$id": "1100",
+ "$id": "1106",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1101",
+ "$id": "1107",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14815,13 +14876,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.fooName"
},
{
- "$id": "1102",
+ "$id": "1108",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1103",
+ "$id": "1109",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14839,7 +14900,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.barName"
},
{
- "$id": "1104",
+ "$id": "1110",
"kind": "path",
"name": "barQuotaResourceName",
"serializedName": "barQuotaResourceName",
@@ -14859,7 +14920,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get.barQuotaResourceName"
},
{
- "$id": "1105",
+ "$id": "1111",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -14881,7 +14942,7 @@
200
],
"bodyType": {
- "$ref": "538"
+ "$ref": "543"
},
"headers": [],
"isErrorResponse": false,
@@ -14906,13 +14967,13 @@
},
"parameters": [
{
- "$id": "1106",
+ "$id": "1112",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1107",
+ "$id": "1113",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14928,13 +14989,13 @@
"decorators": []
},
{
- "$id": "1108",
+ "$id": "1114",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1109",
+ "$id": "1115",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14950,13 +15011,13 @@
"decorators": []
},
{
- "$id": "1110",
+ "$id": "1116",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1111",
+ "$id": "1117",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -14972,7 +15033,7 @@
"decorators": []
},
{
- "$id": "1112",
+ "$id": "1118",
"kind": "method",
"name": "barQuotaResourceName",
"serializedName": "barQuotaResourceName",
@@ -14990,7 +15051,7 @@
"decorators": []
},
{
- "$id": "1113",
+ "$id": "1119",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -15009,7 +15070,7 @@
],
"response": {
"type": {
- "$ref": "538"
+ "$ref": "543"
}
},
"isOverride": false,
@@ -15018,7 +15079,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.get"
},
{
- "$id": "1114",
+ "$id": "1120",
"kind": "lro",
"name": "update",
"accessibility": "public",
@@ -15027,20 +15088,20 @@
],
"doc": "Update a BarQuotaResource",
"operation": {
- "$id": "1115",
+ "$id": "1121",
"name": "update",
"resourceName": "BarQuotaResource",
"doc": "Update a BarQuotaResource",
"accessibility": "public",
"parameters": [
{
- "$id": "1116",
+ "$id": "1122",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1117",
+ "$id": "1123",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15050,7 +15111,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1118",
+ "$id": "1124",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -15064,18 +15125,18 @@
"readOnly": false
},
{
- "$id": "1119",
+ "$id": "1125",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1120",
+ "$id": "1126",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1121",
+ "$id": "1127",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15095,13 +15156,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.subscriptionId"
},
{
- "$id": "1122",
+ "$id": "1128",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1123",
+ "$id": "1129",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15119,13 +15180,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.resourceGroupName"
},
{
- "$id": "1124",
+ "$id": "1130",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1125",
+ "$id": "1131",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15143,13 +15204,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.fooName"
},
{
- "$id": "1126",
+ "$id": "1132",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1127",
+ "$id": "1133",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15167,7 +15228,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.barName"
},
{
- "$id": "1128",
+ "$id": "1134",
"kind": "path",
"name": "barQuotaResourceName",
"serializedName": "barQuotaResourceName",
@@ -15187,7 +15248,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.barQuotaResourceName"
},
{
- "$id": "1129",
+ "$id": "1135",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -15204,7 +15265,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.contentType"
},
{
- "$id": "1130",
+ "$id": "1136",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -15220,13 +15281,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.BarQuotaOperations.update.accept"
},
{
- "$id": "1131",
+ "$id": "1137",
"kind": "body",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "538"
+ "$ref": "543"
},
"isApiVersion": false,
"contentTypes": [
@@ -15246,7 +15307,7 @@
200
],
"bodyType": {
- "$ref": "538"
+ "$ref": "543"
},
"headers": [],
"isErrorResponse": false,
@@ -15264,7 +15325,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "1132",
+ "$id": "1138",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15276,7 +15337,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1133",
+ "$id": "1139",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -15306,13 +15367,13 @@
},
"parameters": [
{
- "$id": "1134",
+ "$id": "1140",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1135",
+ "$id": "1141",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15328,13 +15389,13 @@
"decorators": []
},
{
- "$id": "1136",
+ "$id": "1142",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1137",
+ "$id": "1143",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15350,13 +15411,13 @@
"decorators": []
},
{
- "$id": "1138",
+ "$id": "1144",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1139",
+ "$id": "1145",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15372,7 +15433,7 @@
"decorators": []
},
{
- "$id": "1140",
+ "$id": "1146",
"kind": "method",
"name": "barQuotaResourceName",
"serializedName": "barQuotaResourceName",
@@ -15390,13 +15451,13 @@
"decorators": []
},
{
- "$id": "1141",
+ "$id": "1147",
"kind": "method",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "538"
+ "$ref": "543"
},
"location": "Body",
"isApiVersion": false,
@@ -15408,7 +15469,7 @@
"decorators": []
},
{
- "$id": "1142",
+ "$id": "1148",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -15426,7 +15487,7 @@
"decorators": []
},
{
- "$id": "1143",
+ "$id": "1149",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -15445,7 +15506,7 @@
],
"response": {
"type": {
- "$ref": "538"
+ "$ref": "543"
}
},
"isOverride": false,
@@ -15459,7 +15520,7 @@
200
],
"bodyType": {
- "$ref": "538"
+ "$ref": "543"
}
}
}
@@ -15467,13 +15528,13 @@
],
"parameters": [
{
- "$id": "1144",
+ "$id": "1150",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1145",
+ "$id": "1151",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -15484,7 +15545,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1146",
+ "$id": "1152",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -15508,17 +15569,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1147",
+ "$id": "1153",
"kind": "client",
"name": "Employees",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1148",
+ "$id": "1154",
"kind": "paging",
"name": "GetEmployees",
"accessibility": "public",
@@ -15527,20 +15588,20 @@
],
"doc": "List Employee resources by Bar",
"operation": {
- "$id": "1149",
+ "$id": "1155",
"name": "GetEmployees",
"resourceName": "Employee",
"doc": "List Employee resources by Bar",
"accessibility": "public",
"parameters": [
{
- "$id": "1150",
+ "$id": "1156",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1151",
+ "$id": "1157",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15550,7 +15611,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1152",
+ "$id": "1158",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -15564,18 +15625,18 @@
"readOnly": false
},
{
- "$id": "1153",
+ "$id": "1159",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1154",
+ "$id": "1160",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1155",
+ "$id": "1161",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15595,13 +15656,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.subscriptionId"
},
{
- "$id": "1156",
+ "$id": "1162",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1157",
+ "$id": "1163",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15619,13 +15680,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.resourceGroupName"
},
{
- "$id": "1158",
+ "$id": "1164",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1159",
+ "$id": "1165",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15643,13 +15704,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.fooName"
},
{
- "$id": "1160",
+ "$id": "1166",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1161",
+ "$id": "1167",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15667,7 +15728,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Employees.listByParent.barName"
},
{
- "$id": "1162",
+ "$id": "1168",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -15689,7 +15750,7 @@
200
],
"bodyType": {
- "$ref": "543"
+ "$ref": "548"
},
"headers": [],
"isErrorResponse": false,
@@ -15714,13 +15775,13 @@
},
"parameters": [
{
- "$id": "1163",
+ "$id": "1169",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1164",
+ "$id": "1170",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15736,13 +15797,13 @@
"decorators": []
},
{
- "$id": "1165",
+ "$id": "1171",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1166",
+ "$id": "1172",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15758,13 +15819,13 @@
"decorators": []
},
{
- "$id": "1167",
+ "$id": "1173",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1168",
+ "$id": "1174",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15780,7 +15841,7 @@
"decorators": []
},
{
- "$id": "1169",
+ "$id": "1175",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -15799,7 +15860,7 @@
],
"response": {
"type": {
- "$ref": "545"
+ "$ref": "550"
},
"resultSegments": [
"value"
@@ -15824,13 +15885,13 @@
],
"parameters": [
{
- "$id": "1170",
+ "$id": "1176",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1171",
+ "$id": "1177",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -15841,7 +15902,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1172",
+ "$id": "1178",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -15865,17 +15926,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1173",
+ "$id": "1179",
"kind": "client",
"name": "Bazs",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1174",
+ "$id": "1180",
"kind": "lro",
"name": "createOrUpdate",
"accessibility": "public",
@@ -15884,20 +15945,20 @@
],
"doc": "Create a Baz",
"operation": {
- "$id": "1175",
+ "$id": "1181",
"name": "createOrUpdate",
"resourceName": "Baz",
"doc": "Create a Baz",
"accessibility": "public",
"parameters": [
{
- "$id": "1176",
+ "$id": "1182",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1177",
+ "$id": "1183",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15907,7 +15968,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1178",
+ "$id": "1184",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -15921,18 +15982,18 @@
"readOnly": false
},
{
- "$id": "1179",
+ "$id": "1185",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1180",
+ "$id": "1186",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1181",
+ "$id": "1187",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15952,13 +16013,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.subscriptionId"
},
{
- "$id": "1182",
+ "$id": "1188",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1183",
+ "$id": "1189",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -15976,13 +16037,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.resourceGroupName"
},
{
- "$id": "1184",
+ "$id": "1190",
"kind": "path",
"name": "bazName",
"serializedName": "bazName",
"doc": "The name of the Baz",
"type": {
- "$id": "1185",
+ "$id": "1191",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16000,7 +16061,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.bazName"
},
{
- "$id": "1186",
+ "$id": "1192",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -16017,7 +16078,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.contentType"
},
{
- "$id": "1187",
+ "$id": "1193",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -16033,13 +16094,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.createOrUpdate.accept"
},
{
- "$id": "1188",
+ "$id": "1194",
"kind": "body",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "558"
+ "$ref": "563"
},
"isApiVersion": false,
"contentTypes": [
@@ -16059,7 +16120,7 @@
200
],
"bodyType": {
- "$ref": "558"
+ "$ref": "563"
},
"headers": [],
"isErrorResponse": false,
@@ -16072,7 +16133,7 @@
201
],
"bodyType": {
- "$ref": "558"
+ "$ref": "563"
},
"headers": [
{
@@ -16080,7 +16141,7 @@
"nameInResponse": "Azure-AsyncOperation",
"doc": "A link to the status monitor",
"type": {
- "$id": "1189",
+ "$id": "1195",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16092,7 +16153,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1190",
+ "$id": "1196",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -16125,13 +16186,13 @@
},
"parameters": [
{
- "$id": "1191",
+ "$id": "1197",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1192",
+ "$id": "1198",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16147,13 +16208,13 @@
"decorators": []
},
{
- "$id": "1193",
+ "$id": "1199",
"kind": "method",
"name": "bazName",
"serializedName": "bazName",
"doc": "The name of the Baz",
"type": {
- "$id": "1194",
+ "$id": "1200",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16169,13 +16230,13 @@
"decorators": []
},
{
- "$id": "1195",
+ "$id": "1201",
"kind": "method",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "558"
+ "$ref": "563"
},
"location": "Body",
"isApiVersion": false,
@@ -16187,7 +16248,7 @@
"decorators": []
},
{
- "$id": "1196",
+ "$id": "1202",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -16205,7 +16266,7 @@
"decorators": []
},
{
- "$id": "1197",
+ "$id": "1203",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -16224,7 +16285,7 @@
],
"response": {
"type": {
- "$ref": "558"
+ "$ref": "563"
}
},
"isOverride": false,
@@ -16238,13 +16299,13 @@
200
],
"bodyType": {
- "$ref": "558"
+ "$ref": "563"
}
}
}
},
{
- "$id": "1198",
+ "$id": "1204",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -16253,20 +16314,20 @@
],
"doc": "Get a Baz",
"operation": {
- "$id": "1199",
+ "$id": "1205",
"name": "get",
"resourceName": "Baz",
"doc": "Get a Baz",
"accessibility": "public",
"parameters": [
{
- "$id": "1200",
+ "$id": "1206",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1201",
+ "$id": "1207",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16276,7 +16337,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1202",
+ "$id": "1208",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -16290,18 +16351,18 @@
"readOnly": false
},
{
- "$id": "1203",
+ "$id": "1209",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1204",
+ "$id": "1210",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1205",
+ "$id": "1211",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16321,13 +16382,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.subscriptionId"
},
{
- "$id": "1206",
+ "$id": "1212",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1207",
+ "$id": "1213",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16345,13 +16406,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.resourceGroupName"
},
{
- "$id": "1208",
+ "$id": "1214",
"kind": "path",
"name": "bazName",
"serializedName": "bazName",
"doc": "The name of the Baz",
"type": {
- "$id": "1209",
+ "$id": "1215",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16369,7 +16430,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get.bazName"
},
{
- "$id": "1210",
+ "$id": "1216",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -16391,7 +16452,7 @@
200
],
"bodyType": {
- "$ref": "558"
+ "$ref": "563"
},
"headers": [],
"isErrorResponse": false,
@@ -16416,13 +16477,13 @@
},
"parameters": [
{
- "$id": "1211",
+ "$id": "1217",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1212",
+ "$id": "1218",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16438,13 +16499,13 @@
"decorators": []
},
{
- "$id": "1213",
+ "$id": "1219",
"kind": "method",
"name": "bazName",
"serializedName": "bazName",
"doc": "The name of the Baz",
"type": {
- "$id": "1214",
+ "$id": "1220",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16460,7 +16521,7 @@
"decorators": []
},
{
- "$id": "1215",
+ "$id": "1221",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -16479,7 +16540,7 @@
],
"response": {
"type": {
- "$ref": "558"
+ "$ref": "563"
}
},
"isOverride": false,
@@ -16488,7 +16549,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.get"
},
{
- "$id": "1216",
+ "$id": "1222",
"kind": "lro",
"name": "delete",
"accessibility": "public",
@@ -16497,20 +16558,20 @@
],
"doc": "Delete a Baz",
"operation": {
- "$id": "1217",
+ "$id": "1223",
"name": "delete",
"resourceName": "Baz",
"doc": "Delete a Baz",
"accessibility": "public",
"parameters": [
{
- "$id": "1218",
+ "$id": "1224",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1219",
+ "$id": "1225",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16520,7 +16581,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1220",
+ "$id": "1226",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -16534,18 +16595,18 @@
"readOnly": false
},
{
- "$id": "1221",
+ "$id": "1227",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1222",
+ "$id": "1228",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1223",
+ "$id": "1229",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16565,13 +16626,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.delete.subscriptionId"
},
{
- "$id": "1224",
+ "$id": "1230",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1225",
+ "$id": "1231",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16589,13 +16650,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.delete.resourceGroupName"
},
{
- "$id": "1226",
+ "$id": "1232",
"kind": "path",
"name": "bazName",
"serializedName": "bazName",
"doc": "The name of the Baz",
"type": {
- "$id": "1227",
+ "$id": "1233",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16624,7 +16685,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "1228",
+ "$id": "1234",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16636,7 +16697,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1229",
+ "$id": "1235",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -16670,13 +16731,13 @@
},
"parameters": [
{
- "$id": "1230",
+ "$id": "1236",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1231",
+ "$id": "1237",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16692,13 +16753,13 @@
"decorators": []
},
{
- "$id": "1232",
+ "$id": "1238",
"kind": "method",
"name": "bazName",
"serializedName": "bazName",
"doc": "The name of the Baz",
"type": {
- "$id": "1233",
+ "$id": "1239",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16729,7 +16790,7 @@
}
},
{
- "$id": "1234",
+ "$id": "1240",
"kind": "lro",
"name": "update",
"accessibility": "public",
@@ -16738,20 +16799,20 @@
],
"doc": "Update a Baz",
"operation": {
- "$id": "1235",
+ "$id": "1241",
"name": "update",
"resourceName": "Baz",
"doc": "Update a Baz",
"accessibility": "public",
"parameters": [
{
- "$id": "1236",
+ "$id": "1242",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1237",
+ "$id": "1243",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16761,7 +16822,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1238",
+ "$id": "1244",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -16775,18 +16836,18 @@
"readOnly": false
},
{
- "$id": "1239",
+ "$id": "1245",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1240",
+ "$id": "1246",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1241",
+ "$id": "1247",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16806,13 +16867,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.subscriptionId"
},
{
- "$id": "1242",
+ "$id": "1248",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1243",
+ "$id": "1249",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16830,13 +16891,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.resourceGroupName"
},
{
- "$id": "1244",
+ "$id": "1250",
"kind": "path",
"name": "bazName",
"serializedName": "bazName",
"doc": "The name of the Baz",
"type": {
- "$id": "1245",
+ "$id": "1251",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16854,7 +16915,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.bazName"
},
{
- "$id": "1246",
+ "$id": "1252",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -16871,7 +16932,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.contentType"
},
{
- "$id": "1247",
+ "$id": "1253",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -16887,13 +16948,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.update.accept"
},
{
- "$id": "1248",
+ "$id": "1254",
"kind": "body",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "558"
+ "$ref": "563"
},
"isApiVersion": false,
"contentTypes": [
@@ -16913,7 +16974,7 @@
200
],
"bodyType": {
- "$ref": "558"
+ "$ref": "563"
},
"headers": [],
"isErrorResponse": false,
@@ -16931,7 +16992,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "1249",
+ "$id": "1255",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16943,7 +17004,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1250",
+ "$id": "1256",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -16973,13 +17034,13 @@
},
"parameters": [
{
- "$id": "1251",
+ "$id": "1257",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1252",
+ "$id": "1258",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -16995,13 +17056,13 @@
"decorators": []
},
{
- "$id": "1253",
+ "$id": "1259",
"kind": "method",
"name": "bazName",
"serializedName": "bazName",
"doc": "The name of the Baz",
"type": {
- "$id": "1254",
+ "$id": "1260",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17017,13 +17078,13 @@
"decorators": []
},
{
- "$id": "1255",
+ "$id": "1261",
"kind": "method",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "558"
+ "$ref": "563"
},
"location": "Body",
"isApiVersion": false,
@@ -17035,7 +17096,7 @@
"decorators": []
},
{
- "$id": "1256",
+ "$id": "1262",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -17053,7 +17114,7 @@
"decorators": []
},
{
- "$id": "1257",
+ "$id": "1263",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -17072,7 +17133,7 @@
],
"response": {
"type": {
- "$ref": "558"
+ "$ref": "563"
}
},
"isOverride": false,
@@ -17086,13 +17147,13 @@
200
],
"bodyType": {
- "$ref": "558"
+ "$ref": "563"
}
}
}
},
{
- "$id": "1258",
+ "$id": "1264",
"kind": "paging",
"name": "list",
"accessibility": "public",
@@ -17101,20 +17162,20 @@
],
"doc": "List Baz resources by resource group",
"operation": {
- "$id": "1259",
+ "$id": "1265",
"name": "list",
"resourceName": "Baz",
"doc": "List Baz resources by resource group",
"accessibility": "public",
"parameters": [
{
- "$id": "1260",
+ "$id": "1266",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1261",
+ "$id": "1267",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17124,7 +17185,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1262",
+ "$id": "1268",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -17138,18 +17199,18 @@
"readOnly": false
},
{
- "$id": "1263",
+ "$id": "1269",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1264",
+ "$id": "1270",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1265",
+ "$id": "1271",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17169,13 +17230,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.list.subscriptionId"
},
{
- "$id": "1266",
+ "$id": "1272",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1267",
+ "$id": "1273",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17193,7 +17254,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.list.resourceGroupName"
},
{
- "$id": "1268",
+ "$id": "1274",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -17215,7 +17276,7 @@
200
],
"bodyType": {
- "$ref": "573"
+ "$ref": "578"
},
"headers": [],
"isErrorResponse": false,
@@ -17240,13 +17301,13 @@
},
"parameters": [
{
- "$id": "1269",
+ "$id": "1275",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1270",
+ "$id": "1276",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17262,7 +17323,7 @@
"decorators": []
},
{
- "$id": "1271",
+ "$id": "1277",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -17281,7 +17342,7 @@
],
"response": {
"type": {
- "$ref": "575"
+ "$ref": "580"
},
"resultSegments": [
"value"
@@ -17304,7 +17365,7 @@
}
},
{
- "$id": "1272",
+ "$id": "1278",
"kind": "paging",
"name": "listBySubscription",
"accessibility": "public",
@@ -17313,20 +17374,20 @@
],
"doc": "List Baz resources by subscription ID",
"operation": {
- "$id": "1273",
+ "$id": "1279",
"name": "listBySubscription",
"resourceName": "Baz",
"doc": "List Baz resources by subscription ID",
"accessibility": "public",
"parameters": [
{
- "$id": "1274",
+ "$id": "1280",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1275",
+ "$id": "1281",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17336,7 +17397,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1276",
+ "$id": "1282",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -17350,18 +17411,18 @@
"readOnly": false
},
{
- "$id": "1277",
+ "$id": "1283",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1278",
+ "$id": "1284",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1279",
+ "$id": "1285",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17381,7 +17442,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bazs.listBySubscription.subscriptionId"
},
{
- "$id": "1280",
+ "$id": "1286",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -17403,7 +17464,7 @@
200
],
"bodyType": {
- "$ref": "573"
+ "$ref": "578"
},
"headers": [],
"isErrorResponse": false,
@@ -17428,7 +17489,7 @@
},
"parameters": [
{
- "$id": "1281",
+ "$id": "1287",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -17447,7 +17508,7 @@
],
"response": {
"type": {
- "$ref": "575"
+ "$ref": "580"
},
"resultSegments": [
"value"
@@ -17472,13 +17533,13 @@
],
"parameters": [
{
- "$id": "1282",
+ "$id": "1288",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1283",
+ "$id": "1289",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -17489,7 +17550,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1284",
+ "$id": "1290",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -17513,17 +17574,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1285",
+ "$id": "1291",
"kind": "client",
"name": "Zoos",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1286",
+ "$id": "1292",
"kind": "lro",
"name": "createOrUpdate",
"accessibility": "public",
@@ -17532,20 +17593,20 @@
],
"doc": "Create a Zoo",
"operation": {
- "$id": "1287",
+ "$id": "1293",
"name": "createOrUpdate",
"resourceName": "Zoo",
"doc": "Create a Zoo",
"accessibility": "public",
"parameters": [
{
- "$id": "1288",
+ "$id": "1294",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1289",
+ "$id": "1295",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17555,7 +17616,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1290",
+ "$id": "1296",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -17569,18 +17630,18 @@
"readOnly": false
},
{
- "$id": "1291",
+ "$id": "1297",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1292",
+ "$id": "1298",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1293",
+ "$id": "1299",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17600,13 +17661,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.subscriptionId"
},
{
- "$id": "1294",
+ "$id": "1300",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1295",
+ "$id": "1301",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17624,13 +17685,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.resourceGroupName"
},
{
- "$id": "1296",
+ "$id": "1302",
"kind": "path",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1297",
+ "$id": "1303",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17648,7 +17709,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.zooName"
},
{
- "$id": "1298",
+ "$id": "1304",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -17665,7 +17726,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.contentType"
},
{
- "$id": "1299",
+ "$id": "1305",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -17681,13 +17742,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.createOrUpdate.accept"
},
{
- "$id": "1300",
+ "$id": "1306",
"kind": "body",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "579"
+ "$ref": "584"
},
"isApiVersion": false,
"contentTypes": [
@@ -17707,7 +17768,7 @@
200
],
"bodyType": {
- "$ref": "579"
+ "$ref": "584"
},
"headers": [],
"isErrorResponse": false,
@@ -17720,7 +17781,7 @@
201
],
"bodyType": {
- "$ref": "579"
+ "$ref": "584"
},
"headers": [
{
@@ -17728,7 +17789,7 @@
"nameInResponse": "Azure-AsyncOperation",
"doc": "A link to the status monitor",
"type": {
- "$id": "1301",
+ "$id": "1307",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17740,7 +17801,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1302",
+ "$id": "1308",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -17773,13 +17834,13 @@
},
"parameters": [
{
- "$id": "1303",
+ "$id": "1309",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1304",
+ "$id": "1310",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17795,13 +17856,13 @@
"decorators": []
},
{
- "$id": "1305",
+ "$id": "1311",
"kind": "method",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1306",
+ "$id": "1312",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17817,13 +17878,13 @@
"decorators": []
},
{
- "$id": "1307",
+ "$id": "1313",
"kind": "method",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "579"
+ "$ref": "584"
},
"location": "Body",
"isApiVersion": false,
@@ -17835,7 +17896,7 @@
"decorators": []
},
{
- "$id": "1308",
+ "$id": "1314",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -17853,7 +17914,7 @@
"decorators": []
},
{
- "$id": "1309",
+ "$id": "1315",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -17872,7 +17933,7 @@
],
"response": {
"type": {
- "$ref": "579"
+ "$ref": "584"
}
},
"isOverride": false,
@@ -17886,13 +17947,13 @@
200
],
"bodyType": {
- "$ref": "579"
+ "$ref": "584"
}
}
}
},
{
- "$id": "1310",
+ "$id": "1316",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -17901,20 +17962,20 @@
],
"doc": "Get a Zoo",
"operation": {
- "$id": "1311",
+ "$id": "1317",
"name": "get",
"resourceName": "Zoo",
"doc": "Get a Zoo",
"accessibility": "public",
"parameters": [
{
- "$id": "1312",
+ "$id": "1318",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1313",
+ "$id": "1319",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17924,7 +17985,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1314",
+ "$id": "1320",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -17938,18 +17999,18 @@
"readOnly": false
},
{
- "$id": "1315",
+ "$id": "1321",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1316",
+ "$id": "1322",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1317",
+ "$id": "1323",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17969,13 +18030,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.subscriptionId"
},
{
- "$id": "1318",
+ "$id": "1324",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1319",
+ "$id": "1325",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -17993,13 +18054,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.resourceGroupName"
},
{
- "$id": "1320",
+ "$id": "1326",
"kind": "path",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1321",
+ "$id": "1327",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18017,7 +18078,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get.zooName"
},
{
- "$id": "1322",
+ "$id": "1328",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -18039,7 +18100,7 @@
200
],
"bodyType": {
- "$ref": "579"
+ "$ref": "584"
},
"headers": [],
"isErrorResponse": false,
@@ -18064,13 +18125,13 @@
},
"parameters": [
{
- "$id": "1323",
+ "$id": "1329",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1324",
+ "$id": "1330",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18086,13 +18147,13 @@
"decorators": []
},
{
- "$id": "1325",
+ "$id": "1331",
"kind": "method",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1326",
+ "$id": "1332",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18108,7 +18169,7 @@
"decorators": []
},
{
- "$id": "1327",
+ "$id": "1333",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -18127,7 +18188,7 @@
],
"response": {
"type": {
- "$ref": "579"
+ "$ref": "584"
}
},
"isOverride": false,
@@ -18136,7 +18197,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.get"
},
{
- "$id": "1328",
+ "$id": "1334",
"kind": "lro",
"name": "delete",
"accessibility": "public",
@@ -18145,20 +18206,20 @@
],
"doc": "Delete a Zoo",
"operation": {
- "$id": "1329",
+ "$id": "1335",
"name": "delete",
"resourceName": "Zoo",
"doc": "Delete a Zoo",
"accessibility": "public",
"parameters": [
{
- "$id": "1330",
+ "$id": "1336",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1331",
+ "$id": "1337",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18168,7 +18229,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1332",
+ "$id": "1338",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -18182,18 +18243,18 @@
"readOnly": false
},
{
- "$id": "1333",
+ "$id": "1339",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1334",
+ "$id": "1340",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1335",
+ "$id": "1341",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18213,13 +18274,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.delete.subscriptionId"
},
{
- "$id": "1336",
+ "$id": "1342",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1337",
+ "$id": "1343",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18237,13 +18298,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.delete.resourceGroupName"
},
{
- "$id": "1338",
+ "$id": "1344",
"kind": "path",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1339",
+ "$id": "1345",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18272,7 +18333,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "1340",
+ "$id": "1346",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18284,7 +18345,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1341",
+ "$id": "1347",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -18318,13 +18379,13 @@
},
"parameters": [
{
- "$id": "1342",
+ "$id": "1348",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1343",
+ "$id": "1349",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18340,13 +18401,13 @@
"decorators": []
},
{
- "$id": "1344",
+ "$id": "1350",
"kind": "method",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1345",
+ "$id": "1351",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18377,7 +18438,7 @@
}
},
{
- "$id": "1346",
+ "$id": "1352",
"kind": "lro",
"name": "update",
"accessibility": "public",
@@ -18386,20 +18447,20 @@
],
"doc": "Update a Zoo",
"operation": {
- "$id": "1347",
+ "$id": "1353",
"name": "update",
"resourceName": "Zoo",
"doc": "Update a Zoo",
"accessibility": "public",
"parameters": [
{
- "$id": "1348",
+ "$id": "1354",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1349",
+ "$id": "1355",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18409,7 +18470,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1350",
+ "$id": "1356",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -18423,18 +18484,18 @@
"readOnly": false
},
{
- "$id": "1351",
+ "$id": "1357",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1352",
+ "$id": "1358",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1353",
+ "$id": "1359",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18454,13 +18515,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.subscriptionId"
},
{
- "$id": "1354",
+ "$id": "1360",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1355",
+ "$id": "1361",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18478,13 +18539,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.resourceGroupName"
},
{
- "$id": "1356",
+ "$id": "1362",
"kind": "path",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1357",
+ "$id": "1363",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18502,7 +18563,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.zooName"
},
{
- "$id": "1358",
+ "$id": "1364",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -18519,7 +18580,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.contentType"
},
{
- "$id": "1359",
+ "$id": "1365",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -18535,13 +18596,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.update.accept"
},
{
- "$id": "1360",
+ "$id": "1366",
"kind": "body",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "595"
+ "$ref": "600"
},
"isApiVersion": false,
"contentTypes": [
@@ -18561,7 +18622,7 @@
200
],
"bodyType": {
- "$ref": "579"
+ "$ref": "584"
},
"headers": [],
"isErrorResponse": false,
@@ -18579,7 +18640,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "1361",
+ "$id": "1367",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18591,7 +18652,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1362",
+ "$id": "1368",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -18621,13 +18682,13 @@
},
"parameters": [
{
- "$id": "1363",
+ "$id": "1369",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1364",
+ "$id": "1370",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18643,13 +18704,13 @@
"decorators": []
},
{
- "$id": "1365",
+ "$id": "1371",
"kind": "method",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1366",
+ "$id": "1372",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18665,13 +18726,13 @@
"decorators": []
},
{
- "$id": "1367",
+ "$id": "1373",
"kind": "method",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "595"
+ "$ref": "600"
},
"location": "Body",
"isApiVersion": false,
@@ -18683,7 +18744,7 @@
"decorators": []
},
{
- "$id": "1368",
+ "$id": "1374",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -18701,7 +18762,7 @@
"decorators": []
},
{
- "$id": "1369",
+ "$id": "1375",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -18720,7 +18781,7 @@
],
"response": {
"type": {
- "$ref": "579"
+ "$ref": "584"
}
},
"isOverride": false,
@@ -18734,13 +18795,13 @@
200
],
"bodyType": {
- "$ref": "579"
+ "$ref": "584"
}
}
}
},
{
- "$id": "1370",
+ "$id": "1376",
"kind": "paging",
"name": "list",
"accessibility": "public",
@@ -18749,20 +18810,20 @@
],
"doc": "List Zoo resources by resource group",
"operation": {
- "$id": "1371",
+ "$id": "1377",
"name": "list",
"resourceName": "Zoo",
"doc": "List Zoo resources by resource group",
"accessibility": "public",
"parameters": [
{
- "$id": "1372",
+ "$id": "1378",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1373",
+ "$id": "1379",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18772,7 +18833,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1374",
+ "$id": "1380",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -18786,18 +18847,18 @@
"readOnly": false
},
{
- "$id": "1375",
+ "$id": "1381",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1376",
+ "$id": "1382",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1377",
+ "$id": "1383",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18817,13 +18878,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.list.subscriptionId"
},
{
- "$id": "1378",
+ "$id": "1384",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1379",
+ "$id": "1385",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18841,7 +18902,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.list.resourceGroupName"
},
{
- "$id": "1380",
+ "$id": "1386",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -18863,7 +18924,7 @@
200
],
"bodyType": {
- "$ref": "601"
+ "$ref": "606"
},
"headers": [],
"isErrorResponse": false,
@@ -18888,13 +18949,13 @@
},
"parameters": [
{
- "$id": "1381",
+ "$id": "1387",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1382",
+ "$id": "1388",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18910,7 +18971,7 @@
"decorators": []
},
{
- "$id": "1383",
+ "$id": "1389",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -18929,7 +18990,7 @@
],
"response": {
"type": {
- "$ref": "603"
+ "$ref": "608"
},
"resultSegments": [
"value"
@@ -18952,7 +19013,7 @@
}
},
{
- "$id": "1384",
+ "$id": "1390",
"kind": "paging",
"name": "listBySubscription",
"accessibility": "public",
@@ -18961,20 +19022,20 @@
],
"doc": "List Zoo resources by subscription ID",
"operation": {
- "$id": "1385",
+ "$id": "1391",
"name": "listBySubscription",
"resourceName": "Zoo",
"doc": "List Zoo resources by subscription ID",
"accessibility": "public",
"parameters": [
{
- "$id": "1386",
+ "$id": "1392",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1387",
+ "$id": "1393",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -18984,7 +19045,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1388",
+ "$id": "1394",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -18998,18 +19059,18 @@
"readOnly": false
},
{
- "$id": "1389",
+ "$id": "1395",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1390",
+ "$id": "1396",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1391",
+ "$id": "1397",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19029,7 +19090,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.listBySubscription.subscriptionId"
},
{
- "$id": "1392",
+ "$id": "1398",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -19051,7 +19112,7 @@
200
],
"bodyType": {
- "$ref": "601"
+ "$ref": "606"
},
"headers": [],
"isErrorResponse": false,
@@ -19076,7 +19137,7 @@
},
"parameters": [
{
- "$id": "1393",
+ "$id": "1399",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -19095,7 +19156,7 @@
],
"response": {
"type": {
- "$ref": "603"
+ "$ref": "608"
},
"resultSegments": [
"value"
@@ -19118,7 +19179,7 @@
}
},
{
- "$id": "1394",
+ "$id": "1400",
"kind": "basic",
"name": "zooAddressList",
"accessibility": "public",
@@ -19127,20 +19188,20 @@
],
"doc": "A synchronous resource action.",
"operation": {
- "$id": "1395",
+ "$id": "1401",
"name": "zooAddressList",
"resourceName": "Zoos",
"doc": "A synchronous resource action.",
"accessibility": "public",
"parameters": [
{
- "$id": "1396",
+ "$id": "1402",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1397",
+ "$id": "1403",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19150,7 +19211,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1398",
+ "$id": "1404",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -19164,18 +19225,18 @@
"readOnly": false
},
{
- "$id": "1399",
+ "$id": "1405",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1400",
+ "$id": "1406",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1401",
+ "$id": "1407",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19195,13 +19256,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.subscriptionId"
},
{
- "$id": "1402",
+ "$id": "1408",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1403",
+ "$id": "1409",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19219,13 +19280,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.resourceGroupName"
},
{
- "$id": "1404",
+ "$id": "1410",
"kind": "path",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1405",
+ "$id": "1411",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19243,12 +19304,12 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.zooAddressList.zooName"
},
{
- "$id": "1406",
+ "$id": "1412",
"kind": "query",
"name": "$maxpagesize",
"serializedName": "$maxpagesize",
"type": {
- "$id": "1407",
+ "$id": "1413",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -19263,7 +19324,7 @@
"readOnly": false
},
{
- "$id": "1408",
+ "$id": "1414",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -19285,7 +19346,7 @@
200
],
"bodyType": {
- "$ref": "607"
+ "$ref": "612"
},
"headers": [],
"isErrorResponse": false,
@@ -19310,13 +19371,13 @@
},
"parameters": [
{
- "$id": "1409",
+ "$id": "1415",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1410",
+ "$id": "1416",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19332,13 +19393,13 @@
"decorators": []
},
{
- "$id": "1411",
+ "$id": "1417",
"kind": "method",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1412",
+ "$id": "1418",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19354,12 +19415,12 @@
"decorators": []
},
{
- "$id": "1413",
+ "$id": "1419",
"kind": "method",
"name": "$maxpagesize",
"serializedName": "$maxpagesize",
"type": {
- "$id": "1414",
+ "$id": "1420",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -19375,7 +19436,7 @@
"decorators": []
},
{
- "$id": "1415",
+ "$id": "1421",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -19394,7 +19455,7 @@
],
"response": {
"type": {
- "$ref": "607"
+ "$ref": "612"
}
},
"isOverride": false,
@@ -19405,13 +19466,13 @@
],
"parameters": [
{
- "$id": "1416",
+ "$id": "1422",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1417",
+ "$id": "1423",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -19422,7 +19483,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1418",
+ "$id": "1424",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -19446,17 +19507,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1419",
+ "$id": "1425",
"kind": "client",
"name": "EndpointResources",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1420",
+ "$id": "1426",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -19465,20 +19526,20 @@
],
"doc": "Gets the endpoint to the resource.",
"operation": {
- "$id": "1421",
+ "$id": "1427",
"name": "get",
"resourceName": "EndpointResource",
"doc": "Gets the endpoint to the resource.",
"accessibility": "public",
"parameters": [
{
- "$id": "1422",
+ "$id": "1428",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1423",
+ "$id": "1429",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19488,7 +19549,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1424",
+ "$id": "1430",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -19502,13 +19563,13 @@
"readOnly": false
},
{
- "$id": "1425",
+ "$id": "1431",
"kind": "path",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1426",
+ "$id": "1432",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19526,13 +19587,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get.resourceUri"
},
{
- "$id": "1427",
+ "$id": "1433",
"kind": "path",
"name": "endpointName",
"serializedName": "endpointName",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "1428",
+ "$id": "1434",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19550,7 +19611,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get.endpointName"
},
{
- "$id": "1429",
+ "$id": "1435",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -19572,7 +19633,7 @@
200
],
"bodyType": {
- "$ref": "614"
+ "$ref": "619"
},
"headers": [],
"isErrorResponse": false,
@@ -19597,13 +19658,13 @@
},
"parameters": [
{
- "$id": "1430",
+ "$id": "1436",
"kind": "method",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1431",
+ "$id": "1437",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19619,13 +19680,13 @@
"decorators": []
},
{
- "$id": "1432",
+ "$id": "1438",
"kind": "method",
"name": "endpointName",
"serializedName": "endpointName",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "1433",
+ "$id": "1439",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19641,7 +19702,7 @@
"decorators": []
},
{
- "$id": "1434",
+ "$id": "1440",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -19660,7 +19721,7 @@
],
"response": {
"type": {
- "$ref": "614"
+ "$ref": "619"
}
},
"isOverride": false,
@@ -19669,7 +19730,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.get"
},
{
- "$id": "1435",
+ "$id": "1441",
"kind": "basic",
"name": "createOrUpdate",
"accessibility": "public",
@@ -19678,20 +19739,20 @@
],
"doc": "Create or update the endpoint to the target resource.",
"operation": {
- "$id": "1436",
+ "$id": "1442",
"name": "createOrUpdate",
"resourceName": "EndpointResource",
"doc": "Create or update the endpoint to the target resource.",
"accessibility": "public",
"parameters": [
{
- "$id": "1437",
+ "$id": "1443",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1438",
+ "$id": "1444",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19701,7 +19762,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1439",
+ "$id": "1445",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -19715,13 +19776,13 @@
"readOnly": false
},
{
- "$id": "1440",
+ "$id": "1446",
"kind": "path",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1441",
+ "$id": "1447",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19739,13 +19800,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.resourceUri"
},
{
- "$id": "1442",
+ "$id": "1448",
"kind": "path",
"name": "endpointName",
"serializedName": "endpointName",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "1443",
+ "$id": "1449",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19763,7 +19824,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.endpointName"
},
{
- "$id": "1444",
+ "$id": "1450",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -19780,7 +19841,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.contentType"
},
{
- "$id": "1445",
+ "$id": "1451",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -19796,13 +19857,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate.accept"
},
{
- "$id": "1446",
+ "$id": "1452",
"kind": "body",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "614"
+ "$ref": "619"
},
"isApiVersion": false,
"contentTypes": [
@@ -19822,7 +19883,7 @@
200
],
"bodyType": {
- "$ref": "614"
+ "$ref": "619"
},
"headers": [],
"isErrorResponse": false,
@@ -19850,13 +19911,13 @@
},
"parameters": [
{
- "$id": "1447",
+ "$id": "1453",
"kind": "method",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1448",
+ "$id": "1454",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19872,13 +19933,13 @@
"decorators": []
},
{
- "$id": "1449",
+ "$id": "1455",
"kind": "method",
"name": "endpointName",
"serializedName": "endpointName",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "1450",
+ "$id": "1456",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19894,13 +19955,13 @@
"decorators": []
},
{
- "$id": "1451",
+ "$id": "1457",
"kind": "method",
"name": "resource",
"serializedName": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "614"
+ "$ref": "619"
},
"location": "Body",
"isApiVersion": false,
@@ -19912,7 +19973,7 @@
"decorators": []
},
{
- "$id": "1452",
+ "$id": "1458",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -19930,7 +19991,7 @@
"decorators": []
},
{
- "$id": "1453",
+ "$id": "1459",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -19949,7 +20010,7 @@
],
"response": {
"type": {
- "$ref": "614"
+ "$ref": "619"
}
},
"isOverride": false,
@@ -19958,7 +20019,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.createOrUpdate"
},
{
- "$id": "1454",
+ "$id": "1460",
"kind": "basic",
"name": "update",
"accessibility": "public",
@@ -19967,20 +20028,20 @@
],
"doc": "Update the endpoint to the target resource.",
"operation": {
- "$id": "1455",
+ "$id": "1461",
"name": "update",
"resourceName": "EndpointResource",
"doc": "Update the endpoint to the target resource.",
"accessibility": "public",
"parameters": [
{
- "$id": "1456",
+ "$id": "1462",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1457",
+ "$id": "1463",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -19990,7 +20051,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1458",
+ "$id": "1464",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -20004,13 +20065,13 @@
"readOnly": false
},
{
- "$id": "1459",
+ "$id": "1465",
"kind": "path",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1460",
+ "$id": "1466",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20028,13 +20089,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.resourceUri"
},
{
- "$id": "1461",
+ "$id": "1467",
"kind": "path",
"name": "endpointName",
"serializedName": "endpointName",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "1462",
+ "$id": "1468",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20052,7 +20113,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.endpointName"
},
{
- "$id": "1463",
+ "$id": "1469",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
@@ -20069,7 +20130,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.contentType"
},
{
- "$id": "1464",
+ "$id": "1470",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -20085,13 +20146,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update.accept"
},
{
- "$id": "1465",
+ "$id": "1471",
"kind": "body",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "614"
+ "$ref": "619"
},
"isApiVersion": false,
"contentTypes": [
@@ -20111,7 +20172,7 @@
200
],
"bodyType": {
- "$ref": "614"
+ "$ref": "619"
},
"headers": [],
"isErrorResponse": false,
@@ -20139,13 +20200,13 @@
},
"parameters": [
{
- "$id": "1466",
+ "$id": "1472",
"kind": "method",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1467",
+ "$id": "1473",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20161,13 +20222,13 @@
"decorators": []
},
{
- "$id": "1468",
+ "$id": "1474",
"kind": "method",
"name": "endpointName",
"serializedName": "endpointName",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "1469",
+ "$id": "1475",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20183,13 +20244,13 @@
"decorators": []
},
{
- "$id": "1470",
+ "$id": "1476",
"kind": "method",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "614"
+ "$ref": "619"
},
"location": "Body",
"isApiVersion": false,
@@ -20201,7 +20262,7 @@
"decorators": []
},
{
- "$id": "1471",
+ "$id": "1477",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
@@ -20219,7 +20280,7 @@
"decorators": []
},
{
- "$id": "1472",
+ "$id": "1478",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -20238,7 +20299,7 @@
],
"response": {
"type": {
- "$ref": "614"
+ "$ref": "619"
}
},
"isOverride": false,
@@ -20247,7 +20308,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.update"
},
{
- "$id": "1473",
+ "$id": "1479",
"kind": "basic",
"name": "delete",
"accessibility": "public",
@@ -20256,20 +20317,20 @@
],
"doc": "Deletes the endpoint access to the target resource.",
"operation": {
- "$id": "1474",
+ "$id": "1480",
"name": "delete",
"resourceName": "EndpointResource",
"doc": "Deletes the endpoint access to the target resource.",
"accessibility": "public",
"parameters": [
{
- "$id": "1475",
+ "$id": "1481",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1476",
+ "$id": "1482",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20279,7 +20340,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1477",
+ "$id": "1483",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -20293,13 +20354,13 @@
"readOnly": false
},
{
- "$id": "1478",
+ "$id": "1484",
"kind": "path",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1479",
+ "$id": "1485",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20317,13 +20378,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.EndpointResources.delete.resourceUri"
},
{
- "$id": "1480",
+ "$id": "1486",
"kind": "path",
"name": "endpointName",
"serializedName": "endpointName",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "1481",
+ "$id": "1487",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20373,13 +20434,13 @@
},
"parameters": [
{
- "$id": "1482",
+ "$id": "1488",
"kind": "method",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1483",
+ "$id": "1489",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20395,13 +20456,13 @@
"decorators": []
},
{
- "$id": "1484",
+ "$id": "1490",
"kind": "method",
"name": "endpointName",
"serializedName": "endpointName",
"doc": "The name of the EndpointResource",
"type": {
- "$id": "1485",
+ "$id": "1491",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20426,13 +20487,13 @@
],
"parameters": [
{
- "$id": "1486",
+ "$id": "1492",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1487",
+ "$id": "1493",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -20443,7 +20504,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1488",
+ "$id": "1494",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -20467,17 +20528,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1489",
+ "$id": "1495",
"kind": "client",
"name": "SolutionResources",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1490",
+ "$id": "1496",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -20486,20 +20547,20 @@
],
"doc": "Get a SelfHelpResource",
"operation": {
- "$id": "1491",
+ "$id": "1497",
"name": "get",
"resourceName": "SelfHelpResource",
"doc": "Get a SelfHelpResource",
"accessibility": "public",
"parameters": [
{
- "$id": "1492",
+ "$id": "1498",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1493",
+ "$id": "1499",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20509,7 +20570,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1494",
+ "$id": "1500",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -20523,13 +20584,13 @@
"readOnly": false
},
{
- "$id": "1495",
+ "$id": "1501",
"kind": "path",
"name": "scope",
"serializedName": "scope",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1496",
+ "$id": "1502",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20547,13 +20608,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.SolutionResources.get.scope"
},
{
- "$id": "1497",
+ "$id": "1503",
"kind": "path",
"name": "selfHelpName",
"serializedName": "selfHelpName",
"doc": "The name of the SelfHelpResource",
"type": {
- "$id": "1498",
+ "$id": "1504",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20571,7 +20632,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.SolutionResources.get.selfHelpName"
},
{
- "$id": "1499",
+ "$id": "1505",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -20593,7 +20654,7 @@
200
],
"bodyType": {
- "$ref": "626"
+ "$ref": "631"
},
"headers": [],
"isErrorResponse": false,
@@ -20618,13 +20679,13 @@
},
"parameters": [
{
- "$id": "1500",
+ "$id": "1506",
"kind": "method",
"name": "scope",
"serializedName": "scope",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1501",
+ "$id": "1507",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20640,13 +20701,13 @@
"decorators": []
},
{
- "$id": "1502",
+ "$id": "1508",
"kind": "method",
"name": "selfHelpName",
"serializedName": "selfHelpName",
"doc": "The name of the SelfHelpResource",
"type": {
- "$id": "1503",
+ "$id": "1509",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20662,7 +20723,7 @@
"decorators": []
},
{
- "$id": "1504",
+ "$id": "1510",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -20681,7 +20742,7 @@
],
"response": {
"type": {
- "$ref": "626"
+ "$ref": "631"
}
},
"isOverride": false,
@@ -20692,13 +20753,13 @@
],
"parameters": [
{
- "$id": "1505",
+ "$id": "1511",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1506",
+ "$id": "1512",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -20709,7 +20770,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1507",
+ "$id": "1513",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -20733,17 +20794,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1508",
+ "$id": "1514",
"kind": "client",
"name": "PlaywrightQuotas",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1509",
+ "$id": "1515",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -20752,20 +20813,20 @@
],
"doc": "Get subscription-level location-based Playwright quota resource by name.",
"operation": {
- "$id": "1510",
+ "$id": "1516",
"name": "get",
"resourceName": "PlaywrightQuota",
"doc": "Get subscription-level location-based Playwright quota resource by name.",
"accessibility": "public",
"parameters": [
{
- "$id": "1511",
+ "$id": "1517",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1512",
+ "$id": "1518",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20775,7 +20836,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1513",
+ "$id": "1519",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -20789,18 +20850,18 @@
"readOnly": false
},
{
- "$id": "1514",
+ "$id": "1520",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1515",
+ "$id": "1521",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1516",
+ "$id": "1522",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20820,18 +20881,18 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.subscriptionId"
},
{
- "$id": "1517",
+ "$id": "1523",
"kind": "path",
"name": "location",
"serializedName": "location",
"doc": "The name of the Azure region.",
"type": {
- "$id": "1518",
+ "$id": "1524",
"kind": "string",
"name": "azureLocation",
"crossLanguageDefinitionId": "Azure.Core.azureLocation",
"baseType": {
- "$id": "1519",
+ "$id": "1525",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20851,7 +20912,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.location"
},
{
- "$id": "1520",
+ "$id": "1526",
"kind": "path",
"name": "playwrightQuotaName",
"serializedName": "playwrightQuotaName",
@@ -20871,7 +20932,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get.playwrightQuotaName"
},
{
- "$id": "1521",
+ "$id": "1527",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -20893,7 +20954,7 @@
200
],
"bodyType": {
- "$ref": "634"
+ "$ref": "639"
},
"headers": [],
"isErrorResponse": false,
@@ -20918,18 +20979,18 @@
},
"parameters": [
{
- "$id": "1522",
+ "$id": "1528",
"kind": "method",
"name": "location",
"serializedName": "location",
"doc": "The name of the Azure region.",
"type": {
- "$id": "1523",
+ "$id": "1529",
"kind": "string",
"name": "azureLocation",
"crossLanguageDefinitionId": "Azure.Core.azureLocation",
"baseType": {
- "$id": "1524",
+ "$id": "1530",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -20947,7 +21008,7 @@
"decorators": []
},
{
- "$id": "1525",
+ "$id": "1531",
"kind": "method",
"name": "playwrightQuotaName",
"serializedName": "playwrightQuotaName",
@@ -20965,7 +21026,7 @@
"decorators": []
},
{
- "$id": "1526",
+ "$id": "1532",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -20984,7 +21045,7 @@
],
"response": {
"type": {
- "$ref": "634"
+ "$ref": "639"
}
},
"isOverride": false,
@@ -20993,7 +21054,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.get"
},
{
- "$id": "1527",
+ "$id": "1533",
"kind": "paging",
"name": "listBySubscription",
"accessibility": "public",
@@ -21002,20 +21063,20 @@
],
"doc": "List Playwright quota resources for a given subscription Id.",
"operation": {
- "$id": "1528",
+ "$id": "1534",
"name": "listBySubscription",
"resourceName": "PlaywrightQuota",
"doc": "List Playwright quota resources for a given subscription Id.",
"accessibility": "public",
"parameters": [
{
- "$id": "1529",
+ "$id": "1535",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1530",
+ "$id": "1536",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21025,7 +21086,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1531",
+ "$id": "1537",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -21039,18 +21100,18 @@
"readOnly": false
},
{
- "$id": "1532",
+ "$id": "1538",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1533",
+ "$id": "1539",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1534",
+ "$id": "1540",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21070,18 +21131,18 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription.subscriptionId"
},
{
- "$id": "1535",
+ "$id": "1541",
"kind": "path",
"name": "location",
"serializedName": "location",
"doc": "The name of the Azure region.",
"type": {
- "$id": "1536",
+ "$id": "1542",
"kind": "string",
"name": "azureLocation",
"crossLanguageDefinitionId": "Azure.Core.azureLocation",
"baseType": {
- "$id": "1537",
+ "$id": "1543",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21101,7 +21162,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.listBySubscription.location"
},
{
- "$id": "1538",
+ "$id": "1544",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -21123,7 +21184,7 @@
200
],
"bodyType": {
- "$ref": "644"
+ "$ref": "650"
},
"headers": [],
"isErrorResponse": false,
@@ -21148,18 +21209,18 @@
},
"parameters": [
{
- "$id": "1539",
+ "$id": "1545",
"kind": "method",
"name": "location",
"serializedName": "location",
"doc": "The name of the Azure region.",
"type": {
- "$id": "1540",
+ "$id": "1546",
"kind": "string",
"name": "azureLocation",
"crossLanguageDefinitionId": "Azure.Core.azureLocation",
"baseType": {
- "$id": "1541",
+ "$id": "1547",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21177,7 +21238,7 @@
"decorators": []
},
{
- "$id": "1542",
+ "$id": "1548",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -21196,7 +21257,7 @@
],
"response": {
"type": {
- "$ref": "646"
+ "$ref": "652"
},
"resultSegments": [
"value"
@@ -21217,84 +21278,31 @@
"responseLocation": "Body"
}
}
- }
- ],
- "parameters": [
- {
- "$id": "1543",
- "kind": "endpoint",
- "name": "endpoint",
- "serializedName": "endpoint",
- "doc": "Service host",
- "type": {
- "$id": "1544",
- "kind": "url",
- "name": "endpoint",
- "crossLanguageDefinitionId": "TypeSpec.url"
- },
- "isApiVersion": false,
- "optional": false,
- "scope": "Client",
- "isEndpoint": true,
- "defaultValue": {
- "type": {
- "$id": "1545",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string"
- },
- "value": "https://management.azure.com"
- },
- "serverUrlTemplate": "{endpoint}",
- "skipUrlEncoding": false,
- "readOnly": false,
- "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint"
- }
- ],
- "decorators": [
- {
- "name": "Azure.ResourceManager.@armResourceOperations",
- "arguments": {}
- }
- ],
- "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas",
- "apiVersions": [
- "2024-05-01"
- ],
- "parent": {
- "$ref": "701"
- }
- },
- {
- "$id": "1546",
- "kind": "client",
- "name": "JobResources",
- "namespace": "Azure.Generator.MgmtTypeSpec.Tests",
- "methods": [
+ },
{
- "$id": "1547",
+ "$id": "1549",
"kind": "basic",
- "name": "get",
+ "name": "createOrUpdate",
"accessibility": "public",
"apiVersions": [
"2024-05-01"
],
- "doc": "Gets information about the specified job.",
+ "doc": "Create a PlaywrightQuota",
"operation": {
- "$id": "1548",
- "name": "get",
- "resourceName": "JobResource",
- "doc": "Gets information about the specified job.",
+ "$id": "1550",
+ "name": "createOrUpdate",
+ "resourceName": "PlaywrightQuota",
+ "doc": "Create a PlaywrightQuota",
"accessibility": "public",
"parameters": [
{
- "$id": "1549",
+ "$id": "1551",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1550",
+ "$id": "1552",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21304,7 +21312,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1551",
+ "$id": "1553",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -21314,22 +21322,22 @@
"optional": false,
"scope": "Client",
"decorators": [],
- "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.apiVersion",
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.apiVersion",
"readOnly": false
},
{
- "$id": "1552",
+ "$id": "1554",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1553",
+ "$id": "1555",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1554",
+ "$id": "1556",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21346,19 +21354,26 @@
"scope": "Client",
"decorators": [],
"readOnly": false,
- "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.subscriptionId"
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.subscriptionId"
},
{
- "$id": "1555",
+ "$id": "1557",
"kind": "path",
- "name": "resourceGroupName",
- "serializedName": "resourceGroupName",
- "doc": "The name of the resource group. The name is case insensitive.",
+ "name": "location",
+ "serializedName": "location",
+ "doc": "The name of the Azure region.",
"type": {
- "$id": "1556",
+ "$id": "1558",
"kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
+ "name": "azureLocation",
+ "crossLanguageDefinitionId": "Azure.Core.azureLocation",
+ "baseType": {
+ "$id": "1559",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
"decorators": []
},
"isApiVersion": false,
@@ -21370,20 +21385,16 @@
"scope": "Method",
"decorators": [],
"readOnly": false,
- "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.resourceGroupName"
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.location"
},
{
- "$id": "1557",
+ "$id": "1560",
"kind": "path",
- "name": "jobName",
- "serializedName": "jobName",
- "doc": "The name of the JobResource",
+ "name": "playwrightQuotaName",
+ "serializedName": "playwrightQuotaName",
+ "doc": "The name of the PlaywrightQuota",
"type": {
- "$id": "1558",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
+ "$ref": "46"
},
"isApiVersion": false,
"explode": false,
@@ -21394,17 +21405,406 @@
"scope": "Method",
"decorators": [],
"readOnly": false,
- "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.jobName"
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.playwrightQuotaName"
},
{
- "$id": "1559",
- "kind": "query",
- "name": "$expand",
- "serializedName": "$expand",
- "doc": "$expand is supported on details parameter for job, which provides details on the job stages.",
- "type": {
- "$id": "1560",
- "kind": "string",
+ "$id": "1561",
+ "kind": "header",
+ "name": "contentType",
+ "serializedName": "Content-Type",
+ "doc": "Body parameter's content type. Known values are application/json",
+ "type": {
+ "$ref": "192"
+ },
+ "isApiVersion": false,
+ "optional": false,
+ "isContentType": true,
+ "scope": "Constant",
+ "readOnly": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.contentType"
+ },
+ {
+ "$id": "1562",
+ "kind": "header",
+ "name": "accept",
+ "serializedName": "Accept",
+ "type": {
+ "$ref": "194"
+ },
+ "isApiVersion": false,
+ "optional": false,
+ "isContentType": false,
+ "scope": "Constant",
+ "readOnly": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.accept"
+ },
+ {
+ "$id": "1563",
+ "kind": "body",
+ "name": "resource",
+ "serializedName": "resource",
+ "doc": "Resource create parameters.",
+ "type": {
+ "$ref": "639"
+ },
+ "isApiVersion": false,
+ "contentTypes": [
+ "application/json"
+ ],
+ "defaultContentType": "application/json",
+ "optional": false,
+ "scope": "Method",
+ "decorators": [],
+ "readOnly": false,
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.resource"
+ }
+ ],
+ "responses": [
+ {
+ "statusCodes": [
+ 200
+ ],
+ "bodyType": {
+ "$ref": "639"
+ },
+ "headers": [],
+ "isErrorResponse": false,
+ "contentTypes": [
+ "application/json"
+ ]
+ },
+ {
+ "statusCodes": [
+ 201
+ ],
+ "bodyType": {
+ "$ref": "639"
+ },
+ "headers": [],
+ "isErrorResponse": false,
+ "contentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "httpMethod": "PUT",
+ "uri": "{endpoint}",
+ "path": "/subscriptions/{subscriptionId}/providers/MgmtTypeSpec/locations/{location}/playwrightQuotas/{playwrightQuotaName}",
+ "requestMediaTypes": [
+ "application/json"
+ ],
+ "bufferResponse": true,
+ "generateProtocolMethod": true,
+ "generateConvenienceMethod": true,
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate",
+ "decorators": [
+ {
+ "name": "Azure.ResourceManager.@armResourceCreateOrUpdate",
+ "arguments": {}
+ }
+ ]
+ },
+ "parameters": [
+ {
+ "$id": "1564",
+ "kind": "method",
+ "name": "location",
+ "serializedName": "location",
+ "doc": "The name of the Azure region.",
+ "type": {
+ "$id": "1565",
+ "kind": "string",
+ "name": "azureLocation",
+ "crossLanguageDefinitionId": "Azure.Core.azureLocation",
+ "baseType": {
+ "$id": "1566",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "location": "Path",
+ "isApiVersion": false,
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.location",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
+ },
+ {
+ "$id": "1567",
+ "kind": "method",
+ "name": "playwrightQuotaName",
+ "serializedName": "playwrightQuotaName",
+ "doc": "The name of the PlaywrightQuota",
+ "type": {
+ "$ref": "46"
+ },
+ "location": "Path",
+ "isApiVersion": false,
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.playwrightQuotaName",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
+ },
+ {
+ "$id": "1568",
+ "kind": "method",
+ "name": "resource",
+ "serializedName": "resource",
+ "doc": "Resource create parameters.",
+ "type": {
+ "$ref": "639"
+ },
+ "location": "Body",
+ "isApiVersion": false,
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.resource",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
+ },
+ {
+ "$id": "1569",
+ "kind": "method",
+ "name": "contentType",
+ "serializedName": "Content-Type",
+ "doc": "Body parameter's content type. Known values are application/json",
+ "type": {
+ "$ref": "192"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "optional": false,
+ "scope": "Constant",
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.contentType",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
+ },
+ {
+ "$id": "1570",
+ "kind": "method",
+ "name": "accept",
+ "serializedName": "Accept",
+ "type": {
+ "$ref": "194"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "optional": false,
+ "scope": "Constant",
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate.accept",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
+ }
+ ],
+ "response": {
+ "type": {
+ "$ref": "639"
+ }
+ },
+ "isOverride": false,
+ "generateConvenient": true,
+ "generateProtocol": true,
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas.createOrUpdate"
+ }
+ ],
+ "parameters": [
+ {
+ "$id": "1571",
+ "kind": "endpoint",
+ "name": "endpoint",
+ "serializedName": "endpoint",
+ "doc": "Service host",
+ "type": {
+ "$id": "1572",
+ "kind": "url",
+ "name": "endpoint",
+ "crossLanguageDefinitionId": "TypeSpec.url"
+ },
+ "isApiVersion": false,
+ "optional": false,
+ "scope": "Client",
+ "isEndpoint": true,
+ "defaultValue": {
+ "type": {
+ "$id": "1573",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "https://management.azure.com"
+ },
+ "serverUrlTemplate": "{endpoint}",
+ "skipUrlEncoding": false,
+ "readOnly": false,
+ "crossLanguageDefinitionId": "MgmtTypeSpec.endpoint"
+ }
+ ],
+ "decorators": [
+ {
+ "name": "Azure.ResourceManager.@armResourceOperations",
+ "arguments": {}
+ }
+ ],
+ "crossLanguageDefinitionId": "MgmtTypeSpec.PlaywrightQuotas",
+ "apiVersions": [
+ "2024-05-01"
+ ],
+ "parent": {
+ "$ref": "707"
+ }
+ },
+ {
+ "$id": "1574",
+ "kind": "client",
+ "name": "JobResources",
+ "namespace": "Azure.Generator.MgmtTypeSpec.Tests",
+ "methods": [
+ {
+ "$id": "1575",
+ "kind": "basic",
+ "name": "get",
+ "accessibility": "public",
+ "apiVersions": [
+ "2024-05-01"
+ ],
+ "doc": "Gets information about the specified job.",
+ "operation": {
+ "$id": "1576",
+ "name": "get",
+ "resourceName": "JobResource",
+ "doc": "Gets information about the specified job.",
+ "accessibility": "public",
+ "parameters": [
+ {
+ "$id": "1577",
+ "kind": "query",
+ "name": "apiVersion",
+ "serializedName": "api-version",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "1578",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "isApiVersion": true,
+ "explode": false,
+ "defaultValue": {
+ "type": {
+ "$id": "1579",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2024-05-01"
+ },
+ "optional": false,
+ "scope": "Client",
+ "decorators": [],
+ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.apiVersion",
+ "readOnly": false
+ },
+ {
+ "$id": "1580",
+ "kind": "path",
+ "name": "subscriptionId",
+ "serializedName": "subscriptionId",
+ "doc": "The ID of the target subscription. The value must be an UUID.",
+ "type": {
+ "$id": "1581",
+ "kind": "string",
+ "name": "uuid",
+ "crossLanguageDefinitionId": "Azure.Core.uuid",
+ "baseType": {
+ "$id": "1582",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "decorators": []
+ },
+ "isApiVersion": false,
+ "explode": false,
+ "style": "simple",
+ "allowReserved": false,
+ "skipUrlEncoding": false,
+ "optional": false,
+ "scope": "Client",
+ "decorators": [],
+ "readOnly": false,
+ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.subscriptionId"
+ },
+ {
+ "$id": "1583",
+ "kind": "path",
+ "name": "resourceGroupName",
+ "serializedName": "resourceGroupName",
+ "doc": "The name of the resource group. The name is case insensitive.",
+ "type": {
+ "$id": "1584",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "isApiVersion": false,
+ "explode": false,
+ "style": "simple",
+ "allowReserved": false,
+ "skipUrlEncoding": false,
+ "optional": false,
+ "scope": "Method",
+ "decorators": [],
+ "readOnly": false,
+ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.resourceGroupName"
+ },
+ {
+ "$id": "1585",
+ "kind": "path",
+ "name": "jobName",
+ "serializedName": "jobName",
+ "doc": "The name of the JobResource",
+ "type": {
+ "$id": "1586",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "isApiVersion": false,
+ "explode": false,
+ "style": "simple",
+ "allowReserved": false,
+ "skipUrlEncoding": false,
+ "optional": false,
+ "scope": "Method",
+ "decorators": [],
+ "readOnly": false,
+ "crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get.jobName"
+ },
+ {
+ "$id": "1587",
+ "kind": "query",
+ "name": "$expand",
+ "serializedName": "$expand",
+ "doc": "$expand is supported on details parameter for job, which provides details on the job stages.",
+ "type": {
+ "$id": "1588",
+ "kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
@@ -21418,12 +21818,12 @@
"readOnly": false
},
{
- "$id": "1561",
+ "$id": "1589",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "192"
+ "$ref": "196"
},
"isApiVersion": false,
"optional": false,
@@ -21440,7 +21840,7 @@
200
],
"bodyType": {
- "$ref": "650"
+ "$ref": "656"
},
"headers": [],
"isErrorResponse": false,
@@ -21465,13 +21865,13 @@
},
"parameters": [
{
- "$id": "1562",
+ "$id": "1590",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1563",
+ "$id": "1591",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21487,13 +21887,13 @@
"decorators": []
},
{
- "$id": "1564",
+ "$id": "1592",
"kind": "method",
"name": "jobName",
"serializedName": "jobName",
"doc": "The name of the JobResource",
"type": {
- "$id": "1565",
+ "$id": "1593",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21509,13 +21909,13 @@
"decorators": []
},
{
- "$id": "1566",
+ "$id": "1594",
"kind": "method",
"name": "$expand",
"serializedName": "$expand",
"doc": "$expand is supported on details parameter for job, which provides details on the job stages.",
"type": {
- "$id": "1567",
+ "$id": "1595",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21531,12 +21931,12 @@
"decorators": []
},
{
- "$id": "1568",
+ "$id": "1596",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "192"
+ "$ref": "196"
},
"location": "Header",
"isApiVersion": false,
@@ -21550,7 +21950,7 @@
],
"response": {
"type": {
- "$ref": "650"
+ "$ref": "656"
}
},
"isOverride": false,
@@ -21559,7 +21959,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.get"
},
{
- "$id": "1569",
+ "$id": "1597",
"kind": "lro",
"name": "update",
"accessibility": "public",
@@ -21568,20 +21968,20 @@
],
"doc": "Update a JobResource",
"operation": {
- "$id": "1570",
+ "$id": "1598",
"name": "update",
"resourceName": "JobResource",
"doc": "Update a JobResource",
"accessibility": "public",
"parameters": [
{
- "$id": "1571",
+ "$id": "1599",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1572",
+ "$id": "1600",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21591,7 +21991,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1573",
+ "$id": "1601",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -21605,18 +22005,18 @@
"readOnly": false
},
{
- "$id": "1574",
+ "$id": "1602",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1575",
+ "$id": "1603",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1576",
+ "$id": "1604",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21636,13 +22036,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.subscriptionId"
},
{
- "$id": "1577",
+ "$id": "1605",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1578",
+ "$id": "1606",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21660,13 +22060,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.resourceGroupName"
},
{
- "$id": "1579",
+ "$id": "1607",
"kind": "path",
"name": "jobName",
"serializedName": "jobName",
"doc": "The name of the JobResource",
"type": {
- "$id": "1580",
+ "$id": "1608",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21684,13 +22084,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.jobName"
},
{
- "$id": "1581",
+ "$id": "1609",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "194"
+ "$ref": "198"
},
"isApiVersion": false,
"optional": false,
@@ -21701,12 +22101,12 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.contentType"
},
{
- "$id": "1582",
+ "$id": "1610",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "196"
+ "$ref": "200"
},
"isApiVersion": false,
"optional": false,
@@ -21717,13 +22117,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.JobResources.update.accept"
},
{
- "$id": "1583",
+ "$id": "1611",
"kind": "body",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "659"
+ "$ref": "665"
},
"isApiVersion": false,
"contentTypes": [
@@ -21743,7 +22143,7 @@
200
],
"bodyType": {
- "$ref": "650"
+ "$ref": "656"
},
"headers": [],
"isErrorResponse": false,
@@ -21761,7 +22161,7 @@
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "1584",
+ "$id": "1612",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21773,7 +22173,7 @@
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "1585",
+ "$id": "1613",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -21803,13 +22203,13 @@
},
"parameters": [
{
- "$id": "1586",
+ "$id": "1614",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1587",
+ "$id": "1615",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21825,13 +22225,13 @@
"decorators": []
},
{
- "$id": "1588",
+ "$id": "1616",
"kind": "method",
"name": "jobName",
"serializedName": "jobName",
"doc": "The name of the JobResource",
"type": {
- "$id": "1589",
+ "$id": "1617",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -21847,13 +22247,13 @@
"decorators": []
},
{
- "$id": "1590",
+ "$id": "1618",
"kind": "method",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "659"
+ "$ref": "665"
},
"location": "Body",
"isApiVersion": false,
@@ -21865,13 +22265,13 @@
"decorators": []
},
{
- "$id": "1591",
+ "$id": "1619",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "198"
+ "$ref": "202"
},
"location": "Header",
"isApiVersion": false,
@@ -21883,12 +22283,12 @@
"decorators": []
},
{
- "$id": "1592",
+ "$id": "1620",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "200"
+ "$ref": "204"
},
"location": "Header",
"isApiVersion": false,
@@ -21902,7 +22302,7 @@
],
"response": {
"type": {
- "$ref": "650"
+ "$ref": "656"
}
},
"isOverride": false,
@@ -21916,7 +22316,7 @@
200
],
"bodyType": {
- "$ref": "650"
+ "$ref": "656"
}
}
}
@@ -21924,13 +22324,13 @@
],
"parameters": [
{
- "$id": "1593",
+ "$id": "1621",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1594",
+ "$id": "1622",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -21941,7 +22341,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1595",
+ "$id": "1623",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -21965,17 +22365,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1596",
+ "$id": "1624",
"kind": "client",
"name": "HciVmInstances",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1597",
+ "$id": "1625",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -21984,20 +22384,20 @@
],
"doc": "Gets a virtual machine instance",
"operation": {
- "$id": "1598",
+ "$id": "1626",
"name": "get",
"resourceName": "HciVmInstance",
"doc": "Gets a virtual machine instance",
"accessibility": "public",
"parameters": [
{
- "$id": "1599",
+ "$id": "1627",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1600",
+ "$id": "1628",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22007,7 +22407,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1601",
+ "$id": "1629",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -22021,13 +22421,13 @@
"readOnly": false
},
{
- "$id": "1602",
+ "$id": "1630",
"kind": "path",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1603",
+ "$id": "1631",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22045,12 +22445,12 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.HciVmInstances.get.resourceUri"
},
{
- "$id": "1604",
+ "$id": "1632",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "202"
+ "$ref": "206"
},
"isApiVersion": false,
"optional": false,
@@ -22067,7 +22467,7 @@
200
],
"bodyType": {
- "$ref": "662"
+ "$ref": "668"
},
"headers": [],
"isErrorResponse": false,
@@ -22092,13 +22492,13 @@
},
"parameters": [
{
- "$id": "1605",
+ "$id": "1633",
"kind": "method",
"name": "resourceUri",
"serializedName": "resourceUri",
"doc": "The fully qualified Azure Resource manager identifier of the resource.",
"type": {
- "$id": "1606",
+ "$id": "1634",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22114,12 +22514,12 @@
"decorators": []
},
{
- "$id": "1607",
+ "$id": "1635",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "202"
+ "$ref": "206"
},
"location": "Header",
"isApiVersion": false,
@@ -22133,7 +22533,7 @@
],
"response": {
"type": {
- "$ref": "662"
+ "$ref": "668"
}
},
"isOverride": false,
@@ -22144,13 +22544,13 @@
],
"parameters": [
{
- "$id": "1608",
+ "$id": "1636",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1609",
+ "$id": "1637",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -22161,7 +22561,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1610",
+ "$id": "1638",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -22185,17 +22585,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1611",
+ "$id": "1639",
"kind": "client",
"name": "GroupQuotaSubscriptionRequestStatuses",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1612",
+ "$id": "1640",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -22204,20 +22604,20 @@
],
"doc": "Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.",
"operation": {
- "$id": "1613",
+ "$id": "1641",
"name": "get",
"resourceName": "GroupQuotaSubscriptionRequestStatus",
"doc": "Get API to check the status of a subscriptionIds request by requestId. Use the polling API - OperationsStatus URI specified in Azure-AsyncOperation header field, with retry-after duration in seconds to check the intermediate status. This API provides the finals status with the request details and status.",
"accessibility": "public",
"parameters": [
{
- "$id": "1614",
+ "$id": "1642",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1615",
+ "$id": "1643",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22227,7 +22627,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1616",
+ "$id": "1644",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -22241,13 +22641,13 @@
"readOnly": false
},
{
- "$id": "1617",
+ "$id": "1645",
"kind": "path",
"name": "managementGroupId",
"serializedName": "managementGroupId",
"doc": "The management group ID.",
"type": {
- "$id": "1618",
+ "$id": "1646",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22265,13 +22665,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get.managementGroupId"
},
{
- "$id": "1619",
+ "$id": "1647",
"kind": "path",
"name": "requestId",
"serializedName": "requestId",
"doc": "The name of the GroupQuotaSubscriptionRequestStatus",
"type": {
- "$id": "1620",
+ "$id": "1648",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22289,12 +22689,12 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.GroupQuotaSubscriptionRequestStatuses.get.requestId"
},
{
- "$id": "1621",
+ "$id": "1649",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "204"
+ "$ref": "208"
},
"isApiVersion": false,
"optional": false,
@@ -22311,7 +22711,7 @@
200
],
"bodyType": {
- "$ref": "670"
+ "$ref": "676"
},
"headers": [],
"isErrorResponse": false,
@@ -22336,13 +22736,13 @@
},
"parameters": [
{
- "$id": "1622",
+ "$id": "1650",
"kind": "method",
"name": "managementGroupId",
"serializedName": "managementGroupId",
"doc": "The management group ID.",
"type": {
- "$id": "1623",
+ "$id": "1651",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22358,13 +22758,13 @@
"decorators": []
},
{
- "$id": "1624",
+ "$id": "1652",
"kind": "method",
"name": "requestId",
"serializedName": "requestId",
"doc": "The name of the GroupQuotaSubscriptionRequestStatus",
"type": {
- "$id": "1625",
+ "$id": "1653",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22380,12 +22780,12 @@
"decorators": []
},
{
- "$id": "1626",
+ "$id": "1654",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "204"
+ "$ref": "208"
},
"location": "Header",
"isApiVersion": false,
@@ -22399,7 +22799,7 @@
],
"response": {
"type": {
- "$ref": "670"
+ "$ref": "676"
}
},
"isOverride": false,
@@ -22410,13 +22810,13 @@
],
"parameters": [
{
- "$id": "1627",
+ "$id": "1655",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1628",
+ "$id": "1656",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -22427,7 +22827,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1629",
+ "$id": "1657",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -22451,17 +22851,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1630",
+ "$id": "1658",
"kind": "client",
"name": "Bar",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1631",
+ "$id": "1659",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -22470,20 +22870,20 @@
],
"doc": "Get a Bar",
"operation": {
- "$id": "1632",
+ "$id": "1660",
"name": "get",
"resourceName": "Bar",
"doc": "Get a Bar",
"accessibility": "public",
"parameters": [
{
- "$id": "1633",
+ "$id": "1661",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1634",
+ "$id": "1662",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22493,7 +22893,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1635",
+ "$id": "1663",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -22507,18 +22907,18 @@
"readOnly": false
},
{
- "$id": "1636",
+ "$id": "1664",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1637",
+ "$id": "1665",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1638",
+ "$id": "1666",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22538,13 +22938,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.subscriptionId"
},
{
- "$id": "1639",
+ "$id": "1667",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1640",
+ "$id": "1668",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22562,13 +22962,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.resourceGroupName"
},
{
- "$id": "1641",
+ "$id": "1669",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1642",
+ "$id": "1670",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22586,13 +22986,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.fooName"
},
{
- "$id": "1643",
+ "$id": "1671",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1644",
+ "$id": "1672",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22610,12 +23010,12 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get.barName"
},
{
- "$id": "1645",
+ "$id": "1673",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "206"
+ "$ref": "210"
},
"isApiVersion": false,
"optional": false,
@@ -22632,7 +23032,7 @@
200
],
"bodyType": {
- "$ref": "476"
+ "$ref": "481"
},
"headers": [],
"isErrorResponse": false,
@@ -22657,13 +23057,13 @@
},
"parameters": [
{
- "$id": "1646",
+ "$id": "1674",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1647",
+ "$id": "1675",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22679,13 +23079,13 @@
"decorators": []
},
{
- "$id": "1648",
+ "$id": "1676",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1649",
+ "$id": "1677",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22701,13 +23101,13 @@
"decorators": []
},
{
- "$id": "1650",
+ "$id": "1678",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1651",
+ "$id": "1679",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22723,12 +23123,12 @@
"decorators": []
},
{
- "$id": "1652",
+ "$id": "1680",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "206"
+ "$ref": "210"
},
"location": "Header",
"isApiVersion": false,
@@ -22742,7 +23142,7 @@
],
"response": {
"type": {
- "$ref": "476"
+ "$ref": "481"
}
},
"isOverride": false,
@@ -22751,7 +23151,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.get"
},
{
- "$id": "1653",
+ "$id": "1681",
"kind": "basic",
"name": "update",
"accessibility": "public",
@@ -22760,20 +23160,20 @@
],
"doc": "Update a Bar",
"operation": {
- "$id": "1654",
+ "$id": "1682",
"name": "update",
"resourceName": "Bar",
"doc": "Update a Bar",
"accessibility": "public",
"parameters": [
{
- "$id": "1655",
+ "$id": "1683",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1656",
+ "$id": "1684",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22783,7 +23183,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1657",
+ "$id": "1685",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -22797,18 +23197,18 @@
"readOnly": false
},
{
- "$id": "1658",
+ "$id": "1686",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1659",
+ "$id": "1687",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1660",
+ "$id": "1688",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22828,13 +23228,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.subscriptionId"
},
{
- "$id": "1661",
+ "$id": "1689",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1662",
+ "$id": "1690",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22852,13 +23252,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.resourceGroupName"
},
{
- "$id": "1663",
+ "$id": "1691",
"kind": "path",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1664",
+ "$id": "1692",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22876,13 +23276,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.fooName"
},
{
- "$id": "1665",
+ "$id": "1693",
"kind": "path",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1666",
+ "$id": "1694",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -22900,13 +23300,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.barName"
},
{
- "$id": "1667",
+ "$id": "1695",
"kind": "header",
"name": "contentType",
"serializedName": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "208"
+ "$ref": "212"
},
"isApiVersion": false,
"optional": false,
@@ -22917,12 +23317,12 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.contentType"
},
{
- "$id": "1668",
+ "$id": "1696",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "210"
+ "$ref": "214"
},
"isApiVersion": false,
"optional": false,
@@ -22933,13 +23333,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Bars.update.accept"
},
{
- "$id": "1669",
+ "$id": "1697",
"kind": "body",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "476"
+ "$ref": "481"
},
"isApiVersion": false,
"contentTypes": [
@@ -22959,7 +23359,7 @@
200
],
"bodyType": {
- "$ref": "476"
+ "$ref": "481"
},
"headers": [],
"isErrorResponse": false,
@@ -22987,13 +23387,13 @@
},
"parameters": [
{
- "$id": "1670",
+ "$id": "1698",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1671",
+ "$id": "1699",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23009,13 +23409,13 @@
"decorators": []
},
{
- "$id": "1672",
+ "$id": "1700",
"kind": "method",
"name": "fooName",
"serializedName": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "1673",
+ "$id": "1701",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23031,13 +23431,13 @@
"decorators": []
},
{
- "$id": "1674",
+ "$id": "1702",
"kind": "method",
"name": "barName",
"serializedName": "barName",
"doc": "The name of the Bar",
"type": {
- "$id": "1675",
+ "$id": "1703",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23053,13 +23453,13 @@
"decorators": []
},
{
- "$id": "1676",
+ "$id": "1704",
"kind": "method",
"name": "properties",
"serializedName": "properties",
"doc": "The resource properties to be updated.",
"type": {
- "$ref": "476"
+ "$ref": "481"
},
"location": "Body",
"isApiVersion": false,
@@ -23071,13 +23471,13 @@
"decorators": []
},
{
- "$id": "1677",
+ "$id": "1705",
"kind": "method",
"name": "contentType",
"serializedName": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "208"
+ "$ref": "212"
},
"location": "Header",
"isApiVersion": false,
@@ -23089,12 +23489,12 @@
"decorators": []
},
{
- "$id": "1678",
+ "$id": "1706",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "210"
+ "$ref": "214"
},
"location": "Header",
"isApiVersion": false,
@@ -23108,7 +23508,7 @@
],
"response": {
"type": {
- "$ref": "476"
+ "$ref": "481"
}
},
"isOverride": false,
@@ -23119,13 +23519,13 @@
],
"parameters": [
{
- "$id": "1679",
+ "$id": "1707",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1680",
+ "$id": "1708",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -23136,7 +23536,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1681",
+ "$id": "1709",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -23155,17 +23555,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
},
{
- "$id": "1682",
+ "$id": "1710",
"kind": "client",
"name": "ZooRecommendation",
"namespace": "Azure.Generator.MgmtTypeSpec.Tests",
"methods": [
{
- "$id": "1683",
+ "$id": "1711",
"kind": "basic",
"name": "recommend",
"accessibility": "public",
@@ -23174,20 +23574,20 @@
],
"doc": "A synchronous resource action.",
"operation": {
- "$id": "1684",
+ "$id": "1712",
"name": "recommend",
"resourceName": "Zoos",
"doc": "A synchronous resource action.",
"accessibility": "public",
"parameters": [
{
- "$id": "1685",
+ "$id": "1713",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "1686",
+ "$id": "1714",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23197,7 +23597,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "1687",
+ "$id": "1715",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -23211,18 +23611,18 @@
"readOnly": false
},
{
- "$id": "1688",
+ "$id": "1716",
"kind": "path",
"name": "subscriptionId",
"serializedName": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "1689",
+ "$id": "1717",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "1690",
+ "$id": "1718",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23242,13 +23642,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.subscriptionId"
},
{
- "$id": "1691",
+ "$id": "1719",
"kind": "path",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1692",
+ "$id": "1720",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23266,13 +23666,13 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.resourceGroupName"
},
{
- "$id": "1693",
+ "$id": "1721",
"kind": "path",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1694",
+ "$id": "1722",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23290,12 +23690,12 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Zoos.recommend.zooName"
},
{
- "$id": "1695",
+ "$id": "1723",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "212"
+ "$ref": "216"
},
"isApiVersion": false,
"optional": false,
@@ -23312,7 +23712,7 @@
200
],
"bodyType": {
- "$ref": "696"
+ "$ref": "702"
},
"headers": [],
"isErrorResponse": false,
@@ -23337,13 +23737,13 @@
},
"parameters": [
{
- "$id": "1696",
+ "$id": "1724",
"kind": "method",
"name": "resourceGroupName",
"serializedName": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "1697",
+ "$id": "1725",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23359,13 +23759,13 @@
"decorators": []
},
{
- "$id": "1698",
+ "$id": "1726",
"kind": "method",
"name": "zooName",
"serializedName": "zooName",
"doc": "The name of the Zoo",
"type": {
- "$id": "1699",
+ "$id": "1727",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -23381,12 +23781,12 @@
"decorators": []
},
{
- "$id": "1700",
+ "$id": "1728",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
"type": {
- "$ref": "212"
+ "$ref": "216"
},
"location": "Header",
"isApiVersion": false,
@@ -23400,7 +23800,7 @@
],
"response": {
"type": {
- "$ref": "696"
+ "$ref": "702"
}
},
"isOverride": false,
@@ -23411,13 +23811,13 @@
],
"parameters": [
{
- "$id": "1701",
+ "$id": "1729",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "1702",
+ "$id": "1730",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -23428,7 +23828,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "1703",
+ "$id": "1731",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -23447,7 +23847,7 @@
"2024-05-01"
],
"parent": {
- "$ref": "701"
+ "$ref": "707"
}
}
]
diff --git a/eng/packages/http-client-csharp/CONTRIBUTING.md b/eng/packages/http-client-csharp/CONTRIBUTING.md
new file mode 100644
index 000000000000..6b8b4d41bf50
--- /dev/null
+++ b/eng/packages/http-client-csharp/CONTRIBUTING.md
@@ -0,0 +1,216 @@
+# Contributing to @azure-typespec/http-client-csharp
+
+Welcome! This guide will help you set up your development environment and contribute to the Azure TypeSpec HTTP Client C# package.
+
+## Table of Contents
+
+- [Prerequisites](#prerequisites)
+- [Getting Started](#getting-started)
+- [Development Workflow](#development-workflow)
+- [Testing](#testing)
+- [Code Generation](#code-generation)
+- [Creating Pull Requests](#creating-pull-requests)
+- [Getting Help](#getting-help)
+- [Code of Conduct](#code-of-conduct)
+
+## Prerequisites
+
+Before you begin, ensure you have the following installed:
+
+- [Node.js](https://nodejs.org/) (version 20 or higher)
+- [.NET 9.0 SDK](https://dotnet.microsoft.com/download/dotnet/9.0) (required - see global.json for exact version)
+- [npm](https://docs.npmjs.com/downloading-and-installing-node-js-and-npm)
+- [Git](https://git-scm.com/)
+- [PowerShell](https://docs.microsoft.com/powershell/scripting/install/installing-powershell) (version 7.0 or higher, for advanced testing and code generation scenarios)
+- [Long Path Support](https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=powershell#registry-setting-to-enable-long-paths) (Windows only required to avoid path length limitations during development)
+
+## Getting Started
+
+### 1. Clone the Repository
+
+```bash
+git clone https://github.com/Azure/azure-sdk-for-net.git
+cd azure-sdk-for-net/eng/packages/http-client-csharp
+```
+
+### 2. Install Dependencies
+
+From the repository root:
+
+```bash
+npm ci
+```
+
+### 3. Build the C# Package
+
+```bash
+npm run build
+```
+
+This command runs:
+
+- `npm run build:emitter` - Builds the TypeScript emitter
+- `npm run build:generator` - Builds the .NET generator
+
+### 4. Verify Installation
+
+After building, you can verify everything is working correctly by running:
+
+```bash
+npm run test
+```
+
+## Development Workflow
+
+### Package Structure
+
+The C# HTTP client package consists of two main components:
+
+- **Emitter** (`/emitter`): TypeScript code that processes TypeSpec definitions and produces input for the generator
+- **Generator** (`/generator`): .NET code that generates C# client libraries from the emitter output
+
+### Making Changes
+
+1. **Create a fork** of the repository and clone it:
+
+ ```bash
+ git clone https://github.com/YOUR_USERNAME/azure-sdk-for-net.git
+ cd azure-sdk-for-net
+ git checkout -b feature/your-feature-name
+ ```
+
+2. **Make your changes** to the codebase
+
+3. **Build your changes**:
+
+ ```bash
+ # Build emitter only
+ npm run build:emitter
+
+ # Build generator only
+ npm run build:generator
+
+ # Build everything
+ npm run build
+ ```
+
+4. **Test your changes**:
+
+ ```bash
+ # Test emitter only
+ npm run test:emitter
+
+ # Test generator only
+ npm run test:generator
+
+ # Test everything
+ npm run test
+ ```
+
+### Code Style and Linting
+
+- **Format code**: `npm run prettier:fix`
+- **Run linting**: `npm run lint`
+- **Fix lint issues**: `npm run lint:fix`
+
+## Testing
+
+### Unit Tests
+
+The package includes both TypeScript (emitter) and C# (generator) tests:
+
+```bash
+# Run all tests
+npm run test
+
+# Run emitter tests only (TypeScript/Vitest)
+npm run test:emitter
+
+# Run generator tests only (.NET)
+npm run test:generator
+```
+
+> **Note**: Some tests may require a full workspace build to resolve all dependencies before running successfully.
+
+### Integration Testing with Spector
+
+The package uses the Spector test framework for end-to-end testing of generated code:
+
+```bash
+# Run Spector tests (requires PowerShell)
+./eng/scripts/Test-Spector.ps1
+
+# Run Spector tests with filter (filters by directory path)
+./eng/scripts/Test-Spector.ps1 "http/type/array"
+
+# Get Spector test coverage (outputs to ./generator/artifacts/coverage, not checked in)
+./eng/scripts/Get-Spector-Coverage.ps1
+```
+
+### Test Project Generation
+
+Generate test projects to validate the emitter and generator:
+
+```bash
+# Generate all test projects (requires PowerShell)
+./eng/scripts/Generate.ps1
+
+# Generate specific test project
+./eng/scripts/Generate.ps1 -filter "project-name"
+
+# Generate with stubbed mode disabled
+./eng/scripts/Generate.ps1 -Stubbed $false
+```
+
+## Code Generation
+
+### Regenerating Test Projects
+
+To regenerate test projects after making changes:
+
+**Generate projects**:
+
+```bash
+./eng/scripts/Generate.ps1
+```
+
+### Regenerating Azure Libraries
+
+To regenerate Azure libraries using your local changes, run:
+
+```bash
+./eng/scripts/RegenPreview.ps1
+```
+
+This will regenerate all the Azure libraries and allow you to view any potential diffs your changes may cause. For more information on the script's usage, see [RegenPreview](./eng/scripts/docs/RegenPreview.md).
+
+## Creating Pull Requests
+
+### 1. Prepare Your PR
+
+Before creating a pull request:
+
+- [ ] Ensure all tests pass: `npm run test`
+- [ ] Ensure code is properly formatted: `npm run prettier:fix`
+- [ ] Ensure code is properly linted: `npm run lint:fix`
+- [ ] Generate and test projects: `./eng/scripts/Generate.ps1` (if applicable)
+- [ ] Update documentation if needed
+
+### 2. Create the PR
+
+1. Push your branch to your fork or the main repository
+2. Create a pull request to the [Azure/azure-sdk-for-net](https://github.com/Azure/azure-sdk-for-net) repository
+3. Provide a clear description of your changes
+4. Link any related issues
+
+## Getting Help
+
+- **Issues**: Report bugs or request features in the [Azure SDK for .NET repository issues](https://github.com/Azure/azure-sdk-for-net/issues)
+- **Documentation**: Check the [TypeSpec documentation](https://typespec.io/) for more information
+- **C# Customization**: See the [Customization Guide](https://github.com/microsoft/typespec/blob/main/packages/http-client-csharp/.tspd/docs/customization.md)
+
+## Code of Conduct
+
+This project follows the [Microsoft Open Source Code of Conduct](https://opensource.microsoft.com/codeofconduct/). Please be respectful and inclusive in all interactions.
+
+Thank you for contributing! 🎉
diff --git a/eng/packages/http-client-csharp/eng/scripts/RegenPreview.ps1 b/eng/packages/http-client-csharp/eng/scripts/RegenPreview.ps1
new file mode 100644
index 000000000000..e2b4614a4d4e
--- /dev/null
+++ b/eng/packages/http-client-csharp/eng/scripts/RegenPreview.ps1
@@ -0,0 +1,849 @@
+#Requires -Version 7.0
+
+<#
+.SYNOPSIS
+ Builds local generator packages and regenerates Azure SDK for .NET libraries for validation.
+
+.DESCRIPTION
+ This script supports generating Azure SDK libraries following this high level process:
+
+ 1. Builds a local npm package of @azure-typespec/http-client-csharp with a versioned name (1.0.0-alpha.YYYYMMDD.hash)
+ 2. Builds and packages the NuGet generator framework packages with the same versioning
+ 3. Updates Packages.Data.props in azure-sdk-for-net with the local NuGet version
+ 4. Updates the management plane generator (@azure-typespec/http-client-csharp-mgmt) to use local generators
+ 5. Updates the eng folder package.json artifacts in azure-sdk-for-net
+ 6. Regenerates libraries based on specified filters (all, by generator type, or interactively selected)
+ 7. Restores all modified artifacts to original state on success
+
+
+ Generator Filtering:
+ - Use -Azure to regenerate only Azure-branded libraries (@azure-typespec/http-client-csharp)
+ - Use -Unbranded to regenerate only unbranded libraries (@typespec/http-client-csharp)
+ - Use -Mgmt to regenerate only management plane libraries (@azure-typespec/http-client-csharp-mgmt)
+ - Omit all filter parameters to regenerate all libraries (default)
+ - Use -Select for interactive selection (can be combined with generator filters)
+
+.PARAMETER Select
+ Optional. When specified, displays an interactive menu to select specific libraries to regenerate.
+ If omitted, regenerates all libraries without prompting.
+
+.PARAMETER Azure
+ Optional. When specified, only regenerates libraries using the Azure generator (@azure-typespec/http-client-csharp).
+ Mutually exclusive with Unbranded and Mgmt parameters.
+
+.PARAMETER Unbranded
+ Optional. When specified, only regenerates libraries using the unbranded generator (@typespec/http-client-csharp).
+ Mutually exclusive with Azure and Mgmt parameters.
+
+.PARAMETER Mgmt
+ Optional. When specified, only regenerates libraries using the management plane generator (@azure-typespec/http-client-csharp-mgmt).
+ Mutually exclusive with Azure and Unbranded parameters.
+ If no generator filter is specified, all libraries are regenerated.
+
+.EXAMPLE
+ # Regenerate all libraries
+ .\RegenPreview.ps1
+
+.EXAMPLE
+ # Interactively select libraries to regenerate (from all available)
+ .\RegenPreview.ps1 -Select
+
+.EXAMPLE
+ # Regenerate only Azure-branded libraries (non-interactive)
+ .\RegenPreview.ps1 -Azure
+
+.EXAMPLE
+ # Interactively select from Azure-branded libraries only
+ .\RegenPreview.ps1 -Azure -Select
+
+.EXAMPLE
+ # Regenerate only unbranded libraries
+ .\RegenPreview.ps1 -Unbranded
+
+.EXAMPLE
+ # Regenerate only management plane libraries
+ .\RegenPreview.ps1 -Mgmt
+#>
+
+param(
+ [Parameter(Mandatory=$false)]
+ [switch]$Select,
+
+ [Parameter(Mandatory=$false)]
+ [switch]$Azure,
+
+ [Parameter(Mandatory=$false)]
+ [switch]$Unbranded,
+
+ [Parameter(Mandatory=$false)]
+ [switch]$Mgmt
+)
+
+$ErrorActionPreference = 'Stop'
+Set-StrictMode -Version 3.0
+
+# Validate filter parameters
+$generatorFilters = @($Azure, $Unbranded, $Mgmt)
+$activeFilters = @($generatorFilters | Where-Object { $_ }).Count
+
+if ($activeFilters -gt 1) {
+ Write-Error "Parameters -Azure, -Unbranded, and -Mgmt are mutually exclusive. Please specify only one."
+ exit 1
+}
+
+# Import utility functions
+Import-Module "$PSScriptRoot\Generation.psm1" -DisableNameChecking -Force
+Import-Module "$PSScriptRoot\RegenPreview.psm1" -DisableNameChecking -Force
+
+# Resolve paths
+$packageRoot = Resolve-Path (Join-Path $PSScriptRoot '..' '..')
+$sdkRepoPath = Resolve-Path (Join-Path $PSScriptRoot '..' '..' '..' '..' '..') -ErrorAction Stop
+
+Write-Host "==================== LOCAL VALIDATION SCRIPT ====================" -ForegroundColor Cyan
+
+Write-Host "Repository: Azure SDK for .NET" -ForegroundColor Gray
+
+# Display active mode
+$modeText = if ($Select) {
+ "Interactive library selection"
+} elseif ($Azure) {
+ "Regenerate Azure SDK libraries only"
+} elseif ($Unbranded) {
+ "Regenerate Unbranded libraries only"
+} elseif ($Mgmt) {
+ "Regenerate Management plane libraries only"
+} else {
+ "Regenerate ALL libraries"
+}
+Write-Host "Mode: $modeText" -ForegroundColor Yellow
+Write-Host ""
+
+# Generate version string with timestamp and hash
+# Used for both npm and NuGet packages to ensure consistency
+function Get-LocalPackageVersion {
+ $timestamp = Get-Date -Format "yyyyMMdd"
+ $hash = (git -C $packageRoot rev-parse --short HEAD 2>$null) ?? "local"
+ return "1.0.0-alpha.$timestamp.$hash"
+}
+
+# Run npm pack and return the package file path
+function Invoke-NpmPack {
+ param(
+ [string]$WorkingDirectory,
+ [string]$DebugFolder
+ )
+
+ Write-Host "Running: npm pack" -ForegroundColor Gray
+ Push-Location $WorkingDirectory
+ try {
+ $output = & npm pack 2>&1
+ if ($LASTEXITCODE -ne 0) {
+ throw "npm pack failed with exit code $LASTEXITCODE"
+ }
+
+ # Get the first line that ends with .tgz (the actual package filename)
+ # It may be in format "filename: package-name.tgz" or just "package-name.tgz"
+ $packageLine = ($output | Where-Object { $_ -match '\.tgz$' } | Select-Object -First 1).ToString().Trim()
+ if ($packageLine -match 'filename:\s*(.+\.tgz)') {
+ $packageFile = $Matches[1].Trim()
+ } else {
+ $packageFile = $packageLine
+ }
+
+ $packagePath = Join-Path $WorkingDirectory $packageFile
+ if (-not (Test-Path $packagePath)) {
+ throw "Package file not created: $packagePath"
+ }
+
+ # Move package to debug folder
+ $debugPackagePath = Join-Path $DebugFolder $packageFile
+ Move-Item $packagePath $debugPackagePath -Force
+
+ return $debugPackagePath
+ }
+ finally {
+ Pop-Location
+ }
+}
+
+# Update package.json with new version
+function Update-PackageJsonVersion {
+ param(
+ [string]$PackageJsonPath,
+ [string]$NewVersion
+ )
+
+ Write-Host "Updating package version to $NewVersion in $PackageJsonPath" -ForegroundColor Gray
+ $packageJson = Get-Content $PackageJsonPath -Raw | ConvertFrom-Json -AsHashtable
+ $packageJson.version = $NewVersion
+ $packageJson | ConvertTo-Json -Depth 100 | Set-Content $PackageJsonPath -Encoding utf8 -NoNewline
+}
+
+# Parse Library_Inventory.md to get libraries
+function Get-LibrariesToRegenerate {
+ param([string]$InventoryPath)
+
+ $libraries = @()
+ $content = Get-Content $InventoryPath -Raw
+
+ # Helper function to parse library section
+ $parseSection = {
+ param($SectionContent, $GeneratorName)
+
+ $lines = $SectionContent -split "`n" | Where-Object {
+ $_ -match '^\|.*\|.*\|.*\|' -and
+ $_ -notmatch '^\|\s*Service\s*\|' -and
+ $_ -notmatch '^\|\s*-+\s*\|' -and
+ $_.Trim() -ne ''
+ }
+
+ $result = @()
+ foreach ($line in $lines) {
+ $parts = $line -split '\|' | ForEach-Object { $_.Trim() } | Where-Object { $_ -and $_ -notmatch '^-+$' }
+ if ($parts.Count -eq 3 -and $parts[0] -ne 'Service' -and $parts[0] -notmatch '^-+$') {
+ $result += @{
+ Service = $parts[0]
+ Library = $parts[1]
+ Path = $parts[2]
+ Generator = $GeneratorName
+ }
+ }
+ }
+ return $result
+ }
+
+ # Parse @azure-typespec/http-client-csharp libraries
+ if ($content -match '## Data Plane Libraries using TypeSpec \(@azure-typespec/http-client-csharp\)[\s\S]*?Total: (\d+)([\s\S]*?)(?=##|\z)') {
+ $libraries += & $parseSection $Matches[2] "@azure-typespec/http-client-csharp"
+ }
+
+ # Parse @typespec/http-client-csharp libraries
+ if ($content -match '## Data Plane Libraries using TypeSpec \(@typespec/http-client-csharp\)[\s\S]*?Total: (\d+)([\s\S]*?)(?=##|\z)') {
+ $libraries += & $parseSection $Matches[2] "@typespec/http-client-csharp"
+ }
+
+ # Parse @azure-typespec/http-client-csharp-mgmt libraries (management plane)
+ if ($content -match '## Management Plane Libraries using TypeSpec \(@azure-typespec/http-client-csharp-mgmt\)[\s\S]*?Total: (\d+)([\s\S]*?)(?=##|\z)') {
+ $libraries += & $parseSection $Matches[2] "@azure-typespec/http-client-csharp-mgmt"
+ }
+
+ return @($libraries)
+}
+
+# Interactive library selection
+function Select-LibrariesToRegenerate {
+ param([array]$Libraries)
+
+ # Ensure we have an array
+ if (-not $Libraries) {
+ return @()
+ }
+
+ $Libraries = @($Libraries)
+
+ Write-Host "`n==================== LIBRARY SELECTION ====================" -ForegroundColor Cyan
+ Write-Host "Found $($Libraries.Count) libraries available for regeneration" -ForegroundColor White
+ Write-Host ""
+
+ # Display libraries grouped by generator
+ $azureLibs = @($Libraries | Where-Object { $_.Generator -eq "@azure-typespec/http-client-csharp" })
+ $unbrandedLibs = @($Libraries | Where-Object { $_.Generator -eq "@typespec/http-client-csharp" })
+ $mgmtLibs = @($Libraries | Where-Object { $_.Generator -eq "@azure-typespec/http-client-csharp-mgmt" })
+
+ $currentIndex = 1
+
+ if ($azureLibs.Count -gt 0) {
+ Write-Host "Azure SDK Libraries:" -ForegroundColor Yellow
+ for ($i = 0; $i -lt $azureLibs.Count; $i++) {
+ $lib = $azureLibs[$i]
+ Write-Host (" [{0,2}] {1,-50} ({2})" -f $currentIndex, $lib.Library, $lib.Service) -ForegroundColor Gray
+ $currentIndex++
+ }
+ Write-Host ""
+ }
+
+ if ($unbrandedLibs.Count -gt 0) {
+ Write-Host "Unbranded Libraries:" -ForegroundColor Yellow
+ for ($i = 0; $i -lt $unbrandedLibs.Count; $i++) {
+ $lib = $unbrandedLibs[$i]
+ Write-Host (" [{0,2}] {1,-50} ({2})" -f $currentIndex, $lib.Library, $lib.Service) -ForegroundColor Gray
+ $currentIndex++
+ }
+ Write-Host ""
+ }
+
+ if ($mgmtLibs.Count -gt 0) {
+ Write-Host "Management Plane Libraries:" -ForegroundColor Yellow
+ for ($i = 0; $i -lt $mgmtLibs.Count; $i++) {
+ $lib = $mgmtLibs[$i]
+ Write-Host (" [{0,2}] {1,-50} ({2})" -f $currentIndex, $lib.Library, $lib.Service) -ForegroundColor Gray
+ $currentIndex++
+ }
+ Write-Host ""
+ }
+
+ Write-Host "=============================================================" -ForegroundColor Cyan
+ Write-Host ""
+ Write-Host "Enter library numbers to regenerate (comma-separated), 'all' for all libraries, or 'q' to quit:" -ForegroundColor White
+ Write-Host "Example: 1,3,5 or 1-4,7 or all" -ForegroundColor DarkGray
+ Write-Host ""
+
+ $selection = Read-Host "Selection"
+
+ if ($selection -ieq 'q' -or $selection -ieq 'quit') {
+ Write-Host "Operation cancelled by user." -ForegroundColor Yellow
+ exit 0
+ }
+
+ if ($selection -ieq 'all') {
+ return $Libraries
+ }
+
+ # Parse selection
+ $selectedIndices = @()
+ $parts = $selection -split ',' | ForEach-Object { $_.Trim() }
+
+ foreach ($part in $parts) {
+ if ($part -match '^(\d+)-(\d+)$') {
+ # Range: 1-4
+ $start = [int]$Matches[1]
+ $end = [int]$Matches[2]
+ $selectedIndices += ($start..$end)
+ }
+ elseif ($part -match '^\d+$') {
+ # Single number: 3
+ $selectedIndices += [int]$part
+ }
+ else {
+ Write-Host "Invalid selection format: $part" -ForegroundColor Red
+ exit 1
+ }
+ }
+
+ # Validate and collect selected libraries
+ $selectedLibraries = @()
+ foreach ($index in $selectedIndices | Sort-Object -Unique) {
+ if ($index -lt 1 -or $index -gt $Libraries.Count) {
+ Write-Host "Invalid library number: $index (valid range: 1-$($Libraries.Count))" -ForegroundColor Red
+ exit 1
+ }
+ $selectedLibraries += $Libraries[$index - 1]
+ }
+
+ if ($selectedLibraries.Count -eq 0) {
+ Write-Host "No libraries selected. Exiting." -ForegroundColor Yellow
+ exit 0
+ }
+
+ Write-Host "`nSelected $($selectedLibraries.Count) libraries for regeneration:" -ForegroundColor Green
+ foreach ($lib in $selectedLibraries) {
+ Write-Host " - $($lib.Library) ($($lib.Service))" -ForegroundColor Gray
+ }
+ Write-Host ""
+
+ # Ensure we return an array, even for a single element
+ return @($selectedLibraries)
+}
+
+# Generate final report
+function Write-RegenerationReport {
+ param(
+ [array]$Results,
+ [TimeSpan]$ElapsedTime,
+ [string]$DebugFolder
+ )
+
+ $passed = @($Results | Where-Object { $_.Success -eq $true })
+ $failed = @($Results | Where-Object { $_.Success -eq $false })
+
+ Write-Host "`n==================== REGENERATION REPORT ====================" -ForegroundColor Cyan
+ Write-Host "Total Libraries: $($Results.Count)" -ForegroundColor White
+ Write-Host "Passed: $($passed.Count)" -ForegroundColor Green
+ Write-Host "Failed: $($failed.Count)" -ForegroundColor Red
+
+ if ($ElapsedTime) {
+ $elapsedFormatted = "{0:hh\:mm\:ss}" -f $ElapsedTime
+ Write-Host "Execution Time: $elapsedFormatted" -ForegroundColor Cyan
+ }
+ Write-Host ""
+
+ if ($passed.Count -gt 0) {
+ Write-Host "PASSED LIBRARIES:" -ForegroundColor Green
+ foreach ($result in $passed) {
+ Write-Host " ✓ $($result.Library) ($($result.Service))" -ForegroundColor Green
+ }
+ Write-Host ""
+ }
+
+ if ($failed.Count -gt 0) {
+ Write-Host "FAILED LIBRARIES:" -ForegroundColor Red
+ foreach ($result in $failed) {
+ Write-Host " ✗ $($result.Library) ($($result.Service))" -ForegroundColor Red
+ Write-Host " Error: $($result.Error)" -ForegroundColor Gray
+ if ($result.Output) {
+ Write-Host " Details: $($result.Output.Substring(0, [Math]::Min(200, $result.Output.Length)))..." -ForegroundColor DarkGray
+ }
+ }
+ Write-Host ""
+ }
+
+ Write-Host "=============================================================" -ForegroundColor Cyan
+
+ # Save detailed report to debug folder
+ $reportPath = if ($DebugFolder) {
+ Join-Path $DebugFolder "regen-report.json"
+ } else {
+ Join-Path $packageRoot "regen-report.json"
+ }
+ $Results | ConvertTo-Json -Depth 10 | Set-Content $reportPath -Encoding utf8
+ Write-Host "Detailed report saved to: $reportPath" -ForegroundColor Gray
+}
+
+# ============================================================================
+# Main Script Execution
+# ============================================================================
+
+# Start timer
+$scriptStartTime = Get-Date
+
+try {
+ # Step 1: Load and select libraries
+ if ($Select) {
+ Write-Host "`n[1/6] Loading libraries from Library_Inventory.md..." -ForegroundColor Cyan
+
+ $inventoryPath = Join-Path $sdkRepoPath "doc" "GeneratorMigration" "Library_Inventory.md"
+ if (-not (Test-Path $inventoryPath)) {
+ throw "Library_Inventory.md not found at: $inventoryPath"
+ }
+
+ $allLibraries = Get-LibrariesToRegenerate -InventoryPath $inventoryPath
+
+ # Apply generator filter before interactive selection
+ $filteredLibraries = @(Filter-LibrariesByGenerator `
+ -Libraries $allLibraries `
+ -Azure:$Azure `
+ -Unbranded:$Unbranded `
+ -Mgmt:$Mgmt)
+
+ if (-not $filteredLibraries -or $filteredLibraries.Count -eq 0) {
+ Write-Host "No libraries found matching the specified generator filter" -ForegroundColor Yellow
+ exit 0
+ }
+
+ $libraries = @(Select-LibrariesToRegenerate -Libraries $filteredLibraries)
+
+ # Check if user cancelled selection
+ if (-not $libraries -or $libraries.Count -eq 0) {
+ Write-Host "No libraries selected. Exiting..." -ForegroundColor Yellow
+ exit 0
+ }
+ }
+
+ # Create debug folder for packaged artifacts with timestamped subfolder
+ $timestamp = Get-Date -Format "yyyyMMdd"
+ $debugFolder = Join-Path $packageRoot "debug" $timestamp
+ if (-not (Test-Path $debugFolder)) {
+ New-Item -ItemType Directory -Path $debugFolder -Force | Out-Null
+ }
+
+ Write-Host "Debug folder: $debugFolder" -ForegroundColor Gray
+ Write-Host ""
+
+ # Step 1: Build the azure generator
+ Write-Host "`n[2/6] Building azure generator..." -ForegroundColor Cyan
+
+ Push-Location $packageRoot
+ try {
+ Write-Host "Installing dependencies..." -ForegroundColor Gray
+ Invoke "npm ci"
+ if ($LASTEXITCODE -ne 0) {
+ throw "Failed to install dependencies for azure generator"
+ }
+
+ Write-Host "Cleaning build artifacts..." -ForegroundColor Gray
+ Invoke "npm run clean"
+ if ($LASTEXITCODE -ne 0) {
+ throw "Failed to clean azure generator"
+ }
+
+ Write-Host "Building generator..." -ForegroundColor Gray
+ Invoke "npm run build"
+ if ($LASTEXITCODE -ne 0) {
+ throw "Failed to build azure generator"
+ }
+
+ Write-Host " Build completed" -ForegroundColor Green
+ }
+ finally {
+ Pop-Location
+ }
+
+ # Step 2: Package the generators with local version
+ Write-Host "`n[3/6] Packaging generators..." -ForegroundColor Cyan
+
+ $localVersion = Get-LocalPackageVersion
+ Write-Host "Local package version: $localVersion" -ForegroundColor Yellow
+
+ $azurePackageJson = Join-Path $packageRoot "package.json"
+ $originalPackageJson = Get-Content $azurePackageJson -Raw
+
+ try {
+ Update-PackageJsonVersion -PackageJsonPath $azurePackageJson -NewVersion $localVersion
+ $azurePackagePath = Invoke-NpmPack -WorkingDirectory $packageRoot -DebugFolder $debugFolder
+ Write-Host "Created npm package: $azurePackagePath" -ForegroundColor Green
+ }
+ finally {
+ # Restore original package.json
+ Set-Content $azurePackageJson $originalPackageJson -Encoding utf8 -NoNewline
+ }
+
+ # Update Packages.Data.props with local NuGet version
+ $packagesDataPropsPath = Join-Path $sdkRepoPath "eng" "Packages.Data.props"
+ if (-not (Test-Path $packagesDataPropsPath)) {
+ throw "Packages.Data.props not found at: $packagesDataPropsPath"
+ }
+
+ Update-AzureGeneratorVersion -PackagesDataPropsPath $packagesDataPropsPath -NewVersion $localVersion
+
+ # Add debug folder as a NuGet package source
+ $nugetConfigPath = Join-Path $sdkRepoPath "NuGet.Config"
+ Add-LocalNuGetSource -NuGetConfigPath $nugetConfigPath -SourcePath $debugFolder
+
+ # Step 3: Build required generators and update artifacts
+ Write-Host "`n[4/6] Building additional required generators and updating artifacts..." -ForegroundColor Cyan
+
+ # Determine which generators are needed based on libraries to be regenerated
+ if ($Select) {
+ # Libraries were already selected at the beginning
+ $librariesToAnalyze = $libraries
+ } else {
+ # Load all libraries and apply filters to determine what would be regenerated
+ $inventoryPath = Join-Path $sdkRepoPath "doc" "GeneratorMigration" "Library_Inventory.md"
+ if (-not (Test-Path $inventoryPath)) {
+ throw "Library_Inventory.md not found at: $inventoryPath"
+ }
+
+ $allLibraries = Get-LibrariesToRegenerate -InventoryPath $inventoryPath
+ $librariesToAnalyze = Filter-LibrariesByGenerator `
+ -Libraries $allLibraries `
+ -Azure:$Azure `
+ -Unbranded:$Unbranded `
+ -Mgmt:$Mgmt
+ }
+
+ # Determine which generators are actually needed
+ $needsUnbranded = $false
+ $needsAzure = $false
+ $needsMgmt = $false
+
+ if ($librariesToAnalyze -and $librariesToAnalyze.Count -gt 0) {
+ foreach ($lib in $librariesToAnalyze) {
+ switch ($lib.Generator) {
+ "@typespec/http-client-csharp" { $needsUnbranded = $true }
+ "@azure-typespec/http-client-csharp" { $needsAzure = $true; $needsUnbranded = $true }
+ "@azure-typespec/http-client-csharp-mgmt" { $needsMgmt = $true; $needsAzure = $true; $needsUnbranded = $true }
+ }
+ }
+ }
+
+ $generatorSummary = @()
+ if ($needsUnbranded) { $generatorSummary += "Unbranded" }
+ if ($needsAzure) { $generatorSummary += "Azure" }
+ if ($needsMgmt) { $generatorSummary += "Management" }
+
+ if ($generatorSummary.Count -gt 0) {
+ Write-Host "Required generators: $($generatorSummary -join ', ')" -ForegroundColor Yellow
+ } else {
+ Write-Host "No additional generators required" -ForegroundColor Yellow
+ }
+
+ # Update eng folder artifacts if needed
+ if ($needsAzure -or $needsUnbranded) {
+ Write-Host "Updating eng folder artifacts..." -ForegroundColor Gray
+
+ $engFolder = Join-Path $sdkRepoPath "eng"
+ $tempDir = Join-Path $engFolder "temp-package-update"
+ New-Item -ItemType Directory -Path $tempDir -Force | Out-Null
+
+ # Helper function to update emitter package files
+ $updateEmitterPackage = {
+ param($PackagePath, $EmitterJsonName, $LockJsonName)
+
+ $emitterJson = Join-Path $engFolder $EmitterJsonName
+ $tempPackageJson = Join-Path $tempDir "package.json"
+
+ Copy-Item $emitterJson $tempPackageJson -Force
+
+ Push-Location $tempDir
+ try {
+ Invoke "npm install `"`"file:$PackagePath`"`" --package-lock-only" $tempDir
+ if ($LASTEXITCODE -ne 0) {
+ throw "Failed to install local package for emitter update."
+ }
+
+ Copy-Item $tempPackageJson $emitterJson -Force
+ $lockFile = Join-Path $tempDir "package-lock.json"
+ if (Test-Path $lockFile) {
+ Copy-Item $lockFile (Join-Path $engFolder $LockJsonName) -Force
+ }
+
+ # Cleanup temp files
+ Remove-Item $tempPackageJson, $lockFile -Force -ErrorAction SilentlyContinue
+ }
+ finally {
+ Pop-Location
+ }
+ }
+
+ try {
+ if ($needsAzure -and $azurePackagePath) {
+ & $updateEmitterPackage $azurePackagePath "azure-typespec-http-client-csharp-emitter-package.json" "azure-typespec-http-client-csharp-emitter-package-lock.json"
+ }
+
+ Write-Host " Artifacts updated" -ForegroundColor Green
+ }
+ finally {
+ Remove-Item $tempDir -Recurse -Force -ErrorAction SilentlyContinue
+ }
+ }
+
+ # Update management plane generator if needed
+ if ($needsMgmt) {
+ Write-Host "Building management plane generator..." -ForegroundColor Gray
+
+ $engFolder = Join-Path $sdkRepoPath "eng"
+ $mgmtGeneratorPath = Join-Path $engFolder "packages" "http-client-csharp-mgmt"
+
+ if (Test-Path $mgmtGeneratorPath) {
+ Update-MgmtGenerator `
+ -EngFolder $engFolder `
+ -DebugFolder $debugFolder `
+ -LocalVersion $localVersion
+
+ Write-Host " Management plane generator completed" -ForegroundColor Green
+ } else {
+ Write-Host " Management plane generator not found, skipping..." -ForegroundColor Yellow
+ }
+ }
+
+ # Step 4: Regenerate libraries
+ Write-Host "`n[5/6] Regenerating libraries..." -ForegroundColor Cyan
+
+ if (-not $Select) {
+ # Load all libraries if not using -Select flag
+ $inventoryPath = Join-Path $sdkRepoPath "doc" "GeneratorMigration" "Library_Inventory.md"
+ if (-not (Test-Path $inventoryPath)) {
+ throw "Library_Inventory.md not found at: $inventoryPath"
+ }
+
+ $allLibraries = Get-LibrariesToRegenerate -InventoryPath $inventoryPath
+
+ # Apply generator filter
+ $libraries = Filter-LibrariesByGenerator `
+ -Libraries $allLibraries `
+ -Azure:$Azure `
+ -Unbranded:$Unbranded `
+ -Mgmt:$Mgmt
+
+ if ($libraries.Count -eq 0) {
+ Write-Host "No libraries found matching the specified generator filter" -ForegroundColor Yellow
+ Write-Host "Skipping regeneration step..." -ForegroundColor Gray
+ } else {
+ $filterText = if ($Azure) {
+ " (Azure generator only)"
+ } elseif ($Unbranded) {
+ " (Unbranded generator only)"
+ } elseif ($Mgmt) {
+ " (Management plane generator only)"
+ } else {
+ ""
+ }
+ Write-Host "Regenerating $($libraries.Count) libraries$filterText" -ForegroundColor Yellow
+ }
+ } else {
+ # Libraries were already selected at the beginning
+ if ($libraries -and $libraries.Count -gt 0) {
+ Write-Host "Using $($libraries.Count) previously selected libraries" -ForegroundColor Yellow
+ } else {
+ Write-Host "No libraries were selected" -ForegroundColor Yellow
+ }
+ }
+
+ if (-not $libraries -or $libraries.Count -eq 0) {
+ Write-Host "No libraries selected for regeneration" -ForegroundColor Yellow
+ $failedCount = 0
+ } else {
+
+ # Determine parallel execution throttle limit: (CPU cores - 2), min 1, max 8
+ $cpuCores = if ($IsWindows -or $PSVersionTable.PSVersion.Major -lt 6) {
+ (Get-CimInstance -ClassName Win32_Processor | Measure-Object -Property NumberOfLogicalProcessors -Sum).Sum
+ } elseif ($IsMacOS) {
+ [int](sysctl -n hw.ncpu)
+ } else {
+ [int](nproc)
+ }
+
+ $throttleLimit = [Math]::Max(1, [Math]::Min(8, $cpuCores - 2))
+
+ Write-Host "Using $throttleLimit concurrent jobs (detected $cpuCores logical processors)" -ForegroundColor Gray
+ Write-Host ""
+
+ # Pre-install tsp-client to avoid concurrent npm operations
+ $sdkForNetEngFolder = Join-Path $sdkRepoPath "eng"
+ Write-Host "Pre-installing tsp-client..." -ForegroundColor Gray
+ $tspClientDir = Join-Path $sdkForNetEngFolder "common" "tsp-client"
+ Invoke "npm ci --prefix $tspClientDir" $tspClientDir
+ if ($LASTEXITCODE -ne 0) {
+ throw "Failed to install tsp-client"
+ }
+ Write-Host " tsp-client ready" -ForegroundColor Green
+ Write-Host ""
+
+ # Pre-build the client plugin to avoid concurrent builds
+ $codeGenerationTargetPath = Join-Path $sdkForNetEngFolder "CodeGeneration.targets"
+ if (-not (Test-Path $codeGenerationTargetPath)) {
+ throw "CodeGeneration.targets not found at: $codeGenerationTargetPath"
+ }
+ Write-Host "Pre-building client plugin..." -ForegroundColor Gray
+ Invoke "dotnet build $codeGenerationTargetPath /t:BuildPlugin /p:TypeSpecInput=temp" $sdkForNetEngFolder
+ if ($LASTEXITCODE -ne 0) {
+ throw "Failed to build client plugin"
+ }
+
+ # Thread-safe collections for progress tracking
+ $completed = [System.Collections.Concurrent.ConcurrentBag[int]]::new()
+ $totalCount = $libraries.Count
+
+ # Run regeneration in parallel
+ $results = $libraries | ForEach-Object -ThrottleLimit $throttleLimit -Parallel {
+ $library = $_
+ $azureSdkPath = $using:sdkRepoPath
+ $completedBag = $using:completed
+ $total = $using:totalCount
+
+ # Determine build path (check for src subdirectory)
+ $libraryPath = Join-Path $azureSdkPath $library.Path
+ $srcPath = Join-Path $libraryPath "src"
+ $buildPath = if ((Test-Path $srcPath) -and (Get-ChildItem -Path $srcPath -Filter "*.csproj" -ErrorAction SilentlyContinue)) {
+ $srcPath
+ } else {
+ $libraryPath
+ }
+
+ # Regenerate library
+ $result = try {
+ if (-not (Test-Path $libraryPath)) {
+ @{ Success = $false; Error = "Library path not found"; Output = "" }
+ } else {
+ Push-Location $buildPath
+ try {
+ $output = & dotnet build /t:GenerateCode /p:SkipTspClientInstall=true /p:SkipBuildPlugin=true 2>&1
+ $exitCode = $LASTEXITCODE
+
+ if ($exitCode -ne 0) {
+ @{ Success = $false; Error = "Generation failed with exit code $exitCode"; Output = ($output -join "`n") }
+ } else {
+ @{ Success = $true; Output = ($output -join "`n") }
+ }
+ }
+ finally {
+ Pop-Location
+ }
+ }
+ }
+ catch {
+ @{ Success = $false; Error = $_.Exception.Message; Output = $_.Exception.ToString() }
+ }
+
+ # Update progress counter
+ $completedBag.Add(1)
+ $currentCount = $completedBag.Count
+
+ # Thread-safe console output with progress
+ $status = if ($result.Success) { "✓" } else { "✗" }
+ $color = if ($result.Success) { "Green" } else { "White" }
+
+ $progressMsg = "[$currentCount/$total] $status $($library.Library)"
+ Write-Host $progressMsg -ForegroundColor $color
+
+ # Return result with library metadata
+ return @{
+ Service = $library.Service
+ Library = $library.Library
+ Path = $library.Path
+ Generator = $library.Generator
+ Success = if ($result.ContainsKey('Success')) { $result.Success } else { $false }
+ Error = if ($result.ContainsKey('Error')) { $result.Error } else { "" }
+ Output = if ($result.ContainsKey('Output')) { $result.Output } else { "" }
+ }
+ }
+
+ # Generate final report
+ $scriptEndTime = Get-Date
+ $elapsedTime = $scriptEndTime - $scriptStartTime
+
+ Write-RegenerationReport -Results $results -ElapsedTime $elapsedTime -DebugFolder $debugFolder
+
+ # Check if any libraries failed
+ $failedLibraries = @($results | Where-Object { -not $_.Success })
+ $failedCount = $failedLibraries.Count
+ }
+
+ if ($failedCount -gt 0) {
+ Write-Host "`nValidation completed with warnings: $failedCount libraries failed to regenerate" -ForegroundColor Yellow
+ Write-Host "Check the detailed report above for error information" -ForegroundColor Yellow
+ } else {
+ Write-Host "`nValidation completed successfully! All libraries regenerated without errors." -ForegroundColor Green
+
+ # Step 5: Restore artifacts to original state
+ Write-Host "`n[6/6] Restoring artifacts to original state..." -ForegroundColor Cyan
+
+ Push-Location $sdkRepoPath
+ try {
+ Write-Host "Restoring modified files..." -ForegroundColor Gray
+ $filesToRestore = @(
+ "eng/azure-typespec-http-client-csharp-emitter-package.json"
+ "eng/azure-typespec-http-client-csharp-emitter-package-lock.json"
+ "eng/azure-typespec-http-client-csharp-mgmt-emitter-package.json"
+ "eng/azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json"
+ "eng/packages/http-client-csharp/package-lock.json"
+ "eng/packages/http-client-csharp-mgmt/package.json"
+ "eng/packages/http-client-csharp-mgmt/package-lock.json"
+ "eng/Packages.Data.props"
+ "NuGet.Config"
+ )
+ $restoreCmd = "git restore $($filesToRestore -join ' ')"
+ Invoke $restoreCmd $sdkRepoPath
+ if ($LASTEXITCODE -ne 0) {
+ throw "Failed to restore modified files"
+ }
+ Write-Host " All artifacts restored" -ForegroundColor Green
+ }
+ finally {
+ Pop-Location
+ }
+ }
+}
+catch {
+ Write-Host "`nScript encountered an error during setup or configuration." -ForegroundColor Red
+ Write-Host $_.Exception.Message -ForegroundColor Red
+ Write-Host $_.ScriptStackTrace -ForegroundColor DarkGray
+
+ # Attempt to restore NuGet.Config even on failure
+ Write-Host "`nAttempting to restore NuGet.Config..." -ForegroundColor Yellow
+ Push-Location $sdkRepoPath -ErrorAction SilentlyContinue
+ try {
+ Invoke "git restore NuGet.Config" $sdkRepoPath
+ Write-Host " NuGet.Config restored" -ForegroundColor Green
+ }
+ catch {
+ Write-Host " Failed to restore NuGet.Config" -ForegroundColor Red
+ }
+ finally {
+ Pop-Location -ErrorAction SilentlyContinue
+ }
+
+ exit 1
+}
+
+Write-Host "`nScript completed." -ForegroundColor Cyan
diff --git a/eng/packages/http-client-csharp/eng/scripts/RegenPreview.psm1 b/eng/packages/http-client-csharp/eng/scripts/RegenPreview.psm1
new file mode 100644
index 000000000000..42a57715d447
--- /dev/null
+++ b/eng/packages/http-client-csharp/eng/scripts/RegenPreview.psm1
@@ -0,0 +1,494 @@
+Import-Module "$PSScriptRoot\Generation.psm1" -DisableNameChecking -Force -Global
+
+function Update-GeneratorPackage {
+ <#
+ .SYNOPSIS
+ Common helper function to update, build, and package a TypeSpec generator.
+
+ .DESCRIPTION
+ This internal function handles the common workflow for updating TypeSpec generators:
+ 1. Updates package.json dependencies
+ 2. Runs npm install
+ 3. Runs npm clean to ensure a clean build
+ 4. Builds the generator
+ 5. Packages the generator with specified version
+ 6. Moves package to debug folder
+
+ This is a shared helper used by Update-MgmtGenerator and Update-AzureGenerator.
+
+ .PARAMETER GeneratorPath
+ Path to the generator directory.
+
+ .PARAMETER Dependencies
+ Hashtable of dependencies to update (name -> file path).
+
+ .PARAMETER DevDependencies
+ Hashtable of dev dependencies to update (name -> file path).
+
+ .PARAMETER LocalVersion
+ The version string to use for the package.
+
+ .PARAMETER DebugFolder
+ The debug folder where the package should be moved.
+
+ .PARAMETER UseNpmCi
+ If true, runs 'npm install --package-lock-only && npm ci' instead of 'npm install'.
+ #>
+ param(
+ [Parameter(Mandatory=$true)]
+ [string]$GeneratorPath,
+
+ [Parameter(Mandatory=$false)]
+ [hashtable]$Dependencies = @{},
+
+ [Parameter(Mandatory=$false)]
+ [hashtable]$DevDependencies = @{},
+
+ [Parameter(Mandatory=$true)]
+ [string]$LocalVersion,
+
+ [Parameter(Mandatory=$true)]
+ [string]$DebugFolder,
+
+ [Parameter(Mandatory=$false)]
+ [bool]$UseNpmCi = $false
+ )
+
+ $ErrorActionPreference = 'Stop'
+
+ $packageJsonPath = Join-Path $GeneratorPath "package.json"
+ $originalPackageJson = Get-Content $packageJsonPath -Raw
+
+ try {
+ # Step 1: Update package.json dependencies
+ if ($Dependencies.Count -gt 0 -or $DevDependencies.Count -gt 0) {
+ Write-Host "Updating package.json dependencies..." -ForegroundColor Gray
+ $packageJson = Get-Content $packageJsonPath -Raw | ConvertFrom-Json
+
+ foreach ($dep in $Dependencies.GetEnumerator()) {
+ if ($packageJson.dependencies -and $packageJson.dependencies.PSObject.Properties[$dep.Key]) {
+ $packageJson.dependencies.($dep.Key) = "file:$($dep.Value)"
+ }
+ }
+
+ foreach ($dep in $DevDependencies.GetEnumerator()) {
+ if ($packageJson.devDependencies -and $packageJson.devDependencies.PSObject.Properties[$dep.Key]) {
+ $packageJson.devDependencies.($dep.Key) = "file:$($dep.Value)"
+ }
+ }
+
+ $packageJson | ConvertTo-Json -Depth 100 | Set-Content $packageJsonPath -Encoding UTF8
+ Write-Host " Updated dependencies to local packages" -ForegroundColor Green
+
+ # Install dependencies, clean, and build
+ Push-Location $GeneratorPath
+ try {
+ Write-Host "Installing dependencies..." -ForegroundColor Gray
+ if ($UseNpmCi) {
+ $installOutput = & npm install --package-lock-only 2>&1
+ if ($LASTEXITCODE -ne 0) {
+ Write-Host $installOutput -ForegroundColor Red
+ throw "Failed to update package-lock.json"
+ }
+
+ $ciOutput = & npm ci 2>&1
+ if ($LASTEXITCODE -ne 0) {
+ Write-Host $ciOutput -ForegroundColor Red
+ throw "Failed to install dependencies"
+ }
+ } else {
+ $installOutput = & npm install 2>&1
+ if ($LASTEXITCODE -ne 0) {
+ Write-Host $installOutput -ForegroundColor Red
+ throw "Failed to run npm install"
+ }
+ }
+
+ Write-Host "Cleaning build artifacts..." -ForegroundColor Gray
+ $cleanOutput = Invoke "npm run clean" $GeneratorPath
+ if ($LASTEXITCODE -ne 0) {
+ Write-Host $cleanOutput -ForegroundColor Red
+ throw "Failed to clean generator"
+ }
+
+ Write-Host "Building generator..." -ForegroundColor Gray
+ $buildOutput = Invoke "npm run build" $GeneratorPath
+ if ($LASTEXITCODE -ne 0) {
+ Write-Host $buildOutput -ForegroundColor Red
+ throw "Failed to build generator"
+ }
+
+ Write-Host " Build completed" -ForegroundColor Green
+ }
+ finally {
+ Pop-Location
+ }
+ }
+
+ # Step 3: Package the generator
+ Write-Host "Packaging generator..." -ForegroundColor Gray
+
+ # Update version in package.json for packaging
+ $packageJson = Get-Content $packageJsonPath -Raw | ConvertFrom-Json
+ $packageJson.version = $LocalVersion
+ $packageJson | ConvertTo-Json -Depth 100 | Set-Content $packageJsonPath -Encoding UTF8
+
+ Push-Location $GeneratorPath
+ try {
+ $packOutput = Invoke "npm pack" $GeneratorPath
+ if ($LASTEXITCODE -ne 0) {
+ Write-Host $packOutput -ForegroundColor Red
+ throw "Failed to pack generator"
+ }
+
+ # Get the package filename
+ $packageLine = ($packOutput | Where-Object { $_ -match '\.tgz$' } | Select-Object -First 1).ToString().Trim()
+ if ($packageLine -match 'filename:\s*(.+\.tgz)') {
+ $packageFile = $Matches[1].Trim()
+ } else {
+ $packageFile = $packageLine
+ }
+
+ # Move to debug folder
+ $sourcePath = Join-Path $GeneratorPath $packageFile
+ $destPath = Join-Path $DebugFolder $packageFile
+ Move-Item $sourcePath $destPath -Force
+
+ Write-Host " Package created: $packageFile" -ForegroundColor Green
+
+ return $destPath
+ }
+ finally {
+ Pop-Location
+ }
+ }
+ finally {
+ # Always restore original package.json
+ Set-Content $packageJsonPath $originalPackageJson -Encoding utf8 -NoNewline
+ }
+}
+
+function Update-AzureGeneratorVersion {
+ param(
+ [string]$PackagesDataPropsPath,
+ [string]$NewVersion
+ )
+
+ Write-Host "Updating AzureGeneratorVersion to $NewVersion in Packages.Data.props" -ForegroundColor Gray
+
+ $content = Get-Content $PackagesDataPropsPath -Raw
+
+ # Use regex to find and replace the AzureGeneratorVersion property
+ $pattern = '()([^<]+)()'
+
+ if ($content -match $pattern) {
+ $oldVersion = $Matches[2]
+ $newContent = $content -replace $pattern, "$NewVersion"
+ Set-Content $PackagesDataPropsPath -Value $newContent -Encoding utf8 -NoNewline
+ Write-Host " Updated AzureGeneratorVersion from $oldVersion to $NewVersion" -ForegroundColor Green
+ } else {
+ throw "AzureGeneratorVersion property not found in $PackagesDataPropsPath"
+ }
+}
+
+
+function Update-MgmtGenerator {
+ <#
+ .SYNOPSIS
+ Updates and builds the management plane generator (@azure-typespec/http-client-csharp-mgmt).
+
+ .DESCRIPTION
+ This function handles the management plane generator setup:
+ 1. Updates package.json with Azure generator dependencies
+ 2. Runs npm install
+ 3. Runs npm run clean to ensure a clean build
+ 4. Builds the management plane generator
+ 5. Packages the management plane generator
+ 6. Updates eng folder emitter package artifacts (azure-typespec-http-client-csharp-mgmt-emitter-package.json)
+ 7. Updates mgmt emitter package artifact's devDependency for @typespec/http-client-csharp
+
+ This function is designed to be called from RegenPreview.ps1 and uses the same
+ versioning scheme as the main generators. It derives all necessary paths from the
+ EngFolder parameter.
+
+ .PARAMETER EngFolder
+ The eng folder path in azure-sdk-for-net. All other paths (mgmt generator,
+ package paths, Packages.Data.props) are derived from this.
+
+ .PARAMETER DebugFolder
+ The debug folder path where the packaged generators (.tgz files) are located.
+
+ .PARAMETER LocalVersion
+ The version string to use for the local package (e.g., "1.0.0-alpha.20250127.abc123").
+ #>
+ param(
+ [Parameter(Mandatory=$true)]
+ [string]$EngFolder,
+
+ [Parameter(Mandatory=$true)]
+ [string]$DebugFolder,
+
+ [Parameter(Mandatory=$true)]
+ [string]$LocalVersion
+ )
+
+ $ErrorActionPreference = 'Stop'
+
+ # Derive all paths from EngFolder
+ $mgmtGeneratorPath = Join-Path $EngFolder "packages" "http-client-csharp-mgmt"
+
+ # Package paths come from debug folder
+ $azurePackageName = "azure-typespec-http-client-csharp-$LocalVersion.tgz"
+ $azurePackagePath = Join-Path $DebugFolder $azurePackageName
+
+ if (-not (Test-Path $azurePackagePath)) {
+ throw "Azure package not found: $azurePackagePath"
+ }
+
+ Write-Host "Management plane generator path: $mgmtGeneratorPath" -ForegroundColor Gray
+ Write-Host "Azure package: $azurePackagePath" -ForegroundColor Gray
+ Write-Host "Local version: $LocalVersion" -ForegroundColor Gray
+ Write-Host ""
+
+ # Use shared helper to build and package the mgmt generator
+ $mgmtPackagePath = Update-GeneratorPackage `
+ -GeneratorPath $mgmtGeneratorPath `
+ -Dependencies @{ '@azure-typespec/http-client-csharp' = $azurePackagePath } `
+ -LocalVersion $LocalVersion `
+ -DebugFolder $DebugFolder `
+ -UseNpmCi $false
+
+ # Update eng folder mgmt emitter package artifacts
+ Write-Host "Updating mgmt emitter package artifacts..." -ForegroundColor Gray
+
+ $mgmtEmitterJson = Join-Path $EngFolder "azure-typespec-http-client-csharp-mgmt-emitter-package.json"
+
+ # Now update the package-lock.json with both dependencies
+ $tempDir = Join-Path $EngFolder "temp-mgmt-package-update"
+ New-Item -ItemType Directory -Path $tempDir -Force | Out-Null
+
+ try {
+ $tempPackageJson = Join-Path $tempDir "package.json"
+
+ Copy-Item $mgmtEmitterJson $tempPackageJson -Force
+
+ Push-Location $tempDir
+ try {
+ # Install the mgmt package and regenerate lock file with both dependencies
+ Invoke "npm install `"`"file:$mgmtPackagePath`"`" --package-lock-only" $tempDir
+
+ Copy-Item $tempPackageJson $mgmtEmitterJson -Force
+ $lockFile = Join-Path $tempDir "package-lock.json"
+ if (Test-Path $lockFile) {
+ $mgmtLockJson = Join-Path $EngFolder "azure-typespec-http-client-csharp-mgmt-emitter-package-lock.json"
+ Copy-Item $lockFile $mgmtLockJson -Force
+ }
+
+ Write-Host " Mgmt emitter package artifacts updated" -ForegroundColor Green
+ }
+ finally {
+ Pop-Location
+ }
+ }
+ finally {
+ Remove-Item $tempDir -Recurse -Force -ErrorAction SilentlyContinue
+ }
+
+ Write-Host ""
+
+ # Return the package path for potential further use
+ return $mgmtPackagePath
+}
+
+function Filter-LibrariesByGenerator {
+ <#
+ .SYNOPSIS
+ Filters libraries based on generator type.
+
+ .DESCRIPTION
+ This function filters a list of libraries based on the specified generator type.
+ Each library object should have a 'Generator' property.
+ If no generator filter is specified, all libraries are returned.
+
+ .PARAMETER Libraries
+ Array of library objects to filter. Each object should have a 'Generator' property.
+
+ .PARAMETER Azure
+ Filter for Azure generator (@azure-typespec/http-client-csharp).
+
+ .PARAMETER Unbranded
+ Filter for unbranded generator (@typespec/http-client-csharp).
+
+ .PARAMETER Mgmt
+ Filter for management plane generator (@azure-typespec/http-client-csharp-mgmt).
+ #>
+ param(
+ [Parameter(Mandatory=$true)]
+ [array]$Libraries,
+
+ [Parameter(Mandatory=$false)]
+ [switch]$Azure,
+
+ [Parameter(Mandatory=$false)]
+ [switch]$Unbranded,
+
+ [Parameter(Mandatory=$false)]
+ [switch]$Mgmt
+ )
+
+ $ErrorActionPreference = 'Stop'
+
+ # If no filters specified, return everything as an array
+ if (-not $Azure -and -not $Unbranded -and -not $Mgmt) {
+ return @($Libraries)
+ }
+
+ # Filter based on specified generator type
+ $filtered = [System.Collections.ArrayList]::new()
+
+ if ($Azure) {
+ $azureLibs = @($Libraries | Where-Object { $_.Generator -eq "@azure-typespec/http-client-csharp" })
+ foreach ($lib in $azureLibs) {
+ [void]$filtered.Add($lib)
+ }
+ }
+
+ if ($Unbranded) {
+ $unbrandedLibs = @($Libraries | Where-Object { $_.Generator -eq "@typespec/http-client-csharp" })
+ foreach ($lib in $unbrandedLibs) {
+ [void]$filtered.Add($lib)
+ }
+ }
+
+ if ($Mgmt) {
+ $mgmtLibs = @($Libraries | Where-Object { $_.Generator -eq "@azure-typespec/http-client-csharp-mgmt" })
+ foreach ($lib in $mgmtLibs) {
+ [void]$filtered.Add($lib)
+ }
+ }
+
+ # Return as array to ensure Count property is always available
+ return @($filtered.ToArray())
+}
+
+function Add-LocalNuGetSource {
+ <#
+ .SYNOPSIS
+ Adds a local NuGet package source to NuGet.Config.
+
+ .DESCRIPTION
+ This function adds or updates a local NuGet package source in the repository's NuGet.Config file.
+ The source is inserted after the element if present, or appended otherwise.
+
+ If PackagePatterns is provided, it also updates packageSourceMapping to allow the specified
+ packages to be loaded from the local source. This is required for repos that use package source mapping.
+
+ .PARAMETER NuGetConfigPath
+ Path to the NuGet.Config file.
+
+ .PARAMETER SourcePath
+ Path to the local NuGet package source directory.
+
+ .PARAMETER SourceKey
+ The key/name for the NuGet source (default: "local-codegen-debug-packages").
+
+ .PARAMETER PackagePatterns
+ Optional array of package patterns to add to packageSourceMapping for this source.
+ Example: @("Microsoft.TypeSpec.Generator*", "Azure.Generator")
+ #>
+ param(
+ [Parameter(Mandatory=$true)]
+ [string]$NuGetConfigPath,
+
+ [Parameter(Mandatory=$true)]
+ [string]$SourcePath,
+
+ [Parameter(Mandatory=$false)]
+ [string]$SourceKey = "local-codegen-debug-packages",
+
+ [Parameter(Mandatory=$false)]
+ [string[]]$PackagePatterns = @()
+ )
+
+ $ErrorActionPreference = 'Stop'
+
+ if (-not (Test-Path $NuGetConfigPath)) {
+ throw "NuGet.Config not found at: $NuGetConfigPath"
+ }
+
+ Write-Host "Adding local NuGet package source to NuGet.Config..." -ForegroundColor Gray
+ [xml]$nugetConfig = Get-Content $NuGetConfigPath
+
+ # Ensure configuration element exists
+ if (-not $nugetConfig.configuration) {
+ throw "Invalid NuGet.Config: missing element"
+ }
+
+ # Ensure packageSources element exists, create if needed
+ $packageSources = $nugetConfig.configuration.packageSources
+ if (-not $packageSources) {
+ $packageSources = $nugetConfig.CreateElement("packageSources")
+ $nugetConfig.configuration.AppendChild($packageSources) | Out-Null
+ }
+
+ # Create local source element
+ $localSource = $nugetConfig.CreateElement("add")
+ $localSource.SetAttribute("key", $SourceKey)
+ $localSource.SetAttribute("value", $SourcePath)
+
+ # Find the element and insert after it
+ $clearElement = $packageSources.ChildNodes | Where-Object { $_.Name -eq "clear" } | Select-Object -First 1
+
+ if ($clearElement -and $clearElement.NextSibling) {
+ $packageSources.InsertBefore($localSource, $clearElement.NextSibling) | Out-Null
+ } elseif ($clearElement) {
+ $packageSources.AppendChild($localSource) | Out-Null
+ } else {
+ # No clear element, just prepend to be first
+ if ($packageSources.FirstChild) {
+ $packageSources.InsertBefore($localSource, $packageSources.FirstChild) | Out-Null
+ } else {
+ $packageSources.AppendChild($localSource) | Out-Null
+ }
+ }
+
+ Write-Host " Added local NuGet source: $SourceKey" -ForegroundColor Green
+
+ # Handle packageSourceMapping if PackagePatterns are provided
+ if ($PackagePatterns.Count -gt 0) {
+ Write-Host " Updating packageSourceMapping..." -ForegroundColor Gray
+
+ $packageSourceMapping = $nugetConfig.configuration.packageSourceMapping
+ if (-not $packageSourceMapping) {
+ $packageSourceMapping = $nugetConfig.CreateElement("packageSourceMapping")
+ $nugetConfig.configuration.AppendChild($packageSourceMapping) | Out-Null
+ }
+
+ # Find or create packageSource element for our local source
+ $localPackageSource = $packageSourceMapping.packageSource | Where-Object { $_.key -eq $SourceKey } | Select-Object -First 1
+
+ if (-not $localPackageSource) {
+ $localPackageSource = $nugetConfig.CreateElement("packageSource")
+ $localPackageSource.SetAttribute("key", $SourceKey)
+
+ # Insert at the beginning of packageSourceMapping (highest priority)
+ if ($packageSourceMapping.FirstChild) {
+ $packageSourceMapping.InsertBefore($localPackageSource, $packageSourceMapping.FirstChild) | Out-Null
+ } else {
+ $packageSourceMapping.AppendChild($localPackageSource) | Out-Null
+ }
+ }
+
+ # Add package patterns
+ foreach ($pattern in $PackagePatterns) {
+ $packageElement = $nugetConfig.CreateElement("package")
+ $packageElement.SetAttribute("pattern", $pattern)
+ $localPackageSource.AppendChild($packageElement) | Out-Null
+ Write-Host " Added pattern: $pattern" -ForegroundColor Green
+ }
+ }
+
+ $nugetConfig.Save($NuGetConfigPath)
+}
+
+Export-ModuleMember -Function "Update-MgmtGenerator", "Filter-LibrariesByGenerator", "Add-LocalNuGetSource", "Update-AzureGeneratorVersion"
diff --git a/eng/packages/http-client-csharp/eng/scripts/docs/RegenPreview.md b/eng/packages/http-client-csharp/eng/scripts/docs/RegenPreview.md
new file mode 100644
index 000000000000..6de191a23044
--- /dev/null
+++ b/eng/packages/http-client-csharp/eng/scripts/docs/RegenPreview.md
@@ -0,0 +1,199 @@
+# RegenPreview.ps1
+
+## Overview
+
+`RegenPreview.ps1` is a PowerShell script that automates the process of building local generator packages and regenerating libraries for validation purposes.
+
+This script is designed to streamline the workflow for testing changes to the TypeSpec HTTP Client C# generator before submitting a pull request.
+
+## Purpose
+
+When making changes to the TypeSpec HTTP Client C# generator, it may be helpful to validate what the effects will be to generated libraries. This script automates the entire validation workflow by:
+
+### High level process
+
+1. Building local versions of the generator packages
+2. Updating the Azure SDK for .NET repository to use these local packages
+3. Regenerating all libraries (or selected libraries if `-Select` is specified)
+4. Cleaning up all modifications after validation
+
+## Prerequisites
+
+- **PowerShell 7.0 or later** (cross-platform: Windows, Linux, macOS)
+- Node.js and npm installed
+- .NET SDK installed
+- Local clone of the `azure-sdk-for-net` repository
+
+## Usage
+
+### Basic Usage (Regenerate All)
+
+**Windows:**
+
+```powershell
+.\RegenPreview.ps1
+```
+
+**Linux/macOS:**
+
+```powershell
+./RegenPreview.ps1
+```
+
+This will:
+
+- Clean and build the Azure & Mgmt generator with local changes
+- Regenerate **all** libraries automatically
+- Restore all modified metadata files on success (ie. package.json, package-lock.json)
+
+### Parameters
+
+#### `-Select` (Optional)
+
+When specified, displays an interactive menu to select specific libraries to regenerate. If omitted, all libraries are regenerated automatically.
+
+Can be combined with generator filter parameters (`-Azure`, `-Unbranded`, `-Mgmt`) to interactively select from a filtered subset.
+
+**Example:**
+
+```powershell
+.\RegenPreview.ps1 -Select
+```
+
+#### `-Azure` (Optional)
+
+When specified, only regenerates libraries using the Azure-branded generator (`@azure-typespec/http-client-csharp`).
+
+**Example:**
+
+```powershell
+.\RegenPreview.ps1 -Azure
+```
+
+#### `-Unbranded` (Optional)
+
+When specified, only regenerates libraries using the unbranded generator (`@typespec/http-client-csharp`).
+
+**Example:**
+
+```powershell
+.\RegenPreview.ps1 -Unbranded
+```
+
+#### `-Mgmt` (Optional)
+
+When specified, only regenerates libraries using the management plane generator (`@azure-typespec/http-client-csharp-mgmt`).
+
+If no generator filter parameter is specified, all libraries are regenerated by default.
+
+**Example:**
+
+```powershell
+.\RegenPreview.ps1 -Mgmt
+```
+
+### Interactive Selection
+
+When running with the `-Select` flag, the script presents an interactive menu listing all available libraries:
+
+```
+==================== LIBRARY SELECTION ====================
+Found 28 libraries available for regeneration
+
+Azure-branded libraries (@azure-typespec/http-client-csharp):
+ [ 1] Azure.AI.VoiceLive (ai)
+ [ 2] Azure.Data.AppConfiguration (appconfiguration)
+ ...
+
+Unbranded libraries (@typespec/http-client-csharp):
+ [12] Azure.AI.Projects (ai)
+ [13] Azure.AI.OpenAI (openai)
+
+Management plane libraries (@azure-typespec/http-client-csharp-mgmt):
+ [14] Azure.ResourceManager.AgriculturePlatform (agricultureplatform)
+ [15] Azure.ResourceManager.ArizeAIObservabilityEval (arizeaiobservabilityeval)
+ ...
+
+Enter library numbers to regenerate (comma-separated), 'all' for all libraries, or 'q' to quit:
+Example: 1,3,5 or 1-4,7 or all
+```
+
+**Selection Options:**
+
+- Single library: `1`
+- Multiple libraries: `1,3,5`
+- Range of libraries: `1-4`
+- Combination: `1-4,7,10`
+- All libraries: `all`
+- Quit: `q`
+
+### Error Handling
+
+If the script encounters an error during pre-requisite steps (Steps 1-6), it will:
+
+- Display the error message and stack trace
+- Attempt to restore `NuGet.Config` to prevent leaving the repository in an inconsistent state
+- Exit with code 1
+
+## Output
+
+### Debug Folder
+
+All packaged artifacts are stored in the `debug` folder at the root of the azure generator:
+
+- `azure-typespec-http-client-csharp-{version}.tgz` - Azure generator npm package
+- `Azure.Generator.{version}.nupkg` - Core generator NuGet package
+- `regen-report.json` - Detailed JSON report of regeneration results
+
+### Console Output
+
+The script provides colored console output with:
+
+- **Cyan**: Step headers and section dividers
+- **Yellow**: Important information (versions, library counts, warnings)
+- **Gray**: Detailed command execution and file operations
+- **Green**: Success messages
+- **Red**: Error messages and failed libraries
+- **White**: Library names during regeneration
+
+### Regeneration Report
+
+After regeneration completes, a summary report is displayed:
+
+```
+==================== REGENERATION REPORT ====================
+Total Libraries: 3
+Passed: 2
+Failed: 1
+Execution Time: 00:02:45
+
+PASSED LIBRARIES:
+ ✓ Azure.AI.VoiceLive (ai)
+ ✓ Azure.AI.Projects (cognitiveservices)
+
+FAILED LIBRARIES:
+ ✗ Azure.Messaging.EventGrid.Namespaces (eventgrid)
+ Error: Generation failed with exit code 1
+ Details: ...
+
+=============================================================
+Detailed report saved to: C:\...\debug\regen-report.json
+```
+
+## Common Scenarios
+
+### Scenario: Test a Small Change Quickly
+
+```powershell
+# You want to test Azure generator changes on specific libraries only
+.\RegenPreview.ps1 -Select
+
+# Select just one or two libraries when prompted
+# Selection: 1,5
+```
+
+### Scenario: Full Validation Before PR
+
+```powershell
+.\RegenPreview.ps1
+```
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureTypeFactory.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureTypeFactory.cs
index 10811975077e..f9fd7f2e3ba7 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureTypeFactory.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureTypeFactory.cs
@@ -17,6 +17,7 @@
using System.Collections.Generic;
using System.Text.Json;
using Azure.Core;
+using Azure.Generator.Utilities;
namespace Azure.Generator
{
@@ -55,6 +56,12 @@ public class AzureTypeFactory : ScmTypeFactory
new("Azure.Core")
];
+ ///
+ protected override string BuildServiceName()
+ {
+ return TypeNameUtilities.GetResourceProviderName();
+ }
+
///
protected override CSharpType? CreateCSharpTypeCore(InputType inputType)
{
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ClientProviderExtensions.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ClientProviderExtensions.cs
index 0e31d36b8f97..d2fadfb3ef31 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ClientProviderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ClientProviderExtensions.cs
@@ -8,7 +8,7 @@
using Microsoft.TypeSpec.Generator.Input.Extensions;
using Microsoft.TypeSpec.Generator.Providers;
-namespace Azure.Generator
+namespace Azure.Generator.Extensions
{
internal static class ClientProviderExtensions
{
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ConfigurationExtensions.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ConfigurationExtensions.cs
index b079c8ae7569..dbe573e38518 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ConfigurationExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ConfigurationExtensions.cs
@@ -5,7 +5,7 @@
using System.Collections.Generic;
using Microsoft.TypeSpec.Generator;
-namespace Azure.Generator
+namespace Azure.Generator.Extensions
{
internal static class ConfigurationExtensions
{
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureClientResponseProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureClientResponseProvider.cs
index dce31f8220ac..565c92f78354 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureClientResponseProvider.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/AzureClientResponseProvider.cs
@@ -7,7 +7,6 @@
using Microsoft.TypeSpec.Generator.Input;
using Microsoft.TypeSpec.Generator.Primitives;
using Microsoft.TypeSpec.Generator.Providers;
-using Microsoft.TypeSpec.Generator.Snippets;
using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
namespace Azure.Generator.Providers
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestProvider.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestProvider.cs
index 065b7db2ae29..f9312ca2a0d1 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestProvider.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/Abstraction/HttpRequestProvider.cs
@@ -4,10 +4,10 @@
using Azure.Core;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
using Microsoft.TypeSpec.Generator.Expressions;
+using Microsoft.TypeSpec.Generator.Snippets;
using Microsoft.TypeSpec.Generator.Statements;
using System;
using System.Collections.Generic;
-using Microsoft.TypeSpec.Generator.Snippets;
using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
namespace Azure.Generator.Providers
@@ -29,6 +29,9 @@ public override ValueExpression Content()
public override HttpRequestApi FromExpression(ValueExpression original)
=> new HttpRequestProvider(original);
+ public override ValueExpression ClientRequestId()
+ => Original.Property(nameof(Request.ClientRequestId));
+
public override MethodBodyStatement SetHeaders(IReadOnlyList arguments)
=> Original.Property(nameof(Request.Headers)).Invoke(nameof(RequestHeaders.SetValue), arguments).Terminate();
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/AzureCollectionResultDefinition.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/AzureCollectionResultDefinition.cs
index f957c25a0e25..cd18c578cfc6 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/AzureCollectionResultDefinition.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/AzureCollectionResultDefinition.cs
@@ -8,6 +8,7 @@
using System.Threading.Tasks;
using Azure.Core;
using Azure.Core.Pipeline;
+using Azure.Generator.Extensions;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
using Microsoft.TypeSpec.Generator.Expressions;
using Microsoft.TypeSpec.Generator.Input;
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/ClientBuilderExtensionsDefinition.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/ClientBuilderExtensionsDefinition.cs
index a89f64c67973..42690e8202bc 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/ClientBuilderExtensionsDefinition.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/ClientBuilderExtensionsDefinition.cs
@@ -8,12 +8,12 @@
using System.Linq;
using Azure.Core;
using Azure.Core.Extensions;
+using Azure.Generator.Utilities;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
using Microsoft.TypeSpec.Generator.Expressions;
using Microsoft.TypeSpec.Generator.Primitives;
using Microsoft.TypeSpec.Generator.Providers;
using Microsoft.TypeSpec.Generator.Statements;
-using Azure.Generator.Visitors.Utilities;
using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
namespace Azure.Generator.Providers
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/Utilities/TypeNameUtilities.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Utilities/TypeNameUtilities.cs
similarity index 96%
rename from eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/Utilities/TypeNameUtilities.cs
rename to eng/packages/http-client-csharp/generator/Azure.Generator/src/Utilities/TypeNameUtilities.cs
index 6da4bcb74a42..36035aad8121 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/Utilities/TypeNameUtilities.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Utilities/TypeNameUtilities.cs
@@ -4,7 +4,7 @@
using Microsoft.TypeSpec.Generator;
using System.Linq;
-namespace Azure.Generator.Visitors.Utilities
+namespace Azure.Generator.Utilities
{
internal static class TypeNameUtilities
{
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/DistributedTracingVisitor.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/DistributedTracingVisitor.cs
index 41fbeb9fb192..07c7b2798409 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/DistributedTracingVisitor.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/DistributedTracingVisitor.cs
@@ -14,6 +14,7 @@
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
+using Azure.Generator.Extensions;
using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
namespace Azure.Generator.Visitors
@@ -106,7 +107,7 @@ internal class DistributedTracingVisitor : ScmLibraryVisitor
return base.VisitMethod(method);
}
- if (method.IsProtocolMethod)
+ if (method.Kind == ScmMethodKind.Protocol)
{
UpdateProtocolMethodsWithDistributedTracing(method);
}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/Extensions/ConfigurationExtensions.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/Extensions/ConfigurationExtensions.cs
deleted file mode 100644
index 629006ec4908..000000000000
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/Extensions/ConfigurationExtensions.cs
+++ /dev/null
@@ -1,22 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using System;
-using System.Collections.Generic;
-using Microsoft.TypeSpec.Generator;
-
-namespace Azure.Generator.Visitors.Extensions
-{
- internal static class ConfigurationExtensions
- {
- public static bool UseModelNamespace(this Configuration config) =>
- UseModelNamespace(config.AdditionalConfigurationOptions);
-
- internal static bool UseModelNamespace(IReadOnlyDictionary options)
- {
- return options.TryGetValue("model-namespace", out var value) &&
- bool.TryParse(value.ToString(), out var parsed) &&
- parsed;
- }
- }
-}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/LroVisitor.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/LroVisitor.cs
index 8b5faa6e592b..406961ea78ad 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/LroVisitor.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/LroVisitor.cs
@@ -8,9 +8,12 @@
using System.Text.Json;
using System.Threading.Tasks;
using Azure.Core;
+using Azure.Generator.Extensions;
+using Azure.Generator.Primitives;
using Azure.Generator.Providers;
using Microsoft.TypeSpec.Generator.ClientModel;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
+using Microsoft.TypeSpec.Generator.ClientModel.Snippets;
using Microsoft.TypeSpec.Generator.Expressions;
using Microsoft.TypeSpec.Generator.Input;
using Microsoft.TypeSpec.Generator.Primitives;
@@ -23,6 +26,8 @@ namespace Azure.Generator.Visitors
{
internal class LroVisitor : ScmLibraryVisitor
{
+ private const string FromLroResponseMethodName = "FromLroResponse";
+
protected override ScmMethodProviderCollection? Visit(
InputServiceMethod serviceMethod,
ClientProvider client,
@@ -30,15 +35,16 @@ internal class LroVisitor : ScmLibraryVisitor
{
if (serviceMethod is InputLongRunningServiceMethod { Response.Type: InputModelType responseModel } lroServiceMethod)
{
- UpdateExplicitOperatorMethod(responseModel, lroServiceMethod);
+ AddFromLroResponseMethod(responseModel, lroServiceMethod, client);
}
return methods;
}
- private static void UpdateExplicitOperatorMethod(
+ private static void AddFromLroResponseMethod(
InputModelType responseModel,
- InputLongRunningServiceMethod lroServiceMethod)
+ InputLongRunningServiceMethod lroServiceMethod,
+ ClientProvider client)
{
var model = AzureClientGenerator.Instance.TypeFactory.CreateModel(responseModel);
if (model == null)
@@ -46,41 +52,100 @@ private static void UpdateExplicitOperatorMethod(
return;
}
- // Update the explicit cast from response in LRO models to use the result path
- var explicitOperator = model.SerializationProviders[0].Methods
- .FirstOrDefault(m => m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Explicit) &&
- m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Operator));
-
var resultSegment = lroServiceMethod.LongRunningServiceMetadata.ResultPath;
- if (explicitOperator == null || string.IsNullOrEmpty(resultSegment))
+ if (string.IsNullOrEmpty(resultSegment))
{
return;
}
- foreach (var statement in explicitOperator.BodyStatements!)
+ var serializationProvider = model.SerializationProviders[0];
+
+ // Check if FromLroResponse method already exists with matching signature
+ var existingMethod = serializationProvider.Methods
+ .FirstOrDefault(m => m.Signature.Name == FromLroResponseMethodName &&
+ m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Internal) &&
+ m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Static) &&
+ m.Signature.ReturnType?.Equals(model.Type) == true &&
+ m.Signature.Parameters.Count == 1 &&
+ m.Signature.Parameters[0].Type.Equals(typeof(Response)));
+ if (existingMethod != null)
{
- if (statement is ExpressionStatement
- {
- Expression: KeywordExpression
- {
- Keyword: "return", Expression: InvokeMethodExpression invokeMethodExpression
- }
- })
+ return;
+ }
+
+ // Create the FromLroResponse method
+ var responseParameter = KnownAzureParameters.Response;
+ var methodSignature = new MethodSignature(
+ FromLroResponseMethodName,
+ $"Converts a response to a {model.Type.Name} using the LRO result path.",
+ MethodSignatureModifiers.Internal | MethodSignatureModifiers.Static,
+ model.Type,
+ null,
+ [responseParameter]);
+
+ // Build method body similar to explicit operator but with result path
+ var modelSerializationExtensions = Static(new ModelSerializationExtensionsDefinition().Type);
+ var statements = new MethodBodyStatement[]
+ {
+ UsingDeclare("document", typeof(JsonDocument),
+ Static().Invoke(nameof(JsonDocument.Parse),
+ [responseParameter.Property("Content"),
+ modelSerializationExtensions.Property("JsonDocumentOptions")]),
+ out var documentVariable),
+ Return(Static(model.Type).Invoke(
+ $"Deserialize{model.Type.Name}",
+ [
+ documentVariable.Property("RootElement").Invoke("GetProperty", Literal(resultSegment)),
+ modelSerializationExtensions.Property("WireOptions")
+ ]))
+ };
+
+ var fromLroResponseMethod = new MethodProvider(methodSignature, statements, serializationProvider);
+
+ // Add the method to the serialization provider
+ serializationProvider.Update(methods: [..serializationProvider.Methods, fromLroResponseMethod]);
+
+ // Check if we should remove the explicit operator
+ // Only remove it if the model is ONLY used in LRO contexts across all clients
+ bool isOnlyUsedInLro = IsModelOnlyUsedInLro(responseModel);
+ if (isOnlyUsedInLro)
+ {
+ var explicitOperator = serializationProvider.Methods
+ .FirstOrDefault(m => m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Explicit) &&
+ m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Operator));
+
+ if (explicitOperator != null)
{
- if (invokeMethodExpression.Arguments.Count > 0 && invokeMethodExpression.Arguments[0] is ScopedApi)
- {
- invokeMethodExpression.Update(
- arguments:
- [
- invokeMethodExpression.Arguments[0]
- .Invoke("GetProperty", Literal(resultSegment)),
- ..invokeMethodExpression.Arguments.Skip(1)
- ]);
- }
+ var updatedMethods = serializationProvider.Methods.Except([explicitOperator]).ToList();
+ serializationProvider.Update(methods: updatedMethods);
}
}
}
+ private static bool IsModelOnlyUsedInLro(InputModelType responseModel)
+ {
+ // Check all clients in the output library to see if any non-LRO method returns this model type
+ var outputLibrary = AzureClientGenerator.Instance.OutputLibrary;
+ var allClients = outputLibrary.TypeProviders.OfType();
+
+ foreach (var client in allClients)
+ {
+ // Check if any non-LRO method in this client uses the response model
+ bool usedInNonLro = client.Methods
+ .OfType()
+ .Any(m => m.ServiceMethod != null &&
+ m.ServiceMethod is not InputLongRunningServiceMethod &&
+ m.ServiceMethod.Response?.Type == responseModel);
+
+ if (usedInNonLro)
+ {
+ return false; // Model is used in non-LRO context, keep the explicit operator
+ }
+ }
+
+ return true; // Model is only used in LRO contexts
+ }
+
protected override ScmMethodProvider? VisitMethod(ScmMethodProvider method)
{
if (method.IsLroMethod())
@@ -95,10 +160,10 @@ private static void UpdateMethodSignature(ScmMethodProvider method)
{
var responseType = method.ServiceMethod!.Response.Type;
- var returnType = (responseType, method.IsProtocolMethod) switch
+ var returnType = (responseType, method.Kind) switch
{
(null, _) => typeof(Operation),
- (not null, true) => new CSharpType(typeof(Operation<>), typeof(BinaryData)),
+ (not null, ScmMethodKind.Protocol) => new CSharpType(typeof(Operation<>), typeof(BinaryData)),
_ => new CSharpType(typeof(Operation<>), AzureClientGenerator.Instance.TypeFactory.CreateCSharpType(responseType)!),
};
var isAsync = method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Async);
@@ -129,7 +194,7 @@ private static void UpdateMethodSignature(ScmMethodProvider method)
ExpressionStatement expressionStatement,
MethodProvider method)
{
- if (method is ScmMethodProvider scmMethod && scmMethod.IsLroMethod() && !scmMethod.IsProtocolMethod)
+ if (method is ScmMethodProvider scmMethod && scmMethod.IsLroMethod() && scmMethod.Kind != ScmMethodKind.Protocol)
{
return UpdateConvenienceMethod(expressionStatement, scmMethod);
}
@@ -170,13 +235,31 @@ private static void UpdateMethodSignature(ScmMethodProvider method)
var client = (ClientProvider)scmMethod.EnclosingType;
var diagnosticsProperty = client.GetClientDiagnosticProperty();
var scopeName = scmMethod.GetScopeName();
+
+ // Use FromLroResponse static method instead of explicit operator cast
+ var responseModel = serviceMethod.Response.Type as InputModelType;
+ var lroServiceMethod = scmMethod.ServiceMethod as InputLongRunningServiceMethod;
+ var resultSegment = lroServiceMethod?.LongRunningServiceMetadata.ResultPath;
+
+ ValueExpression conversionExpression;
+ if (!string.IsNullOrEmpty(resultSegment) && responseModel != null)
+ {
+ // Call the FromLroResponse static method
+ conversionExpression = Static(responseType).Invoke(FromLroResponseMethodName, [response]);
+ }
+ else
+ {
+ // Fall back to explicit operator cast for models without result path
+ conversionExpression = new CastExpression(response, responseType);
+ }
+
invokeMethodExpression.Update(
instanceReference: Static(typeof(ProtocolOperationHelpers)),
methodName: "Convert",
arguments:
[
(invokeMethodExpression.Arguments[0] as CastExpression)!.Inner,
- new FuncExpression([response.Declaration], new CastExpression(response, responseType)),
+ new FuncExpression([response.Declaration], conversionExpression),
diagnosticsProperty,
Literal(scopeName),
]);
@@ -191,7 +274,7 @@ private static void UpdateMethodSignature(ScmMethodProvider method)
{
if (method is ScmMethodProvider scmMethod && scmMethod.IsLroMethod())
{
- if (scmMethod.IsProtocolMethod)
+ if (scmMethod.Kind == ScmMethodKind.Protocol)
{
return UpdateProcessCall(expression, scmMethod);
}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/MatchConditionsHeadersVisitor.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/MatchConditionsHeadersVisitor.cs
index b9c259b17b4b..f4d9a5b640a0 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/MatchConditionsHeadersVisitor.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/MatchConditionsHeadersVisitor.cs
@@ -63,12 +63,11 @@ internal class MatchConditionsHeadersVisitor : ScmLibraryVisitor
return base.VisitMethod(method);
}
- bool isCreateRequestMethod = IsCreateRequestMethod(method);
// Update method parameters
UpdateMethodParameters(method, headerFlags, matchConditionParams);
// Update method body
- if (isCreateRequestMethod)
+ if (method.Kind == ScmMethodKind.CreateRequest)
{
UpdateCreateRequestMethodBody(method, headerFlags, matchConditionParams);
}
@@ -177,7 +176,7 @@ private static void UpdateMethodWithConditionsParameter(
}
// Update the method signature & xml docs with the new parameters
- if (!IsCreateRequestMethod(method))
+ if (method.Kind != ScmMethodKind.CreateRequest)
{
method.XmlDocs.Update(parameters: xmlParameterDocs);
}
@@ -189,7 +188,7 @@ private static RequestConditionHeaders ParseMatchConditionHeaders(ScmMethodProvi
{
var flags = RequestConditionHeaders.None;
- var allParameters = method.IsProtocolMethod || IsCreateRequestMethod(method)
+ var allParameters = method.Kind == ScmMethodKind.Protocol || method.Kind == ScmMethodKind.CreateRequest
? method.ServiceMethod!.Operation.Parameters
: method.ServiceMethod!.Parameters;
@@ -286,7 +285,7 @@ private static void UpdateClientMethodBody(
var updatedStatements = new List();
var requestConditionsParameter = GetConditionsParameter(matchConditionParams[0], headerFlags);
- if (method.IsProtocolMethod && HasModificationTimeHeaders(headerFlags))
+ if (method.Kind == ScmMethodKind.Protocol && HasModificationTimeHeaders(headerFlags))
{
// Add validation statements for unsupported headers
var unsupportedHeaders = new[]
@@ -319,7 +318,7 @@ private static void UpdateClientMethodBody(
foreach (var statement in method.BodyStatements)
{
var updatedStatement = UpdateMethodInvocationStatement(
- method.IsProtocolMethod,
+ method.Kind == ScmMethodKind.Protocol,
statement,
requestConditionsParameter);
updatedStatements.Add(updatedStatement);
@@ -493,15 +492,6 @@ expressionStatement.Expression is InvokeMethodExpression invokeExpression &&
return false;
}
- private static bool IsCreateRequestMethod(ScmMethodProvider method)
- {
- return method.EnclosingType is RestClientProvider &&
- method.ServiceMethod != null &&
- !method.IsProtocolMethod &&
- method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Internal) &&
- method.Signature.ReturnType?.Equals(typeof(HttpMessage)) == true;
- }
-
private static List GetMatchConditionParameters(IReadOnlyList parameters)
{
var matchConditionParams = new List();
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/ModelFactoryRenamerVisitor.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/ModelFactoryRenamerVisitor.cs
index 2a66ac752c5c..20660e9c1e34 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/ModelFactoryRenamerVisitor.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/ModelFactoryRenamerVisitor.cs
@@ -1,9 +1,9 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+using Azure.Generator.Utilities;
using Microsoft.TypeSpec.Generator.ClientModel;
using Microsoft.TypeSpec.Generator.Providers;
-using Azure.Generator.Visitors.Utilities;
namespace Azure.Generator.Visitors
{
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/NamespaceVisitor.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/NamespaceVisitor.cs
index fa12dcd06ffa..c5b87135a5f9 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/NamespaceVisitor.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/NamespaceVisitor.cs
@@ -2,12 +2,12 @@
// Licensed under the MIT License.
using System.IO;
+using Azure.Generator.Extensions;
using Microsoft.TypeSpec.Generator;
using Microsoft.TypeSpec.Generator.ClientModel;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
using Microsoft.TypeSpec.Generator.Input;
using Microsoft.TypeSpec.Generator.Providers;
-using Azure.Generator.Visitors.Extensions;
namespace Azure.Generator.Visitors
{
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/RequestClientIdHeaderVisitor.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/RequestClientIdHeaderVisitor.cs
index 17d8eca52ff3..32fa133aa863 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/RequestClientIdHeaderVisitor.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/RequestClientIdHeaderVisitor.cs
@@ -46,7 +46,7 @@ internal class RequestClientIdHeaderVisitor : ScmLibraryVisitor
var newStatements = new List(originalBodyStatements[..^1]);
// Find the request variable
- VariableExpression? requestVariable = null;
+ HttpRequestApi? requestVariable = null;
foreach (var statement in newStatements)
{
if (statement is ExpressionStatement
@@ -57,7 +57,7 @@ internal class RequestClientIdHeaderVisitor : ScmLibraryVisitor
var variable = declaration.Variable;
if (variable.Type.Equals(variable.ToApi().Type))
{
- requestVariable = variable;
+ requestVariable = variable.ToApi();
}
}
}
@@ -67,7 +67,7 @@ internal class RequestClientIdHeaderVisitor : ScmLibraryVisitor
// Set the client-request-id header
newStatements.Add(requestVariable.As().SetHeaderValue(
clientRequestIdParameter.SerializedName,
- requestVariable.Property(nameof(Request.ClientRequestId))));
+ requestVariable.ClientRequestId()));
}
// Add the return statement back
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/SpecialHeadersVisitor.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/SpecialHeadersVisitor.cs
index 28aaa25c523f..c467a39a7fc3 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/SpecialHeadersVisitor.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/SpecialHeadersVisitor.cs
@@ -1,13 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-using System.Collections.Generic;
-using System.Linq;
using Microsoft.TypeSpec.Generator.ClientModel;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
using Microsoft.TypeSpec.Generator.Expressions;
using Microsoft.TypeSpec.Generator.Input;
+using Microsoft.TypeSpec.Generator.Providers;
using Microsoft.TypeSpec.Generator.Statements;
+using System.Collections.Generic;
+using System.Linq;
using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
namespace Azure.Generator.Visitors
@@ -17,8 +18,16 @@ namespace Azure.Generator.Visitors
///
internal class SpecialHeadersVisitor : ScmLibraryVisitor
{
+ private readonly bool _includeClientRequestIdInRequest;
private const string ReturnClientRequestIdParameterName = "return-client-request-id";
private const string XMsClientRequestIdParameterName = "x-ms-client-request-id";
+ private readonly Dictionary _serviceMethodParameterMap;
+
+ public SpecialHeadersVisitor(bool includeXmsClientRequestIdInRequest = false)
+ {
+ _includeClientRequestIdInRequest = includeXmsClientRequestIdInRequest;
+ _serviceMethodParameterMap = [];
+ }
protected override ScmMethodProviderCollection? Visit(
InputServiceMethod serviceMethod,
@@ -38,52 +47,76 @@ internal class SpecialHeadersVisitor : ScmLibraryVisitor
// Create a new method collection with the updated service method
methods = new ScmMethodProviderCollection(serviceMethod, client);
- // Reset the rest client so that its methods are rebuilt.
+ // Store the parameters for the CreateRequest method
+ _serviceMethodParameterMap.TryAdd(serviceMethod, (returnClientRequestIdParameter, xMsClientRequestIdParameter));
+
+ // Reset the rest client so that its methods are rebuilt reflecting the new signatures
client.RestClient.Reset();
- var createRequestMethod = client.RestClient.GetCreateRequestMethod(serviceMethod.Operation);
+ }
+
+ return methods;
+ }
+
+ protected override ScmMethodProvider? VisitMethod(ScmMethodProvider method)
+ {
+ if (method.ServiceMethod is null || !_serviceMethodParameterMap.TryGetValue(method.ServiceMethod, out var parameters))
+ {
+ return method;
+ }
- var originalBodyStatements = createRequestMethod.BodyStatements!.ToList();
+ var (returnClientRequestIdParameter, xMsClientRequestIdParameter) = parameters;
- // Exclude the last statement which is the return statement. We will add it back later.
- var newStatements = new List(originalBodyStatements[..^1]);
+ var originalBodyStatements = method.BodyStatements!.ToList();
- // Find the request variable
- VariableExpression? requestVariable = null;
- foreach (var statement in newStatements)
+ // Exclude the last statement which is the return statement. We will add it back later.
+ var newStatements = new List(originalBodyStatements[..^1]);
+
+ // Find the request variable
+ VariableExpression? requestVariable = null;
+ foreach (var statement in newStatements)
+ {
+ if (statement is ExpressionStatement
+ {
+ Expression: AssignmentExpression { Variable: DeclarationExpression declaration }
+ })
{
- if (statement is ExpressionStatement
- {
- Expression: AssignmentExpression { Variable: DeclarationExpression declaration }
- })
+ var variable = declaration.Variable;
+ if (variable.Type.Equals(variable.ToApi().Type))
{
- var variable = declaration.Variable;
- if (variable.Type.Equals(variable.ToApi().Type))
- {
- requestVariable = variable;
- }
+ requestVariable = variable;
}
}
+ }
- if (returnClientRequestIdParameter?.DefaultValue?.Value != null)
+ var request = requestVariable?.ToApi();
+ if (request != null && returnClientRequestIdParameter?.DefaultValue?.Value != null)
+ {
+ if (bool.TryParse(returnClientRequestIdParameter.DefaultValue.Value.ToString(), out bool value))
{
- if (bool.TryParse(returnClientRequestIdParameter.DefaultValue.Value.ToString(), out bool value))
- {
- // Set the return-client-request-id header
- newStatements.Add(requestVariable!.ToApi().SetHeaders(
- [
- Literal(returnClientRequestIdParameter.SerializedName),
- Literal(value.ToString().ToLowerInvariant())
- ]));
- }
+ // Set the return-client-request-id header
+ newStatements.Add(request.SetHeaders(
+ [
+ Literal(returnClientRequestIdParameter.SerializedName),
+ Literal(value.ToString().ToLowerInvariant())
+ ]));
}
+ }
- // Add the return statement back
- newStatements.Add(originalBodyStatements[^1]);
-
- createRequestMethod.Update(bodyStatements: newStatements);
+ if (request != null && _includeClientRequestIdInRequest && xMsClientRequestIdParameter != null)
+ {
+ // Set the x-ms-client-request-id header
+ newStatements.Add(request.SetHeaders(
+ [
+ Literal(xMsClientRequestIdParameter.SerializedName),
+ request.Property("ClientRequestId")
+ ]));
}
- return methods;
+ // Add the return statement back
+ newStatements.Add(originalBodyStatements[^1]);
+
+ method.Update(bodyStatements: newStatements);
+ return method;
}
}
}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/ConfigurationExtensionsTests.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/ConfigurationExtensionsTests.cs
index f2e6580a60d8..0ebc3497451c 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/ConfigurationExtensionsTests.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/ConfigurationExtensionsTests.cs
@@ -4,7 +4,7 @@
using System;
using System.Collections.Generic;
using NUnit.Framework;
-using Azure.Generator.Visitors.Extensions;
+using Azure.Generator.Extensions;
namespace Azure.Generator.Tests
{
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs
index 61157a48b111..acfb8a02668f 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/TestHelpers/MockHelpers.cs
@@ -33,6 +33,7 @@ public static Mock LoadMockGenerator(
Func>? inputModels = null,
Func>? clients = null,
Func? createClientCore = null,
+ Func>? visitors = null,
ClientResponseApi? clientResponseApi = null,
ClientPipelineApi? clientPipelineApi = null,
HttpMessageApi? httpMessageApi = null,
@@ -91,11 +92,24 @@ public static Mock LoadMockGenerator(
var sourceInputModel = new Mock(() => new SourceInputModel(null, null)) { CallBase = true };
mockPluginInstance.Setup(p => p.SourceInputModel).Returns(sourceInputModel.Object);
- var configureMethod = typeof(CodeModelGenerator).GetMethod(
- "Configure",
- BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.InvokeMethod
- );
- configureMethod!.Invoke(mockPluginInstance.Object, null);
+
+ if (visitors != null)
+ {
+ var visitorsList = visitors.Invoke();
+ foreach (var visitor in visitorsList)
+ {
+ mockPluginInstance.Object.AddVisitor(visitor);
+ }
+ }
+ else
+ {
+ var configureMethod = typeof(CodeModelGenerator).GetMethod(
+ "Configure",
+ BindingFlags.Instance | BindingFlags.NonPublic | BindingFlags.InvokeMethod
+ );
+ configureMethod!.Invoke(mockPluginInstance.Object, null);
+ }
+
return mockPluginInstance;
}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/DistributedTracingVisitorTests.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/DistributedTracingVisitorTests.cs
index a5cdff993a4c..9677126a0baa 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/DistributedTracingVisitorTests.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/DistributedTracingVisitorTests.cs
@@ -154,7 +154,8 @@ public void TestUpdatesProtocolMethods(bool isProtocolMethod)
$"The response returned from the service.",
[new ParameterProvider("p1", $"p1", AzureClientGenerator.Instance.TypeFactory.RequestContentApi.RequestContentType)]);
var bodyStatements = InvokeConsoleWriteLine(Literal("Hello World"));
- var method = new ScmMethodProvider(methodSignature, bodyStatements, clientProvider!, isProtocolMethod: isProtocolMethod);
+ var methodKind = isProtocolMethod ? ScmMethodKind.Protocol : ScmMethodKind.Convenience;
+ var method = new ScmMethodProvider(methodSignature, bodyStatements, clientProvider!, methodKind);
var updatedMethod = visitor.InvokeVisitMethod(method!);
Assert.IsNotNull(updatedMethod?.BodyStatements);
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/LroVisitorTests.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/LroVisitorTests.cs
index f62f0a973634..4b7269b74cda 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/LroVisitorTests.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/LroVisitorTests.cs
@@ -52,7 +52,7 @@ public void UpdatesLroSignatureNoResponseBody()
Assert.IsTrue(scmMethod.Signature.ReturnType!.Equals(typeof(Operation)) ||
scmMethod.Signature.ReturnType!.Equals(new CSharpType(typeof(Task<>), typeof(Operation))));
- if (scmMethod.IsProtocolMethod)
+ if (scmMethod.Kind == ScmMethodKind.Protocol)
{
var requestContextParameter = scmMethod.Signature.Parameters[^1];
Assert.IsTrue(requestContextParameter.Type.Equals(typeof(RequestContext)));
@@ -102,7 +102,7 @@ public void UpdatesLroSignatureWithResponseBody()
Assert.IsTrue(waitUntilParameter.Type.Equals(typeof(WaitUntil)));
Assert.AreEqual("waitUntil", waitUntilParameter.Name);
- if (scmMethod.IsProtocolMethod)
+ if (scmMethod.Kind == ScmMethodKind.Protocol)
{
var requestContextParameter = scmMethod.Signature.Parameters[^1];
Assert.IsTrue(requestContextParameter.Type.Equals(typeof(RequestContext)));
@@ -120,7 +120,7 @@ public void UpdatesLroSignatureWithResponseBody()
}
[Test]
- public void UpdatesExplicitOperatorToUseResultSegment()
+ public void AddsFromLroResponseMethodAndRemovesExplicitOperatorForLroOnlyModel()
{
var visitor = new TestLroVisitor();
List parameters =
@@ -154,23 +154,140 @@ public void UpdatesExplicitOperatorToUseResultSegment()
visitor.InvokeVisitServiceMethod(lroServiceMethod, clientProvider!, methodCollection);
var serializationProvider = responseModelProvider!.SerializationProviders[0];
+
+ // Check that FromLroResponse method was added
+ var fromLroResponseMethod = serializationProvider.Methods
+ .FirstOrDefault(m => m.Signature.Name == "FromLroResponse");
+
+ Assert.IsNotNull(fromLroResponseMethod);
+ Assert.IsNotNull(fromLroResponseMethod!.BodyStatements);
+ var result = fromLroResponseMethod!.BodyStatements!.ToDisplayString();
+ Assert.AreEqual(Helpers.GetExpectedFromFile(), result);
+
+ // Check that explicit operator was removed since model is only used in LRO
var explicitOperator = serializationProvider.Methods
.FirstOrDefault(m => m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Explicit) &&
m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Operator));
+ Assert.IsNull(explicitOperator);
- Assert.IsNotNull(explicitOperator);
- Assert.IsNotNull(explicitOperator!.BodyStatements);
- var result = explicitOperator!.BodyStatements!.ToDisplayString();
+ // does not add the method again on subsequent calls
+ visitor.InvokeVisitServiceMethod(lroServiceMethod, clientProvider!, methodCollection);
+ serializationProvider = responseModelProvider!.SerializationProviders[0];
+ fromLroResponseMethod = serializationProvider.Methods
+ .FirstOrDefault(m => m.Signature.Name == "FromLroResponse");
+ result = fromLroResponseMethod!.BodyStatements!.ToDisplayString();
Assert.AreEqual(Helpers.GetExpectedFromFile(), result);
+ }
+
+ [Test]
+ public void RetainsExplicitOperatorWhenModelUsedInNonLroContext()
+ {
+ var visitor = new TestLroVisitor();
+ List parameters =
+ [
+ InputFactory.MethodParameter("p1", InputPrimitiveType.String)
+ ];
+ var responseModel = InputFactory.Model("foo");
+
+ // Create an LRO method
+ var lro = InputFactory.Operation(
+ "lroOp",
+ parameters: parameters,
+ responses: [InputFactory.OperationResponse(bodytype: responseModel)]);
+ var lroServiceMethod = InputFactory.LongRunningServiceMethod(
+ "lroOp",
+ lro,
+ parameters: parameters,
+ response: InputFactory.ServiceMethodResponse(responseModel, ["result"]),
+ longRunningServiceMetadata: InputFactory.LongRunningServiceMetadata(
+ finalState: 1,
+ finalResponse: InputFactory.OperationResponse(),
+ resultPath: "someResultPath"));
- // does not mutate an already mutated operator
+ // Create a non-LRO method that also returns the same model
+ var nonLroOp = InputFactory.Operation(
+ "nonLroOp",
+ parameters: parameters,
+ responses: [InputFactory.OperationResponse(bodytype: responseModel)]);
+ var nonLroServiceMethod = InputFactory.BasicServiceMethod(
+ "nonLroOp",
+ nonLroOp,
+ parameters: parameters,
+ response: InputFactory.ServiceMethodResponse(responseModel, ["result"]));
+
+ var inputClient = InputFactory.Client("TestClient", methods: [lroServiceMethod, nonLroServiceMethod]);
+ MockHelpers.LoadMockGenerator(clients: () => [inputClient]);
+
+ var clientProvider = AzureClientGenerator.Instance.TypeFactory.CreateClient(inputClient);
+ Assert.IsNotNull(clientProvider);
+
+ var responseModelProvider = AzureClientGenerator.Instance.TypeFactory.CreateModel(responseModel);
+ Assert.IsNotNull(responseModelProvider);
+
+ var methodCollection = new ScmMethodProviderCollection(lroServiceMethod, clientProvider!);
visitor.InvokeVisitServiceMethod(lroServiceMethod, clientProvider!, methodCollection);
- serializationProvider = responseModelProvider!.SerializationProviders[0];
- explicitOperator = serializationProvider.Methods
+
+ var serializationProvider = responseModelProvider!.SerializationProviders[0];
+
+ // Check that FromLroResponse method was added
+ var fromLroResponseMethod = serializationProvider.Methods
+ .FirstOrDefault(m => m.Signature.Name == "FromLroResponse");
+ Assert.IsNotNull(fromLroResponseMethod);
+
+ // Check that explicit operator was RETAINED since model is also used in non-LRO context
+ var explicitOperator = serializationProvider.Methods
.FirstOrDefault(m => m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Explicit) &&
m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Operator));
- result = explicitOperator!.BodyStatements!.ToDisplayString();
- Assert.AreEqual(Helpers.GetExpectedFromFile(), result);
+ Assert.IsNotNull(explicitOperator);
+ }
+
+ [Test]
+ public void DoesNotAddFromLroResponseMethodWhenNoResultPath()
+ {
+ var visitor = new TestLroVisitor();
+ List parameters =
+ [
+ InputFactory.MethodParameter("p1", InputPrimitiveType.String)
+ ];
+ var responseModel = InputFactory.Model("foo");
+ var lro = InputFactory.Operation(
+ "foo",
+ parameters: parameters,
+ responses: [InputFactory.OperationResponse(bodytype: responseModel)]);
+ // LRO service method without result path
+ var lroServiceMethod = InputFactory.LongRunningServiceMethod(
+ "foo",
+ lro,
+ parameters: parameters,
+ response: InputFactory.ServiceMethodResponse(responseModel, ["result"]),
+ longRunningServiceMetadata: InputFactory.LongRunningServiceMetadata(
+ finalState: 1,
+ finalResponse: InputFactory.OperationResponse(),
+ resultPath: null)); // No result path
+ var inputClient = InputFactory.Client("TestClient", methods: [lroServiceMethod]);
+ MockHelpers.LoadMockGenerator(clients: () => [inputClient]);
+
+ var clientProvider = AzureClientGenerator.Instance.TypeFactory.CreateClient(inputClient);
+ Assert.IsNotNull(clientProvider);
+
+ var responseModelProvider = AzureClientGenerator.Instance.TypeFactory.CreateModel(responseModel);
+ Assert.IsNotNull(responseModelProvider);
+
+ var methodCollection = new ScmMethodProviderCollection(lroServiceMethod, clientProvider!);
+ visitor.InvokeVisitServiceMethod(lroServiceMethod, clientProvider!, methodCollection);
+
+ var serializationProvider = responseModelProvider!.SerializationProviders[0];
+
+ // Check that FromLroResponse method was NOT added
+ var fromLroResponseMethod = serializationProvider.Methods
+ .FirstOrDefault(m => m.Signature.Name == "FromLroResponse");
+ Assert.IsNull(fromLroResponseMethod);
+
+ // Explicit operator should still be present
+ var explicitOperator = serializationProvider.Methods
+ .FirstOrDefault(m => m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Explicit) &&
+ m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Operator));
+ Assert.IsNotNull(explicitOperator);
}
[Test]
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/MatchConditionsHeadersVisitorTests.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/MatchConditionsHeadersVisitorTests.cs
index b74b677ecc3d..524eaebe4871 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/MatchConditionsHeadersVisitorTests.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/MatchConditionsHeadersVisitorTests.cs
@@ -259,7 +259,7 @@ public void TestProtocolMethodValidation()
foreach (var method in methodCollection)
{
visitor.VisitScmMethod(method);
- if (method.IsProtocolMethod && method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Async))
+ if (method.Kind == ScmMethodKind.Protocol && method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Async))
{
protocolMethod = method;
}
@@ -311,7 +311,7 @@ public void TestProtocolMethodParameterOptionality(bool isRequired)
foreach (var method in methodCollection)
{
visitor.VisitScmMethod(method);
- if (method.IsProtocolMethod && method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Async))
+ if (method.Kind == ScmMethodKind.Protocol && method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Async))
{
protocolMethod = method;
}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/SpecialHeadersVisitorTests.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/SpecialHeadersVisitorTests.cs
index 38097603a828..7a8e85e67897 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/SpecialHeadersVisitorTests.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/SpecialHeadersVisitorTests.cs
@@ -8,43 +8,72 @@
using Azure.Generator.Tests.Common;
using Azure.Generator.Tests.TestHelpers;
using Azure.Generator.Visitors;
+using Microsoft.TypeSpec.Generator.ClientModel.Providers;
namespace Azure.Generator.Tests.Visitors
{
public class SpecialHeadersVisitorTests
{
- [Test]
- public void RemovesSpecialHeaderParametersFromServiceMethod()
+ [TestCase(true)]
+ [TestCase(false)]
+ public void RemovesSpecialHeaderParametersFromServiceMethod(bool addBackXMsClientRequestId)
{
- var visitor = new TestSpecialHeadersVisitor();
+ var visitor = new TestSpecialHeadersVisitor(addBackXMsClientRequestId);
var parameters = CreateHttpParameters();
var methodParameters = CreateMethodParameters();
var responseModel = InputFactory.Model("foo");
- var operation = InputFactory.Operation(
- "foo",
- parameters: parameters,
- responses: [InputFactory.OperationResponse(bodytype: responseModel)]);
- var serviceMethod = InputFactory.LongRunningServiceMethod(
- "foo",
- operation,
- parameters: methodParameters,
- response: InputFactory.ServiceMethodResponse(responseModel, ["result"]));
- var inputClient = InputFactory.Client("TestClient", methods: [serviceMethod]);
- MockHelpers.LoadMockGenerator(clients: () => [inputClient]);
+ var serviceMethods = new List();
- // Verify initial parameters include special headers
- Assert.AreEqual(3, serviceMethod.Parameters.Count);
- Assert.IsTrue(serviceMethod.Parameters.Any(p => p.SerializedName == "return-client-request-id"));
- Assert.IsTrue(serviceMethod.Parameters.Any(p => p.SerializedName == "x-ms-client-request-id"));
+ // Create two operations and service methods
+ for (int i = 1; i <= 2; i++)
+ {
+ var operation = InputFactory.Operation(
+ $"operation{i}",
+ parameters: parameters,
+ responses: [InputFactory.OperationResponse(bodytype: responseModel)]);
+ var serviceMethod = InputFactory.LongRunningServiceMethod(
+ $"operation{i}",
+ operation,
+ parameters: methodParameters,
+ response: InputFactory.ServiceMethodResponse(responseModel, ["result"]));
+ serviceMethods.Add(serviceMethod);
+ }
- // Act - this would normally be called by the visitor framework, but we'll test the core logic
- visitor.InvokeRemoveSpecialHeaders(serviceMethod);
+ var inputClient = InputFactory.Client("TestClient", methods: serviceMethods);
- // Verify special headers are removed
- Assert.AreEqual(1, serviceMethod.Parameters.Count);
- Assert.IsFalse(serviceMethod.Parameters.Any(p => p.SerializedName == "return-client-request-id"));
- Assert.IsFalse(serviceMethod.Parameters.Any(p => p.SerializedName == "x-ms-client-request-id"));
- Assert.IsTrue(serviceMethod.Parameters.Any(p => p.SerializedName == "some-other-parameter"));
+ // Verify initial parameters include special headers for both methods
+ foreach (var serviceMethod in serviceMethods)
+ {
+ Assert.AreEqual(3, serviceMethod.Parameters.Count);
+ Assert.IsTrue(serviceMethod.Parameters.Any(p => p.SerializedName == "return-client-request-id"));
+ Assert.IsTrue(serviceMethod.Parameters.Any(p => p.SerializedName == "x-ms-client-request-id"));
+ }
+
+ var generator = MockHelpers.LoadMockGenerator(
+ clients: () => [inputClient],
+ visitors: () => [visitor]);
+ var client = generator.Object.OutputLibrary.TypeProviders.OfType().First();
+
+ // Verify special headers are removed from both methods
+ foreach (var serviceMethod in serviceMethods)
+ {
+ var methodCollection = client.GetMethodCollectionByOperation(serviceMethod.Operation);
+ visitor.InvokePreVisit(serviceMethod, client, methodCollection);
+ }
+
+ foreach (var serviceMethod in serviceMethods)
+ {
+ var restClientMethod = client.RestClient.Methods.First(m => m.Signature.Name == $"Create{serviceMethod.Name}Request");
+
+ visitor.InvokeVisit((restClientMethod as ScmMethodProvider)!);
+ Assert.AreEqual(1, serviceMethod.Parameters.Count);
+ Assert.IsFalse(serviceMethod.Parameters.Any(p => p.SerializedName == "return-client-request-id"));
+ Assert.IsFalse(serviceMethod.Parameters.Any(p => p.SerializedName == "x-ms-client-request-id"));
+ Assert.IsTrue(serviceMethod.Parameters.Any(p => p.SerializedName == "some-other-parameter"));
+
+ // Verify x-ms-client-request-id is added back in method body if specified
+ Assert.AreEqual(addBackXMsClientRequestId, restClientMethod.BodyStatements!.ToDisplayString().Contains("request.Headers.SetValue(\"x-ms-client-request-id\", request.ClientRequestId);"));
+ }
}
[Test]
@@ -76,13 +105,17 @@ public void DoesNotChangeParametersWhenNoSpecialHeaders()
operation,
parameters: methodParameters,
response: InputFactory.ServiceMethodResponse(responseModel, ["result"]));
+ var inputClient = InputFactory.Client("TestClient", methods: [serviceMethod]);
+ var generator = MockHelpers.LoadMockGenerator(clients: () => [inputClient]);
+ var client = generator.Object.OutputLibrary.TypeProviders.OfType().First();
+ var methodCollection = client.GetMethodCollectionByOperation(operation);
// Verify initial state
Assert.AreEqual(1, serviceMethod.Parameters.Count);
var originalParameter = serviceMethod.Parameters[0];
// Act
- visitor.InvokeRemoveSpecialHeaders(serviceMethod);
+ visitor.InvokePreVisit(serviceMethod, client, methodCollection);
// Verify no changes
Assert.AreEqual(1, serviceMethod.Parameters.Count);
@@ -136,19 +169,18 @@ private static List CreateHttpParameters()
private class TestSpecialHeadersVisitor : SpecialHeadersVisitor
{
- public void InvokeRemoveSpecialHeaders(InputServiceMethod serviceMethod)
+ public TestSpecialHeadersVisitor(bool addBackXMsClientRequestId = false)
+ : base(addBackXMsClientRequestId)
+ {
+ }
+ public void InvokePreVisit(InputServiceMethod serviceMethod, ClientProvider client, ScmMethodProviderCollection methods)
+ {
+ base.Visit(serviceMethod, client, methods);
+ }
+
+ public void InvokeVisit(ScmMethodProvider method)
{
- // Simulate the core logic of removing special headers
- var returnClientRequestIdParameter =
- serviceMethod.Parameters.FirstOrDefault(p => p.SerializedName == "return-client-request-id");
- var xMsClientRequestIdParameter =
- serviceMethod.Parameters.FirstOrDefault(p => p.SerializedName == "x-ms-client-request-id");
-
- if (returnClientRequestIdParameter != null || xMsClientRequestIdParameter != null)
- {
- serviceMethod.Update(parameters: [.. serviceMethod.Parameters.Where(p => p.SerializedName != "return-client-request-id" && p.SerializedName != "x-ms-client-request-id")]);
- serviceMethod.Operation.Update(parameters: [.. serviceMethod.Operation.Parameters.Where(p => p.SerializedName != "return-client-request-id" && p.SerializedName != "x-ms-client-request-id")]);
- }
+ base.VisitMethod(method);
}
}
}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesExplicitOperatorToUseResultSegment.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/AddsFromLroResponseMethodAndRemovesExplicitOperatorForLroOnlyModel.cs
similarity index 64%
rename from eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesExplicitOperatorToUseResultSegment.cs
rename to eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/AddsFromLroResponseMethodAndRemovesExplicitOperatorForLroOnlyModel.cs
index 4ff5ad43b964..7a4f46383255 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesExplicitOperatorToUseResultSegment.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/AddsFromLroResponseMethodAndRemovesExplicitOperatorForLroOnlyModel.cs
@@ -1,2 +1,2 @@
-using global::System.Text.Json.JsonDocument document = global::System.Text.Json.JsonDocument.Parse(response.Content);
+using global::System.Text.Json.JsonDocument document = global::System.Text.Json.JsonDocument.Parse(response.Content, global::Samples.ModelSerializationExtensions.JsonDocumentOptions);
return global::Samples.Models.Foo.DeserializeFoo(document.RootElement.GetProperty("someResultPath"), global::Samples.ModelSerializationExtensions.WireOptions);
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/SystemTextJsonConverterVisitorTests/ConverterModelE2E.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/SystemTextJsonConverterVisitorTests/ConverterModelE2E.cs
index f90937101ae7..ac64a7224d0c 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/SystemTextJsonConverterVisitorTests/ConverterModelE2E.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/SystemTextJsonConverterVisitorTests/ConverterModelE2E.cs
@@ -128,7 +128,7 @@ protected virtual void JsonModelWriteCore(global::System.Text.Json.Utf8JsonWrite
switch (format)
{
case "J":
- using (global::System.Text.Json.JsonDocument document = global::System.Text.Json.JsonDocument.Parse(data))
+ using (global::System.Text.Json.JsonDocument document = global::System.Text.Json.JsonDocument.Parse(data, global::Samples.ModelSerializationExtensions.JsonDocumentOptions))
{
return global::Samples.Models.TestModel.DeserializeTestModel(document.RootElement, options);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/FriendModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/FriendModel.Serialization.cs
index 6d4293fc7890..90a408be7cdb 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/FriendModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/FriendModel.Serialization.cs
@@ -129,7 +129,7 @@ protected virtual FriendModel PersistableModelCreateCore(BinaryData data, ModelR
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeFriendModel(document.RootElement, options);
}
@@ -156,7 +156,7 @@ public static implicit operator RequestContent(FriendModel friendModel)
/// The to deserialize the from.
public static explicit operator FriendModel(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeFriendModel(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/CodeGenSerializationAttribute.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/CodeGenSerializationAttribute.cs
index 63d17a6080dc..8f82aac0e4ea 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/CodeGenSerializationAttribute.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/CodeGenSerializationAttribute.cs
@@ -19,18 +19,18 @@ public CodeGenSerializationAttribute(string propertyName)
}
/// The property name which these hooks apply to.
- /// The serialization name of the property.
- public CodeGenSerializationAttribute(string propertyName, string propertySerializationName)
+ /// The serialization name of the property.
+ public CodeGenSerializationAttribute(string propertyName, string serializationName)
{
PropertyName = propertyName;
- PropertySerializationName = propertySerializationName;
+ SerializationName = serializationName;
}
/// Gets or sets the property name which these hooks should apply to.
public string PropertyName { get; }
/// Gets or sets the serialization name of the property.
- public string PropertySerializationName { get; set; }
+ public string SerializationName { get; set; }
///
/// Gets or sets the method name to use when serializing the property value (property name excluded).
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenHeaderResponseResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenHeaderResponseResponse.Serialization.cs
index 421456449737..c36fbe3d8b96 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenHeaderResponseResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenHeaderResponseResponse.Serialization.cs
@@ -138,7 +138,7 @@ protected virtual ListWithContinuationTokenHeaderResponseResponse PersistableMod
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeListWithContinuationTokenHeaderResponseResponse(document.RootElement, options);
}
@@ -153,7 +153,7 @@ protected virtual ListWithContinuationTokenHeaderResponseResponse PersistableMod
/// The to deserialize the from.
public static explicit operator ListWithContinuationTokenHeaderResponseResponse(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeListWithContinuationTokenHeaderResponseResponse(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenResponse.Serialization.cs
index 69ad9849aa73..d8d093c05f27 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithContinuationTokenResponse.Serialization.cs
@@ -149,7 +149,7 @@ protected virtual ListWithContinuationTokenResponse PersistableModelCreateCore(B
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeListWithContinuationTokenResponse(document.RootElement, options);
}
@@ -164,7 +164,7 @@ protected virtual ListWithContinuationTokenResponse PersistableModelCreateCore(B
/// The to deserialize the from.
public static explicit operator ListWithContinuationTokenResponse(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeListWithContinuationTokenResponse(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithHeaderNextLinkResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithHeaderNextLinkResponse.Serialization.cs
index de4a8f5a4c4b..b854c8ff733c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithHeaderNextLinkResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithHeaderNextLinkResponse.Serialization.cs
@@ -138,7 +138,7 @@ protected virtual ListWithHeaderNextLinkResponse PersistableModelCreateCore(Bina
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeListWithHeaderNextLinkResponse(document.RootElement, options);
}
@@ -153,7 +153,7 @@ protected virtual ListWithHeaderNextLinkResponse PersistableModelCreateCore(Bina
/// The to deserialize the from.
public static explicit operator ListWithHeaderNextLinkResponse(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeListWithHeaderNextLinkResponse(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithNextLinkResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithNextLinkResponse.Serialization.cs
index ab9a8f44fc21..3cd929058222 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithNextLinkResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithNextLinkResponse.Serialization.cs
@@ -153,7 +153,7 @@ protected virtual ListWithNextLinkResponse PersistableModelCreateCore(BinaryData
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeListWithNextLinkResponse(document.RootElement, options);
}
@@ -168,7 +168,7 @@ protected virtual ListWithNextLinkResponse PersistableModelCreateCore(BinaryData
/// The to deserialize the from.
public static explicit operator ListWithNextLinkResponse(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeListWithNextLinkResponse(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithStringNextLinkResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithStringNextLinkResponse.Serialization.cs
index abd04650b039..66542b988e3f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithStringNextLinkResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ListWithStringNextLinkResponse.Serialization.cs
@@ -149,7 +149,7 @@ protected virtual ListWithStringNextLinkResponse PersistableModelCreateCore(Bina
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeListWithStringNextLinkResponse(document.RootElement, options);
}
@@ -164,7 +164,7 @@ protected virtual ListWithStringNextLinkResponse PersistableModelCreateCore(Bina
/// The to deserialize the from.
public static explicit operator ListWithStringNextLinkResponse(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeListWithStringNextLinkResponse(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ModelWithRequiredNullableProperties.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ModelWithRequiredNullableProperties.Serialization.cs
index 6ea98d4ea35f..4e627423c903 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ModelWithRequiredNullableProperties.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ModelWithRequiredNullableProperties.Serialization.cs
@@ -179,7 +179,7 @@ protected virtual ModelWithRequiredNullableProperties PersistableModelCreateCore
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeModelWithRequiredNullableProperties(document.RootElement, options);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/PageThingModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/PageThingModel.Serialization.cs
index 55a872aebac3..c62f90500cb8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/PageThingModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/PageThingModel.Serialization.cs
@@ -138,7 +138,7 @@ protected virtual PageThingModel PersistableModelCreateCore(BinaryData data, Mod
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializePageThingModel(document.RootElement, options);
}
@@ -153,7 +153,7 @@ protected virtual PageThingModel PersistableModelCreateCore(BinaryData data, Mod
/// The to deserialize the from.
public static explicit operator PageThingModel(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializePageThingModel(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/RenamedModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/RenamedModel.Serialization.cs
index db35daac038d..50cc0c3c389f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/RenamedModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/RenamedModel.Serialization.cs
@@ -129,7 +129,7 @@ protected virtual RenamedModel PersistableModelCreateCore(BinaryData data, Model
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeRenamedModel(document.RootElement, options);
}
@@ -156,7 +156,7 @@ public static implicit operator RequestContent(RenamedModel renamedModel)
/// The to deserialize the from.
public static explicit operator RenamedModel(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeRenamedModel(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ReturnsAnonymousModelResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ReturnsAnonymousModelResponse.Serialization.cs
index 815811c648e3..6995958cb4d5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ReturnsAnonymousModelResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ReturnsAnonymousModelResponse.Serialization.cs
@@ -115,7 +115,7 @@ protected virtual ReturnsAnonymousModelResponse PersistableModelCreateCore(Binar
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeReturnsAnonymousModelResponse(document.RootElement, options);
}
@@ -130,7 +130,7 @@ protected virtual ReturnsAnonymousModelResponse PersistableModelCreateCore(Binar
/// The to deserialize the from.
public static explicit operator ReturnsAnonymousModelResponse(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeReturnsAnonymousModelResponse(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/RoundTripModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/RoundTripModel.Serialization.cs
index 869259e02bcc..eba1335ce7fb 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/RoundTripModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/RoundTripModel.Serialization.cs
@@ -636,7 +636,7 @@ protected virtual RoundTripModel PersistableModelCreateCore(BinaryData data, Mod
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeRoundTripModel(document.RootElement, options);
}
@@ -663,7 +663,7 @@ public static implicit operator RequestContent(RoundTripModel roundTripModel)
/// The to deserialize the from.
public static explicit operator RoundTripModel(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeRoundTripModel(document.RootElement, ModelSerializationExtensions.WireOptions);
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ThingModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ThingModel.Serialization.cs
index d75cd96f3d00..6c174768a539 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ThingModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/ThingModel.Serialization.cs
@@ -313,7 +313,7 @@ protected virtual ThingModel PersistableModelCreateCore(BinaryData data, ModelRe
switch (format)
{
case "J":
- using (JsonDocument document = JsonDocument.Parse(data))
+ using (JsonDocument document = JsonDocument.Parse(data, ModelSerializationExtensions.JsonDocumentOptions))
{
return DeserializeThingModel(document.RootElement, options);
}
@@ -340,7 +340,7 @@ public static implicit operator RequestContent(ThingModel thingModel)
/// The to deserialize the from.
public static explicit operator ThingModel(Response response)
{
- using JsonDocument document = JsonDocument.Parse(response.Content);
+ using JsonDocument document = JsonDocument.Parse(response.Content, ModelSerializationExtensions.JsonDocumentOptions);
return DeserializeThingModel(document.RootElement, ModelSerializationExtensions.WireOptions);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json
index b8b17b1614cc..df39751332fd 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/tspCodeModel.json
@@ -6977,6 +6977,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.basicTypeSpecUrl"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/Access/AccessTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/Access/AccessTests.cs
index dfb2fc981f5e..282c94f64405 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/Access/AccessTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/Access/AccessTests.cs
@@ -1,16 +1,16 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-using _Specs_.Azure.ClientGenerator.Core.Access;
+using Specs.Azure.ClientGenerator.Core.Access;
using Azure;
using NUnit.Framework;
using System.Reflection;
using System.Threading;
using System.Threading.Tasks;
-using _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._SharedModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Access._InternalOperation;
+using Specs.Azure.ClientGenerator.Core.Access._PublicOperation;
+using Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Access._SharedModelInOperation;
namespace TestProjects.Spector.Tests.Http.Azure.ClientGeneratorCore.Access
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/ClientLocation/ClientLocationTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/ClientLocation/ClientLocationTests.cs
index 33e02104a642..1ee7861eeb7d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/ClientLocation/ClientLocationTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/ClientLocation/ClientLocationTests.cs
@@ -3,7 +3,7 @@
using NUnit.Framework;
using System.Threading.Tasks;
-using _Specs_.Azure.ClientGenerator.Core.ClientLocation;
+using Specs.Azure.ClientGenerator.Core.ClientLocation;
namespace TestProjects.Spector.Tests.Http.Azure.ClientGeneratorCore.ClientLocation
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/HierarchyBuilding/HierarchyBuildingTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/HierarchyBuilding/HierarchyBuildingTests.cs
index b8a41d352010..bb3cd85122c0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/HierarchyBuilding/HierarchyBuildingTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/HierarchyBuilding/HierarchyBuildingTests.cs
@@ -3,7 +3,7 @@
using NUnit.Framework;
using System.Threading.Tasks;
-using _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding;
+using Specs.Azure.ClientGenerator.Core.HierarchyBuilding;
namespace TestProjects.Spector.Tests.Http.Azure.ClientGeneratorCore.HierarchyBuilding
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/Usage/UsageTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/Usage/UsageTests.cs
index dbe39265d154..77688aba35ad 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/Usage/UsageTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/ClientGeneratorCore/Usage/UsageTests.cs
@@ -3,8 +3,8 @@
using System;
using System.Threading.Tasks;
-using _Specs_.Azure.ClientGenerator.Core.Usage;
-using _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Usage;
+using Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation;
using NUnit.Framework;
namespace TestProjects.Spector.Tests.Http.Azure.ClientGeneratorCore.Usage
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Basic/BasicTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Basic/BasicTests.cs
index 9e35b381c9d1..366c80327624 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Basic/BasicTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Basic/BasicTests.cs
@@ -6,7 +6,7 @@
using System.Text.Json.Nodes;
using System.Threading;
using System.Threading.Tasks;
-using _Specs_.Azure.Core.Basic;
+using Specs.Azure.Core.Basic;
using Azure;
using Azure.Core;
using NUnit.Framework;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Rpc/LroRpcTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Rpc/LroRpcTests.cs
index 918a862760e1..efe54e2176a6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Rpc/LroRpcTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Rpc/LroRpcTests.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
using System.Threading.Tasks;
-using _Specs_.Azure.Core.Lro.Rpc;
+using Specs.Azure.Core.Lro.Rpc;
using Azure;
using NUnit.Framework;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Standard/LroStandardTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Standard/LroStandardTests.cs
index fe4811c6ffdf..c1aa6b58974e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Standard/LroStandardTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Standard/LroStandardTests.cs
@@ -3,7 +3,7 @@
using System.Net;
using System.Threading.Tasks;
-using _Specs_.Azure.Core.Lro.Standard;
+using Specs.Azure.Core.Lro.Standard;
using Azure;
using NUnit.Framework;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Model/CoreModelTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Model/CoreModelTests.cs
index 51c361c267ea..1808e1d2fc03 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Model/CoreModelTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Model/CoreModelTests.cs
@@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
-using _Specs_.Azure.Core.Model;
+using Specs.Azure.Core.Model;
using NUnit.Framework;
namespace TestProjects.Spector.Tests.Http.Azure.Core.Model
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Page/PageTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Page/PageTests.cs
index 624a671e956e..36c6b254690e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Page/PageTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Page/PageTests.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
using System.Threading.Tasks;
-using _Specs_.Azure.Core.Page;
+using Specs.Azure.Core.Page;
using NUnit.Framework;
namespace TestProjects.Spector.Tests.Http.Azure.Core.Page
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Scalar/ScalarTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Scalar/ScalarTests.cs
index d23a0ab085e1..bf3537bfd3ed 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Scalar/ScalarTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Scalar/ScalarTests.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
using System.Threading.Tasks;
-using _Specs_.Azure.Core.Scalar;
+using Specs.Azure.Core.Scalar;
using Azure.Core;
using NUnit.Framework;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Traits/TraitsTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Traits/TraitsTests.cs
index d1dc241c2eec..2065738371f0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Traits/TraitsTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Traits/TraitsTests.cs
@@ -4,7 +4,7 @@
using System;
using System.Threading;
using System.Threading.Tasks;
-using _Specs_.Azure.Core.Traits;
+using Specs.Azure.Core.Traits;
using Azure;
using NUnit.Framework;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Encode/Duration/DurationTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Encode/Duration/DurationTests.cs
index fa5564b6b231..0aa1a832ade8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Encode/Duration/DurationTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Encode/Duration/DurationTests.cs
@@ -3,7 +3,7 @@
using System;
using System.Threading.Tasks;
-using _Specs_.Azure.Encode.Duration;
+using Specs.Azure.Encode.Duration;
using NUnit.Framework;
namespace TestProjects.Spector.Tests.Http.Azure.Encode.Duration
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json
index 7e4740526c63..b626ce960b4e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/tspCodeModel.json
@@ -160,6 +160,7 @@
"crossLanguageDefinitionId": "Authentication.ApiKey.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Authentication.ApiKey",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json
index 23c4c99c538f..6f358b85bbe5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/tspCodeModel.json
@@ -160,6 +160,7 @@
"crossLanguageDefinitionId": "Authentication.Http.Custom.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Authentication.Http.Custom",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json
index 8b08aeb79268..5b2a5968dab7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/tspCodeModel.json
@@ -160,6 +160,7 @@
"crossLanguageDefinitionId": "Authentication.OAuth2.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Authentication.OAuth2",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json
index 5789d22af4b2..eae391acb19c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/tspCodeModel.json
@@ -123,6 +123,7 @@
"crossLanguageDefinitionId": "Authentication.Union.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Authentication.Union",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AbstractModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AbstractModel.Serialization.cs
index dacff144a30a..93743677fa6c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AbstractModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AbstractModel.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
[PersistableModelProxy(typeof(UnknownAbstractModel))]
public abstract partial class AbstractModel : IJsonModel
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AbstractModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AbstractModel.cs
index 31d66aa7cf7d..5a8b4210e2be 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AbstractModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AbstractModel.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public abstract partial class AbstractModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AccessClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AccessClient.cs
index 2db8749acf64..08f2a5cd692b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AccessClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AccessClient.cs
@@ -7,12 +7,12 @@
using System;
using Azure.Core.Pipeline;
-using _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._SharedModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Access._InternalOperation;
+using Specs.Azure.ClientGenerator.Core.Access._PublicOperation;
+using Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Access._SharedModelInOperation;
-namespace _Specs_.Azure.ClientGenerator.Core.Access
+namespace Specs.Azure.ClientGenerator.Core.Access
{
public partial class AccessClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AccessClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AccessClientOptions.cs
index 0831517d65a5..7ffd998fbbf4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AccessClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/AccessClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.Access
+namespace Specs.Azure.ClientGenerator.Core.Access
{
public partial class AccessClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/BaseModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/BaseModel.Serialization.cs
index 6cdf9dca65e8..078529472f91 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/BaseModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/BaseModel.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class BaseModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/BaseModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/BaseModel.cs
index b3883030a022..8c459db6dc58 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/BaseModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/BaseModel.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class BaseModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InnerModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InnerModel.Serialization.cs
index 2d689e446fca..6b7b86e523b6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InnerModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InnerModel.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class InnerModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InnerModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InnerModel.cs
index 8e7c7084ac96..a1c3c3f9498b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InnerModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InnerModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class InnerModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InternalOperation.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InternalOperation.cs
index c1bb72e82a99..804ebb0e147d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InternalOperation.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/InternalOperation.cs
@@ -7,7 +7,7 @@
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._InternalOperation
{
public partial class InternalOperation
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/Models/_Specs_AzureClientGeneratorCoreAccessContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/Models/SpecsAzureClientGeneratorCoreAccessContext.cs
similarity index 67%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/Models/_Specs_AzureClientGeneratorCoreAccessContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/Models/SpecsAzureClientGeneratorCoreAccessContext.cs
index 206086a43961..ffc2f3fc115b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/Models/_Specs_AzureClientGeneratorCoreAccessContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/Models/SpecsAzureClientGeneratorCoreAccessContext.cs
@@ -6,25 +6,25 @@
#nullable disable
using System.ClientModel.Primitives;
-using _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._SharedModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Access._InternalOperation;
+using Specs.Azure.ClientGenerator.Core.Access._PublicOperation;
+using Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Access._SharedModelInOperation;
-namespace _Specs_.Azure.ClientGenerator.Core.Access
+namespace Specs.Azure.ClientGenerator.Core.Access
{
+ [ModelReaderWriterBuildable(typeof(NoDecoratorModelInInternal))]
+ [ModelReaderWriterBuildable(typeof(PublicDecoratorModelInInternal))]
+ [ModelReaderWriterBuildable(typeof(NoDecoratorModelInPublic))]
+ [ModelReaderWriterBuildable(typeof(PublicDecoratorModelInPublic))]
[ModelReaderWriterBuildable(typeof(AbstractModel))]
[ModelReaderWriterBuildable(typeof(BaseModel))]
[ModelReaderWriterBuildable(typeof(InnerModel))]
- [ModelReaderWriterBuildable(typeof(NoDecoratorModelInInternal))]
- [ModelReaderWriterBuildable(typeof(NoDecoratorModelInPublic))]
[ModelReaderWriterBuildable(typeof(OuterModel))]
- [ModelReaderWriterBuildable(typeof(PublicDecoratorModelInInternal))]
- [ModelReaderWriterBuildable(typeof(PublicDecoratorModelInPublic))]
[ModelReaderWriterBuildable(typeof(RealModel))]
- [ModelReaderWriterBuildable(typeof(SharedModel))]
[ModelReaderWriterBuildable(typeof(UnknownAbstractModel))]
- public partial class _Specs_AzureClientGeneratorCoreAccessContext : ModelReaderWriterContext
+ [ModelReaderWriterBuildable(typeof(SharedModel))]
+ public partial class SpecsAzureClientGeneratorCoreAccessContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInInternal.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInInternal.Serialization.cs
index c669583fe937..9c61210c28ec 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInInternal.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInInternal.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._InternalOperation
{
public partial class NoDecoratorModelInInternal : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInInternal.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInInternal.cs
index ff0412e8a01f..c4d3a4449534 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInInternal.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInInternal.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._InternalOperation
{
public partial class NoDecoratorModelInInternal
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInPublic.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInPublic.Serialization.cs
index 40573b731f00..5ca6767b4230 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInPublic.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInPublic.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._PublicOperation
{
public partial class NoDecoratorModelInPublic : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInPublic.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInPublic.cs
index 8d37ecc19d8b..ff263ab84966 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInPublic.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/NoDecoratorModelInPublic.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._PublicOperation
{
public partial class NoDecoratorModelInPublic
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/OuterModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/OuterModel.Serialization.cs
index 41a7730f1d6b..55aa0ad97641 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/OuterModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/OuterModel.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class OuterModel : BaseModel, IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/OuterModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/OuterModel.cs
index ee7dd8fe8dde..ac1de4b6486d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/OuterModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/OuterModel.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class OuterModel : BaseModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInInternal.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInInternal.Serialization.cs
index 1276cdc0f68f..0f1eeecf7c2e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInInternal.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInInternal.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._InternalOperation
{
public partial class PublicDecoratorModelInInternal : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInInternal.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInInternal.cs
index f52b5867d05b..b4f9ee653d11 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInInternal.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInInternal.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._InternalOperation
{
public partial class PublicDecoratorModelInInternal
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInPublic.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInPublic.Serialization.cs
index b22ffc4433f5..5148078cc664 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInPublic.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInPublic.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._PublicOperation
{
public partial class PublicDecoratorModelInPublic : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInPublic.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInPublic.cs
index 90866211247b..ce4f051271e9 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInPublic.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicDecoratorModelInPublic.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._PublicOperation
{
public partial class PublicDecoratorModelInPublic
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicOperation.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicOperation.cs
index 4d6bc2b85657..77373e265dc7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicOperation.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/PublicOperation.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._PublicOperation
{
public partial class PublicOperation
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RealModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RealModel.Serialization.cs
index 9ffdb5d8669b..d876eb47d1c6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RealModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RealModel.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class RealModel : AbstractModel, IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RealModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RealModel.cs
index 0714783f4039..2538e4b041b3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RealModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RealModel.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class RealModel : AbstractModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RelativeModelInOperation.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RelativeModelInOperation.cs
index ec0c382294dc..92a80a8fb4d5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RelativeModelInOperation.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/RelativeModelInOperation.cs
@@ -7,7 +7,7 @@
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
public partial class RelativeModelInOperation
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModel.Serialization.cs
index 8477c7201139..871938e8a31a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModel.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._SharedModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._SharedModelInOperation
{
public partial class SharedModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModel.cs
index ffa530ed5dca..e5e71334f4ee 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Access._SharedModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._SharedModelInOperation
{
public partial class SharedModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModelInOperation.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModelInOperation.cs
index 7a3ab260aa0d..8e3ed3cac6d6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModelInOperation.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/SharedModelInOperation.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._SharedModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._SharedModelInOperation
{
public partial class SharedModelInOperation
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/UnknownAbstractModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/UnknownAbstractModel.Serialization.cs
index fde6c4050057..09326c034669 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/UnknownAbstractModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/UnknownAbstractModel.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
internal partial class UnknownAbstractModel : AbstractModel, IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/UnknownAbstractModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/UnknownAbstractModel.cs
index 7f44dfb54624..0b3f0c1fd44d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/UnknownAbstractModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/UnknownAbstractModel.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation
{
internal partial class UnknownAbstractModel : AbstractModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/_Specs_AzureClientGeneratorCoreAccessClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/_Specs_AzureClientGeneratorCoreAccessClientBuilderExtensions.cs
index 59759ae6f478..caefa20121cf 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/_Specs_AzureClientGeneratorCoreAccessClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/_Specs_AzureClientGeneratorCoreAccessClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.ClientGenerator.Core.Access;
+using Specs.Azure.ClientGenerator.Core.Access;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/_Specs_AzureClientGeneratorCoreAccessModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/_Specs_AzureClientGeneratorCoreAccessModelFactory.cs
index f1e924dcf183..e6ef7450789f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/_Specs_AzureClientGeneratorCoreAccessModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/Generated/_Specs_AzureClientGeneratorCoreAccessModelFactory.cs
@@ -5,12 +5,12 @@
#nullable disable
-using _Specs_.Azure.ClientGenerator.Core.Access._InternalOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._PublicOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._RelativeModelInOperation;
-using _Specs_.Azure.ClientGenerator.Core.Access._SharedModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Access._InternalOperation;
+using Specs.Azure.ClientGenerator.Core.Access._PublicOperation;
+using Specs.Azure.ClientGenerator.Core.Access._RelativeModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Access._SharedModelInOperation;
-namespace _Specs_.Azure.ClientGenerator.Core.Access
+namespace Specs.Azure.ClientGenerator.Core.Access
{
public static partial class _Specs_AzureClientGeneratorCoreAccessModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/_Specs_.Azure.ClientGenerator.Core.Access.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/_Specs_.Azure.ClientGenerator.Core.Access.csproj
index 91f88950dfa6..4e2498c1154f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/_Specs_.Azure.ClientGenerator.Core.Access.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/src/_Specs_.Azure.ClientGenerator.Core.Access.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.Access client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.Access
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.Access
+ Specs.Azure.ClientGenerator.Core.Access
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/tspCodeModel.json
index 92d2f722edf6..30e7c42e1f9b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/access/tspCodeModel.json
@@ -649,6 +649,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access",
"apiVersions": [],
@@ -938,6 +939,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.PublicOperation",
"apiVersions": [],
@@ -1353,6 +1355,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.InternalOperation",
"apiVersions": [],
@@ -1645,6 +1648,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.SharedModelInOperation",
"apiVersions": [],
@@ -1941,6 +1945,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Access.RelativeModelInOperation",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionPathContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionHeaderContext.cs
similarity index 53%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionPathContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionHeaderContext.cs
index 7c57c8c9f4e8..bc7771bb3835 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionPathContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionHeaderContext.cs
@@ -7,9 +7,9 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.ClientGenerator.Core.ApiVersion.Path
+namespace Specs.Azure.ClientGenerator.Core.ApiVersion.Header
{
- public partial class _Specs_AzureClientGeneratorCoreApiVersionPathContext : ModelReaderWriterContext
+ public partial class SpecsAzureClientGeneratorCoreApiVersionHeaderContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj
index 06b12fb2519a..b413306f639e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Header.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.ApiVersion.Header client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.ApiVersion.Header
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.ApiVersion.Header
+ Specs.Azure.ClientGenerator.Core.ApiVersion.Header
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/tspCodeModel.json
index e5848c6620ac..c9501119a5ed 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/tspCodeModel.json
@@ -151,8 +151,39 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Header.endpoint"
+ },
+ {
+ "$id": "13",
+ "kind": "method",
+ "name": "version",
+ "serializedName": "version",
+ "type": {
+ "$id": "14",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2025-01-01"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Header.headerApiVersion.version",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Header",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionQueryContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionPathContext.cs
similarity index 53%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionQueryContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionPathContext.cs
index 991534dd4c04..68685a62130c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionQueryContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionPathContext.cs
@@ -7,9 +7,9 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.ClientGenerator.Core.ApiVersion.Query
+namespace Specs.Azure.ClientGenerator.Core.ApiVersion.Path
{
- public partial class _Specs_AzureClientGeneratorCoreApiVersionQueryContext : ModelReaderWriterContext
+ public partial class SpecsAzureClientGeneratorCoreApiVersionPathContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Path.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Path.csproj
index a2f1f69ac6ff..eaf7f515c0eb 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Path.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Path.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.ApiVersion.Path client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.ApiVersion.Path
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.ApiVersion.Path
+ Specs.Azure.ClientGenerator.Core.ApiVersion.Path
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/tspCodeModel.json
index a34fc1f01076..85c600f91161 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/path/tspCodeModel.json
@@ -154,8 +154,39 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Path.endpoint"
+ },
+ {
+ "$id": "13",
+ "kind": "method",
+ "name": "version",
+ "serializedName": "version",
+ "type": {
+ "$id": "14",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2025-01-01"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Path.pathApiVersion.version",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Path",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionHeaderContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionQueryContext.cs
similarity index 53%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionHeaderContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionQueryContext.cs
index db587aa0dd96..1d960a9927d7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/header/src/Generated/Models/_Specs_AzureClientGeneratorCoreApiVersionHeaderContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/Generated/Models/SpecsAzureClientGeneratorCoreApiVersionQueryContext.cs
@@ -7,9 +7,9 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.ClientGenerator.Core.ApiVersion.Header
+namespace Specs.Azure.ClientGenerator.Core.ApiVersion.Query
{
- public partial class _Specs_AzureClientGeneratorCoreApiVersionHeaderContext : ModelReaderWriterContext
+ public partial class SpecsAzureClientGeneratorCoreApiVersionQueryContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Query.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Query.csproj
index f8b04cddec4a..8a2cfe4752e3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Query.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/src/_Specs_.Azure.ClientGenerator.Core.ApiVersion.Query.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.ApiVersion.Query client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.ApiVersion.Query
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.ApiVersion.Query
+ Specs.Azure.ClientGenerator.Core.ApiVersion.Query
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/tspCodeModel.json
index 62ba7720f453..f63fcd73c812 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/api-version/query/tspCodeModel.json
@@ -151,8 +151,39 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Query.endpoint"
+ },
+ {
+ "$id": "13",
+ "kind": "method",
+ "name": "version",
+ "serializedName": "version",
+ "type": {
+ "$id": "14",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2025-01-01"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Query.queryApiVersion.version",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.AlternateApiVersion.Service.Query",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ArchiveOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ArchiveOperations.cs
index dc783c8524c3..2ecb7843f443 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ArchiveOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ArchiveOperations.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation
{
public partial class ArchiveOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Blob.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Blob.Serialization.cs
index 608714aecb76..af4c630dea9d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Blob.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Blob.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient
{
public partial class Blob : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Blob.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Blob.cs
index a7cb0fcb7fc3..d9fcd0f39bc8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Blob.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Blob.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient
{
public partial class Blob
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ClientLocationClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ClientLocationClient.cs
index d0390aa21996..875a0663b8bc 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ClientLocationClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ClientLocationClient.cs
@@ -10,12 +10,12 @@
using System.Threading.Tasks;
using Azure;
using Azure.Core.Pipeline;
-using _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient;
-using _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToExistingSubClient;
-using _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToNewSubClient;
-using _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToRootClient;
+using Specs.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient;
+using Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToExistingSubClient;
+using Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToNewSubClient;
+using Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToRootClient;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation
{
public partial class ClientLocationClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ClientLocationClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ClientLocationClientOptions.cs
index 9db94110908b..f42a94372e09 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ClientLocationClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/ClientLocationClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation
{
public partial class ClientLocationClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Models/SpecsAzureClientGeneratorCoreClientLocationContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Models/SpecsAzureClientGeneratorCoreClientLocationContext.cs
new file mode 100644
index 000000000000..9e5b416ce90e
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Models/SpecsAzureClientGeneratorCoreClientLocationContext.cs
@@ -0,0 +1,17 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+using Specs.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient;
+
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation
+{
+ [ModelReaderWriterBuildable(typeof(Blob))]
+ public partial class SpecsAzureClientGeneratorCoreClientLocationContext : ModelReaderWriterContext
+ {
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Models/_Specs_AzureClientGeneratorCoreClientLocationContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Models/_Specs_AzureClientGeneratorCoreClientLocationContext.cs
deleted file mode 100644
index 961b9c27c685..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/Models/_Specs_AzureClientGeneratorCoreClientLocationContext.cs
+++ /dev/null
@@ -1,17 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System.ClientModel.Primitives;
-using _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient;
-
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation
-{
- [ModelReaderWriterBuildable(typeof(Blob))]
- public partial class _Specs_AzureClientGeneratorCoreClientLocationContext : ModelReaderWriterContext
- {
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveMethodParameterToClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveMethodParameterToClient.cs
index a31b706b3772..232d2eaca235 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveMethodParameterToClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveMethodParameterToClient.cs
@@ -7,7 +7,7 @@
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient
{
public partial class MoveMethodParameterToClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveMethodParameterToClientBlobOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveMethodParameterToClientBlobOperations.cs
index 20f0034b9279..398c2ee86c39 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveMethodParameterToClientBlobOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveMethodParameterToClientBlobOperations.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient
{
public partial class MoveMethodParameterToClientBlobOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClient.cs
index 0a8986158b2b..5db7ddf06622 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClient.cs
@@ -7,7 +7,7 @@
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToExistingSubClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToExistingSubClient
{
public partial class MoveToExistingSubClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClientAdminOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClientAdminOperations.cs
index 0ed522c57799..a52b41a65641 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClientAdminOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClientAdminOperations.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToExistingSubClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToExistingSubClient
{
public partial class MoveToExistingSubClientAdminOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClientUserOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClientUserOperations.cs
index 3216bc4b2845..ca9d4d5616df 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClientUserOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToExistingSubClientUserOperations.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToExistingSubClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToExistingSubClient
{
public partial class MoveToExistingSubClientUserOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToNewSubClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToNewSubClient.cs
index 1478e7ed71a1..f4fd70f7bf66 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToNewSubClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToNewSubClient.cs
@@ -7,7 +7,7 @@
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToNewSubClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToNewSubClient
{
public partial class MoveToNewSubClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToNewSubClientProductOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToNewSubClientProductOperations.cs
index 76651a2eaf30..efbaaadff22e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToNewSubClientProductOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToNewSubClientProductOperations.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToNewSubClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToNewSubClient
{
public partial class MoveToNewSubClientProductOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToRootClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToRootClient.cs
index 1dca9ddc38d4..8a22bc7b16a3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToRootClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToRootClient.cs
@@ -7,7 +7,7 @@
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToRootClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToRootClient
{
public partial class MoveToRootClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToRootClientResourceOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToRootClientResourceOperations.cs
index 304195ee2090..744a55573e65 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToRootClientResourceOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/MoveToRootClientResourceOperations.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveToRootClient
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation._MoveToRootClient
{
public partial class MoveToRootClientResourceOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/_Specs_AzureClientGeneratorCoreClientLocationClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/_Specs_AzureClientGeneratorCoreClientLocationClientBuilderExtensions.cs
index ea0cb1e3951a..443a53007a9b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/_Specs_AzureClientGeneratorCoreClientLocationClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/_Specs_AzureClientGeneratorCoreClientLocationClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.ClientGenerator.Core.ClientLocation;
+using Specs.Azure.ClientGenerator.Core.ClientLocation;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/_Specs_AzureClientGeneratorCoreClientLocationModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/_Specs_AzureClientGeneratorCoreClientLocationModelFactory.cs
index c6dbcaf21d2e..0101d9cd812f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/_Specs_AzureClientGeneratorCoreClientLocationModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/Generated/_Specs_AzureClientGeneratorCoreClientLocationModelFactory.cs
@@ -5,9 +5,9 @@
#nullable disable
-using _Specs_.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient;
+using Specs.Azure.ClientGenerator.Core.ClientLocation._MoveMethodParameterToClient;
-namespace _Specs_.Azure.ClientGenerator.Core.ClientLocation
+namespace Specs.Azure.ClientGenerator.Core.ClientLocation
{
public static partial class _Specs_AzureClientGeneratorCoreClientLocationModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/_Specs_.Azure.ClientGenerator.Core.ClientLocation.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/_Specs_.Azure.ClientGenerator.Core.ClientLocation.csproj
index aedb16bfeede..e9831b4687fe 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/_Specs_.Azure.ClientGenerator.Core.ClientLocation.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/src/_Specs_.Azure.ClientGenerator.Core.ClientLocation.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.ClientLocation client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.ClientLocation
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.ClientLocation
+ Specs.Azure.ClientGenerator.Core.ClientLocation
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/tspCodeModel.json
index 33d07a93f581..62d2efd38bcf 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/client-location/tspCodeModel.json
@@ -211,6 +211,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation",
"apiVersions": [],
@@ -253,6 +254,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToExistingSubClient",
"apiVersions": [],
@@ -373,6 +375,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToExistingSubClient.AdminOperations",
"apiVersions": [],
@@ -456,6 +459,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToExistingSubClient.UserOperations",
"apiVersions": [],
@@ -503,6 +507,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToNewSubClient",
"apiVersions": [],
@@ -586,6 +591,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToNewSubClient.ProductOperations",
"apiVersions": [],
@@ -633,6 +639,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToRootClient",
"apiVersions": [],
@@ -716,6 +723,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveToRootClient.ResourceOperations",
"apiVersions": [],
@@ -761,8 +769,30 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
+ },
+ {
+ "$id": "60",
+ "kind": "method",
+ "name": "storageAccount",
+ "serializedName": "storageAccount",
+ "type": {
+ "$id": "61",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": false,
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveMethodParameterToClient.getBlob.Parameter.anonymous.storageAccount",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveMethodParameterToClient",
"apiVersions": [],
@@ -771,30 +801,30 @@
},
"children": [
{
- "$id": "60",
+ "$id": "62",
"kind": "client",
"name": "BlobOperations",
"namespace": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveMethodParameterToClient",
"methods": [
{
- "$id": "61",
+ "$id": "63",
"kind": "basic",
"name": "getBlob",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "62",
+ "$id": "64",
"name": "getBlob",
"resourceName": "BlobOperations",
"accessibility": "public",
"parameters": [
{
- "$id": "63",
+ "$id": "65",
"kind": "query",
"name": "storageAccount",
"serializedName": "storageAccount",
"type": {
- "$id": "64",
+ "$id": "66",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -809,12 +839,12 @@
"readOnly": false
},
{
- "$id": "65",
+ "$id": "67",
"kind": "query",
"name": "container",
"serializedName": "container",
"type": {
- "$id": "66",
+ "$id": "68",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -829,12 +859,12 @@
"readOnly": false
},
{
- "$id": "67",
+ "$id": "69",
"kind": "query",
"name": "blob",
"serializedName": "blob",
"type": {
- "$id": "68",
+ "$id": "70",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -849,7 +879,7 @@
"readOnly": false
},
{
- "$id": "69",
+ "$id": "71",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -891,12 +921,12 @@
},
"parameters": [
{
- "$id": "70",
+ "$id": "72",
"kind": "method",
"name": "container",
"serializedName": "container",
"type": {
- "$id": "71",
+ "$id": "73",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -912,12 +942,12 @@
"decorators": []
},
{
- "$id": "72",
+ "$id": "74",
"kind": "method",
"name": "blob",
"serializedName": "blob",
"type": {
- "$id": "73",
+ "$id": "75",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -933,7 +963,7 @@
"decorators": []
},
{
- "$id": "74",
+ "$id": "76",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -963,13 +993,13 @@
],
"parameters": [
{
- "$id": "75",
+ "$id": "77",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "76",
+ "$id": "78",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -980,7 +1010,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "77",
+ "$id": "79",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -991,8 +1021,12 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
+ },
+ {
+ "$ref": "60"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.MoveMethodParameterToClient.BlobOperations",
"apiVersions": [],
@@ -1003,19 +1037,19 @@
]
},
{
- "$id": "78",
+ "$id": "80",
"kind": "client",
"name": "ArchiveOperations",
"namespace": "_Specs_.Azure.ClientGenerator.Core.ClientLocation",
"methods": [
{
- "$id": "79",
+ "$id": "81",
"kind": "basic",
"name": "archiveProduct",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "80",
+ "$id": "82",
"name": "archiveProduct",
"resourceName": "ProductOperations",
"accessibility": "public",
@@ -1048,13 +1082,13 @@
],
"parameters": [
{
- "$id": "81",
+ "$id": "83",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "82",
+ "$id": "84",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1065,7 +1099,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "83",
+ "$id": "85",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1078,6 +1112,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.ClientLocation",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildFlattenModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildFlattenModel.Serialization.cs
index 605bec0b015c..1d2ae9247c8a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildFlattenModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildFlattenModel.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class ChildFlattenModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildFlattenModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildFlattenModel.cs
index 9118a2ab4cd2..18de03118bfa 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildFlattenModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildFlattenModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class ChildFlattenModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildModel.Serialization.cs
index b0a6f3a515dc..26a165bd6d96 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildModel.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class ChildModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildModel.cs
index eeffbff42d25..ec5add11552e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/ChildModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class ChildModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenModel.Serialization.cs
index 5e0986e21799..fae1164c84c4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenModel.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class FlattenModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenModel.cs
index f3e86bbf8792..616bea82a482 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class FlattenModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenPropertyClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenPropertyClient.cs
index 2f000ea78fa3..e31f151fb8af 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenPropertyClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenPropertyClient.cs
@@ -12,7 +12,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class FlattenPropertyClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenPropertyClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenPropertyClientOptions.cs
index e618f9bef0ae..38db1e0b7f98 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenPropertyClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/FlattenPropertyClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class FlattenPropertyClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/Models/_Specs_AzureClientGeneratorCoreFlattenPropertyContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/Models/SpecsAzureClientGeneratorCoreFlattenPropertyContext.cs
similarity index 71%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/Models/_Specs_AzureClientGeneratorCoreFlattenPropertyContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/Models/SpecsAzureClientGeneratorCoreFlattenPropertyContext.cs
index fec8b3b9c362..20d68fc1c980 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/Models/_Specs_AzureClientGeneratorCoreFlattenPropertyContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/Models/SpecsAzureClientGeneratorCoreFlattenPropertyContext.cs
@@ -7,13 +7,13 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
[ModelReaderWriterBuildable(typeof(ChildFlattenModel))]
[ModelReaderWriterBuildable(typeof(ChildModel))]
[ModelReaderWriterBuildable(typeof(FlattenModel))]
[ModelReaderWriterBuildable(typeof(NestedFlattenModel))]
- public partial class _Specs_AzureClientGeneratorCoreFlattenPropertyContext : ModelReaderWriterContext
+ public partial class SpecsAzureClientGeneratorCoreFlattenPropertyContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/NestedFlattenModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/NestedFlattenModel.Serialization.cs
index a0d30782bb6b..f7e2464308d2 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/NestedFlattenModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/NestedFlattenModel.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class NestedFlattenModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/NestedFlattenModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/NestedFlattenModel.cs
index a170ff984fa3..ae430213eab3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/NestedFlattenModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/NestedFlattenModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public partial class NestedFlattenModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/_Specs_AzureClientGeneratorCoreFlattenPropertyClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/_Specs_AzureClientGeneratorCoreFlattenPropertyClientBuilderExtensions.cs
index 3e80c8786d8c..b9d916e3e7e0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/_Specs_AzureClientGeneratorCoreFlattenPropertyClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/_Specs_AzureClientGeneratorCoreFlattenPropertyClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.ClientGenerator.Core.FlattenProperty;
+using Specs.Azure.ClientGenerator.Core.FlattenProperty;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/_Specs_AzureClientGeneratorCoreFlattenPropertyModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/_Specs_AzureClientGeneratorCoreFlattenPropertyModelFactory.cs
index 13600758edb4..7fa3fb3232f4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/_Specs_AzureClientGeneratorCoreFlattenPropertyModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/Generated/_Specs_AzureClientGeneratorCoreFlattenPropertyModelFactory.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+namespace Specs.Azure.ClientGenerator.Core.FlattenProperty
{
public static partial class _Specs_AzureClientGeneratorCoreFlattenPropertyModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/_Specs_.Azure.ClientGenerator.Core.FlattenProperty.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/_Specs_.Azure.ClientGenerator.Core.FlattenProperty.csproj
index a78e4ff38ec1..1d704451ea9b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/_Specs_.Azure.ClientGenerator.Core.FlattenProperty.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/src/_Specs_.Azure.ClientGenerator.Core.FlattenProperty.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.FlattenProperty client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.FlattenProperty
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.FlattenProperty
+ Specs.Azure.ClientGenerator.Core.FlattenProperty
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/tspCodeModel.json
index 3ee8981d7e5c..35cc086381a3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/flatten-property/tspCodeModel.json
@@ -659,6 +659,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Animal.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Animal.Serialization.cs
index 2c0f1b550b9b..d090fcddc1aa 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Animal.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Animal.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
[PersistableModelProxy(typeof(UnknownAnimal))]
public abstract partial class Animal : IJsonModel
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Animal.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Animal.cs
index 701ed2c9877f..792aef9fa050 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Animal.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Animal.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public abstract partial class Animal
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/AnimalOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/AnimalOperations.cs
index 0f5980f52f90..4b54ef11a981 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/AnimalOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/AnimalOperations.cs
@@ -11,7 +11,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class AnimalOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Dog.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Dog.Serialization.cs
index 62767dddbe5c..77cec09436bf 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Dog.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Dog.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class Dog : Pet, IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Dog.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Dog.cs
index 9aaf6f836614..b44d3960eefd 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Dog.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Dog.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class Dog : Pet
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/DogOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/DogOperations.cs
index fe7cb83e932a..af44ef00859e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/DogOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/DogOperations.cs
@@ -11,7 +11,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class DogOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/HierarchyBuildingClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/HierarchyBuildingClient.cs
index 6465133f9225..c041b12244eb 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/HierarchyBuildingClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/HierarchyBuildingClient.cs
@@ -8,7 +8,7 @@
using System;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class HierarchyBuildingClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/HierarchyBuildingClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/HierarchyBuildingClientOptions.cs
index 89eed6b32656..77b458870909 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/HierarchyBuildingClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/HierarchyBuildingClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class HierarchyBuildingClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Models/_Specs_AzureClientGeneratorCoreHierarchyBuildingContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Models/SpecsAzureClientGeneratorCoreHierarchyBuildingContext.cs
similarity index 72%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Models/_Specs_AzureClientGeneratorCoreHierarchyBuildingContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Models/SpecsAzureClientGeneratorCoreHierarchyBuildingContext.cs
index 9cfe42b0e6e3..248b0c1e5875 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Models/_Specs_AzureClientGeneratorCoreHierarchyBuildingContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Models/SpecsAzureClientGeneratorCoreHierarchyBuildingContext.cs
@@ -7,14 +7,14 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
[ModelReaderWriterBuildable(typeof(Animal))]
[ModelReaderWriterBuildable(typeof(Dog))]
[ModelReaderWriterBuildable(typeof(Pet))]
[ModelReaderWriterBuildable(typeof(UnknownAnimal))]
[ModelReaderWriterBuildable(typeof(UnknownPet))]
- public partial class _Specs_AzureClientGeneratorCoreHierarchyBuildingContext : ModelReaderWriterContext
+ public partial class SpecsAzureClientGeneratorCoreHierarchyBuildingContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Pet.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Pet.Serialization.cs
index 58914f23f4f5..28182c487f30 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Pet.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Pet.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class Pet : Animal, IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Pet.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Pet.cs
index 7068ea7d822b..842382009826 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Pet.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/Pet.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class Pet : Animal
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/PetOperations.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/PetOperations.cs
index b21b90451d34..50dad86cc000 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/PetOperations.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/PetOperations.cs
@@ -11,7 +11,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public partial class PetOperations
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownAnimal.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownAnimal.Serialization.cs
index 04d472846da0..74ce6f6a80bc 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownAnimal.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownAnimal.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
internal partial class UnknownAnimal : Animal, IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownAnimal.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownAnimal.cs
index 55b678e9f888..38dfd4c9c8aa 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownAnimal.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownAnimal.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
internal partial class UnknownAnimal : Animal
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownPet.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownPet.Serialization.cs
index b78a728c2e5a..838abc5c1d90 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownPet.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownPet.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
internal partial class UnknownPet : Pet, IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownPet.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownPet.cs
index 02a48ad78799..4adba5a5c4de 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownPet.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/UnknownPet.cs
@@ -8,7 +8,7 @@
using System;
using System.Collections.Generic;
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
internal partial class UnknownPet : Pet
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/_Specs_AzureClientGeneratorCoreHierarchyBuildingClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/_Specs_AzureClientGeneratorCoreHierarchyBuildingClientBuilderExtensions.cs
index 2706f4c761ae..1ffb4a6b6f38 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/_Specs_AzureClientGeneratorCoreHierarchyBuildingClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/_Specs_AzureClientGeneratorCoreHierarchyBuildingClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding;
+using Specs.Azure.ClientGenerator.Core.HierarchyBuilding;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/_Specs_AzureClientGeneratorCoreHierarchyBuildingModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/_Specs_AzureClientGeneratorCoreHierarchyBuildingModelFactory.cs
index 8e0554dce741..663de39e8f02 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/_Specs_AzureClientGeneratorCoreHierarchyBuildingModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/Generated/_Specs_AzureClientGeneratorCoreHierarchyBuildingModelFactory.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+namespace Specs.Azure.ClientGenerator.Core.HierarchyBuilding
{
public static partial class _Specs_AzureClientGeneratorCoreHierarchyBuildingModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.csproj
index b69d6cbad684..2abc13f8aa2a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/src/_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.HierarchyBuilding
+ Specs.Azure.ClientGenerator.Core.HierarchyBuilding
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/tspCodeModel.json
index 884f302f5159..dff4925f7871 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/hierarchy-building/tspCodeModel.json
@@ -444,6 +444,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding",
"apiVersions": [],
@@ -803,6 +804,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.AnimalOperations",
"apiVersions": [],
@@ -1165,6 +1167,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.PetOperations",
"apiVersions": [],
@@ -1369,6 +1372,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.HierarchyBuilding.DogOperations",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/GroupParameters.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/GroupParameters.cs
index abf2c81ecb73..31b430e5c4a6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/GroupParameters.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/GroupParameters.cs
@@ -11,7 +11,7 @@
using Azure.Core.Pipeline;
using Customization;
-namespace _Specs_.Azure.ClientGenerator.Core.Override
+namespace Specs.Azure.ClientGenerator.Core.Override
{
public partial class GroupParameters
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/Models/_Specs_AzureClientGeneratorCoreOverrideContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/Models/SpecsAzureClientGeneratorCoreOverrideContext.cs
similarity index 64%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/Models/_Specs_AzureClientGeneratorCoreOverrideContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/Models/SpecsAzureClientGeneratorCoreOverrideContext.cs
index 671d16511355..774ae62d7c60 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/Models/_Specs_AzureClientGeneratorCoreOverrideContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/Models/SpecsAzureClientGeneratorCoreOverrideContext.cs
@@ -8,10 +8,10 @@
using System.ClientModel.Primitives;
using Customization;
-namespace _Specs_.Azure.ClientGenerator.Core.Override
+namespace Specs.Azure.ClientGenerator.Core.Override
{
[ModelReaderWriterBuildable(typeof(GroupParametersOptions))]
- public partial class _Specs_AzureClientGeneratorCoreOverrideContext : ModelReaderWriterContext
+ public partial class SpecsAzureClientGeneratorCoreOverrideContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/OverrideClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/OverrideClient.cs
index c3e570a7417e..8b30341f47f6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/OverrideClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/OverrideClient.cs
@@ -8,7 +8,7 @@
using System;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Override
+namespace Specs.Azure.ClientGenerator.Core.Override
{
public partial class OverrideClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/OverrideClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/OverrideClientOptions.cs
index e96cc33a19ac..de0615e2e65c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/OverrideClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/OverrideClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.Override
+namespace Specs.Azure.ClientGenerator.Core.Override
{
public partial class OverrideClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/RemoveOptionalParameter.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/RemoveOptionalParameter.cs
index 0ac4d5fc99f4..c28a9cc744e1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/RemoveOptionalParameter.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/RemoveOptionalParameter.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Override
+namespace Specs.Azure.ClientGenerator.Core.Override
{
public partial class RemoveOptionalParameter
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/ReorderParameters.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/ReorderParameters.cs
index 1cb188e8203f..918c19590da9 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/ReorderParameters.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/ReorderParameters.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Override
+namespace Specs.Azure.ClientGenerator.Core.Override
{
public partial class ReorderParameters
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/RequireOptionalParameter.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/RequireOptionalParameter.cs
index 06f93d934e83..5c7ea6bcad0c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/RequireOptionalParameter.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/RequireOptionalParameter.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Override
+namespace Specs.Azure.ClientGenerator.Core.Override
{
public partial class RequireOptionalParameter
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/_Specs_AzureClientGeneratorCoreOverrideClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/_Specs_AzureClientGeneratorCoreOverrideClientBuilderExtensions.cs
index 333736490d8b..e0c8dcd6ff1e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/_Specs_AzureClientGeneratorCoreOverrideClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/_Specs_AzureClientGeneratorCoreOverrideClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.ClientGenerator.Core.Override;
+using Specs.Azure.ClientGenerator.Core.Override;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/_Specs_AzureClientGeneratorCoreOverrideModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/_Specs_AzureClientGeneratorCoreOverrideModelFactory.cs
index 4567760d0f16..dc9b6fba2a87 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/_Specs_AzureClientGeneratorCoreOverrideModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/Generated/_Specs_AzureClientGeneratorCoreOverrideModelFactory.cs
@@ -7,7 +7,7 @@
using Customization;
-namespace _Specs_.Azure.ClientGenerator.Core.Override
+namespace Specs.Azure.ClientGenerator.Core.Override
{
public static partial class _Specs_AzureClientGeneratorCoreOverrideModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/_Specs_.Azure.ClientGenerator.Core.Override.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/_Specs_.Azure.ClientGenerator.Core.Override.csproj
index 31c2ad63d2eb..cf93032f008c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/_Specs_.Azure.ClientGenerator.Core.Override.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/src/_Specs_.Azure.ClientGenerator.Core.Override.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.Override client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.Override
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.Override
+ Specs.Azure.ClientGenerator.Core.Override
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/tspCodeModel.json
index 682cf0383f7f..ba2c3b3f26b0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/override/tspCodeModel.json
@@ -96,6 +96,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override",
"apiVersions": [],
@@ -266,6 +267,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.ReorderParameters",
"apiVersions": [],
@@ -408,6 +410,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.GroupParameters",
"apiVersions": [],
@@ -581,6 +584,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.RequireOptionalParameter",
"apiVersions": [],
@@ -791,6 +795,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Override.RemoveOptionalParameter",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/InputModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/InputModel.Serialization.cs
index ca813067f41b..c3416450ef88 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/InputModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/InputModel.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class InputModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/InputModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/InputModel.cs
index b4016bf528b7..774a4c61aab0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/InputModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/InputModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class InputModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ModelInOperation.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ModelInOperation.cs
index 8f8ccd99af91..d5391771ca18 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ModelInOperation.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ModelInOperation.cs
@@ -11,7 +11,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class ModelInOperation
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/Models/_Specs_AzureClientGeneratorCoreUsageContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/Models/SpecsAzureClientGeneratorCoreUsageContext.cs
similarity index 68%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/Models/_Specs_AzureClientGeneratorCoreUsageContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/Models/SpecsAzureClientGeneratorCoreUsageContext.cs
index b8e50c600fa6..41c7b6783be7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/Models/_Specs_AzureClientGeneratorCoreUsageContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/Models/SpecsAzureClientGeneratorCoreUsageContext.cs
@@ -6,16 +6,16 @@
#nullable disable
using System.ClientModel.Primitives;
-using _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage
+namespace Specs.Azure.ClientGenerator.Core.Usage
{
[ModelReaderWriterBuildable(typeof(InputModel))]
- [ModelReaderWriterBuildable(typeof(OrphanModel))]
[ModelReaderWriterBuildable(typeof(OutputModel))]
[ModelReaderWriterBuildable(typeof(ResultModel))]
[ModelReaderWriterBuildable(typeof(RoundTripModel))]
- public partial class _Specs_AzureClientGeneratorCoreUsageContext : ModelReaderWriterContext
+ [ModelReaderWriterBuildable(typeof(OrphanModel))]
+ public partial class SpecsAzureClientGeneratorCoreUsageContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OrphanModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OrphanModel.Serialization.cs
index c1573688aaa3..081396f830b3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OrphanModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OrphanModel.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage
+namespace Specs.Azure.ClientGenerator.Core.Usage
{
public partial class OrphanModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OrphanModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OrphanModel.cs
index ecb671964282..fc10c20b8ec8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OrphanModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OrphanModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Usage
+namespace Specs.Azure.ClientGenerator.Core.Usage
{
public partial class OrphanModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OutputModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OutputModel.Serialization.cs
index c56f9e3222ad..e7ea05c0b489 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OutputModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OutputModel.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class OutputModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OutputModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OutputModel.cs
index 9ecc54f575e4..21bdeddd2573 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OutputModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/OutputModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class OutputModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ResultModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ResultModel.Serialization.cs
index 0948a44660e1..e5cc970b2753 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ResultModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ResultModel.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class ResultModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ResultModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ResultModel.cs
index 823553f60a0a..a383c6f85f12 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ResultModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/ResultModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class ResultModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/RoundTripModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/RoundTripModel.Serialization.cs
index 6fd58f3de4fa..15af6ec46417 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/RoundTripModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/RoundTripModel.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class RoundTripModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/RoundTripModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/RoundTripModel.cs
index 2732621994ca..cd232dd6001d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/RoundTripModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/RoundTripModel.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation
+namespace Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation
{
public partial class RoundTripModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/UsageClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/UsageClient.cs
index dd12345c7fb4..c49cff1dbe53 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/UsageClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/UsageClient.cs
@@ -7,9 +7,9 @@
using System;
using Azure.Core.Pipeline;
-using _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage
+namespace Specs.Azure.ClientGenerator.Core.Usage
{
public partial class UsageClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/UsageClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/UsageClientOptions.cs
index 86bb2ea4a9e0..c3415b3cd858 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/UsageClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/UsageClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage
+namespace Specs.Azure.ClientGenerator.Core.Usage
{
public partial class UsageClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/_Specs_AzureClientGeneratorCoreUsageClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/_Specs_AzureClientGeneratorCoreUsageClientBuilderExtensions.cs
index bfd77254dbad..7b2aed76eba6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/_Specs_AzureClientGeneratorCoreUsageClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/_Specs_AzureClientGeneratorCoreUsageClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.ClientGenerator.Core.Usage;
+using Specs.Azure.ClientGenerator.Core.Usage;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/_Specs_AzureClientGeneratorCoreUsageModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/_Specs_AzureClientGeneratorCoreUsageModelFactory.cs
index 7a9913e9a9bb..9d7fbbbf1f46 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/_Specs_AzureClientGeneratorCoreUsageModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/Generated/_Specs_AzureClientGeneratorCoreUsageModelFactory.cs
@@ -5,9 +5,9 @@
#nullable disable
-using _Specs_.Azure.ClientGenerator.Core.Usage._ModelInOperation;
+using Specs.Azure.ClientGenerator.Core.Usage._ModelInOperation;
-namespace _Specs_.Azure.ClientGenerator.Core.Usage
+namespace Specs.Azure.ClientGenerator.Core.Usage
{
public static partial class _Specs_AzureClientGeneratorCoreUsageModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/_Specs_.Azure.ClientGenerator.Core.Usage.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/_Specs_.Azure.ClientGenerator.Core.Usage.csproj
index c4b823f7ff19..674648e43be7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/_Specs_.Azure.ClientGenerator.Core.Usage.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/src/_Specs_.Azure.ClientGenerator.Core.Usage.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.ClientGenerator.Core.Usage client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.ClientGenerator.Core.Usage
1.0.0-beta.1
- _Specs_.Azure.ClientGenerator.Core.Usage
+ Specs.Azure.ClientGenerator.Core.Usage
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/tspCodeModel.json
index 186a4b6e207b..1693d3937ea6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/client-generator-core/usage/tspCodeModel.json
@@ -331,6 +331,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage",
"apiVersions": [],
@@ -854,6 +855,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/BasicClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/BasicClient.cs
index a61dd5b36b28..e74b44fa77c8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/BasicClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/BasicClient.cs
@@ -13,7 +13,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public partial class BasicClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/BasicClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/BasicClientOptions.cs
index dce2a7094a48..b2b96c4ddb16 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/BasicClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/BasicClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public partial class BasicClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/Models/_Specs_AzureCoreBasicContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/Models/SpecsAzureCoreBasicContext.cs
similarity index 77%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/Models/_Specs_AzureCoreBasicContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/Models/SpecsAzureCoreBasicContext.cs
index f2021d2889f2..0d37813284ac 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/Models/_Specs_AzureCoreBasicContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/Models/SpecsAzureCoreBasicContext.cs
@@ -8,13 +8,13 @@
using System.ClientModel.Primitives;
using Azure;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
[ModelReaderWriterBuildable(typeof(ResponseError))]
[ModelReaderWriterBuildable(typeof(User))]
[ModelReaderWriterBuildable(typeof(UserList))]
[ModelReaderWriterBuildable(typeof(UserOrder))]
- public partial class _Specs_AzureCoreBasicContext : ModelReaderWriterContext
+ public partial class SpecsAzureCoreBasicContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/User.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/User.Serialization.cs
index 227354b98910..f0173133dbcc 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/User.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/User.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public partial class User : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/User.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/User.cs
index 8f74c7e74cc1..d22c64fd0d9d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/User.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/User.cs
@@ -8,7 +8,7 @@
using System.Collections.Generic;
using Azure;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public partial class User
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserList.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserList.Serialization.cs
index 8b91837e3623..eadea9e98143 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserList.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserList.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public partial class UserList : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserList.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserList.cs
index 7a4cf7af45e3..fe3d3f2b92e4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserList.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserList.cs
@@ -7,7 +7,7 @@
using System.Collections.Generic;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public partial class UserList
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserOrder.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserOrder.Serialization.cs
index b290b7b3fcc9..4f6e67a5b792 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserOrder.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserOrder.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public partial class UserOrder : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserOrder.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserOrder.cs
index 2751a5333e67..c61732512c52 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserOrder.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/UserOrder.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public partial class UserOrder
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/_Specs_AzureCoreBasicClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/_Specs_AzureCoreBasicClientBuilderExtensions.cs
index 8429782fbc92..0e49432f02c9 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/_Specs_AzureCoreBasicClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/_Specs_AzureCoreBasicClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Core.Basic;
+using Specs.Azure.Core.Basic;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/_Specs_AzureCoreBasicModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/_Specs_AzureCoreBasicModelFactory.cs
index c3dcd5805071..7af5445ae6e1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/_Specs_AzureCoreBasicModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/Generated/_Specs_AzureCoreBasicModelFactory.cs
@@ -9,7 +9,7 @@
using System.Collections.Generic;
using Azure;
-namespace _Specs_.Azure.Core.Basic
+namespace Specs.Azure.Core.Basic
{
public static partial class _Specs_AzureCoreBasicModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/_Specs_.Azure.Core.Basic.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/_Specs_.Azure.Core.Basic.csproj
index 86d05f9e223b..76f54c7de409 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/_Specs_.Azure.Core.Basic.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/src/_Specs_.Azure.Core.Basic.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Core.Basic client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Core.Basic
1.0.0-beta.1
- _Specs_.Azure.Core.Basic
+ Specs.Azure.Core.Basic
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/tspCodeModel.json
index 33817da088c6..ae8415b756df 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/basic/tspCodeModel.json
@@ -2389,8 +2389,40 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.endpoint"
+ },
+ {
+ "$id": "176",
+ "kind": "method",
+ "name": "apiVersion",
+ "serializedName": "apiVersion",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "177",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "178",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic.createOrUpdate.apiVersion",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Basic",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationOptions.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationOptions.Serialization.cs
index c7fae960ee07..5599add3ca1a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationOptions.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationOptions.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure.Core;
-namespace _Specs_.Azure.Core.Lro.Rpc
+namespace Specs.Azure.Core.Lro.Rpc
{
public partial class GenerationOptions : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationOptions.cs
index 2cf1b2d1e6a1..1075da437c52 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationOptions.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Lro.Rpc
+namespace Specs.Azure.Core.Lro.Rpc
{
public partial class GenerationOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationResult.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationResult.Serialization.cs
index bf0254ca9754..872385ae4a0c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationResult.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationResult.Serialization.cs
@@ -8,9 +8,8 @@
using System;
using System.ClientModel.Primitives;
using System.Text.Json;
-using Azure;
-namespace _Specs_.Azure.Core.Lro.Rpc
+namespace Specs.Azure.Core.Lro.Rpc
{
public partial class GenerationResult : IJsonModel
{
@@ -33,7 +32,5 @@ public partial class GenerationResult : IJsonModel
protected virtual GenerationResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
-
- public static explicit operator GenerationResult(Response response) => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationResult.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationResult.cs
index 31dddebeacd7..0eeec2d1bfaf 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationResult.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/GenerationResult.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Lro.Rpc
+namespace Specs.Azure.Core.Lro.Rpc
{
public partial class GenerationResult
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/_Specs_AzureCoreLroRpcContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/SpecsAzureCoreLroRpcContext.cs
similarity index 76%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/_Specs_AzureCoreLroRpcContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/SpecsAzureCoreLroRpcContext.cs
index e354e26e9f17..463210c640a3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/_Specs_AzureCoreLroRpcContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/SpecsAzureCoreLroRpcContext.cs
@@ -9,12 +9,12 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Lro.Rpc
+namespace Specs.Azure.Core.Lro.Rpc
{
+ [ModelReaderWriterBuildable(typeof(ResponseError))]
[ModelReaderWriterBuildable(typeof(GenerationOptions))]
[ModelReaderWriterBuildable(typeof(GenerationResult))]
- [ModelReaderWriterBuildable(typeof(ResponseError))]
- public partial class _Specs_AzureCoreLroRpcContext : ModelReaderWriterContext
+ public partial class SpecsAzureCoreLroRpcContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClient.cs
index 0a8f320d2b00..c9dc835c7e9a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClient.cs
@@ -12,7 +12,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Lro.Rpc
+namespace Specs.Azure.Core.Lro.Rpc
{
public partial class RpcClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClientOptions.cs
index 2a397dd3a662..5fd718d72b7d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Lro.Rpc
+namespace Specs.Azure.Core.Lro.Rpc
{
public partial class RpcClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcClientBuilderExtensions.cs
index f5649d8dc4d5..443090e7b123 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Core.Lro.Rpc;
+using Specs.Azure.Core.Lro.Rpc;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcModelFactory.cs
index 5caf7f0bf220..dccd646272f8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcModelFactory.cs
@@ -9,7 +9,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Lro.Rpc
+namespace Specs.Azure.Core.Lro.Rpc
{
public static partial class _Specs_AzureCoreLroRpcModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/_Specs_.Azure.Core.Lro.Rpc.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/_Specs_.Azure.Core.Lro.Rpc.csproj
index d7862fa61dd8..ff5fd79a5bf5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/_Specs_.Azure.Core.Lro.Rpc.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/_Specs_.Azure.Core.Lro.Rpc.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Core.Lro.Rpc client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Core.Lro.Rpc
1.0.0-beta.1
- _Specs_.Azure.Core.Lro.Rpc
+ Specs.Azure.Core.Lro.Rpc
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json
index 42dbc027ff28..67ab596d0bf6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json
@@ -1012,8 +1012,40 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.endpoint"
+ },
+ {
+ "$id": "72",
+ "kind": "method",
+ "name": "apiVersion",
+ "serializedName": "apiVersion",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "73",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "74",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.longRunningRpc.apiVersion",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/ExportedUser.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/ExportedUser.Serialization.cs
index 0546a1d31099..2977e3cc0810 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/ExportedUser.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/ExportedUser.Serialization.cs
@@ -8,9 +8,8 @@
using System;
using System.ClientModel.Primitives;
using System.Text.Json;
-using Azure;
-namespace _Specs_.Azure.Core.Lro.Standard
+namespace Specs.Azure.Core.Lro.Standard
{
public partial class ExportedUser : IJsonModel
{
@@ -33,7 +32,5 @@ public partial class ExportedUser : IJsonModel
protected virtual ExportedUser PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
-
- public static explicit operator ExportedUser(Response response) => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/ExportedUser.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/ExportedUser.cs
index ca2b91b23684..aa3444afab20 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/ExportedUser.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/ExportedUser.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Lro.Standard
+namespace Specs.Azure.Core.Lro.Standard
{
public partial class ExportedUser
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/_Specs_AzureCoreLroStandardContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/SpecsAzureCoreLroStandardContext.cs
similarity index 74%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/_Specs_AzureCoreLroStandardContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/SpecsAzureCoreLroStandardContext.cs
index 4786bf7c1e72..d2fb469ff04b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/_Specs_AzureCoreLroStandardContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/SpecsAzureCoreLroStandardContext.cs
@@ -9,12 +9,12 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Lro.Standard
+namespace Specs.Azure.Core.Lro.Standard
{
- [ModelReaderWriterBuildable(typeof(ExportedUser))]
[ModelReaderWriterBuildable(typeof(ResponseError))]
+ [ModelReaderWriterBuildable(typeof(ExportedUser))]
[ModelReaderWriterBuildable(typeof(User))]
- public partial class _Specs_AzureCoreLroStandardContext : ModelReaderWriterContext
+ public partial class SpecsAzureCoreLroStandardContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClient.cs
index 580882f9ecd2..56b676afb602 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClient.cs
@@ -12,7 +12,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Lro.Standard
+namespace Specs.Azure.Core.Lro.Standard
{
public partial class StandardClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClientOptions.cs
index 683db1815f22..5926cbdf2f90 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Lro.Standard
+namespace Specs.Azure.Core.Lro.Standard
{
public partial class StandardClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/User.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/User.Serialization.cs
index ec2237fb970e..ec6ca70a5669 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/User.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/User.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Lro.Standard
+namespace Specs.Azure.Core.Lro.Standard
{
public partial class User : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/User.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/User.cs
index e3d7d72c3ce1..3cae57b632cf 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/User.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/User.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Lro.Standard
+namespace Specs.Azure.Core.Lro.Standard
{
public partial class User
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardClientBuilderExtensions.cs
index 326690fcb39f..053610a9d07d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Core.Lro.Standard;
+using Specs.Azure.Core.Lro.Standard;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardModelFactory.cs
index f09375539dab..e6f6578ba65b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardModelFactory.cs
@@ -9,7 +9,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Lro.Standard
+namespace Specs.Azure.Core.Lro.Standard
{
public static partial class _Specs_AzureCoreLroStandardModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/_Specs_.Azure.Core.Lro.Standard.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/_Specs_.Azure.Core.Lro.Standard.csproj
index 088704288e28..57ab202c8173 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/_Specs_.Azure.Core.Lro.Standard.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/_Specs_.Azure.Core.Lro.Standard.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Core.Lro.Standard client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Core.Lro.Standard
1.0.0-beta.1
- _Specs_.Azure.Core.Lro.Standard
+ Specs.Azure.Core.Lro.Standard
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json
index ef77798f29bd..e107a84cf747 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json
@@ -1715,8 +1715,40 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.endpoint"
+ },
+ {
+ "$id": "125",
+ "kind": "method",
+ "name": "apiVersion",
+ "serializedName": "apiVersion",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "126",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "127",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.createOrReplace.apiVersion",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureCoreEmbeddingVector.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureCoreEmbeddingVector.cs
index 49429c8b4f99..5caf7b6e606d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureCoreEmbeddingVector.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureCoreEmbeddingVector.cs
@@ -12,7 +12,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Model
+namespace Specs.Azure.Core.Model
{
public partial class AzureCoreEmbeddingVector
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureEmbeddingModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureEmbeddingModel.Serialization.cs
index b12c819f7d3c..a91c95b4bfb0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureEmbeddingModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureEmbeddingModel.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Model
+namespace Specs.Azure.Core.Model
{
public partial class AzureEmbeddingModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureEmbeddingModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureEmbeddingModel.cs
index c1ef882525dd..f0f78b67b78b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureEmbeddingModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/AzureEmbeddingModel.cs
@@ -7,7 +7,7 @@
using System;
-namespace _Specs_.Azure.Core.Model
+namespace Specs.Azure.Core.Model
{
public partial class AzureEmbeddingModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/ModelClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/ModelClient.cs
index 79e1a099f8cf..091acd471285 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/ModelClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/ModelClient.cs
@@ -8,7 +8,7 @@
using System;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Model
+namespace Specs.Azure.Core.Model
{
public partial class ModelClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/ModelClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/ModelClientOptions.cs
index c3fe58f100e8..cb7fd9c919e5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/ModelClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/ModelClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Model
+namespace Specs.Azure.Core.Model
{
public partial class ModelClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/Models/_Specs_AzureCoreModelContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/Models/SpecsAzureCoreModelContext.cs
similarity index 68%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/Models/_Specs_AzureCoreModelContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/Models/SpecsAzureCoreModelContext.cs
index 07b4474a8a07..0b0f5a26a1be 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/Models/_Specs_AzureCoreModelContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/Models/SpecsAzureCoreModelContext.cs
@@ -7,10 +7,10 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.Core.Model
+namespace Specs.Azure.Core.Model
{
[ModelReaderWriterBuildable(typeof(AzureEmbeddingModel))]
- public partial class _Specs_AzureCoreModelContext : ModelReaderWriterContext
+ public partial class SpecsAzureCoreModelContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/_Specs_AzureCoreModelClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/_Specs_AzureCoreModelClientBuilderExtensions.cs
index 8d7807e8add7..7b5fd4070c65 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/_Specs_AzureCoreModelClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/_Specs_AzureCoreModelClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Core.Model;
+using Specs.Azure.Core.Model;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/_Specs_AzureCoreModelModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/_Specs_AzureCoreModelModelFactory.cs
index efa0d51ba7fa..9b068161449f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/_Specs_AzureCoreModelModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/Generated/_Specs_AzureCoreModelModelFactory.cs
@@ -7,7 +7,7 @@
using System;
-namespace _Specs_.Azure.Core.Model
+namespace Specs.Azure.Core.Model
{
public static partial class _Specs_AzureCoreModelModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/_Specs_.Azure.Core.Model.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/_Specs_.Azure.Core.Model.csproj
index 2a3871c6e1cd..8ddbf10faa36 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/_Specs_.Azure.Core.Model.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/src/_Specs_.Azure.Core.Model.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Core.Model client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Core.Model
1.0.0-beta.1
- _Specs_.Azure.Core.Model
+ Specs.Azure.Core.Model
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/tspCodeModel.json
index 9f80b89f268a..74fd00fd60cb 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/model/tspCodeModel.json
@@ -190,6 +190,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Model",
"apiVersions": [
@@ -602,6 +603,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Model.AzureCoreEmbeddingVector",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/FirstItem.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/FirstItem.Serialization.cs
index 36d0cf602d13..77ca2a71c42a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/FirstItem.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/FirstItem.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class FirstItem : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/FirstItem.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/FirstItem.cs
index 9eb7d23ea9b8..ca4e4cb6a6c9 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/FirstItem.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/FirstItem.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class FirstItem
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputBody.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputBody.Serialization.cs
index a446861c38d5..d9126b5b4dc5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputBody.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputBody.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure.Core;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class ListItemInputBody : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputBody.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputBody.cs
index 8c92924eb1f4..a599809edf3e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputBody.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputBody.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class ListItemInputBody
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputExtensibleEnum.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputExtensibleEnum.cs
index d607d9dbbf3c..b7843870571a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputExtensibleEnum.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/ListItemInputExtensibleEnum.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public enum ListItemInputExtensibleEnum
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/Models/_Specs_AzureCorePageContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/Models/SpecsAzureCorePageContext.cs
similarity index 82%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/Models/_Specs_AzureCorePageContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/Models/SpecsAzureCorePageContext.cs
index 646713d1c9ea..4045291d8ca7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/Models/_Specs_AzureCorePageContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/Models/SpecsAzureCorePageContext.cs
@@ -9,15 +9,15 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
+ [ModelReaderWriterBuildable(typeof(ResponseError))]
[ModelReaderWriterBuildable(typeof(FirstItem))]
[ModelReaderWriterBuildable(typeof(ListItemInputBody))]
- [ModelReaderWriterBuildable(typeof(ResponseError))]
[ModelReaderWriterBuildable(typeof(SecondItem))]
[ModelReaderWriterBuildable(typeof(User))]
[ModelReaderWriterBuildable(typeof(UserOrder))]
- public partial class _Specs_AzureCorePageContext : ModelReaderWriterContext
+ public partial class SpecsAzureCorePageContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/PageClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/PageClient.cs
index 0a0d39e33903..8f4a51793457 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/PageClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/PageClient.cs
@@ -11,7 +11,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class PageClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/PageClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/PageClientOptions.cs
index e75582f4f357..082716327742 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/PageClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/PageClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class PageClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/SecondItem.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/SecondItem.Serialization.cs
index e9c2a058f658..32e59c4d2923 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/SecondItem.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/SecondItem.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class SecondItem : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/SecondItem.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/SecondItem.cs
index f7ffeda25cba..c239f6ab7110 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/SecondItem.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/SecondItem.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class SecondItem
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/TwoModelsAsPageItem.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/TwoModelsAsPageItem.cs
index ed8222970fad..59cd2f4b19dd 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/TwoModelsAsPageItem.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/TwoModelsAsPageItem.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class TwoModelsAsPageItem
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/User.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/User.Serialization.cs
index e8b388936672..33d09a50ea3d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/User.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/User.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class User : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/User.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/User.cs
index 7c0151e75c6b..8bd60e794104 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/User.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/User.cs
@@ -8,7 +8,7 @@
using System.Collections.Generic;
using Azure;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class User
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/UserOrder.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/UserOrder.Serialization.cs
index 01ca9f963fc3..99a34caeb6b5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/UserOrder.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/UserOrder.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class UserOrder : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/UserOrder.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/UserOrder.cs
index f4480bea7139..17c44eb8439d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/UserOrder.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/UserOrder.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public partial class UserOrder
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/_Specs_AzureCorePageClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/_Specs_AzureCorePageClientBuilderExtensions.cs
index 186d0fb00fe0..e1a40f4c173d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/_Specs_AzureCorePageClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/_Specs_AzureCorePageClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Core.Page;
+using Specs.Azure.Core.Page;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/_Specs_AzureCorePageModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/_Specs_AzureCorePageModelFactory.cs
index 36b7036d5f3b..d74f25414c0d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/_Specs_AzureCorePageModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/Generated/_Specs_AzureCorePageModelFactory.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Page
+namespace Specs.Azure.Core.Page
{
public static partial class _Specs_AzureCorePageModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/_Specs_.Azure.Core.Page.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/_Specs_.Azure.Core.Page.csproj
index 03b2b3f325e3..f4accc468856 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/_Specs_.Azure.Core.Page.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/src/_Specs_.Azure.Core.Page.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Core.Page client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Core.Page
1.0.0-beta.1
- _Specs_.Azure.Core.Page
+ Specs.Azure.Core.Page
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/tspCodeModel.json
index 4bc81b89c1b0..eb836ae4c1ae 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/page/tspCodeModel.json
@@ -1868,8 +1868,40 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.endpoint"
+ },
+ {
+ "$id": "136",
+ "kind": "method",
+ "name": "apiVersion",
+ "serializedName": "apiVersion",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "137",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "138",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.listWithPage.apiVersion",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Page",
"apiVersions": [
@@ -1877,13 +1909,13 @@
],
"children": [
{
- "$id": "136",
+ "$id": "139",
"kind": "client",
"name": "TwoModelsAsPageItem",
"namespace": "_Specs_.Azure.Core.Page",
"methods": [
{
- "$id": "137",
+ "$id": "140",
"kind": "paging",
"name": "listFirstItem",
"accessibility": "public",
@@ -1892,20 +1924,20 @@
],
"doc": "Two operations with two different page item types should be successfully generated. Should generate model for FirstItem.",
"operation": {
- "$id": "138",
+ "$id": "141",
"name": "listFirstItem",
"resourceName": "TwoModelsAsPageItem",
"doc": "Two operations with two different page item types should be successfully generated. Should generate model for FirstItem.",
"accessibility": "public",
"parameters": [
{
- "$id": "139",
+ "$id": "142",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "140",
+ "$id": "143",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1915,7 +1947,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "141",
+ "$id": "144",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1929,7 +1961,7 @@
"readOnly": false
},
{
- "$id": "142",
+ "$id": "145",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -1971,7 +2003,7 @@
},
"parameters": [
{
- "$id": "143",
+ "$id": "146",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -2013,7 +2045,7 @@
}
},
{
- "$id": "144",
+ "$id": "147",
"kind": "paging",
"name": "listSecondItem",
"accessibility": "public",
@@ -2022,20 +2054,20 @@
],
"doc": "Two operations with two different page item types should be successfully generated. Should generate model for SecondItem.",
"operation": {
- "$id": "145",
+ "$id": "148",
"name": "listSecondItem",
"resourceName": "TwoModelsAsPageItem",
"doc": "Two operations with two different page item types should be successfully generated. Should generate model for SecondItem.",
"accessibility": "public",
"parameters": [
{
- "$id": "146",
+ "$id": "149",
"kind": "query",
"name": "apiVersion",
"serializedName": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "147",
+ "$id": "150",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2045,7 +2077,7 @@
"explode": false,
"defaultValue": {
"type": {
- "$id": "148",
+ "$id": "151",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2059,7 +2091,7 @@
"readOnly": false
},
{
- "$id": "149",
+ "$id": "152",
"kind": "header",
"name": "accept",
"serializedName": "Accept",
@@ -2101,7 +2133,7 @@
},
"parameters": [
{
- "$id": "150",
+ "$id": "153",
"kind": "method",
"name": "accept",
"serializedName": "Accept",
@@ -2145,13 +2177,13 @@
],
"parameters": [
{
- "$id": "151",
+ "$id": "154",
"kind": "endpoint",
"name": "endpoint",
"serializedName": "endpoint",
"doc": "Service host",
"type": {
- "$id": "152",
+ "$id": "155",
"kind": "url",
"name": "endpoint",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2162,7 +2194,7 @@
"isEndpoint": true,
"defaultValue": {
"type": {
- "$id": "153",
+ "$id": "156",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2173,8 +2205,12 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.endpoint"
+ },
+ {
+ "$ref": "136"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Page.TwoModelsAsPageItem",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationModel.Serialization.cs
index d51ebb6e25a7..3360c070f619 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationModel.Serialization.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
-namespace _Specs_.Azure.Core.Scalar
+namespace Specs.Azure.Core.Scalar
{
public partial class AzureLocationModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationModel.cs
index d77d25edc4ff..854edd460a7d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationModel.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Scalar
+namespace Specs.Azure.Core.Scalar
{
public partial class AzureLocationModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationScalar.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationScalar.cs
index 71c9e1f2387d..7ca9c46e05a9 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationScalar.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/AzureLocationScalar.cs
@@ -11,7 +11,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Scalar
+namespace Specs.Azure.Core.Scalar
{
public partial class AzureLocationScalar
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/Models/_Specs_AzureCoreScalarContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/Models/SpecsAzureCoreScalarContext.cs
similarity index 68%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/Models/_Specs_AzureCoreScalarContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/Models/SpecsAzureCoreScalarContext.cs
index 995d37a93994..a01dea864aa5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/Models/_Specs_AzureCoreScalarContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/Models/SpecsAzureCoreScalarContext.cs
@@ -7,10 +7,10 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.Core.Scalar
+namespace Specs.Azure.Core.Scalar
{
[ModelReaderWriterBuildable(typeof(AzureLocationModel))]
- public partial class _Specs_AzureCoreScalarContext : ModelReaderWriterContext
+ public partial class SpecsAzureCoreScalarContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/ScalarClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/ScalarClient.cs
index ad1a0ef35dcb..c0f0cd6670f4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/ScalarClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/ScalarClient.cs
@@ -8,7 +8,7 @@
using System;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Scalar
+namespace Specs.Azure.Core.Scalar
{
public partial class ScalarClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/ScalarClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/ScalarClientOptions.cs
index 3bcd42fe8f7f..2369cad31ac1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/ScalarClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/ScalarClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Scalar
+namespace Specs.Azure.Core.Scalar
{
public partial class ScalarClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/_Specs_AzureCoreScalarClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/_Specs_AzureCoreScalarClientBuilderExtensions.cs
index b3e056d23b0d..679f0bf7e67f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/_Specs_AzureCoreScalarClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/_Specs_AzureCoreScalarClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Core.Scalar;
+using Specs.Azure.Core.Scalar;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/_Specs_AzureCoreScalarModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/_Specs_AzureCoreScalarModelFactory.cs
index 8085fffc9860..ddab0f424f2e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/_Specs_AzureCoreScalarModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/Generated/_Specs_AzureCoreScalarModelFactory.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Scalar
+namespace Specs.Azure.Core.Scalar
{
public static partial class _Specs_AzureCoreScalarModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/_Specs_.Azure.Core.Scalar.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/_Specs_.Azure.Core.Scalar.csproj
index 20837f982d99..ba03b010534d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/_Specs_.Azure.Core.Scalar.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/src/_Specs_.Azure.Core.Scalar.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Core.Scalar client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Core.Scalar
1.0.0-beta.1
- _Specs_.Azure.Core.Scalar
+ Specs.Azure.Core.Scalar
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/tspCodeModel.json
index 812d6fbb14a4..1deb1e20cf60 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/scalar/tspCodeModel.json
@@ -238,6 +238,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar",
"apiVersions": [
@@ -887,6 +888,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Scalar.AzureLocationScalar",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/Models/_Specs_AzureCoreTraitsContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/Models/SpecsAzureCoreTraitsContext.cs
similarity index 78%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/Models/_Specs_AzureCoreTraitsContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/Models/SpecsAzureCoreTraitsContext.cs
index 2b06da61c003..83ed0e6ec52c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/Models/_Specs_AzureCoreTraitsContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/Models/SpecsAzureCoreTraitsContext.cs
@@ -8,13 +8,13 @@
using System.ClientModel.Primitives;
using Azure;
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
[ModelReaderWriterBuildable(typeof(ResponseError))]
[ModelReaderWriterBuildable(typeof(User))]
[ModelReaderWriterBuildable(typeof(UserActionParam))]
[ModelReaderWriterBuildable(typeof(UserActionResponse))]
- public partial class _Specs_AzureCoreTraitsContext : ModelReaderWriterContext
+ public partial class SpecsAzureCoreTraitsContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/TraitsClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/TraitsClient.cs
index 50d430d004b2..ede372d1a1fe 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/TraitsClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/TraitsClient.cs
@@ -12,7 +12,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public partial class TraitsClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/TraitsClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/TraitsClientOptions.cs
index 8b8c79f20876..809e8095507e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/TraitsClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/TraitsClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public partial class TraitsClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/User.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/User.Serialization.cs
index 95c3e95bb781..e37325a85e17 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/User.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/User.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public partial class User : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/User.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/User.cs
index 58a947af99db..94e0e0ffa2f5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/User.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/User.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public partial class User
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionParam.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionParam.Serialization.cs
index c664e7fc5f50..7158317ec073 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionParam.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionParam.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure.Core;
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public partial class UserActionParam : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionParam.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionParam.cs
index 2079c587e7a9..997ffda7575b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionParam.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionParam.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public partial class UserActionParam
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionResponse.Serialization.cs
index 9d57f557ffe6..425103ea362f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionResponse.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public partial class UserActionResponse : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionResponse.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionResponse.cs
index f4bc9ae60bbc..4055b3429c79 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionResponse.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/UserActionResponse.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public partial class UserActionResponse
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/_Specs_AzureCoreTraitsClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/_Specs_AzureCoreTraitsClientBuilderExtensions.cs
index 6427ae51c4ca..7c793d5c97b1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/_Specs_AzureCoreTraitsClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/_Specs_AzureCoreTraitsClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Core.Traits;
+using Specs.Azure.Core.Traits;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/_Specs_AzureCoreTraitsModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/_Specs_AzureCoreTraitsModelFactory.cs
index e3749e2f079b..c41f4df74bd4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/_Specs_AzureCoreTraitsModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/Generated/_Specs_AzureCoreTraitsModelFactory.cs
@@ -8,7 +8,7 @@
using System.Collections.Generic;
using Azure;
-namespace _Specs_.Azure.Core.Traits
+namespace Specs.Azure.Core.Traits
{
public static partial class _Specs_AzureCoreTraitsModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/_Specs_.Azure.Core.Traits.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/_Specs_.Azure.Core.Traits.csproj
index 3ce549c07331..ed590c9b340d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/_Specs_.Azure.Core.Traits.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/src/_Specs_.Azure.Core.Traits.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Core.Traits client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Core.Traits
1.0.0-beta.1
- _Specs_.Azure.Core.Traits
+ Specs.Azure.Core.Traits
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/tspCodeModel.json
index bd6d10c895ae..f74cd7c17e0a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/traits/tspCodeModel.json
@@ -1439,8 +1439,40 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.endpoint"
+ },
+ {
+ "$id": "117",
+ "kind": "method",
+ "name": "apiVersion",
+ "serializedName": "apiVersion",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "118",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "119",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits.smokeTest.apiVersion",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Core.Traits",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationClient.cs
index c9b9896c195b..667cb23127f2 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationClient.cs
@@ -12,7 +12,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Encode.Duration
+namespace Specs.Azure.Encode.Duration
{
public partial class DurationClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationClientOptions.cs
index 60872f95ec22..ed41461ee49d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Encode.Duration
+namespace Specs.Azure.Encode.Duration
{
public partial class DurationClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationModel.Serialization.cs
index 3f7cd1c0afa0..789fffa313fa 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationModel.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure.Core;
-namespace _Specs_.Azure.Encode.Duration
+namespace Specs.Azure.Encode.Duration
{
public partial class DurationModel : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationModel.cs
index 657c9efd4bbc..89a512b22d28 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/DurationModel.cs
@@ -7,7 +7,7 @@
using System;
-namespace _Specs_.Azure.Encode.Duration
+namespace Specs.Azure.Encode.Duration
{
public partial class DurationModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/Models/_Specs_AzureEncodeDurationContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/Models/SpecsAzureEncodeDurationContext.cs
similarity index 66%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/Models/_Specs_AzureEncodeDurationContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/Models/SpecsAzureEncodeDurationContext.cs
index 93a3ac3f769e..33aa9540f89b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/Models/_Specs_AzureEncodeDurationContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/Models/SpecsAzureEncodeDurationContext.cs
@@ -7,10 +7,10 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.Encode.Duration
+namespace Specs.Azure.Encode.Duration
{
[ModelReaderWriterBuildable(typeof(DurationModel))]
- public partial class _Specs_AzureEncodeDurationContext : ModelReaderWriterContext
+ public partial class SpecsAzureEncodeDurationContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/_Specs_AzureEncodeDurationClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/_Specs_AzureEncodeDurationClientBuilderExtensions.cs
index e9d11ba4147a..ed2f3f449bed 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/_Specs_AzureEncodeDurationClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/_Specs_AzureEncodeDurationClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Encode.Duration;
+using Specs.Azure.Encode.Duration;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/_Specs_AzureEncodeDurationModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/_Specs_AzureEncodeDurationModelFactory.cs
index 5efb4e726673..f152f63085c3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/_Specs_AzureEncodeDurationModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/Generated/_Specs_AzureEncodeDurationModelFactory.cs
@@ -7,7 +7,7 @@
using System;
-namespace _Specs_.Azure.Encode.Duration
+namespace Specs.Azure.Encode.Duration
{
public static partial class _Specs_AzureEncodeDurationModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/_Specs_.Azure.Encode.Duration.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/_Specs_.Azure.Encode.Duration.csproj
index 91d88c66ef08..890cf7175ff6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/_Specs_.Azure.Encode.Duration.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/src/_Specs_.Azure.Encode.Duration.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Encode.Duration client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Encode.Duration
1.0.0-beta.1
- _Specs_.Azure.Encode.Duration
+ Specs.Azure.Encode.Duration
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/tspCodeModel.json
index 99a21dc996cd..368b4cdaa77a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/encode/duration/tspCodeModel.json
@@ -222,6 +222,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.Encode.Duration.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Encode.Duration",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionRequest.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionRequest.Serialization.cs
index c61d0ca3acf6..7743c7d64b6e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionRequest.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionRequest.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure.Core;
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
public partial class ActionRequest : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionRequest.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionRequest.cs
index bdaccaf4a1bd..1f803e94574e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionRequest.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionRequest.cs
@@ -7,7 +7,7 @@
using System.Collections.Generic;
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
public partial class ActionRequest
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionResponse.Serialization.cs
index 7f8cb4f4ab26..ad548a461f28 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionResponse.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
public partial class ActionResponse : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionResponse.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionResponse.cs
index 0aa944e0d20c..ebb89aba5afa 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionResponse.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/ActionResponse.cs
@@ -7,7 +7,7 @@
using System.Collections.Generic;
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
public partial class ActionResponse
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/AzureExampleClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/AzureExampleClient.cs
index 02eb64e43a02..73a7ae862484 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/AzureExampleClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/AzureExampleClient.cs
@@ -11,7 +11,7 @@
using Azure;
using Azure.Core;
using Azure.Core.Pipeline;
-using _Specs_.Azure.Example.Basic;
+using Specs.Azure.Example.Basic;
namespace AzureExampleBasicClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Enum.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Enum.cs
index 472a40bfa491..4f594b95303c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Enum.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Enum.cs
@@ -8,7 +8,7 @@
using System;
using System.ComponentModel;
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
public readonly partial struct Enum : IEquatable
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Model.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Model.Serialization.cs
index 902ff539e834..7e89dcaeccf1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Model.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Model.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
public partial class Model : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Model.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Model.cs
index 7c7e3aa23826..ab68fbf61e79 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Model.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Model.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
public partial class Model
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Models/_Specs_AzureExampleBasicContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Models/SpecsAzureExampleBasicContext.cs
similarity index 74%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Models/_Specs_AzureExampleBasicContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Models/SpecsAzureExampleBasicContext.cs
index 31634afdc52e..01bdfc42131f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Models/_Specs_AzureExampleBasicContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/Models/SpecsAzureExampleBasicContext.cs
@@ -7,12 +7,12 @@
using System.ClientModel.Primitives;
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
[ModelReaderWriterBuildable(typeof(ActionRequest))]
[ModelReaderWriterBuildable(typeof(ActionResponse))]
[ModelReaderWriterBuildable(typeof(Model))]
- public partial class _Specs_AzureExampleBasicContext : ModelReaderWriterContext
+ public partial class SpecsAzureExampleBasicContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/_Specs_AzureExampleBasicModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/_Specs_AzureExampleBasicModelFactory.cs
index 34b20d88934d..ffc62f935406 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/_Specs_AzureExampleBasicModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/Generated/_Specs_AzureExampleBasicModelFactory.cs
@@ -7,7 +7,7 @@
using System.Collections.Generic;
-namespace _Specs_.Azure.Example.Basic
+namespace Specs.Azure.Example.Basic
{
public static partial class _Specs_AzureExampleBasicModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/_Specs_.Azure.Example.Basic.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/_Specs_.Azure.Example.Basic.csproj
index b0d74e3811e1..dbfe54562af3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/_Specs_.Azure.Example.Basic.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/src/_Specs_.Azure.Example.Basic.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Example.Basic client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Example.Basic
1.0.0-beta.1
- _Specs_.Azure.Example.Basic
+ Specs.Azure.Example.Basic
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/tspCodeModel.json
index 7c8c3bd03cd8..aea889adb347 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/example/basic/tspCodeModel.json
@@ -722,8 +722,40 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "_Specs_.Azure.Example.Basic.endpoint"
+ },
+ {
+ "$id": "57",
+ "kind": "method",
+ "name": "apiVersion",
+ "serializedName": "apiVersion",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "58",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "59",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "AzureExampleBasicClient.AzureExampleClient.basicAction.apiVersion",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "AzureExampleBasicClient.AzureExampleClient",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/Models/_Specs_AzurePayloadPageableContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/Models/SpecsAzurePayloadPageableContext.cs
similarity index 66%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/Models/_Specs_AzurePayloadPageableContext.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/Models/SpecsAzurePayloadPageableContext.cs
index 8d2f402fc95e..4a34e143380f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/Models/_Specs_AzurePayloadPageableContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/Models/SpecsAzurePayloadPageableContext.cs
@@ -8,10 +8,10 @@
using System.ClientModel.Primitives;
using Azure.Core;
-namespace _Specs_.Azure.Payload.Pageable
+namespace Specs.Azure.Payload.Pageable
{
[ModelReaderWriterBuildable(typeof(User))]
- public partial class _Specs_AzurePayloadPageableContext : ModelReaderWriterContext
+ public partial class SpecsAzurePayloadPageableContext : ModelReaderWriterContext
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/PageableClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/PageableClient.cs
index 951741e021f9..5dea4dfc1f76 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/PageableClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/PageableClient.cs
@@ -10,7 +10,7 @@
using Azure;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Payload.Pageable
+namespace Specs.Azure.Payload.Pageable
{
public partial class PageableClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/PageableClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/PageableClientOptions.cs
index 1f2f7efc597b..10197a189b4a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/PageableClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/PageableClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Payload.Pageable
+namespace Specs.Azure.Payload.Pageable
{
public partial class PageableClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/User.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/User.Serialization.cs
index 11986a99b684..605f9bdcffa0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/User.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/User.Serialization.cs
@@ -9,7 +9,7 @@
using System.ClientModel.Primitives;
using System.Text.Json;
-namespace _Specs_.Azure.Payload.Pageable
+namespace Specs.Azure.Payload.Pageable
{
public partial class User : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/User.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/User.cs
index a0722f906ab7..778e7c297a47 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/User.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/User.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Payload.Pageable
+namespace Specs.Azure.Payload.Pageable
{
public partial class User
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/_Specs_AzurePayloadPageableClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/_Specs_AzurePayloadPageableClientBuilderExtensions.cs
index ad8230a600ca..7075e6c3d852 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/_Specs_AzurePayloadPageableClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/_Specs_AzurePayloadPageableClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Payload.Pageable;
+using Specs.Azure.Payload.Pageable;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/_Specs_AzurePayloadPageableModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/_Specs_AzurePayloadPageableModelFactory.cs
index f76464003bf7..11cb18c64f71 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/_Specs_AzurePayloadPageableModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/Generated/_Specs_AzurePayloadPageableModelFactory.cs
@@ -9,7 +9,7 @@
using System.Collections.Generic;
using Azure.Core;
-namespace _Specs_.Azure.Payload.Pageable
+namespace Specs.Azure.Payload.Pageable
{
public static partial class _Specs_AzurePayloadPageableModelFactory
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/_Specs_.Azure.Payload.Pageable.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/_Specs_.Azure.Payload.Pageable.csproj
index f69a3c3ddd11..7b02d698d859 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/_Specs_.Azure.Payload.Pageable.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/src/_Specs_.Azure.Payload.Pageable.csproj
@@ -3,7 +3,7 @@
This is the _Specs_.Azure.Payload.Pageable client library for developing .NET applications with rich experience.
SDK Code Generation _Specs_.Azure.Payload.Pageable
1.0.0-beta.1
- _Specs_.Azure.Payload.Pageable
+ Specs.Azure.Payload.Pageable
true
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/tspCodeModel.json
index 03b67ae8b959..68bca41fcedf 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/payload/pageable/tspCodeModel.json
@@ -316,6 +316,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.Payload.Pageable.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Payload.Pageable",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/special-headers/client-request-id/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/special-headers/client-request-id/tspCodeModel.json
index 9e37aa327d78..5b1e924caab5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/special-headers/client-request-id/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/special-headers/client-request-id/tspCodeModel.json
@@ -127,6 +127,7 @@
"crossLanguageDefinitionId": "Azure.SpecialHeaders.XmsClientRequestId.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Azure.SpecialHeaders.XmsClientRequestId",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/ListWidgetsResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/ListWidgetsResponse.Serialization.cs
index 84fb311c164d..a33237a9b76e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/ListWidgetsResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/ListWidgetsResponse.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class ListWidgetsResponse : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/ListWidgetsResponse.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/ListWidgetsResponse.cs
index 9618d6cec3e2..f284cf7d550d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/ListWidgetsResponse.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/ListWidgetsResponse.cs
@@ -7,7 +7,7 @@
using System.Collections.Generic;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class ListWidgetsResponse
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Models/VersioningPreviewVersionV1Context.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Models/VersioningPreviewVersionV1Context.cs
index 1a1ca9fc9bc6..aeaed951aea8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Models/VersioningPreviewVersionV1Context.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Models/VersioningPreviewVersionV1Context.cs
@@ -6,7 +6,7 @@
#nullable disable
using System.ClientModel.Primitives;
-using _Specs_.Azure.Versioning.PreviewVersion;
+using Specs.Azure.Versioning.PreviewVersion;
namespace Versioning.PreviewVersion.V1
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/PreviewVersionClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/PreviewVersionClient.cs
index 883ceb60d811..df4b5738723f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/PreviewVersionClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/PreviewVersionClient.cs
@@ -12,7 +12,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class PreviewVersionClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/PreviewVersionClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/PreviewVersionClientOptions.cs
index 987d0c637d9f..15f15808a435 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/PreviewVersionClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/PreviewVersionClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class PreviewVersionClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/VersioningPreviewVersionV1ClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/VersioningPreviewVersionV1ClientBuilderExtensions.cs
index cd91810f46d1..98afb27c836f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/VersioningPreviewVersionV1ClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/VersioningPreviewVersionV1ClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Versioning.PreviewVersion;
+using Specs.Azure.Versioning.PreviewVersion;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/VersioningPreviewVersionV1ModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/VersioningPreviewVersionV1ModelFactory.cs
index 687c7345aaf2..a7deebf9b84a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/VersioningPreviewVersionV1ModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/VersioningPreviewVersionV1ModelFactory.cs
@@ -6,7 +6,7 @@
#nullable disable
using System.Collections.Generic;
-using _Specs_.Azure.Versioning.PreviewVersion;
+using Specs.Azure.Versioning.PreviewVersion;
namespace Versioning.PreviewVersion.V1
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Widget.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Widget.Serialization.cs
index 9c2c0a19b261..d71777316902 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Widget.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Widget.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class Widget : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Widget.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Widget.cs
index 6062de6020c5..b82620a3ede1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Widget.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/src/Generated/Widget.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class Widget
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/tspCodeModel.json
index c2986c427035..8652e98628ab 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v1/tspCodeModel.json
@@ -889,6 +889,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.Versioning.PreviewVersion.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Versioning.PreviewVersion",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/ListWidgetsResponse.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/ListWidgetsResponse.Serialization.cs
index 84fb311c164d..a33237a9b76e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/ListWidgetsResponse.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/ListWidgetsResponse.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class ListWidgetsResponse : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/ListWidgetsResponse.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/ListWidgetsResponse.cs
index 9618d6cec3e2..f284cf7d550d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/ListWidgetsResponse.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/ListWidgetsResponse.cs
@@ -7,7 +7,7 @@
using System.Collections.Generic;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class ListWidgetsResponse
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Models/VersioningPreviewVersionV2Context.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Models/VersioningPreviewVersionV2Context.cs
index 469980ac0d3c..fd8ecead6ee5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Models/VersioningPreviewVersionV2Context.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Models/VersioningPreviewVersionV2Context.cs
@@ -6,7 +6,7 @@
#nullable disable
using System.ClientModel.Primitives;
-using _Specs_.Azure.Versioning.PreviewVersion;
+using Specs.Azure.Versioning.PreviewVersion;
namespace Versioning.PreviewVersion.V2
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/PreviewVersionClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/PreviewVersionClient.cs
index 883ceb60d811..df4b5738723f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/PreviewVersionClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/PreviewVersionClient.cs
@@ -12,7 +12,7 @@
using Azure.Core;
using Azure.Core.Pipeline;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class PreviewVersionClient
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/PreviewVersionClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/PreviewVersionClientOptions.cs
index 987d0c637d9f..15f15808a435 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/PreviewVersionClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/PreviewVersionClientOptions.cs
@@ -7,7 +7,7 @@
using Azure.Core;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class PreviewVersionClientOptions : ClientOptions
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/VersioningPreviewVersionV2ClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/VersioningPreviewVersionV2ClientBuilderExtensions.cs
index 5b20cf72acf2..ee038343d3b7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/VersioningPreviewVersionV2ClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/VersioningPreviewVersionV2ClientBuilderExtensions.cs
@@ -8,7 +8,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using _Specs_.Azure.Versioning.PreviewVersion;
+using Specs.Azure.Versioning.PreviewVersion;
namespace Microsoft.Extensions.Azure
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/VersioningPreviewVersionV2ModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/VersioningPreviewVersionV2ModelFactory.cs
index 0d9d0a765b05..7c3d174815ad 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/VersioningPreviewVersionV2ModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/VersioningPreviewVersionV2ModelFactory.cs
@@ -6,7 +6,7 @@
#nullable disable
using System.Collections.Generic;
-using _Specs_.Azure.Versioning.PreviewVersion;
+using Specs.Azure.Versioning.PreviewVersion;
namespace Versioning.PreviewVersion.V2
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Widget.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Widget.Serialization.cs
index 9c2c0a19b261..d71777316902 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Widget.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Widget.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class Widget : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Widget.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Widget.cs
index 6062de6020c5..b82620a3ede1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Widget.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/src/Generated/Widget.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace _Specs_.Azure.Versioning.PreviewVersion
+namespace Specs.Azure.Versioning.PreviewVersion
{
public partial class Widget
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/tspCodeModel.json
index 45f75f7aba9b..a48af7445371 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/versioning/previewVersion/v2/tspCodeModel.json
@@ -889,6 +889,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.Versioning.PreviewVersion.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.Versioning.PreviewVersion",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceClientBuilderExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceClientBuilderExtensions.cs
index 8d80183ee179..fb240474cd7f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceClientBuilderExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceClientBuilderExtensions.cs
@@ -8,27 +8,27 @@
using System;
using System.Diagnostics.CodeAnalysis;
using Azure.Core.Extensions;
-using client.clientnamespace;
-using client.clientnamespace.second;
+using Client.Clientnamespace;
+using Client.Clientnamespace.Second;
namespace Microsoft.Extensions.Azure
{
public static partial class ClientClientNamespaceClientBuilderExtensions
{
- public static IAzureClientBuilder AddClientNamespaceFirstClient(this TBuilder builder, Uri endpoint)
+ public static IAzureClientBuilder AddClientNamespaceFirstClient(this TBuilder builder, Uri endpoint)
where TBuilder : IAzureClientFactoryBuilder => throw null;
[RequiresUnreferencedCode("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")]
[RequiresDynamicCode("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")]
- public static IAzureClientBuilder AddClientNamespaceFirstClient(this TBuilder builder, TConfiguration configuration)
+ public static IAzureClientBuilder AddClientNamespaceFirstClient(this TBuilder builder, TConfiguration configuration)
where TBuilder : IAzureClientFactoryBuilderWithConfiguration => throw null;
- public static IAzureClientBuilder AddClientNamespaceSecondClient(this TBuilder builder, Uri endpoint)
+ public static IAzureClientBuilder AddClientNamespaceSecondClient(this TBuilder builder, Uri endpoint)
where TBuilder : IAzureClientFactoryBuilder => throw null;
[RequiresUnreferencedCode("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")]
[RequiresDynamicCode("Requires unreferenced code until we opt into EnableConfigurationBindingGenerator.")]
- public static IAzureClientBuilder AddClientNamespaceSecondClient(this TBuilder builder, TConfiguration configuration)
+ public static IAzureClientBuilder AddClientNamespaceSecondClient(this TBuilder builder, TConfiguration configuration)
where TBuilder : IAzureClientFactoryBuilderWithConfiguration => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceClientOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceClientOptions.cs
similarity index 61%
rename from eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceClientOptions.cs
rename to eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceClientOptions.cs
index e704a041c85e..61581fc9cb9f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceClientOptions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceClientOptions.cs
@@ -7,9 +7,9 @@
using Azure.Core;
-namespace client.clientnamespace
+namespace Client.Clientnamespace
{
- public partial class ClientNamespaceClientOptions : ClientOptions
+ public partial class ClientClientNamespaceClientOptions : ClientOptions
{
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceModelFactory.cs
index 99b198a04a10..bdeccaeaf09e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientClientNamespaceModelFactory.cs
@@ -5,9 +5,9 @@
#nullable disable
-using client.clientnamespace.first;
-using client.clientnamespace.second;
-using client.clientnamespace.second.sub;
+using Client.Clientnamespace.First;
+using Client.Clientnamespace.Second;
+using Client.Clientnamespace.Second.Sub;
namespace Client.ClientNamespace
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceFirstClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceFirstClient.cs
index 21395d670a1e..c6dd5fc7f9c2 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceFirstClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceFirstClient.cs
@@ -10,15 +10,15 @@
using System.Threading.Tasks;
using Azure;
using Azure.Core.Pipeline;
-using client.clientnamespace.first;
+using Client.Clientnamespace.First;
-namespace client.clientnamespace
+namespace Client.Clientnamespace
{
public partial class ClientNamespaceFirstClient
{
- public ClientNamespaceFirstClient() : this(new Uri("http://localhost:3000"), new ClientNamespaceClientOptions()) => throw null;
+ public ClientNamespaceFirstClient() : this(new Uri("http://localhost:3000"), new ClientClientNamespaceClientOptions()) => throw null;
- public ClientNamespaceFirstClient(Uri endpoint, ClientNamespaceClientOptions options) => throw null;
+ public ClientNamespaceFirstClient(Uri endpoint, ClientClientNamespaceClientOptions options) => throw null;
public virtual HttpPipeline Pipeline => throw null;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceSecondClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceSecondClient.cs
index 0ab831a83234..ad5a8ac3b470 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceSecondClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/ClientNamespaceSecondClient.cs
@@ -10,15 +10,15 @@
using System.Threading.Tasks;
using Azure;
using Azure.Core.Pipeline;
-using client.clientnamespace;
+using Client.Clientnamespace;
-namespace client.clientnamespace.second
+namespace Client.Clientnamespace.Second
{
public partial class ClientNamespaceSecondClient
{
- public ClientNamespaceSecondClient() : this(new Uri("http://localhost:3000"), new ClientNamespaceClientOptions()) => throw null;
+ public ClientNamespaceSecondClient() : this(new Uri("http://localhost:3000"), new ClientClientNamespaceClientOptions()) => throw null;
- public ClientNamespaceSecondClient(Uri endpoint, ClientNamespaceClientOptions options) => throw null;
+ public ClientNamespaceSecondClient(Uri endpoint, ClientClientNamespaceClientOptions options) => throw null;
public virtual HttpPipeline Pipeline => throw null;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/FirstClientResult.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/FirstClientResult.Serialization.cs
index a9082eb54263..09e67b1c42c4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/FirstClientResult.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/FirstClientResult.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace client.clientnamespace.first
+namespace Client.Clientnamespace.First
{
public partial class FirstClientResult : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/FirstClientResult.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/FirstClientResult.cs
index e098a31738a8..ce0f346a5980 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/FirstClientResult.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/FirstClientResult.cs
@@ -5,7 +5,7 @@
#nullable disable
-namespace client.clientnamespace.first
+namespace Client.Clientnamespace.First
{
public partial class FirstClientResult
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/Models/ClientClientNamespaceContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/Models/ClientClientNamespaceContext.cs
index 5928d29485a5..168af25172da 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/Models/ClientClientNamespaceContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/Models/ClientClientNamespaceContext.cs
@@ -6,8 +6,8 @@
#nullable disable
using System.ClientModel.Primitives;
-using client.clientnamespace.first;
-using client.clientnamespace.second;
+using Client.Clientnamespace.First;
+using Client.Clientnamespace.Second;
namespace Client.ClientNamespace
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientEnumType.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientEnumType.cs
index 34a70aae3e6d..2c42450987bb 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientEnumType.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientEnumType.cs
@@ -8,7 +8,7 @@
using System;
using System.ComponentModel;
-namespace client.clientnamespace.second.sub
+namespace Client.Clientnamespace.Second.Sub
{
public readonly partial struct SecondClientEnumType : IEquatable
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientResult.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientResult.Serialization.cs
index 2e8b2f4a3cee..cd4ce5bac52c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientResult.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientResult.Serialization.cs
@@ -10,7 +10,7 @@
using System.Text.Json;
using Azure;
-namespace client.clientnamespace.second
+namespace Client.Clientnamespace.Second
{
public partial class SecondClientResult : IJsonModel
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientResult.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientResult.cs
index 272c9f3ba491..3f335cb7145e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientResult.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/src/Generated/SecondClientResult.cs
@@ -5,9 +5,9 @@
#nullable disable
-using client.clientnamespace.second.sub;
+using Client.Clientnamespace.Second.Sub;
-namespace client.clientnamespace.second
+namespace Client.Clientnamespace.Second
{
public partial class SecondClientResult
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/tspCodeModel.json
index 75948dcccae7..0e79f4fbc0c0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/namespace/tspCodeModel.json
@@ -262,6 +262,7 @@
"crossLanguageDefinitionId": "Client.ClientNamespace.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "ClientNameSpaceClient.ClientNamespaceFirstClient",
"apiVersions": []
@@ -387,6 +388,7 @@
"crossLanguageDefinitionId": "Client.ClientNamespace.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "ClientNameSpaceClient.ClientNamespaceSecondClient",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/enum-conflict/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/enum-conflict/tspCodeModel.json
index e4d4b2bd0f2b..478a99996a7a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/enum-conflict/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/enum-conflict/tspCodeModel.json
@@ -327,6 +327,7 @@
"crossLanguageDefinitionId": "Client.Naming.EnumConflict.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Naming.EnumConflict",
"apiVersions": [],
@@ -528,6 +529,7 @@
"crossLanguageDefinitionId": "Client.Naming.EnumConflict.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Naming.EnumConflict.FirstOperations",
"apiVersions": [],
@@ -732,6 +734,7 @@
"crossLanguageDefinitionId": "Client.Naming.EnumConflict.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Naming.EnumConflict.SecondOperations",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/src/Generated/Models/ClientNamingContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/src/Generated/Models/ClientNamingContext.cs
index 10bc140b9fc7..4e1bee908149 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/src/Generated/Models/ClientNamingContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/src/Generated/Models/ClientNamingContext.cs
@@ -12,9 +12,9 @@
namespace Client.Naming
{
[ModelReaderWriterBuildable(typeof(ClientModel))]
+ [ModelReaderWriterBuildable(typeof(CSModel))]
[ModelReaderWriterBuildable(typeof(ClientNameAndJsonEncodedNameModel))]
[ModelReaderWriterBuildable(typeof(ClientNameModel))]
- [ModelReaderWriterBuildable(typeof(CSModel))]
[ModelReaderWriterBuildable(typeof(LanguageClientNameModel))]
public partial class ClientNamingContext : ModelReaderWriterContext
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/tspCodeModel.json
index fb7043b920e6..85fa5dca5d90 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/naming/tspCodeModel.json
@@ -1041,6 +1041,7 @@
"crossLanguageDefinitionId": "Client.Naming.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Naming",
"apiVersions": [],
@@ -1310,6 +1311,7 @@
"crossLanguageDefinitionId": "Client.Naming.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Naming.Model",
"apiVersions": [],
@@ -1578,6 +1580,7 @@
"crossLanguageDefinitionId": "Client.Naming.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Naming.UnionEnum",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/overload/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/overload/tspCodeModel.json
index 1db451ac8f13..bb907cd54fbf 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/overload/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/overload/tspCodeModel.json
@@ -380,6 +380,7 @@
"crossLanguageDefinitionId": "Client.Overload.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Overload",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json
index bd0af9b2b5c2..f3a0ba289193 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/client-operation-group/tspCodeModel.json
@@ -176,6 +176,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup",
"apiVersions": [],
@@ -302,6 +303,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group3",
"apiVersions": [],
@@ -394,6 +396,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.ClientOperationGroup.Group4",
"apiVersions": [],
@@ -488,6 +491,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup",
"apiVersions": [],
@@ -577,6 +581,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.AnotherClientOperationGroup.Group5",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json
index a9041e5fa9b0..ec47ecb0a69b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/tspCodeModel.json
@@ -214,6 +214,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.Service",
"apiVersions": [],
@@ -265,6 +266,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.Service.Baz",
"apiVersions": [],
@@ -357,6 +359,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.Service.Baz.Foo",
"apiVersions": [],
@@ -451,6 +454,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.Service.Qux",
"apiVersions": [],
@@ -543,6 +547,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.Service.Qux.Bar",
"apiVersions": [],
@@ -674,6 +679,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.Service.Foo",
"apiVersions": [],
@@ -803,6 +809,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.Service.Bar",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json
index a5a8f52dfa22..bfe386aef59a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/multi-client/tspCodeModel.json
@@ -250,6 +250,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientA",
"apiVersions": []
@@ -413,6 +414,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.MultiClient.ClientB",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json
index 5048d3c51231..f1decd7125eb 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/renamed-operation/tspCodeModel.json
@@ -250,6 +250,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.RenamedOperation",
"apiVersions": [],
@@ -413,6 +414,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.RenamedOperation.Group",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json
index b21a06a2ebc7..4960b53a26db 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/two-operation-group/tspCodeModel.json
@@ -138,6 +138,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup",
"apiVersions": [],
@@ -301,6 +302,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group1",
"apiVersions": [],
@@ -467,6 +469,7 @@
"crossLanguageDefinitionId": "Client.Structure.Service.client"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Client.Structure.TwoOperationGroup.Group2",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json
index 63946a7f8258..fe400ee69ea3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/tspCodeModel.json
@@ -625,6 +625,7 @@
"crossLanguageDefinitionId": "Encode.Bytes.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes",
"apiVersions": [],
@@ -987,6 +988,7 @@
"crossLanguageDefinitionId": "Encode.Bytes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.Query",
"apiVersions": [],
@@ -1657,6 +1659,7 @@
"crossLanguageDefinitionId": "Encode.Bytes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.Property",
"apiVersions": [],
@@ -2023,6 +2026,7 @@
"crossLanguageDefinitionId": "Encode.Bytes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.Header",
"apiVersions": [],
@@ -2670,6 +2674,7 @@
"crossLanguageDefinitionId": "Encode.Bytes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.RequestBody",
"apiVersions": [],
@@ -3188,6 +3193,7 @@
"crossLanguageDefinitionId": "Encode.Bytes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.ResponseBody",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json
index 91826b721dcc..146d52143d2b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/tspCodeModel.json
@@ -448,6 +448,7 @@
"crossLanguageDefinitionId": "Encode.Datetime.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime",
"apiVersions": [],
@@ -948,6 +949,7 @@
"crossLanguageDefinitionId": "Encode.Datetime.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.Query",
"apiVersions": [],
@@ -1774,6 +1776,7 @@
"crossLanguageDefinitionId": "Encode.Datetime.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.Property",
"apiVersions": [],
@@ -2278,6 +2281,7 @@
"crossLanguageDefinitionId": "Encode.Datetime.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.Header",
"apiVersions": [],
@@ -2552,6 +2556,7 @@
"crossLanguageDefinitionId": "Encode.Datetime.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json
index e578da152b3e..7e1d9bb47316 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/tspCodeModel.json
@@ -850,6 +850,7 @@
"crossLanguageDefinitionId": "Encode.Duration.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration",
"apiVersions": [],
@@ -1875,6 +1876,7 @@
"crossLanguageDefinitionId": "Encode.Duration.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Query",
"apiVersions": [],
@@ -3481,6 +3483,7 @@
"crossLanguageDefinitionId": "Encode.Duration.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Property",
"apiVersions": [],
@@ -4511,6 +4514,7 @@
"crossLanguageDefinitionId": "Encode.Duration.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Header",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json
index 26b0bacf4b90..3a5e6b9c0c9f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/tspCodeModel.json
@@ -253,6 +253,7 @@
"crossLanguageDefinitionId": "Encode.Numeric.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Numeric",
"apiVersions": [],
@@ -764,6 +765,7 @@
"crossLanguageDefinitionId": "Encode.Numeric.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Encode.Numeric.Property",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json
index 1882bf001960..415be78e4135 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/tspCodeModel.json
@@ -151,6 +151,7 @@
"crossLanguageDefinitionId": "Parameters.Basic.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Basic",
"apiVersions": [],
@@ -307,6 +308,7 @@
"crossLanguageDefinitionId": "Parameters.Basic.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody",
"apiVersions": [],
@@ -470,6 +472,7 @@
"crossLanguageDefinitionId": "Parameters.Basic.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json
index 2a3434043a7b..5ce9490f0d46 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/tspCodeModel.json
@@ -377,6 +377,7 @@
"crossLanguageDefinitionId": "Parameters.BodyOptionality.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.BodyOptionality",
"apiVersions": [],
@@ -646,6 +647,7 @@
"crossLanguageDefinitionId": "Parameters.BodyOptionality.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json
index 7ac7d16d0702..dc3c19f7fb44 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/tspCodeModel.json
@@ -44,6 +44,7 @@
"crossLanguageDefinitionId": "Parameters.CollectionFormat.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.CollectionFormat",
"apiVersions": [],
@@ -397,6 +398,7 @@
"crossLanguageDefinitionId": "Parameters.CollectionFormat.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.CollectionFormat.Query",
"apiVersions": [],
@@ -519,6 +521,7 @@
"crossLanguageDefinitionId": "Parameters.CollectionFormat.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.CollectionFormat.Header",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json
index cc97a2784dde..bdb31ab5be86 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/tspCodeModel.json
@@ -211,6 +211,7 @@
"crossLanguageDefinitionId": "Parameters.Path.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Path",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json
index 43a7e7115d4f..fbe5098f9d7c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/tspCodeModel.json
@@ -563,6 +563,7 @@
"crossLanguageDefinitionId": "Parameters.Spread.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Spread",
"apiVersions": [],
@@ -1360,6 +1361,7 @@
"crossLanguageDefinitionId": "Parameters.Spread.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Spread.Model",
"apiVersions": [],
@@ -2415,6 +2417,7 @@
"crossLanguageDefinitionId": "Parameters.Spread.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Spread.Alias",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json
index 89b3dbb40316..795d796a3852 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/tspCodeModel.json
@@ -312,6 +312,7 @@
"crossLanguageDefinitionId": "Payload.ContentNegotiation.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Payload.ContentNegotiation",
"apiVersions": [],
@@ -543,6 +544,7 @@
"crossLanguageDefinitionId": "Payload.ContentNegotiation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody",
"apiVersions": [],
@@ -773,6 +775,7 @@
"crossLanguageDefinitionId": "Payload.ContentNegotiation.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json
index 47d995903c99..1a3db1c77989 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/tspCodeModel.json
@@ -1104,6 +1104,7 @@
"crossLanguageDefinitionId": "Payload.JsonMergePatch.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json
index 52dcc1c487ed..a6649bc7906d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/tspCodeModel.json
@@ -173,6 +173,7 @@
"crossLanguageDefinitionId": "Payload.MediaType.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Payload.MediaType",
"apiVersions": [],
@@ -642,6 +643,7 @@
"crossLanguageDefinitionId": "Payload.MediaType.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.MediaType.StringBody",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json
index 1f01dbada0ac..4d855075c339 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/tspCodeModel.json
@@ -1764,6 +1764,7 @@
"crossLanguageDefinitionId": "Payload.MultiPart.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart",
"apiVersions": [],
@@ -2598,6 +2599,7 @@
"crossLanguageDefinitionId": "Payload.MultiPart.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FormData",
"apiVersions": [],
@@ -2757,6 +2759,7 @@
"crossLanguageDefinitionId": "Payload.MultiPart.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts",
"apiVersions": [],
@@ -3142,6 +3145,7 @@
"crossLanguageDefinitionId": "Payload.MultiPart.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType",
"apiVersions": [],
@@ -3301,6 +3305,7 @@
"crossLanguageDefinitionId": "Payload.MultiPart.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json
index 07a053df2fc4..5376c304edb3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/pageable/tspCodeModel.json
@@ -1009,6 +1009,7 @@
"crossLanguageDefinitionId": "Payload.Pageable.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Payload.Pageable",
"apiVersions": [],
@@ -1343,6 +1344,7 @@
"crossLanguageDefinitionId": "Payload.Pageable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination",
"apiVersions": [],
@@ -2751,6 +2753,7 @@
"crossLanguageDefinitionId": "Payload.Pageable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.Pageable.ServerDrivenPagination.ContinuationToken",
"apiVersions": [],
@@ -3020,6 +3023,7 @@
"crossLanguageDefinitionId": "Payload.Pageable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Payload.Pageable.PageSize",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json
index 52942145cee3..7cda299454dd 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v1/tspCodeModel.json
@@ -340,6 +340,7 @@
"crossLanguageDefinitionId": "Resiliency.ServiceDriven.apiVersion"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Resiliency.ServiceDriven",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json
index f698fbf5ce7c..cb0150079cb5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/resiliency/srv-driven/v2/tspCodeModel.json
@@ -530,6 +530,7 @@
"crossLanguageDefinitionId": "Resiliency.ServiceDriven.apiVersion"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Resiliency.ServiceDriven",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json
index 789c55f1de28..e02d5ee29662 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/tspCodeModel.json
@@ -82,6 +82,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Routes",
"apiVersions": [],
@@ -374,6 +375,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters",
"apiVersions": [],
@@ -586,6 +588,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.ReservedExpansion",
"apiVersions": [],
@@ -631,6 +634,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion",
"apiVersions": [],
@@ -937,6 +941,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Standard",
"apiVersions": [],
@@ -1216,6 +1221,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.SimpleExpansion.Explode",
"apiVersions": [],
@@ -1263,6 +1269,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion",
"apiVersions": [],
@@ -1542,6 +1549,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Standard",
"apiVersions": [],
@@ -1821,6 +1829,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.PathExpansion.Explode",
"apiVersions": [],
@@ -1868,6 +1877,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion",
"apiVersions": [],
@@ -2147,6 +2157,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Standard",
"apiVersions": [],
@@ -2426,6 +2437,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.LabelExpansion.Explode",
"apiVersions": [],
@@ -2473,6 +2485,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion",
"apiVersions": [],
@@ -2752,6 +2765,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Standard",
"apiVersions": [],
@@ -3031,6 +3045,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.PathParameters.MatrixExpansion.Explode",
"apiVersions": [],
@@ -3321,6 +3336,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.QueryParameters",
"apiVersions": [],
@@ -3366,6 +3382,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion",
"apiVersions": [],
@@ -3636,6 +3653,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Standard",
"apiVersions": [],
@@ -3906,6 +3924,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.QueryParameters.QueryExpansion.Explode",
"apiVersions": [],
@@ -3953,6 +3972,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation",
"apiVersions": [],
@@ -4223,6 +4243,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Standard",
"apiVersions": [],
@@ -4493,6 +4514,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.QueryParameters.QueryContinuation.Explode",
"apiVersions": [],
@@ -4580,6 +4602,7 @@
"crossLanguageDefinitionId": "Routes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Routes.InInterface",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json
index 1cab3e1f27d1..5039dfa7ac2a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/tspCodeModel.json
@@ -115,6 +115,7 @@
"crossLanguageDefinitionId": "Serialization.EncodedName.Json.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Serialization.EncodedName.Json",
"apiVersions": [],
@@ -353,6 +354,7 @@
"crossLanguageDefinitionId": "Serialization.EncodedName.Json.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json
index fad7a89d5542..4997ff6ac689 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/tspCodeModel.json
@@ -73,6 +73,7 @@
"crossLanguageDefinitionId": "Server.Endpoint.NotDefined.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Server.Endpoint.NotDefined",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json
index 7876207da069..2af4d7eefa87 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/multiple/tspCodeModel.json
@@ -224,6 +224,7 @@
"crossLanguageDefinitionId": "Server.Path.Multiple.apiVersion"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Server.Path.Multiple",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json
index 3b9ad21e6f3f..edb753e6884d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/tspCodeModel.json
@@ -73,6 +73,7 @@
"crossLanguageDefinitionId": "Server.Path.Single.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Server.Path.Single",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json
index 2b4c537e57e6..e789fd548751 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/tspCodeModel.json
@@ -236,6 +236,7 @@
"crossLanguageDefinitionId": "Server.Versions.NotVersioned.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Server.Versions.NotVersioned",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json
index 4960f6fcbf6a..3c0577ba1257 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/versioned/tspCodeModel.json
@@ -340,8 +340,39 @@
"skipUrlEncoding": false,
"readOnly": false,
"crossLanguageDefinitionId": "Server.Versions.Versioned.endpoint"
+ },
+ {
+ "$id": "25",
+ "kind": "method",
+ "name": "apiVersion",
+ "serializedName": "apiVersion",
+ "type": {
+ "$id": "26",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "",
+ "isApiVersion": true,
+ "defaultValue": {
+ "type": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "optional": false,
+ "scope": "Method",
+ "crossLanguageDefinitionId": "Server.Versions.Versioned.withQueryApiVersion.apiVersion",
+ "readOnly": false,
+ "access": "public",
+ "decorators": []
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Server.Versions.Versioned",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json
index 6593686df2f1..e88aeadaed23 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/tspCodeModel.json
@@ -413,6 +413,7 @@
"crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "SpecialHeaders.ConditionalRequest",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json
index 954229eb48ba..63467af47115 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/tspCodeModel.json
@@ -240,6 +240,7 @@
"crossLanguageDefinitionId": "SpecialHeaders.Repeatability.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "SpecialHeaders.Repeatability",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/SpecialWordsContext.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/SpecialWordsContext.cs
index a8f47c512129..1e32eda50812 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/SpecialWordsContext.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/Generated/Models/SpecialWordsContext.cs
@@ -11,6 +11,7 @@
namespace SpecialWords
{
+ [ModelReaderWriterBuildable(typeof(SameAsModel))]
[ModelReaderWriterBuildable(typeof(And))]
[ModelReaderWriterBuildable(typeof(As))]
[ModelReaderWriterBuildable(typeof(Assert))]
@@ -40,7 +41,6 @@ namespace SpecialWords
[ModelReaderWriterBuildable(typeof(Pass))]
[ModelReaderWriterBuildable(typeof(Raise))]
[ModelReaderWriterBuildable(typeof(Return))]
- [ModelReaderWriterBuildable(typeof(SameAsModel))]
[ModelReaderWriterBuildable(typeof(Try))]
[ModelReaderWriterBuildable(typeof(While))]
[ModelReaderWriterBuildable(typeof(With))]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json
index c60ea13da691..3e16e55a89e1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/tspCodeModel.json
@@ -1814,6 +1814,7 @@
"crossLanguageDefinitionId": "SpecialWords.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords",
"apiVersions": [],
@@ -5587,6 +5588,7 @@
"crossLanguageDefinitionId": "SpecialWords.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models",
"apiVersions": [],
@@ -5747,6 +5749,7 @@
"crossLanguageDefinitionId": "SpecialWords.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.ModelProperties",
"apiVersions": [],
@@ -7015,6 +7018,7 @@
"crossLanguageDefinitionId": "SpecialWords.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Operations",
"apiVersions": [],
@@ -9782,6 +9786,7 @@
"crossLanguageDefinitionId": "SpecialWords.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Parameters",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json
index cb1b1320c0f1..23f0cec21ee5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/tspCodeModel.json
@@ -560,6 +560,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array",
"apiVersions": [],
@@ -810,6 +811,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.Int32Value",
"apiVersions": [],
@@ -1063,6 +1065,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.Int64Value",
"apiVersions": [],
@@ -1316,6 +1319,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.BooleanValue",
"apiVersions": [],
@@ -1569,6 +1573,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.StringValue",
"apiVersions": [],
@@ -1822,6 +1827,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.Float32Value",
"apiVersions": [],
@@ -2083,6 +2089,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.DatetimeValue",
"apiVersions": [],
@@ -2344,6 +2351,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.DurationValue",
"apiVersions": [],
@@ -2597,6 +2605,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.UnknownValue",
"apiVersions": [],
@@ -2839,6 +2848,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.ModelValue",
"apiVersions": [],
@@ -3097,6 +3107,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.NullableFloatValue",
"apiVersions": [],
@@ -3355,6 +3366,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.NullableInt32Value",
"apiVersions": [],
@@ -3613,6 +3625,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.NullableBooleanValue",
"apiVersions": [],
@@ -3871,6 +3884,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.NullableStringValue",
"apiVersions": [],
@@ -4125,6 +4139,7 @@
"crossLanguageDefinitionId": "Type.Array.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.NullableModelValue",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json
index 9b116d7fa28d..d94f8b4738ed 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/tspCodeModel.json
@@ -469,6 +469,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary",
"apiVersions": [],
@@ -724,6 +725,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.Int32Value",
"apiVersions": [],
@@ -982,6 +984,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.Int64Value",
"apiVersions": [],
@@ -1240,6 +1243,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.BooleanValue",
"apiVersions": [],
@@ -1498,6 +1502,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.StringValue",
"apiVersions": [],
@@ -1756,6 +1761,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.Float32Value",
"apiVersions": [],
@@ -2022,6 +2028,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue",
"apiVersions": [],
@@ -2288,6 +2295,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.DurationValue",
"apiVersions": [],
@@ -2546,6 +2554,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.UnknownValue",
"apiVersions": [],
@@ -2788,6 +2797,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.ModelValue",
"apiVersions": [],
@@ -3030,6 +3040,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue",
"apiVersions": [],
@@ -3293,6 +3304,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json
index f89c00fd757c..f44587034846 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/tspCodeModel.json
@@ -292,6 +292,7 @@
"crossLanguageDefinitionId": "Type.Enum.Extensible.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Enum.Extensible",
"apiVersions": [],
@@ -737,6 +738,7 @@
"crossLanguageDefinitionId": "Type.Enum.Extensible.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Enum.Extensible.String",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json
index 02de6dd19c49..96a9ad91c4d7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/tspCodeModel.json
@@ -260,6 +260,7 @@
"crossLanguageDefinitionId": "Type.Enum.Fixed.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Enum.Fixed",
"apiVersions": [],
@@ -625,6 +626,7 @@
"crossLanguageDefinitionId": "Type.Enum.Fixed.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Enum.Fixed.String",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json
index a95532446891..005de7878b65 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/tspCodeModel.json
@@ -495,6 +495,7 @@
"crossLanguageDefinitionId": "Type.Model.Empty.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Empty",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json
index 8f8c8b2115db..44274175219c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/tspCodeModel.json
@@ -1294,6 +1294,7 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json
index 4069c1da2fff..d4d18fcfe643 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/tspCodeModel.json
@@ -1101,6 +1101,7 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json
index bb09676fe332..0c111b63ec2f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/tspCodeModel.json
@@ -579,6 +579,7 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json
index 306cfa9ab538..28862ccf6626 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/tspCodeModel.json
@@ -354,6 +354,7 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json
index 30af92137fc9..f60046c387f1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/tspCodeModel.json
@@ -1292,6 +1292,7 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json
index 6124f8d543f6..af361f5ce123 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/tspCodeModel.json
@@ -573,6 +573,7 @@
"crossLanguageDefinitionId": "Type.Model.Usage.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Usage",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json
index 667579b41a40..a9b93b399134 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/tspCodeModel.json
@@ -1343,6 +1343,7 @@
"crossLanguageDefinitionId": "Type.Model.Visibility.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Visibility",
"apiVersions": []
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json
index 5876f35c586a..866ce2b172b5 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/tspCodeModel.json
@@ -3030,6 +3030,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties",
"apiVersions": [],
@@ -3274,6 +3275,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown",
"apiVersions": [],
@@ -3521,6 +3523,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived",
"apiVersions": [],
@@ -3768,6 +3771,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated",
"apiVersions": [],
@@ -4015,6 +4019,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown",
"apiVersions": [],
@@ -4262,6 +4267,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived",
"apiVersions": [],
@@ -4509,6 +4515,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated",
"apiVersions": [],
@@ -4756,6 +4763,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString",
"apiVersions": [],
@@ -5003,6 +5011,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString",
"apiVersions": [],
@@ -5250,6 +5259,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString",
"apiVersions": [],
@@ -5497,6 +5507,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat",
"apiVersions": [],
@@ -5744,6 +5755,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat",
"apiVersions": [],
@@ -5991,6 +6003,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat",
"apiVersions": [],
@@ -6238,6 +6251,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel",
"apiVersions": [],
@@ -6485,6 +6499,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel",
"apiVersions": [],
@@ -6732,6 +6747,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel",
"apiVersions": [],
@@ -6979,6 +6995,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray",
"apiVersions": [],
@@ -7226,6 +7243,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray",
"apiVersions": [],
@@ -7473,6 +7491,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray",
"apiVersions": [],
@@ -7720,6 +7739,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString",
"apiVersions": [],
@@ -7967,6 +7987,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat",
"apiVersions": [],
@@ -8214,6 +8235,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel",
"apiVersions": [],
@@ -8461,6 +8483,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray",
"apiVersions": [],
@@ -8708,6 +8731,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString",
"apiVersions": [],
@@ -8955,6 +8979,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat",
"apiVersions": [],
@@ -9202,6 +9227,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel",
"apiVersions": [],
@@ -9449,6 +9475,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray",
"apiVersions": [],
@@ -9696,6 +9723,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread",
"apiVersions": [],
@@ -9943,6 +9971,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion",
"apiVersions": [],
@@ -10190,6 +10219,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion",
"apiVersions": [],
@@ -10437,6 +10467,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2",
"apiVersions": [],
@@ -10684,6 +10715,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json
index cdece5aba397..6d96eb20f6ab 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/tspCodeModel.json
@@ -1274,6 +1274,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable",
"apiVersions": [],
@@ -1715,6 +1716,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.String",
"apiVersions": [],
@@ -2159,6 +2161,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.Bytes",
"apiVersions": [],
@@ -2603,6 +2606,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.Datetime",
"apiVersions": [],
@@ -3047,6 +3051,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.Duration",
"apiVersions": [],
@@ -3491,6 +3496,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte",
"apiVersions": [],
@@ -3935,6 +3941,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel",
"apiVersions": [],
@@ -4379,6 +4386,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json
index c2d82cde8a26..3d2bccff4c5a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/tspCodeModel.json
@@ -1973,6 +1973,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional",
"apiVersions": [],
@@ -2414,6 +2415,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.String",
"apiVersions": [],
@@ -2858,6 +2860,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.Bytes",
"apiVersions": [],
@@ -3302,6 +3305,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.Datetime",
"apiVersions": [],
@@ -3746,6 +3750,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.Duration",
"apiVersions": [],
@@ -4190,6 +4195,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.PlainDate",
"apiVersions": [],
@@ -4634,6 +4640,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.PlainTime",
"apiVersions": [],
@@ -5078,6 +5085,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte",
"apiVersions": [],
@@ -5522,6 +5530,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel",
"apiVersions": [],
@@ -5966,6 +5975,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral",
"apiVersions": [],
@@ -6410,6 +6420,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral",
"apiVersions": [],
@@ -6854,6 +6865,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral",
"apiVersions": [],
@@ -7298,6 +7310,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral",
"apiVersions": [],
@@ -7742,6 +7755,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral",
"apiVersions": [],
@@ -8186,6 +8200,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral",
"apiVersions": [],
@@ -8630,6 +8645,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral",
"apiVersions": [],
@@ -9075,6 +9091,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json
index bf01debc68ad..4c6caf13ae77 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/tspCodeModel.json
@@ -2469,6 +2469,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes",
"apiVersions": [],
@@ -2713,6 +2714,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean",
"apiVersions": [],
@@ -2960,6 +2962,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.String",
"apiVersions": [],
@@ -3207,6 +3210,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes",
"apiVersions": [],
@@ -3454,6 +3458,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Int",
"apiVersions": [],
@@ -3701,6 +3706,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Float",
"apiVersions": [],
@@ -3948,6 +3954,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal",
"apiVersions": [],
@@ -4195,6 +4202,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128",
"apiVersions": [],
@@ -4442,6 +4450,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime",
"apiVersions": [],
@@ -4689,6 +4698,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration",
"apiVersions": [],
@@ -4936,6 +4946,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum",
"apiVersions": [],
@@ -5183,6 +5194,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum",
"apiVersions": [],
@@ -5430,6 +5442,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Model",
"apiVersions": [],
@@ -5677,6 +5690,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString",
"apiVersions": [],
@@ -5924,6 +5938,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt",
"apiVersions": [],
@@ -6171,6 +6186,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel",
"apiVersions": [],
@@ -6418,6 +6434,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString",
"apiVersions": [],
@@ -6665,6 +6682,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Never",
"apiVersions": [],
@@ -6912,6 +6930,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString",
"apiVersions": [],
@@ -7159,6 +7178,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt",
"apiVersions": [],
@@ -7406,6 +7426,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict",
"apiVersions": [],
@@ -7653,6 +7674,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray",
"apiVersions": [],
@@ -7900,6 +7922,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral",
"apiVersions": [],
@@ -8147,6 +8170,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral",
"apiVersions": [],
@@ -8394,6 +8418,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral",
"apiVersions": [],
@@ -8641,6 +8666,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral",
"apiVersions": [],
@@ -8888,6 +8914,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral",
"apiVersions": [],
@@ -9135,6 +9162,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral",
"apiVersions": [],
@@ -9382,6 +9410,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral",
"apiVersions": [],
@@ -9629,6 +9658,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json
index d9ba7ad082ec..586c3e113898 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/tspCodeModel.json
@@ -444,6 +444,7 @@
"crossLanguageDefinitionId": "Type.Scalar.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Scalar",
"apiVersions": [],
@@ -706,6 +707,7 @@
"crossLanguageDefinitionId": "Type.Scalar.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Scalar.String",
"apiVersions": [],
@@ -971,6 +973,7 @@
"crossLanguageDefinitionId": "Type.Scalar.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Scalar.Boolean",
"apiVersions": [],
@@ -1236,6 +1239,7 @@
"crossLanguageDefinitionId": "Type.Scalar.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Scalar.Unknown",
"apiVersions": [],
@@ -1576,6 +1580,7 @@
"crossLanguageDefinitionId": "Type.Scalar.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Scalar.DecimalType",
"apiVersions": [],
@@ -1916,6 +1921,7 @@
"crossLanguageDefinitionId": "Type.Scalar.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Scalar.Decimal128Type",
"apiVersions": [],
@@ -2175,6 +2181,7 @@
"crossLanguageDefinitionId": "Type.Scalar.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Scalar.DecimalVerify",
"apiVersions": [],
@@ -2391,6 +2398,7 @@
"crossLanguageDefinitionId": "Type.Scalar.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/discriminated/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/discriminated/tspCodeModel.json
index 66a3186874da..dc3a415ed33e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/discriminated/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/discriminated/tspCodeModel.json
@@ -360,6 +360,7 @@
"crossLanguageDefinitionId": "Type.Union.Discriminated.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Discriminated",
"apiVersions": [],
@@ -402,6 +403,7 @@
"crossLanguageDefinitionId": "Type.Union.Discriminated.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope",
"apiVersions": [],
@@ -447,6 +449,7 @@
"crossLanguageDefinitionId": "Type.Union.Discriminated.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object",
"apiVersions": [],
@@ -784,6 +787,7 @@
"crossLanguageDefinitionId": "Type.Union.Discriminated.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.Default",
"apiVersions": [],
@@ -1121,6 +1125,7 @@
"crossLanguageDefinitionId": "Type.Union.Discriminated.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Discriminated.Envelope.Object.CustomProperties",
"apiVersions": [],
@@ -1170,6 +1175,7 @@
"crossLanguageDefinitionId": "Type.Union.Discriminated.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope",
"apiVersions": [],
@@ -1507,6 +1513,7 @@
"crossLanguageDefinitionId": "Type.Union.Discriminated.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.Default",
"apiVersions": [],
@@ -1844,6 +1851,7 @@
"crossLanguageDefinitionId": "Type.Union.Discriminated.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Discriminated.NoEnvelope.CustomDiscriminator",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json
index 6eaa7269637f..9cd07042032c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/tspCodeModel.json
@@ -1982,6 +1982,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union",
"apiVersions": [],
@@ -2221,6 +2222,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringsOnly",
"apiVersions": [],
@@ -2463,6 +2465,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringExtensible",
"apiVersions": [],
@@ -2705,6 +2708,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed",
"apiVersions": [],
@@ -2947,6 +2951,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.IntsOnly",
"apiVersions": [],
@@ -3189,6 +3194,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.FloatsOnly",
"apiVersions": [],
@@ -3431,6 +3437,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.ModelsOnly",
"apiVersions": [],
@@ -3673,6 +3680,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.EnumsOnly",
"apiVersions": [],
@@ -3915,6 +3923,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringAndArray",
"apiVersions": [],
@@ -4157,6 +4166,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedLiterals",
"apiVersions": [],
@@ -4399,6 +4409,7 @@
"crossLanguageDefinitionId": "Type.Union.endpoint"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedTypes",
"apiVersions": [],
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json
index dbc8ef9192f2..9eedb2d2d229 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v1/tspCodeModel.json
@@ -383,6 +383,7 @@
"crossLanguageDefinitionId": "Versioning.Added.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.Added",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json
index 0dbfd641b731..9e34ecf163db 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/added/v2/tspCodeModel.json
@@ -854,6 +854,7 @@
"crossLanguageDefinitionId": "Versioning.Added.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.Added",
"apiVersions": [
@@ -1076,6 +1077,7 @@
"crossLanguageDefinitionId": "Versioning.Added.version"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.Added.InterfaceV2",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json
index 157aed506ac2..7ac3dee87ecd 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v1/tspCodeModel.json
@@ -395,6 +395,7 @@
"crossLanguageDefinitionId": "Versioning.MadeOptional.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.MadeOptional",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json
index 76c8eca28b30..ec32083ed9d3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/madeOptional/v2/tspCodeModel.json
@@ -411,6 +411,7 @@
"crossLanguageDefinitionId": "Versioning.MadeOptional.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.MadeOptional",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json
index d09ee945293b..d962c933a0b2 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v1/tspCodeModel.json
@@ -1167,6 +1167,7 @@
"crossLanguageDefinitionId": "Versioning.Removed.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.Removed",
"apiVersions": [
@@ -1389,6 +1390,7 @@
"crossLanguageDefinitionId": "Versioning.Removed.version"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json
index 0a23449714b4..11dd0f6f6878 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2/tspCodeModel.json
@@ -753,6 +753,7 @@
"crossLanguageDefinitionId": "Versioning.Removed.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.Removed",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json
index 572967692eb0..b0728545eb0e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/removed/v2Preview/tspCodeModel.json
@@ -1118,6 +1118,7 @@
"crossLanguageDefinitionId": "Versioning.Removed.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.Removed",
"apiVersions": [
@@ -1342,6 +1343,7 @@
"crossLanguageDefinitionId": "Versioning.Removed.version"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.Removed.InterfaceV1",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json
index ac931e4c074f..35d96b47bcae 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v1/tspCodeModel.json
@@ -504,6 +504,7 @@
"crossLanguageDefinitionId": "Versioning.RenamedFrom.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.RenamedFrom",
"apiVersions": [
@@ -725,6 +726,7 @@
"crossLanguageDefinitionId": "Versioning.RenamedFrom.version"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.RenamedFrom.OldInterface",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json
index 985465c61845..3b79da29a3b0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/renamedFrom/v2/tspCodeModel.json
@@ -520,6 +520,7 @@
"crossLanguageDefinitionId": "Versioning.RenamedFrom.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.RenamedFrom",
"apiVersions": [
@@ -743,6 +744,7 @@
"crossLanguageDefinitionId": "Versioning.RenamedFrom.version"
}
],
+ "initializedBy": 0,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.RenamedFrom.NewInterface",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json
index 3003bbae3cf8..0a43cc2d0acf 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v1/tspCodeModel.json
@@ -342,6 +342,7 @@
"crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json
index 579664286168..4ac2b2076d5f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/returnTypeChangedFrom/v2/tspCodeModel.json
@@ -358,6 +358,7 @@
"crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.ReturnTypeChangedFrom",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json
index 4f86b9e86ee5..d36f274f272d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v1/tspCodeModel.json
@@ -395,6 +395,7 @@
"crossLanguageDefinitionId": "Versioning.TypeChangedFrom.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.TypeChangedFrom",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json
index 7383d160fccd..93566622684a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/versioning/typeChangedFrom/v2/tspCodeModel.json
@@ -411,6 +411,7 @@
"crossLanguageDefinitionId": "Versioning.TypeChangedFrom.version"
}
],
+ "initializedBy": 1,
"decorators": [],
"crossLanguageDefinitionId": "Versioning.TypeChangedFrom",
"apiVersions": [
diff --git a/eng/packages/http-client-csharp/package-lock.json b/eng/packages/http-client-csharp/package-lock.json
index 85ce2e52c776..df1d444075f8 100644
--- a/eng/packages/http-client-csharp/package-lock.json
+++ b/eng/packages/http-client-csharp/package-lock.json
@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
- "@typespec/http-client-csharp": "1.0.0-alpha.20251029.3"
+ "@typespec/http-client-csharp": "1.0.0-alpha.20251103.8"
},
"devDependencies": {
"@azure-tools/azure-http-specs": "0.1.0-alpha.30",
@@ -2791,9 +2791,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20251029.3",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251029.3.tgz",
- "integrity": "sha512-MfbuD67sfkPf14vtulmtn57z3tmKRnSXeBYEV7lbs+AFkGHggBOuV1wloFdwqPSYudZVjIJk/flkNiXbZXKrVA==",
+ "version": "1.0.0-alpha.20251103.8",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20251103.8.tgz",
+ "integrity": "sha512-axVV4R4LSIRHl8Cczg93XQDmHEzTAlgWk/X40B9oNIT8TfHqDa1qIeyGG5OPcAh0sbrtOc5VNqb1LPmKQn765Q==",
"license": "MIT",
"peerDependencies": {
"@azure-tools/typespec-client-generator-core": ">=0.61.0 < 0.62.0 || ~0.62.0-0",
@@ -9141,4 +9141,4 @@
}
}
}
-}
+}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp/package.json b/eng/packages/http-client-csharp/package.json
index 7b3cf2a72b52..9811ac4f7b9e 100644
--- a/eng/packages/http-client-csharp/package.json
+++ b/eng/packages/http-client-csharp/package.json
@@ -38,7 +38,7 @@
"dist/generator/**"
],
"dependencies": {
- "@typespec/http-client-csharp": "1.0.0-alpha.20251029.3"
+ "@typespec/http-client-csharp": "1.0.0-alpha.20251103.8"
},
"devDependencies": {
"@azure-tools/azure-http-specs": "0.1.0-alpha.30",
diff --git a/eng/packages/plugins/client/Client.Plugin/ci.yml b/eng/packages/plugins/client/Client.Plugin/ci.yml
index 8485fa4ad1ae..e26f690583a3 100644
--- a/eng/packages/plugins/client/Client.Plugin/ci.yml
+++ b/eng/packages/plugins/client/Client.Plugin/ci.yml
@@ -5,6 +5,7 @@ trigger:
paths:
include:
- eng/packages/plugins/client/Client.Plugin
+ - eng/packages/http-client-csharp
pr:
branches:
include:
@@ -15,6 +16,7 @@ pr:
paths:
include:
- eng/packages/plugins/client/Client.Plugin
+ - eng/packages/http-client-csharp
variables:
- template: /eng/pipelines/templates/variables/image.yml
diff --git a/eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj b/eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj
index 3076ce2177e7..167e972f5755 100644
--- a/eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj
+++ b/eng/packages/plugins/client/Client.Plugin/src/Client.Plugin.csproj
@@ -14,15 +14,15 @@
- $(MSBuildThisFileDirectory)..\..\..\..\http-client-csharp\generator\Azure.Generator\src\Visitors
+ $(MSBuildThisFileDirectory)..\..\..\..\http-client-csharp\generator\Azure.Generator\src\
-
-
-
-
-
+
+
+
+
+
diff --git a/eng/packages/plugins/client/Client.Plugin/src/ClientPlugin.cs b/eng/packages/plugins/client/Client.Plugin/src/ClientPlugin.cs
index e234953472b8..f0b29c56205d 100644
--- a/eng/packages/plugins/client/Client.Plugin/src/ClientPlugin.cs
+++ b/eng/packages/plugins/client/Client.Plugin/src/ClientPlugin.cs
@@ -19,7 +19,7 @@ public override void Apply(CodeModelGenerator generator)
// Rest of the visitors can be added in any order.
generator.AddVisitor(new NamespaceVisitor());
- generator.AddVisitor(new SpecialHeadersVisitor());
+ generator.AddVisitor(new SpecialHeadersVisitor(includeXmsClientRequestIdInRequest: true));
}
}
}
diff --git a/eng/service.proj b/eng/service.proj
index 801e50b1191b..9bb44b519c2d 100644
--- a/eng/service.proj
+++ b/eng/service.proj
@@ -107,7 +107,11 @@
SkipNonexistentTargets="true" />
-
+
+
+
+
+
-
+
-
+
-
diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceCollection.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceCollection.cs
index 0cd2f43c1f2a..9f94c80f51e3 100644
--- a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceCollection.cs
+++ b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceCollection.cs
@@ -64,7 +64,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Operation Id.
- /// CreateOrUpdate.
+ /// AgriService_CreateOrUpdate.
///
/// -
/// Default Api Version.
@@ -122,7 +122,7 @@ public virtual async Task> CreateOrUpda
///
/// -
/// Operation Id.
- /// CreateOrUpdate.
+ /// AgriService_CreateOrUpdate.
///
/// -
/// Default Api Version.
@@ -180,7 +180,7 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil
///
/// -
/// Operation Id.
- /// Get.
+ /// AgriService_Get.
///
/// -
/// Default Api Version.
@@ -229,7 +229,7 @@ public virtual async Task> GetAsync(string
///
/// -
/// Operation Id.
- /// Get.
+ /// AgriService_Get.
///
/// -
/// Default Api Version.
@@ -302,7 +302,7 @@ public virtual Pageable GetAll(CancellationToken can
///
/// -
/// Operation Id.
- /// Get.
+ /// AgriService_Get.
///
/// -
/// Default Api Version.
@@ -359,7 +359,7 @@ public virtual async Task> ExistsAsync(string agriServiceResource
///
/// -
/// Operation Id.
- /// Get.
+ /// AgriService_Get.
///
/// -
/// Default Api Version.
@@ -416,7 +416,7 @@ public virtual Response Exists(string agriServiceResourceName, Cancellatio
///
/// -
/// Operation Id.
- /// Get.
+ /// AgriService_Get.
///
/// -
/// Default Api Version.
@@ -477,7 +477,7 @@ public virtual async Task> GetIfExi
///
/// -
/// Operation Id.
- /// Get.
+ /// AgriService_Get.
///
/// -
/// Default Api Version.
diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceResource.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceResource.cs
index e2c4f2ae4404..2d7df71bd1b5 100644
--- a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceResource.cs
+++ b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceResource.cs
@@ -102,7 +102,7 @@ internal static void ValidateResourceId(ResourceIdentifier id)
///
/// -
/// Operation Id.
- /// Get.
+ /// AgriService_Get.
///
/// -
/// Default Api Version.
@@ -150,7 +150,7 @@ public virtual async Task> GetAsync(Cancell
///
/// -
/// Operation Id.
- /// Get.
+ /// AgriService_Get.
///
/// -
/// Default Api Version.
@@ -189,7 +189,27 @@ public virtual Response Get(CancellationToken cancel
}
}
- /// Update a AgriServiceResource.
+ ///
+ /// Update a AgriServiceResource
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// AgriService_Update.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-06-01-preview.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
/// The resource properties to be updated.
/// The cancellation token to use.
@@ -228,7 +248,27 @@ public virtual async Task> UpdateAsync(
}
}
- /// Update a AgriServiceResource.
+ ///
+ /// Update a AgriServiceResource
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// AgriService_Update.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-06-01-preview.
+ ///
+ /// -
+ /// Resource.
+ /// .
+ ///
+ ///
+ ///
/// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples.
/// The resource properties to be updated.
/// The cancellation token to use.
@@ -276,7 +316,7 @@ public virtual ArmOperation Update(WaitUntil waitUnt
///
/// -
/// Operation Id.
- /// Delete.
+ /// AgriService_Delete.
///
/// -
/// Default Api Version.
@@ -325,7 +365,7 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell
///
/// -
/// Operation Id.
- /// Delete.
+ /// AgriService_Delete.
///
/// -
/// Default Api Version.
@@ -374,7 +414,7 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel
///
/// -
/// Operation Id.
- /// GetAvailableSolutions.
+ /// AgriService_ListAvailableSolutions.
///
/// -
/// Default Api Version.
@@ -422,7 +462,7 @@ public virtual async Task> GetAvailabl
///
/// -
/// Operation Id.
- /// GetAvailableSolutions.
+ /// AgriService_ListAvailableSolutions.
///
/// -
/// Default Api Version.
diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/ArmAgriculturePlatformModelFactory.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/ArmAgriculturePlatformModelFactory.cs
index 66b9c44f9811..0fe06797fb34 100644
--- a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/ArmAgriculturePlatformModelFactory.cs
+++ b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/ArmAgriculturePlatformModelFactory.cs
@@ -8,6 +8,7 @@
using System;
using System.Collections.Generic;
using System.Linq;
+using Azure;
using Azure.Core;
using Azure.ResourceManager.AgriculturePlatform;
using Azure.ResourceManager.Models;
diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Extensions/MockableAgriculturePlatformResourceGroupResource.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Extensions/MockableAgriculturePlatformResourceGroupResource.cs
index c2d4bcd454ab..b740d8929961 100644
--- a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Extensions/MockableAgriculturePlatformResourceGroupResource.cs
+++ b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Extensions/MockableAgriculturePlatformResourceGroupResource.cs
@@ -38,7 +38,23 @@ public virtual AgricultureServiceCollection GetAgricultureServices()
return GetCachedClient(client => new AgricultureServiceCollection(client, Id));
}
- /// Get a AgriServiceResource.
+ ///
+ /// Get a AgriServiceResource
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// AgriService_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-06-01-preview.
+ ///
+ ///
+ ///
/// The name of the AgriService resource.
/// The cancellation token to use.
/// is null.
@@ -51,7 +67,23 @@ public virtual async Task> GetAgricultureSe
return await GetAgricultureServices().GetAsync(agriServiceResourceName, cancellationToken).ConfigureAwait(false);
}
- /// Get a AgriServiceResource.
+ ///
+ /// Get a AgriServiceResource
+ ///
+ /// -
+ /// Request Path.
+ /// /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AgriculturePlatform/agriServices/{agriServiceResourceName}.
+ ///
+ /// -
+ /// Operation Id.
+ /// AgriService_Get.
+ ///
+ /// -
+ /// Default Api Version.
+ /// 2024-06-01-preview.
+ ///
+ ///
+ ///
/// The name of the AgriService resource.
/// The cancellation token to use.
/// is null.
diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Models/AgricultureServicePatch.Serialization.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Models/AgricultureServicePatch.Serialization.cs
index 976fc3af0692..6f958fb7dad7 100644
--- a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Models/AgricultureServicePatch.Serialization.cs
+++ b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Models/AgricultureServicePatch.Serialization.cs
@@ -213,15 +213,15 @@ protected virtual AgricultureServicePatch PersistableModelCreateCore(BinaryData
/// The client options for reading and writing models.
string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
- /// The to serialize into .
- internal static RequestContent ToRequestContent(AgricultureServicePatch patch)
+ /// The to serialize into .
+ internal static RequestContent ToRequestContent(AgricultureServicePatch agricultureServicePatch)
{
- if (patch == null)
+ if (agricultureServicePatch == null)
{
return null;
}
Utf8JsonRequestContent content = new Utf8JsonRequestContent();
- content.JsonWriter.WriteObjectValue(patch, ModelSerializationExtensions.WireOptions);
+ content.JsonWriter.WriteObjectValue(agricultureServicePatch, ModelSerializationExtensions.WireOptions);
return content;
}
}
diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Models/AzureResourceManagerAgriculturePlatformContext.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Models/AzureResourceManagerAgriculturePlatformContext.cs
index eb06bdacbc5c..d1cade57a2c0 100644
--- a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Models/AzureResourceManagerAgriculturePlatformContext.cs
+++ b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/Models/AzureResourceManagerAgriculturePlatformContext.cs
@@ -6,6 +6,7 @@
#nullable disable
using System.ClientModel.Primitives;
+using Azure;
using Azure.ResourceManager.AgriculturePlatform.Models;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
@@ -33,6 +34,7 @@ namespace Azure.ResourceManager.AgriculturePlatform
[ModelReaderWriterBuildable(typeof(ManagedOnBehalfOfConfiguration))]
[ModelReaderWriterBuildable(typeof(ManagedServiceIdentity))]
[ModelReaderWriterBuildable(typeof(MarketPlaceOfferDetails))]
+ [ModelReaderWriterBuildable(typeof(ResponseError))]
[ModelReaderWriterBuildable(typeof(SubResource))]
[ModelReaderWriterBuildable(typeof(SystemData))]
[ModelReaderWriterBuildable(typeof(UserAssignedIdentity))]
diff --git a/sdk/ai/Azure.AI.Agents/api/Azure.AI.Agents.net8.0.cs b/sdk/ai/Azure.AI.Agents/api/Azure.AI.Agents.net8.0.cs
index a4ddc15334ed..38167ba641ae 100644
--- a/sdk/ai/Azure.AI.Agents/api/Azure.AI.Agents.net8.0.cs
+++ b/sdk/ai/Azure.AI.Agents/api/Azure.AI.Agents.net8.0.cs
@@ -533,7 +533,7 @@ public abstract partial class AgentTool : System.ClientModel.Primitives.IJsonMod
{
internal AgentTool() { }
public static OpenAI.Responses.ResponseTool CreateA2ATool(System.Uri baseUrl, string agentCardPath = null) { throw null; }
- public static Azure.AI.Agents.AzureAISearchAgentTool CreateAzureAISearchTool() { throw null; }
+ public static Azure.AI.Agents.AzureAISearchAgentTool CreateAzureAISearchTool(Azure.AI.Agents.AzureAISearchToolOptions options = null) { throw null; }
public static Azure.AI.Agents.BingCustomSearchAgentTool CreateBingCustomSearchTool(Azure.AI.Agents.BingCustomSearchToolParameters parameters) { throw null; }
public static Azure.AI.Agents.BingGroundingAgentTool CreateBingGroundingTool(Azure.AI.Agents.BingGroundingSearchToolParameters parameters) { throw null; }
public static Azure.AI.Agents.BrowserAutomationAgentTool CreateBrowserAutomationTool(Azure.AI.Agents.BrowserAutomationToolParameters parameters) { throw null; }
@@ -645,25 +645,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
public static bool operator !=(Azure.AI.Agents.AgentWorkflowActionStatus left, Azure.AI.Agents.AgentWorkflowActionStatus right) { throw null; }
public override string ToString() { throw null; }
}
- public partial class AISearchIndexResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
- {
- public AISearchIndexResource(string projectConnectionId) { }
- public string Filter { get { throw null; } set { } }
- public string IndexAssetId { get { throw null; } set { } }
- public string IndexName { get { throw null; } set { } }
- public string ProjectConnectionId { get { throw null; } set { } }
- public Azure.AI.Agents.AzureAISearchQueryType? QueryType { get { throw null; } set { } }
- public int? TopK { get { throw null; } set { } }
- protected virtual Azure.AI.Agents.AISearchIndexResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- protected virtual Azure.AI.Agents.AISearchIndexResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- Azure.AI.Agents.AISearchIndexResource 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.Agents.AISearchIndexResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- }
public partial class ApiInnerError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
internal ApiInnerError() { }
@@ -710,10 +691,10 @@ public static partial class AzureAIAgentsModelFactory
public static Azure.AI.Agents.AgentVersion AgentVersion(System.Collections.Generic.IDictionary metadata = null, string id = null, string name = null, string version = null, string description = null, System.DateTimeOffset createdAt = default(System.DateTimeOffset), Azure.AI.Agents.AgentDefinition definition = null) { throw null; }
public static Azure.AI.Agents.AgentVersionCreationOptions AgentVersionCreationOptions(System.Collections.Generic.IDictionary metadata = null, string description = null, Azure.AI.Agents.AgentDefinition definition = null) { throw null; }
public static Azure.AI.Agents.AgentWorkflowActionResponseItem AgentWorkflowActionResponseItem(string id = null, Azure.AI.Agents.CreatedBy createdBy = null, string actionId = null, string parentActionId = null, string previousActionId = null, Azure.AI.Agents.AgentWorkflowActionStatus? status = default(Azure.AI.Agents.AgentWorkflowActionStatus?)) { throw null; }
- public static Azure.AI.Agents.AISearchIndexResource AISearchIndexResource(string projectConnectionId = null, string indexName = null, Azure.AI.Agents.AzureAISearchQueryType? queryType = default(Azure.AI.Agents.AzureAISearchQueryType?), int? topK = default(int?), string filter = null, string indexAssetId = null) { throw null; }
public static Azure.AI.Agents.ApiInnerError ApiInnerError(string code = null, Azure.AI.Agents.ApiInnerError innererror = null) { throw null; }
- public static Azure.AI.Agents.AzureAISearchAgentTool AzureAISearchAgentTool(Azure.AI.Agents.AzureAISearchToolResource azureAiSearch = null) { throw null; }
- public static Azure.AI.Agents.AzureAISearchToolResource AzureAISearchToolResource(System.Collections.Generic.IEnumerable indexes = null) { throw null; }
+ public static Azure.AI.Agents.AzureAISearchAgentTool AzureAISearchAgentTool(Azure.AI.Agents.AzureAISearchToolOptions options = null) { throw null; }
+ public static Azure.AI.Agents.AzureAISearchIndex AzureAISearchIndex(string projectConnectionId = null, string indexName = null, Azure.AI.Agents.AzureAISearchQueryType? queryType = default(Azure.AI.Agents.AzureAISearchQueryType?), int? topK = default(int?), string filter = null, string indexAssetId = null) { throw null; }
+ public static Azure.AI.Agents.AzureAISearchToolOptions AzureAISearchToolOptions(System.Collections.Generic.IEnumerable indexes = null) { throw null; }
public static Azure.AI.Agents.AzureFunctionAgentTool AzureFunctionAgentTool(Azure.AI.Agents.AzureFunctionDefinition azureFunction = null) { throw null; }
public static Azure.AI.Agents.AzureFunctionBinding AzureFunctionBinding(Azure.AI.Agents.AzureFunctionStorageQueue storageQueue = null) { throw null; }
public static Azure.AI.Agents.AzureFunctionDefinition AzureFunctionDefinition(Azure.AI.Agents.AzureFunctionDefinitionFunction function = null, Azure.AI.Agents.AzureFunctionBinding inputBinding = null, Azure.AI.Agents.AzureFunctionBinding outputBinding = null) { throw null; }
@@ -774,12 +755,13 @@ public static partial class AzureAIAgentsModelFactory
public static Azure.AI.Agents.ToolArgumentBinding ToolArgumentBinding(string toolName = null, string argumentName = null) { throw null; }
public static Azure.AI.Agents.ToolProjectConnection ToolProjectConnection(string projectConnectionId = null) { throw null; }
public static Azure.AI.Agents.UserProfileMemoryItem UserProfileMemoryItem(string memoryId = null, System.DateTimeOffset updatedAt = default(System.DateTimeOffset), string scope = null, string content = null) { throw null; }
- public static Azure.AI.Agents.WorkflowAgentDefinition WorkflowAgentDefinition(Azure.AI.Agents.RaiConfig raiConfig = null, string workflow = null) { throw null; }
+ public static Azure.AI.Agents.WorkflowAgentDefinition WorkflowAgentDefinition(Azure.AI.Agents.RaiConfig raiConfig = null, string workflowYaml = null) { throw null; }
}
public partial class AzureAISearchAgentTool : Azure.AI.Agents.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
- public AzureAISearchAgentTool(Azure.AI.Agents.AzureAISearchToolResource azureAiSearch) { }
- public Azure.AI.Agents.AzureAISearchToolResource AzureAiSearch { get { throw null; } set { } }
+ public AzureAISearchAgentTool() { }
+ public AzureAISearchAgentTool(Azure.AI.Agents.AzureAISearchToolOptions options) { }
+ public Azure.AI.Agents.AzureAISearchToolOptions Options { get { throw null; } set { } }
protected override Azure.AI.Agents.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
protected override Azure.AI.Agents.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -790,6 +772,25 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
+ public partial class AzureAISearchIndex : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureAISearchIndex(string projectConnectionId) { }
+ public string Filter { get { throw null; } set { } }
+ public string IndexAssetId { get { throw null; } set { } }
+ public string IndexName { get { throw null; } set { } }
+ public string ProjectConnectionId { get { throw null; } set { } }
+ public Azure.AI.Agents.AzureAISearchQueryType? QueryType { get { throw null; } set { } }
+ public int? TopK { get { throw null; } set { } }
+ protected virtual Azure.AI.Agents.AzureAISearchIndex JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Agents.AzureAISearchIndex PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Agents.AzureAISearchIndex 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.Agents.AzureAISearchIndex System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct AzureAISearchQueryType : System.IEquatable
{
@@ -812,19 +813,19 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
public static bool operator !=(Azure.AI.Agents.AzureAISearchQueryType left, Azure.AI.Agents.AzureAISearchQueryType right) { throw null; }
public override string ToString() { throw null; }
}
- public partial class AzureAISearchToolResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ public partial class AzureAISearchToolOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
- public AzureAISearchToolResource() { }
- public System.Collections.Generic.IList Indexes { get { throw null; } }
- protected virtual Azure.AI.Agents.AzureAISearchToolResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ public AzureAISearchToolOptions() { }
+ public System.Collections.Generic.IList Indexes { get { throw null; } }
+ protected virtual Azure.AI.Agents.AzureAISearchToolOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- protected virtual Azure.AI.Agents.AzureAISearchToolResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual Azure.AI.Agents.AzureAISearchToolOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- Azure.AI.Agents.AzureAISearchToolResource 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.Agents.AzureAISearchToolResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Agents.AzureAISearchToolOptions 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.Agents.AzureAISearchToolOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
public partial class AzureFunctionAgentTool : Azure.AI.Agents.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
@@ -1797,12 +1798,14 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
}
public static partial class ResponseCreationOptionsExtensions
{
+ public static void AddStructuredInput(this OpenAI.Responses.ResponseCreationOptions options, string key, string value) { }
public static void SetAgentReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, Azure.AI.Agents.AgentRecord agentObject, string version = null) { }
public static void SetAgentReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, Azure.AI.Agents.AgentReference agentReference) { }
public static void SetAgentReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, Azure.AI.Agents.AgentVersion agentVersion) { }
public static void SetAgentReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, string agentName, string version = null) { }
public static void SetConversationReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, Azure.AI.Agents.AgentConversation conversation) { }
public static void SetConversationReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, string conversationId) { }
+ public static void SetStructuredInputs(this OpenAI.Responses.ResponseCreationOptions options, System.BinaryData structuredInputsBytes) { }
}
public static partial class ResponseItemExtensions
{
@@ -1920,8 +1923,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
public partial class WorkflowAgentDefinition : Azure.AI.Agents.AgentDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public WorkflowAgentDefinition() { }
- public System.BinaryData TriggerBytes { get { throw null; } set { } }
- public string Workflow { get { throw null; } set { } }
+ public static Azure.AI.Agents.WorkflowAgentDefinition FromYaml(string workflowYamlDocument) { throw null; }
protected override Azure.AI.Agents.AgentDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
protected override Azure.AI.Agents.AgentDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
diff --git a/sdk/ai/Azure.AI.Agents/api/Azure.AI.Agents.netstandard2.0.cs b/sdk/ai/Azure.AI.Agents/api/Azure.AI.Agents.netstandard2.0.cs
index a4ddc15334ed..38167ba641ae 100644
--- a/sdk/ai/Azure.AI.Agents/api/Azure.AI.Agents.netstandard2.0.cs
+++ b/sdk/ai/Azure.AI.Agents/api/Azure.AI.Agents.netstandard2.0.cs
@@ -533,7 +533,7 @@ public abstract partial class AgentTool : System.ClientModel.Primitives.IJsonMod
{
internal AgentTool() { }
public static OpenAI.Responses.ResponseTool CreateA2ATool(System.Uri baseUrl, string agentCardPath = null) { throw null; }
- public static Azure.AI.Agents.AzureAISearchAgentTool CreateAzureAISearchTool() { throw null; }
+ public static Azure.AI.Agents.AzureAISearchAgentTool CreateAzureAISearchTool(Azure.AI.Agents.AzureAISearchToolOptions options = null) { throw null; }
public static Azure.AI.Agents.BingCustomSearchAgentTool CreateBingCustomSearchTool(Azure.AI.Agents.BingCustomSearchToolParameters parameters) { throw null; }
public static Azure.AI.Agents.BingGroundingAgentTool CreateBingGroundingTool(Azure.AI.Agents.BingGroundingSearchToolParameters parameters) { throw null; }
public static Azure.AI.Agents.BrowserAutomationAgentTool CreateBrowserAutomationTool(Azure.AI.Agents.BrowserAutomationToolParameters parameters) { throw null; }
@@ -645,25 +645,6 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
public static bool operator !=(Azure.AI.Agents.AgentWorkflowActionStatus left, Azure.AI.Agents.AgentWorkflowActionStatus right) { throw null; }
public override string ToString() { throw null; }
}
- public partial class AISearchIndexResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
- {
- public AISearchIndexResource(string projectConnectionId) { }
- public string Filter { get { throw null; } set { } }
- public string IndexAssetId { get { throw null; } set { } }
- public string IndexName { get { throw null; } set { } }
- public string ProjectConnectionId { get { throw null; } set { } }
- public Azure.AI.Agents.AzureAISearchQueryType? QueryType { get { throw null; } set { } }
- public int? TopK { get { throw null; } set { } }
- protected virtual Azure.AI.Agents.AISearchIndexResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- protected virtual Azure.AI.Agents.AISearchIndexResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- Azure.AI.Agents.AISearchIndexResource 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.Agents.AISearchIndexResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- }
public partial class ApiInnerError : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
internal ApiInnerError() { }
@@ -710,10 +691,10 @@ public static partial class AzureAIAgentsModelFactory
public static Azure.AI.Agents.AgentVersion AgentVersion(System.Collections.Generic.IDictionary metadata = null, string id = null, string name = null, string version = null, string description = null, System.DateTimeOffset createdAt = default(System.DateTimeOffset), Azure.AI.Agents.AgentDefinition definition = null) { throw null; }
public static Azure.AI.Agents.AgentVersionCreationOptions AgentVersionCreationOptions(System.Collections.Generic.IDictionary metadata = null, string description = null, Azure.AI.Agents.AgentDefinition definition = null) { throw null; }
public static Azure.AI.Agents.AgentWorkflowActionResponseItem AgentWorkflowActionResponseItem(string id = null, Azure.AI.Agents.CreatedBy createdBy = null, string actionId = null, string parentActionId = null, string previousActionId = null, Azure.AI.Agents.AgentWorkflowActionStatus? status = default(Azure.AI.Agents.AgentWorkflowActionStatus?)) { throw null; }
- public static Azure.AI.Agents.AISearchIndexResource AISearchIndexResource(string projectConnectionId = null, string indexName = null, Azure.AI.Agents.AzureAISearchQueryType? queryType = default(Azure.AI.Agents.AzureAISearchQueryType?), int? topK = default(int?), string filter = null, string indexAssetId = null) { throw null; }
public static Azure.AI.Agents.ApiInnerError ApiInnerError(string code = null, Azure.AI.Agents.ApiInnerError innererror = null) { throw null; }
- public static Azure.AI.Agents.AzureAISearchAgentTool AzureAISearchAgentTool(Azure.AI.Agents.AzureAISearchToolResource azureAiSearch = null) { throw null; }
- public static Azure.AI.Agents.AzureAISearchToolResource AzureAISearchToolResource(System.Collections.Generic.IEnumerable indexes = null) { throw null; }
+ public static Azure.AI.Agents.AzureAISearchAgentTool AzureAISearchAgentTool(Azure.AI.Agents.AzureAISearchToolOptions options = null) { throw null; }
+ public static Azure.AI.Agents.AzureAISearchIndex AzureAISearchIndex(string projectConnectionId = null, string indexName = null, Azure.AI.Agents.AzureAISearchQueryType? queryType = default(Azure.AI.Agents.AzureAISearchQueryType?), int? topK = default(int?), string filter = null, string indexAssetId = null) { throw null; }
+ public static Azure.AI.Agents.AzureAISearchToolOptions AzureAISearchToolOptions(System.Collections.Generic.IEnumerable indexes = null) { throw null; }
public static Azure.AI.Agents.AzureFunctionAgentTool AzureFunctionAgentTool(Azure.AI.Agents.AzureFunctionDefinition azureFunction = null) { throw null; }
public static Azure.AI.Agents.AzureFunctionBinding AzureFunctionBinding(Azure.AI.Agents.AzureFunctionStorageQueue storageQueue = null) { throw null; }
public static Azure.AI.Agents.AzureFunctionDefinition AzureFunctionDefinition(Azure.AI.Agents.AzureFunctionDefinitionFunction function = null, Azure.AI.Agents.AzureFunctionBinding inputBinding = null, Azure.AI.Agents.AzureFunctionBinding outputBinding = null) { throw null; }
@@ -774,12 +755,13 @@ public static partial class AzureAIAgentsModelFactory
public static Azure.AI.Agents.ToolArgumentBinding ToolArgumentBinding(string toolName = null, string argumentName = null) { throw null; }
public static Azure.AI.Agents.ToolProjectConnection ToolProjectConnection(string projectConnectionId = null) { throw null; }
public static Azure.AI.Agents.UserProfileMemoryItem UserProfileMemoryItem(string memoryId = null, System.DateTimeOffset updatedAt = default(System.DateTimeOffset), string scope = null, string content = null) { throw null; }
- public static Azure.AI.Agents.WorkflowAgentDefinition WorkflowAgentDefinition(Azure.AI.Agents.RaiConfig raiConfig = null, string workflow = null) { throw null; }
+ public static Azure.AI.Agents.WorkflowAgentDefinition WorkflowAgentDefinition(Azure.AI.Agents.RaiConfig raiConfig = null, string workflowYaml = null) { throw null; }
}
public partial class AzureAISearchAgentTool : Azure.AI.Agents.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
- public AzureAISearchAgentTool(Azure.AI.Agents.AzureAISearchToolResource azureAiSearch) { }
- public Azure.AI.Agents.AzureAISearchToolResource AzureAiSearch { get { throw null; } set { } }
+ public AzureAISearchAgentTool() { }
+ public AzureAISearchAgentTool(Azure.AI.Agents.AzureAISearchToolOptions options) { }
+ public Azure.AI.Agents.AzureAISearchToolOptions Options { get { throw null; } set { } }
protected override Azure.AI.Agents.AgentTool JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
protected override Azure.AI.Agents.AgentTool PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
@@ -790,6 +772,25 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
+ public partial class AzureAISearchIndex : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public AzureAISearchIndex(string projectConnectionId) { }
+ public string Filter { get { throw null; } set { } }
+ public string IndexAssetId { get { throw null; } set { } }
+ public string IndexName { get { throw null; } set { } }
+ public string ProjectConnectionId { get { throw null; } set { } }
+ public Azure.AI.Agents.AzureAISearchQueryType? QueryType { get { throw null; } set { } }
+ public int? TopK { get { throw null; } set { } }
+ protected virtual Azure.AI.Agents.AzureAISearchIndex JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ protected virtual Azure.AI.Agents.AzureAISearchIndex PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Agents.AzureAISearchIndex 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.Agents.AzureAISearchIndex System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ }
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
public readonly partial struct AzureAISearchQueryType : System.IEquatable
{
@@ -812,19 +813,19 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
public static bool operator !=(Azure.AI.Agents.AzureAISearchQueryType left, Azure.AI.Agents.AzureAISearchQueryType right) { throw null; }
public override string ToString() { throw null; }
}
- public partial class AzureAISearchToolResource : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ public partial class AzureAISearchToolOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
- public AzureAISearchToolResource() { }
- public System.Collections.Generic.IList Indexes { get { throw null; } }
- protected virtual Azure.AI.Agents.AzureAISearchToolResource JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ public AzureAISearchToolOptions() { }
+ public System.Collections.Generic.IList Indexes { get { throw null; } }
+ protected virtual Azure.AI.Agents.AzureAISearchToolOptions JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- protected virtual Azure.AI.Agents.AzureAISearchToolResource PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ protected virtual Azure.AI.Agents.AzureAISearchToolOptions PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
protected virtual System.BinaryData PersistableModelWriteCore(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- Azure.AI.Agents.AzureAISearchToolResource 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.Agents.AzureAISearchToolResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
- System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ Azure.AI.Agents.AzureAISearchToolOptions 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.Agents.AzureAISearchToolOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ string System.ClientModel.Primitives.IPersistableModel.GetFormatFromOptions(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
+ System.BinaryData System.ClientModel.Primitives.IPersistableModel.Write(System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
}
public partial class AzureFunctionAgentTool : Azure.AI.Agents.AgentTool, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
@@ -1797,12 +1798,14 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
}
public static partial class ResponseCreationOptionsExtensions
{
+ public static void AddStructuredInput(this OpenAI.Responses.ResponseCreationOptions options, string key, string value) { }
public static void SetAgentReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, Azure.AI.Agents.AgentRecord agentObject, string version = null) { }
public static void SetAgentReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, Azure.AI.Agents.AgentReference agentReference) { }
public static void SetAgentReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, Azure.AI.Agents.AgentVersion agentVersion) { }
public static void SetAgentReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, string agentName, string version = null) { }
public static void SetConversationReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, Azure.AI.Agents.AgentConversation conversation) { }
public static void SetConversationReference(this OpenAI.Responses.ResponseCreationOptions responseCreationOptions, string conversationId) { }
+ public static void SetStructuredInputs(this OpenAI.Responses.ResponseCreationOptions options, System.BinaryData structuredInputsBytes) { }
}
public static partial class ResponseItemExtensions
{
@@ -1920,8 +1923,7 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
public partial class WorkflowAgentDefinition : Azure.AI.Agents.AgentDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public WorkflowAgentDefinition() { }
- public System.BinaryData TriggerBytes { get { throw null; } set { } }
- public string Workflow { get { throw null; } set { } }
+ public static Azure.AI.Agents.WorkflowAgentDefinition FromYaml(string workflowYamlDocument) { throw null; }
protected override Azure.AI.Agents.AgentDefinition JsonModelCreateCore(ref System.Text.Json.Utf8JsonReader reader, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
protected override Azure.AI.Agents.AgentDefinition PersistableModelCreateCore(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; }
diff --git a/sdk/ai/Azure.AI.Agents/assets.json b/sdk/ai/Azure.AI.Agents/assets.json
index 20a5b6937fb9..0e6cdc91e702 100644
--- a/sdk/ai/Azure.AI.Agents/assets.json
+++ b/sdk/ai/Azure.AI.Agents/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/ai/Azure.AI.Agents",
- "Tag": "net/ai/Azure.AI.Agents_34436e25a0"
+ "Tag": "net/ai/Azure.AI.Agents_80325b3756"
}
diff --git a/sdk/ai/Azure.AI.Agents/samples/Sample5_MemorySearchTool.md b/sdk/ai/Azure.AI.Agents/samples/Sample5_MemorySearchTool.md
index a35c6ad10014..15b69919a893 100644
--- a/sdk/ai/Azure.AI.Agents/samples/Sample5_MemorySearchTool.md
+++ b/sdk/ai/Azure.AI.Agents/samples/Sample5_MemorySearchTool.md
@@ -142,10 +142,11 @@ memoryClient.UpdateMemories(memoryStore.Id, scope, updateItems);
Synchronous sample:
```C# Snippet:Sample_CheckMemorySearch_Sync
-MemorySearchOptions opts = new(
- maxMemories: 1,
- items: [ResponseItem.CreateUserMessageItem("What was the joke?")],
- additionalBinaryDataProperties: null);
+MemorySearchOptions opts = new()
+{
+ MaxMemories = 1,
+ Items = { ResponseItem.CreateUserMessageItem("What was the joke?") },
+};
MemoryStoreSearchResponse resp = memoryClient.SearchMemories(
memoryStoreId: memoryStore.Id,
scope: scope,
@@ -161,10 +162,11 @@ Console.WriteLine("==End of memory search tool output.==");
Asynchronous sample:
```C# Snippet:Sample_CheckMemorySearch_Async
-MemorySearchOptions opts = new(
- maxMemories: 1,
- items: [ResponseItem.CreateUserMessageItem("What was the joke?")],
- additionalBinaryDataProperties: null);
+MemorySearchOptions opts = new()
+{
+ MaxMemories = 1,
+ Items = { ResponseItem.CreateUserMessageItem("What was the joke?") },
+};
MemoryStoreSearchResponse resp = await memoryClient.SearchMemoriesAsync(
memoryStoreId: memoryStore.Id,
scope: scope,
diff --git a/sdk/ai/Azure.AI.Agents/samples/Sample8_FileSearch.md b/sdk/ai/Azure.AI.Agents/samples/Sample8_FileSearch.md
index 73b7bc36f257..17074788f822 100644
--- a/sdk/ai/Azure.AI.Agents/samples/Sample8_FileSearch.md
+++ b/sdk/ai/Azure.AI.Agents/samples/Sample8_FileSearch.md
@@ -16,23 +16,23 @@ OpenAIClient openAIClient = client.GetOpenAIClient();
Synchronous sample:
```C# Snippet:Sample_UploadFile_FileSearch_Sync
string filePath = "sample_file_for_upload.txt";
-System.IO.File.WriteAllText(
+File.WriteAllText(
path: filePath,
contents: "The word 'apple' uses the code 442345, while the word 'banana' uses the code 673457.");
OpenAIFileClient fileClient = openAIClient.GetOpenAIFileClient();
OpenAIFile uploadedFile = fileClient.UploadFile(filePath: filePath, purpose: FileUploadPurpose.Assistants);
-System.IO.File.Delete(filePath);
+File.Delete(filePath);
```
Asynchronous sample:
```C# Snippet:Sample_UploadFile_FileSearch_Async
string filePath = "sample_file_for_upload.txt";
-System.IO.File.WriteAllText(
+File.WriteAllText(
path: filePath,
contents: "The word 'apple' uses the code 442345, while the word 'banana' uses the code 673457.");
OpenAIFileClient fileClient = openAIClient.GetOpenAIFileClient();
OpenAIFile uploadedFile = await fileClient.UploadFileAsync(filePath: filePath, purpose: FileUploadPurpose.Assistants);
-System.IO.File.Delete(filePath);
+File.Delete(filePath);
```
3. Create the `VectorStore` and provide it with uploaded file ID.
@@ -40,25 +40,23 @@ System.IO.File.Delete(filePath);
Synchronous sample:
```C# Snippet:Sample_CreateVectorStore_FileSearch_Sync
VectorStoreClient vctStoreClient = openAIClient.GetVectorStoreClient();
-VectorStoreCreationOptions vctOptions = new()
+VectorStoreCreationOptions options = new()
{
Name = "MySampleStore",
FileIds = { uploadedFile.Id }
};
-VectorStore vectorStore = vctStoreClient.CreateVectorStore(options: vctOptions);
+VectorStore vectorStore = vctStoreClient.CreateVectorStore(options: options);
```
Asynchronous sample:
```C# Snippet:Sample_CreateVectorStore_FileSearch_Async
VectorStoreClient vctStoreClient = openAIClient.GetVectorStoreClient();
-VectorStoreCreationOptions vctOptions = new()
+VectorStoreCreationOptions options = new()
{
Name = "MySampleStore",
FileIds = { uploadedFile.Id }
};
-VectorStore vectorStore = await vctStoreClient.CreateVectorStoreAsync(
- new VectorStoreCreationOptions()
-);
+VectorStore vectorStore = await vctStoreClient.CreateVectorStoreAsync(options);
```
2. Now we can create an agent capable of using File search.
@@ -68,13 +66,12 @@ Synchronous sample:
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
{
Instructions = "You are a helpful agent that can help fetch data from files you know about.",
- Tools = {
- ResponseTool.CreateFileSearchTool(vectorStoreIds: [vectorStore.Id]),
- }
+ Tools = { ResponseTool.CreateFileSearchTool(vectorStoreIds: [vectorStore.Id]), }
};
AgentVersion agentVersion = client.CreateAgentVersion(
agentName: "myAgent",
- definition: agentDefinition, options: null);
+ definition: agentDefinition,
+ options: null);
```
Asynchronous sample:
@@ -82,13 +79,12 @@ Asynchronous sample:
PromptAgentDefinition agentDefinition = new(model: modelDeploymentName)
{
Instructions = "You are a helpful agent that can help fetch data from files you know about.",
- Tools = {
- ResponseTool.CreateFileSearchTool(vectorStoreIds: [vectorStore.Id]),
- }
+ Tools = { ResponseTool.CreateFileSearchTool(vectorStoreIds: [vectorStore.Id]), }
};
AgentVersion agentVersion = await client.CreateAgentVersionAsync(
agentName: "myAgent",
- definition: agentDefinition, options: null);
+ definition: agentDefinition,
+ options: null);
```
3. In this example we will ask a question to the file contents.
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/AgentTool.cs b/sdk/ai/Azure.AI.Agents/src/Custom/AgentTool.cs
index 06708a273ab7..8340abc18da4 100644
--- a/sdk/ai/Azure.AI.Agents/src/Custom/AgentTool.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/AgentTool.cs
@@ -5,7 +5,6 @@
using System;
using System.ClientModel.Primitives;
-using System.Collections.Generic;
using OpenAI;
using OpenAI.Responses;
@@ -19,7 +18,7 @@ public abstract partial class AgentTool
public static BingGroundingAgentTool CreateBingGroundingTool(BingGroundingSearchToolParameters parameters) => new BingGroundingAgentTool(parameters);
public static MicrosoftFabricAgentTool CreateMicrosoftFabricTool(FabricDataAgentToolParameters parameters) => new MicrosoftFabricAgentTool(parameters);
public static SharepointAgentTool CreateSharepointTool(SharepointGroundingToolParameters parameters) => new SharepointAgentTool(parameters);
- public static AzureAISearchAgentTool CreateAzureAISearchTool() => new AzureAISearchAgentTool();
+ public static AzureAISearchAgentTool CreateAzureAISearchTool(AzureAISearchToolOptions options = null) => new AzureAISearchAgentTool(options ?? new());
public static OpenApiAgentTool CreateOpenApiTool(OpenApiFunctionDefinition definition) => new OpenApiAgentTool(definition);
public static BingCustomSearchAgentTool CreateBingCustomSearchTool(BingCustomSearchToolParameters parameters) => new BingCustomSearchAgentTool(parameters);
public static BrowserAutomationAgentTool CreateBrowserAutomationTool(BrowserAutomationToolParameters parameters) => new BrowserAutomationAgentTool(parameters);
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchAgentTool.cs b/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchAgentTool.cs
new file mode 100644
index 000000000000..e5b43958e8ca
--- /dev/null
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchAgentTool.cs
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+#pragma warning disable OPENAI001
+
+using System;
+using OpenAI;
+
+namespace Azure.AI.Agents;
+
+[CodeGenType("AzureAISearchAgentTool")]
+public partial class AzureAISearchAgentTool
+{
+ /// Options applied to the instance.
+ [CodeGenMember("AzureAiSearch")]
+ public AzureAISearchToolOptions Options { get; set; }
+
+ /// Initializes a new instance of .
+ public AzureAISearchAgentTool() : this(options: new())
+ {
+ }
+
+ /// The azure ai search index resource.
+ /// is null.
+ public AzureAISearchAgentTool(AzureAISearchToolOptions options) : base(ToolType.AzureAiSearch)
+ {
+ Argument.AssertNotNull(options, nameof(options));
+
+ Options = options;
+ }
+}
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchIndex.cs b/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchIndex.cs
new file mode 100644
index 000000000000..018a2e1572e4
--- /dev/null
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchIndex.cs
@@ -0,0 +1,13 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+#pragma warning disable OPENAI001
+
+namespace Azure.AI.Agents;
+
+[CodeGenType("AISearchIndexResource")]
+public partial class AzureAISearchIndex
+{
+}
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchToolOptions.cs b/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchToolOptions.cs
new file mode 100644
index 000000000000..d2d469a2eaf3
--- /dev/null
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/AzureAISearchToolOptions.cs
@@ -0,0 +1,21 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+#nullable disable
+
+using System.Collections.Generic;
+
+#pragma warning disable OPENAI001
+
+namespace Azure.AI.Agents;
+
+[CodeGenType("AzureAISearchToolResource")]
+public partial class AzureAISearchToolOptions
+{
+ ///
+ /// The indices attached to this agent. There can be a maximum of 1 index
+ /// resource attached to the agent.
+ ///
+ [CodeGenMember("IndexList")]
+ public IList Indexes { get; }
+}
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/Internal/AdditionalPropertyHelpers.cs b/sdk/ai/Azure.AI.Agents/src/Custom/Internal/AdditionalPropertyHelpers.cs
index b5cfa6827e4c..e58e4e09e54f 100644
--- a/sdk/ai/Azure.AI.Agents/src/Custom/Internal/AdditionalPropertyHelpers.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/Internal/AdditionalPropertyHelpers.cs
@@ -7,6 +7,7 @@
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Reflection;
+using System.Text.Json.Nodes;
#pragma warning disable OPENAI001
@@ -21,34 +22,83 @@ internal static void SetAdditionalProperty(this T instance, string key, U
object existingSerializedAdditionalRawData = additionalDataProperty.GetValue(instance);
IDictionary additionalData = (IDictionary)existingSerializedAdditionalRawData ?? new Dictionary();
- BinaryData writtenBinaryData = value switch
- {
- BinaryData binaryDataObject => binaryDataObject,
- string stringObject => BinaryData.FromString(stringObject),
- _ => ModelReaderWriter.Write(value, ModelSerializationExtensions.WireOptions, AzureAIAgentsContext.Default),
- };
- additionalData[key] = writtenBinaryData;
+ additionalData[key] = GetBinaryData(value);
additionalDataProperty.SetValue(instance, additionalData);
}
- internal static U GetAdditionalProperty(this T instance, string key)
+ internal static bool TryGetAdditionalProperty(this T instance, string key, out U value)
+ where T : IJsonModel
{
PropertyInfo additionalDataProperty = instance.GetType().GetProperty("SerializedAdditionalRawData", BindingFlags.Instance | BindingFlags.NonPublic);
object existingSerializedAdditionalRawData = additionalDataProperty.GetValue(instance);
- IDictionary additionalData = (IDictionary)existingSerializedAdditionalRawData;
- if (additionalData?.TryGetValue(key, out BinaryData valueBytes) != true)
+ if (instance.GetAdditionalProperty(key) is BinaryData valueBytes)
{
- return default(U);
+ if (typeof(U) == typeof(string))
+ {
+ value = (U)(object)valueBytes.ToString();
+ return true;
+ }
+ else if (typeof(U) == typeof(IDictionary)
+ && JsonNode.Parse(valueBytes.ToString()) is JsonObject dictionaryValueObject)
+ {
+ IDictionary valueDictionary = new ChangeTrackingDictionary();
+ foreach (KeyValuePair dictionaryPair in dictionaryValueObject)
+ {
+ valueDictionary.Add(dictionaryPair.Key, BinaryData.FromString(dictionaryPair.Value.ToString()));
+ }
+ value = (U)(object)valueDictionary;
+ return true;
+ }
}
+ value = default;
+ return false;
+ }
- if (typeof(U) == typeof(string))
+ private static BinaryData GetBinaryData(T input)
+ {
+ if (input is BinaryData passthroughBinaryData)
+ {
+ return passthroughBinaryData;
+ }
+ else if (input is string stringData)
+ {
+ return BinaryData.FromString(stringData);
+ }
+ else if (input is IPersistableModel)
+ {
+ return ModelReaderWriter.Write(input, ModelSerializationExtensions.WireOptions, AzureAIAgentsContext.Default);
+ }
+ else if (input is IDictionary binaryDataDictionary)
{
- return (U)(object)valueBytes.ToString();
+ JsonObject dictionaryObject = new();
+ foreach (KeyValuePair dictionaryPair in binaryDataDictionary)
+ {
+ dictionaryObject[dictionaryPair.Key] = JsonNode.Parse(dictionaryPair.Value.ToString());
+ }
+ return BinaryData.FromString(dictionaryObject.ToString());
}
- else
+ return null;
+ }
+
+ private static IDictionary GetAdditionalProperties(this T instance)
+ where T : IJsonModel
+ {
+ PropertyInfo additionalDataProperty = instance
+ .GetType()
+ .GetProperty(
+ "SerializedAdditionalRawData",
+ BindingFlags.Instance | BindingFlags.NonPublic);
+ return additionalDataProperty.GetValue(instance) as IDictionary;
+ }
+
+ private static BinaryData GetAdditionalProperty(this T instance, string key)
+ where T : IJsonModel
+ {
+ if (instance.GetAdditionalProperties()?.TryGetValue(key, out BinaryData value) == true)
{
- throw new NotImplementedException();
+ return value;
}
+ return null;
}
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/Internal/PipelinePolicyHelpers.cs b/sdk/ai/Azure.AI.Agents/src/Custom/Internal/PipelinePolicyHelpers.cs
index 5eff3909d8e1..0eae489b61ff 100644
--- a/sdk/ai/Azure.AI.Agents/src/Custom/Internal/PipelinePolicyHelpers.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/Internal/PipelinePolicyHelpers.cs
@@ -199,9 +199,12 @@ public static void AddAzureFinetuningParityPolicy(OpenAIClientOptions options)
"Content-Disposition: form-data; name=file; filename=([^;]*);.*") is Match fileContentDispositionMatch
&& fileContentDispositionMatch.Success)
{
- newRequestWriter.WriteLine("Content-Type: application/octet-stream");
+ // We are explicitly set the line ending as
+ // WriteLine will add only \n symbol on Unix systems,
+ // Which will result in error 400 on te service side.
+ newRequestWriter.Write("Content-Type: application/octet-stream\r\n");
}
- newRequestWriter.WriteLine(line);
+ newRequestWriter.Write($"{line}\r\n");
previousLine = line;
}
@@ -216,7 +219,13 @@ public static void AddAzureFinetuningParityPolicy(OpenAIClientOptions options)
if (message?.Response is not null)
{
message?.Response.BufferContent();
- if (JsonNode.Parse(message?.Response?.ContentStream) is JsonObject responseObject
+
+ // Only parse as JSON if the response Content-Type indicates JSON
+ string contentType = message?.Response?.Headers?.TryGetValue("Content-Type", out string ct) == true ? ct : string.Empty;
+ bool isJsonResponse = contentType.IndexOf("application/json", StringComparison.OrdinalIgnoreCase) >= 0;
+
+ if (isJsonResponse
+ && JsonNode.Parse(message?.Response?.ContentStream) is JsonObject responseObject
&& responseObject.TryGetPropertyValue("status", out JsonNode statusNode)
&& statusNode is JsonValue statusValue
&& !Enum.TryParse(statusValue.ToString(), out FileStatus _))
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/OpenAIFileExtensions.cs b/sdk/ai/Azure.AI.Agents/src/Custom/OpenAIFileExtensions.cs
index 553a5e058f1e..af3cb32de24a 100644
--- a/sdk/ai/Azure.AI.Agents/src/Custom/OpenAIFileExtensions.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/OpenAIFileExtensions.cs
@@ -2,7 +2,11 @@
// Licensed under the MIT License.
using System;
+using System.ClientModel;
using System.Collections.Generic;
+using System.IO;
+using System.Text;
+using System.Text.Json;
using OpenAI.Files;
#pragma warning disable CS0618
@@ -13,10 +17,18 @@ public static partial class OpenAIFileExtensions
{
public static string GetAzureFileStatus(this OpenAIFile file)
{
- if (AdditionalPropertyHelpers.GetAdditionalProperty(file, "_sdk_status") is string extraStatusValue
- && extraStatusValue.Length > 2)
+ using BinaryContent contentBytes = BinaryContent.Create(file, ModelSerializationExtensions.WireOptions);
+ using var stream = new MemoryStream();
+ contentBytes.WriteTo(stream);
+ string json = Encoding.UTF8.GetString(stream.ToArray());
+ JsonDocument doc = JsonDocument.Parse(json);
+ if (doc.RootElement.TryGetProperty("_sdk_status", out JsonElement extraStatusElement))
{
- return extraStatusValue.Substring(1, extraStatusValue.Length - 2);
+ string extraStatusValue = extraStatusElement.GetString();
+ if (!string.IsNullOrEmpty(extraStatusValue))
+ {
+ return extraStatusValue;
+ }
}
return null;
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/ResponseCreationOptionsExtensions.cs b/sdk/ai/Azure.AI.Agents/src/Custom/ResponseCreationOptionsExtensions.cs
index 19a50e93f5f0..c4f2faf614b2 100644
--- a/sdk/ai/Azure.AI.Agents/src/Custom/ResponseCreationOptionsExtensions.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/ResponseCreationOptionsExtensions.cs
@@ -6,10 +6,11 @@
using System;
using System.ClientModel.Primitives;
using System.Collections.Generic;
-using System.Reflection;
+using System.Text.Json.Nodes;
using OpenAI.Responses;
#pragma warning disable OPENAI001
+#pragma warning disable SCME0001
namespace Azure.AI.Agents;
@@ -22,9 +23,9 @@ public static partial class ResponseCreationOptionsExtensions
///
public static void SetAgentReference(this ResponseCreationOptions responseCreationOptions, AgentReference agentReference)
{
- AdditionalPropertyHelpers.SetAdditionalProperty(responseCreationOptions, "agent", agentReference);
- // Agent specification is mutually exclusive with model specification; see internal issue 4770700
- AdditionalPropertyHelpers.SetAdditionalProperty(responseCreationOptions, "model", BinaryData.FromBytes("\"__EMPTY__\""u8.ToArray()));
+ BinaryData agentReferenceBin = ModelReaderWriter.Write(agentReference, ModelSerializationExtensions.WireOptions, AzureAIAgentsContext.Default);
+ responseCreationOptions.Patch.Set("$.agent"u8, agentReferenceBin);
+ responseCreationOptions.Patch.Remove("$.model"u8);
}
///
@@ -60,9 +61,7 @@ public static void SetAgentReference(this ResponseCreationOptions responseCreati
///
public static void SetConversationReference(this ResponseCreationOptions responseCreationOptions, string conversationId)
{
- responseCreationOptions.SetAdditionalProperty(
- "conversation",
- BinaryData.FromString($"\"{conversationId}\""));
+ responseCreationOptions.Patch.Set("$.conversation"u8, $"{conversationId}");
}
///
@@ -72,4 +71,19 @@ public static void SetConversationReference(this ResponseCreationOptions respons
///
public static void SetConversationReference(this ResponseCreationOptions responseCreationOptions, AgentConversation conversation)
=> SetConversationReference(responseCreationOptions, conversation.Id);
+
+ public static void AddStructuredInput(this ResponseCreationOptions options, string key, string value)
+ {
+ IDictionary structuredInputs
+ = options.TryGetAdditionalProperty("structured_inputs", out IDictionary existingDictionary)
+ ? existingDictionary
+ : new ChangeTrackingDictionary();
+ structuredInputs[key] = BinaryData.FromString(JsonValue.Create(value).ToJsonString());
+ options.SetAdditionalProperty("structured_inputs", structuredInputs);
+ }
+
+ public static void SetStructuredInputs(this ResponseCreationOptions options, BinaryData structuredInputsBytes)
+ {
+ options.SetAdditionalProperty("structured_inputs", structuredInputsBytes);
+ }
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Custom/WorkflowAgentDefinition.cs b/sdk/ai/Azure.AI.Agents/src/Custom/WorkflowAgentDefinition.cs
index 9900cd69d1c0..57b030dc25aa 100644
--- a/sdk/ai/Azure.AI.Agents/src/Custom/WorkflowAgentDefinition.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Custom/WorkflowAgentDefinition.cs
@@ -3,15 +3,19 @@
#nullable disable
-using System;
-using System.Collections.Generic;
-using System.Text.Json;
-
namespace Azure.AI.Agents;
[CodeGenType("WorkflowDefinition")]
public partial class WorkflowAgentDefinition
{
- [CodeGenMember("Trigger")]
- public BinaryData TriggerBytes { get; set; }
+ public static WorkflowAgentDefinition FromYaml(string workflowYamlDocument)
+ {
+ return new()
+ {
+ WorkflowYaml = workflowYamlDocument,
+ };
+ }
+
+ [CodeGenMember("Workflow")]
+ private string WorkflowYaml { get; set; }
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/AzureAIAgentsModelFactory.cs b/sdk/ai/Azure.AI.Agents/src/Generated/AzureAIAgentsModelFactory.cs
index daf94e7bbc19..5419fe6df22a 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/AzureAIAgentsModelFactory.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/AzureAIAgentsModelFactory.cs
@@ -84,11 +84,11 @@ public static RaiConfig RaiConfig(string raiPolicyName = default)
/// The workflow specification in CSDL format.
/// Configuration for Responsible AI (RAI) content filtering and safety features.
- /// The CSDL YAML definition of the workflow.
+ /// The CSDL YAML definition of the workflow.
/// A new instance for mocking.
- public static WorkflowAgentDefinition WorkflowAgentDefinition(RaiConfig raiConfig = default, string workflow = default)
+ public static WorkflowAgentDefinition WorkflowAgentDefinition(RaiConfig raiConfig = default, string workflowYaml = default)
{
- return new WorkflowAgentDefinition(AgentKind.Workflow, raiConfig, additionalBinaryDataProperties: null, workflow);
+ return new WorkflowAgentDefinition(AgentKind.Workflow, raiConfig, additionalBinaryDataProperties: null, workflowYaml);
}
/// The hosted agent definition.
@@ -220,11 +220,11 @@ public static SharepointGroundingToolParameters SharepointGroundingToolParameter
}
/// The input definition information for an Azure AI search tool as used to configure an agent.
- /// The azure ai search index resource.
+ /// The azure ai search index resource.
/// A new instance for mocking.
- public static AzureAISearchAgentTool AzureAISearchAgentTool(AzureAISearchToolResource azureAiSearch = default)
+ public static AzureAISearchAgentTool AzureAISearchAgentTool(AzureAISearchToolOptions options = default)
{
- return new AzureAISearchAgentTool(ToolType.AzureAiSearch, additionalBinaryDataProperties: null, azureAiSearch);
+ return new AzureAISearchAgentTool(ToolType.AzureAiSearch, additionalBinaryDataProperties: null, options);
}
/// A set of index resources used by the `azure_ai_search` tool.
@@ -232,12 +232,12 @@ public static AzureAISearchAgentTool AzureAISearchAgentTool(AzureAISearchToolRes
/// The indices attached to this agent. There can be a maximum of 1 index
/// resource attached to the agent.
///
- /// A new instance for mocking.
- public static AzureAISearchToolResource AzureAISearchToolResource(IEnumerable indexes = default)
+ /// A new instance for mocking.
+ public static AzureAISearchToolOptions AzureAISearchToolOptions(IEnumerable indexes = default)
{
- indexes ??= new ChangeTrackingList();
+ indexes ??= new ChangeTrackingList();
- return new AzureAISearchToolResource(indexes.ToList(), additionalBinaryDataProperties: null);
+ return new AzureAISearchToolOptions(indexes.ToList(), additionalBinaryDataProperties: null);
}
/// A AI Search Index resource.
@@ -247,10 +247,10 @@ public static AzureAISearchToolResource AzureAISearchToolResource(IEnumerable Number of documents to retrieve from search and present to the model.
/// filter string for search resource. [Learn more here](https://learn.microsoft.com/azure/search/search-filters).
/// Index asset id for search resource.
- /// A new instance for mocking.
- public static AISearchIndexResource AISearchIndexResource(string projectConnectionId = default, string indexName = default, AzureAISearchQueryType? queryType = default, int? topK = default, string filter = default, string indexAssetId = default)
+ /// A new instance for mocking.
+ public static AzureAISearchIndex AzureAISearchIndex(string projectConnectionId = default, string indexName = default, AzureAISearchQueryType? queryType = default, int? topK = default, string filter = default, string indexAssetId = default)
{
- return new AISearchIndexResource(
+ return new AzureAISearchIndex(
projectConnectionId,
indexName,
queryType,
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAIAgentsContext.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAIAgentsContext.cs
index b7b83c10b23f..94132e87f187 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAIAgentsContext.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAIAgentsContext.cs
@@ -35,10 +35,10 @@ namespace Azure.AI.Agents
[ModelReaderWriterBuildable(typeof(AgentVersion))]
[ModelReaderWriterBuildable(typeof(AgentVersionCreationOptions))]
[ModelReaderWriterBuildable(typeof(AgentWorkflowActionResponseItem))]
- [ModelReaderWriterBuildable(typeof(AISearchIndexResource))]
[ModelReaderWriterBuildable(typeof(ApiInnerError))]
[ModelReaderWriterBuildable(typeof(AzureAISearchAgentTool))]
- [ModelReaderWriterBuildable(typeof(AzureAISearchToolResource))]
+ [ModelReaderWriterBuildable(typeof(AzureAISearchIndex))]
+ [ModelReaderWriterBuildable(typeof(AzureAISearchToolOptions))]
[ModelReaderWriterBuildable(typeof(AzureFunctionAgentTool))]
[ModelReaderWriterBuildable(typeof(AzureFunctionBinding))]
[ModelReaderWriterBuildable(typeof(AzureFunctionDefinition))]
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchAgentTool.Serialization.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchAgentTool.Serialization.cs
index 8800d28e5e2b..bc8f66d6d37b 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchAgentTool.Serialization.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchAgentTool.Serialization.cs
@@ -13,11 +13,6 @@ namespace Azure.AI.Agents
/// The input definition information for an Azure AI search tool as used to configure an agent.
public partial class AzureAISearchAgentTool : AgentTool, IJsonModel
{
- /// Initializes a new instance of for deserialization.
- internal AzureAISearchAgentTool()
- {
- }
-
/// The JSON writer.
/// The client options for reading and writing models.
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
@@ -38,7 +33,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
}
base.JsonModelWriteCore(writer, options);
writer.WritePropertyName("azure_ai_search"u8);
- writer.WriteObjectValue(AzureAiSearch, options);
+ writer.WriteObjectValue(Options, options);
}
/// The JSON reader.
@@ -68,7 +63,7 @@ internal static AzureAISearchAgentTool DeserializeAzureAISearchAgentTool(JsonEle
}
ToolType @type = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
- AzureAISearchToolResource azureAiSearch = default;
+ AzureAISearchToolOptions options0 = default;
foreach (var prop in element.EnumerateObject())
{
if (prop.NameEquals("type"u8))
@@ -78,7 +73,7 @@ internal static AzureAISearchAgentTool DeserializeAzureAISearchAgentTool(JsonEle
}
if (prop.NameEquals("azure_ai_search"u8))
{
- azureAiSearch = AzureAISearchToolResource.DeserializeAzureAISearchToolResource(prop.Value, options);
+ options0 = AzureAISearchToolOptions.DeserializeAzureAISearchToolOptions(prop.Value, options);
continue;
}
if (options.Format != "W")
@@ -86,7 +81,7 @@ internal static AzureAISearchAgentTool DeserializeAzureAISearchAgentTool(JsonEle
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
}
- return new AzureAISearchAgentTool(@type, additionalBinaryDataProperties, azureAiSearch);
+ return new AzureAISearchAgentTool(@type, additionalBinaryDataProperties, options0);
}
/// The client options for reading and writing models.
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchAgentTool.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchAgentTool.cs
index 1c7660627703..f3390c700dad 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchAgentTool.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchAgentTool.cs
@@ -11,26 +11,13 @@ namespace Azure.AI.Agents
/// The input definition information for an Azure AI search tool as used to configure an agent.
public partial class AzureAISearchAgentTool : AgentTool
{
- /// Initializes a new instance of .
- /// The azure ai search index resource.
- /// is null.
- public AzureAISearchAgentTool(AzureAISearchToolResource azureAiSearch) : base(ToolType.AzureAiSearch)
- {
- Argument.AssertNotNull(azureAiSearch, nameof(azureAiSearch));
-
- AzureAiSearch = azureAiSearch;
- }
-
/// Initializes a new instance of .
///
/// Keeps track of any properties unknown to the library.
- /// The azure ai search index resource.
- internal AzureAISearchAgentTool(ToolType @type, IDictionary additionalBinaryDataProperties, AzureAISearchToolResource azureAiSearch) : base(@type, additionalBinaryDataProperties)
+ /// The azure ai search index resource.
+ internal AzureAISearchAgentTool(ToolType @type, IDictionary additionalBinaryDataProperties, AzureAISearchToolOptions options) : base(@type, additionalBinaryDataProperties)
{
- AzureAiSearch = azureAiSearch;
+ Options = options;
}
-
- /// The azure ai search index resource.
- public AzureAISearchToolResource AzureAiSearch { get; set; }
}
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AISearchIndexResource.Serialization.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchIndex.Serialization.cs
similarity index 75%
rename from sdk/ai/Azure.AI.Agents/src/Generated/Models/AISearchIndexResource.Serialization.cs
rename to sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchIndex.Serialization.cs
index 10b10ce1b459..e87513d63bee 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AISearchIndexResource.Serialization.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchIndex.Serialization.cs
@@ -10,16 +10,16 @@
namespace Azure.AI.Agents
{
/// A AI Search Index resource.
- public partial class AISearchIndexResource : IJsonModel
+ public partial class AzureAISearchIndex : IJsonModel
{
- /// Initializes a new instance of for deserialization.
- internal AISearchIndexResource()
+ /// Initializes a new instance of for deserialization.
+ internal AzureAISearchIndex()
{
}
/// The JSON writer.
/// The client options for reading and writing models.
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
JsonModelWriteCore(writer, options);
@@ -30,10 +30,10 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderW
/// The client options for reading and writing models.
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(AISearchIndexResource)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(AzureAISearchIndex)} does not support writing '{format}' format.");
}
writer.WritePropertyName("project_connection_id"u8);
writer.WriteStringValue(ProjectConnectionId);
@@ -81,24 +81,24 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
/// The JSON reader.
/// The client options for reading and writing models.
- AISearchIndexResource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options);
+ AzureAISearchIndex IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options);
/// The JSON reader.
/// The client options for reading and writing models.
- protected virtual AISearchIndexResource JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ protected virtual AzureAISearchIndex JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(AISearchIndexResource)} does not support reading '{format}' format.");
+ throw new FormatException($"The model {nameof(AzureAISearchIndex)} does not support reading '{format}' format.");
}
using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeAISearchIndexResource(document.RootElement, options);
+ return DeserializeAzureAISearchIndex(document.RootElement, options);
}
/// The JSON element to deserialize.
/// The client options for reading and writing models.
- internal static AISearchIndexResource DeserializeAISearchIndexResource(JsonElement element, ModelReaderWriterOptions options)
+ internal static AzureAISearchIndex DeserializeAzureAISearchIndex(JsonElement element, ModelReaderWriterOptions options)
{
if (element.ValueKind == JsonValueKind.Null)
{
@@ -156,7 +156,7 @@ internal static AISearchIndexResource DeserializeAISearchIndexResource(JsonEleme
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
}
- return new AISearchIndexResource(
+ return new AzureAISearchIndex(
projectConnectionId,
indexName,
queryType,
@@ -167,43 +167,43 @@ internal static AISearchIndexResource DeserializeAISearchIndexResource(JsonEleme
}
/// The client options for reading and writing models.
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
/// The client options for reading and writing models.
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options)
{
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
return ModelReaderWriter.Write(this, options, AzureAIAgentsContext.Default);
default:
- throw new FormatException($"The model {nameof(AISearchIndexResource)} does not support writing '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(AzureAISearchIndex)} does not support writing '{options.Format}' format.");
}
}
/// The data to parse.
/// The client options for reading and writing models.
- AISearchIndexResource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options);
+ AzureAISearchIndex IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options);
/// The data to parse.
/// The client options for reading and writing models.
- protected virtual AISearchIndexResource PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options)
+ protected virtual AzureAISearchIndex PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options)
{
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
using (JsonDocument document = JsonDocument.Parse(data))
{
- return DeserializeAISearchIndexResource(document.RootElement, options);
+ return DeserializeAzureAISearchIndex(document.RootElement, options);
}
default:
- throw new FormatException($"The model {nameof(AISearchIndexResource)} does not support reading '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(AzureAISearchIndex)} does not support reading '{options.Format}' format.");
}
}
/// The client options for reading and writing models.
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
}
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AISearchIndexResource.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchIndex.cs
similarity index 87%
rename from sdk/ai/Azure.AI.Agents/src/Generated/Models/AISearchIndexResource.cs
rename to sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchIndex.cs
index 6b1fb921e616..968801afdb29 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AISearchIndexResource.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchIndex.cs
@@ -8,22 +8,22 @@
namespace Azure.AI.Agents
{
/// A AI Search Index resource.
- public partial class AISearchIndexResource
+ public partial class AzureAISearchIndex
{
/// Keeps track of any properties unknown to the library.
private protected readonly IDictionary _additionalBinaryDataProperties;
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// An index connection ID in an IndexResource attached to this agent.
/// is null.
- public AISearchIndexResource(string projectConnectionId)
+ public AzureAISearchIndex(string projectConnectionId)
{
Argument.AssertNotNull(projectConnectionId, nameof(projectConnectionId));
ProjectConnectionId = projectConnectionId;
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
/// An index connection ID in an IndexResource attached to this agent.
/// The name of an index in an IndexResource attached to this agent.
/// Type of query in an AIIndexResource attached to this agent.
@@ -31,7 +31,7 @@ public AISearchIndexResource(string projectConnectionId)
/// filter string for search resource. [Learn more here](https://learn.microsoft.com/azure/search/search-filters).
/// Index asset id for search resource.
/// Keeps track of any properties unknown to the library.
- internal AISearchIndexResource(string projectConnectionId, string indexName, AzureAISearchQueryType? queryType, int? topK, string filter, string indexAssetId, IDictionary additionalBinaryDataProperties)
+ internal AzureAISearchIndex(string projectConnectionId, string indexName, AzureAISearchQueryType? queryType, int? topK, string filter, string indexAssetId, IDictionary additionalBinaryDataProperties)
{
ProjectConnectionId = projectConnectionId;
IndexName = indexName;
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolResource.Serialization.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolOptions.Serialization.cs
similarity index 66%
rename from sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolResource.Serialization.cs
rename to sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolOptions.Serialization.cs
index 80cc4aa79d8f..faf6ba6017ea 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolResource.Serialization.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolOptions.Serialization.cs
@@ -10,11 +10,11 @@
namespace Azure.AI.Agents
{
/// A set of index resources used by the `azure_ai_search` tool.
- public partial class AzureAISearchToolResource : IJsonModel
+ public partial class AzureAISearchToolOptions : IJsonModel
{
/// The JSON writer.
/// The client options for reading and writing models.
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
writer.WriteStartObject();
JsonModelWriteCore(writer, options);
@@ -25,16 +25,16 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRea
/// The client options for reading and writing models.
protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(AzureAISearchToolResource)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(AzureAISearchToolOptions)} does not support writing '{format}' format.");
}
if (Optional.IsCollectionDefined(Indexes))
{
writer.WritePropertyName("indexes"u8);
writer.WriteStartArray();
- foreach (AISearchIndexResource item in Indexes)
+ foreach (AzureAISearchIndex item in Indexes)
{
writer.WriteObjectValue(item, options);
}
@@ -59,30 +59,30 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
/// The JSON reader.
/// The client options for reading and writing models.
- AzureAISearchToolResource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options);
+ AzureAISearchToolOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => JsonModelCreateCore(ref reader, options);
/// The JSON reader.
/// The client options for reading and writing models.
- protected virtual AzureAISearchToolResource JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ protected virtual AzureAISearchToolOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(AzureAISearchToolResource)} does not support reading '{format}' format.");
+ throw new FormatException($"The model {nameof(AzureAISearchToolOptions)} does not support reading '{format}' format.");
}
using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeAzureAISearchToolResource(document.RootElement, options);
+ return DeserializeAzureAISearchToolOptions(document.RootElement, options);
}
/// The JSON element to deserialize.
/// The client options for reading and writing models.
- internal static AzureAISearchToolResource DeserializeAzureAISearchToolResource(JsonElement element, ModelReaderWriterOptions options)
+ internal static AzureAISearchToolOptions DeserializeAzureAISearchToolOptions(JsonElement element, ModelReaderWriterOptions options)
{
if (element.ValueKind == JsonValueKind.Null)
{
return null;
}
- IList indexes = default;
+ IList indexes = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
foreach (var prop in element.EnumerateObject())
{
@@ -92,10 +92,10 @@ internal static AzureAISearchToolResource DeserializeAzureAISearchToolResource(J
{
continue;
}
- List array = new List();
+ List array = new List();
foreach (var item in prop.Value.EnumerateArray())
{
- array.Add(AISearchIndexResource.DeserializeAISearchIndexResource(item, options));
+ array.Add(AzureAISearchIndex.DeserializeAzureAISearchIndex(item, options));
}
indexes = array;
continue;
@@ -105,47 +105,47 @@ internal static AzureAISearchToolResource DeserializeAzureAISearchToolResource(J
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
}
- return new AzureAISearchToolResource(indexes ?? new ChangeTrackingList(), additionalBinaryDataProperties);
+ return new AzureAISearchToolOptions(indexes ?? new ChangeTrackingList(), additionalBinaryDataProperties);
}
/// The client options for reading and writing models.
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => PersistableModelWriteCore(options);
/// The client options for reading and writing models.
protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options)
{
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
return ModelReaderWriter.Write(this, options, AzureAIAgentsContext.Default);
default:
- throw new FormatException($"The model {nameof(AzureAISearchToolResource)} does not support writing '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(AzureAISearchToolOptions)} does not support writing '{options.Format}' format.");
}
}
/// The data to parse.
/// The client options for reading and writing models.
- AzureAISearchToolResource IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options);
+ AzureAISearchToolOptions IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => PersistableModelCreateCore(data, options);
/// The data to parse.
/// The client options for reading and writing models.
- protected virtual AzureAISearchToolResource PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options)
+ protected virtual AzureAISearchToolOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options)
{
- string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ string format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
using (JsonDocument document = JsonDocument.Parse(data))
{
- return DeserializeAzureAISearchToolResource(document.RootElement, options);
+ return DeserializeAzureAISearchToolOptions(document.RootElement, options);
}
default:
- throw new FormatException($"The model {nameof(AzureAISearchToolResource)} does not support reading '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(AzureAISearchToolOptions)} does not support reading '{options.Format}' format.");
}
}
/// The client options for reading and writing models.
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
}
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolResource.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolOptions.cs
similarity index 61%
rename from sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolResource.cs
rename to sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolOptions.cs
index 13429464a90d..9bd6a1995ac3 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolResource.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/AzureAISearchToolOptions.cs
@@ -8,33 +8,27 @@
namespace Azure.AI.Agents
{
/// A set of index resources used by the `azure_ai_search` tool.
- public partial class AzureAISearchToolResource
+ public partial class AzureAISearchToolOptions
{
/// Keeps track of any properties unknown to the library.
private protected readonly IDictionary _additionalBinaryDataProperties;
- /// Initializes a new instance of .
- public AzureAISearchToolResource()
+ /// Initializes a new instance of .
+ public AzureAISearchToolOptions()
{
- Indexes = new ChangeTrackingList();
+ Indexes = new ChangeTrackingList();
}
- /// Initializes a new instance of .
+ /// Initializes a new instance of .
///
/// The indices attached to this agent. There can be a maximum of 1 index
/// resource attached to the agent.
///
/// Keeps track of any properties unknown to the library.
- internal AzureAISearchToolResource(IList indexes, IDictionary additionalBinaryDataProperties)
+ internal AzureAISearchToolOptions(IList indexes, IDictionary additionalBinaryDataProperties)
{
Indexes = indexes;
_additionalBinaryDataProperties = additionalBinaryDataProperties;
}
-
- ///
- /// The indices attached to this agent. There can be a maximum of 1 index
- /// resource attached to the agent.
- ///
- public IList Indexes { get; }
}
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/WorkflowAgentDefinition.Serialization.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/WorkflowAgentDefinition.Serialization.cs
index d5da6579c83c..2f54c89059fc 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/WorkflowAgentDefinition.Serialization.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/WorkflowAgentDefinition.Serialization.cs
@@ -31,10 +31,10 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri
throw new FormatException($"The model {nameof(WorkflowAgentDefinition)} does not support writing '{format}' format.");
}
base.JsonModelWriteCore(writer, options);
- if (Optional.IsDefined(Workflow))
+ if (Optional.IsDefined(WorkflowYaml))
{
writer.WritePropertyName("workflow"u8);
- writer.WriteStringValue(Workflow);
+ writer.WriteStringValue(WorkflowYaml);
}
}
@@ -66,7 +66,7 @@ internal static WorkflowAgentDefinition DeserializeWorkflowAgentDefinition(JsonE
AgentKind kind = default;
RaiConfig raiConfig = default;
IDictionary additionalBinaryDataProperties = new ChangeTrackingDictionary();
- string workflow = default;
+ string workflowYaml = default;
foreach (var prop in element.EnumerateObject())
{
if (prop.NameEquals("kind"u8))
@@ -85,7 +85,7 @@ internal static WorkflowAgentDefinition DeserializeWorkflowAgentDefinition(JsonE
}
if (prop.NameEquals("workflow"u8))
{
- workflow = prop.Value.GetString();
+ workflowYaml = prop.Value.GetString();
continue;
}
if (options.Format != "W")
@@ -93,7 +93,7 @@ internal static WorkflowAgentDefinition DeserializeWorkflowAgentDefinition(JsonE
additionalBinaryDataProperties.Add(prop.Name, BinaryData.FromString(prop.Value.GetRawText()));
}
}
- return new WorkflowAgentDefinition(kind, raiConfig, additionalBinaryDataProperties, workflow);
+ return new WorkflowAgentDefinition(kind, raiConfig, additionalBinaryDataProperties, workflowYaml);
}
/// The client options for reading and writing models.
diff --git a/sdk/ai/Azure.AI.Agents/src/Generated/Models/WorkflowAgentDefinition.cs b/sdk/ai/Azure.AI.Agents/src/Generated/Models/WorkflowAgentDefinition.cs
index 577a4939bd90..2dbfa9919b7b 100644
--- a/sdk/ai/Azure.AI.Agents/src/Generated/Models/WorkflowAgentDefinition.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Generated/Models/WorkflowAgentDefinition.cs
@@ -19,13 +19,10 @@ public WorkflowAgentDefinition() : base(AgentKind.Workflow)
///
/// Configuration for Responsible AI (RAI) content filtering and safety features.
/// Keeps track of any properties unknown to the library.
- /// The CSDL YAML definition of the workflow.
- internal WorkflowAgentDefinition(AgentKind kind, RaiConfig raiConfig, IDictionary additionalBinaryDataProperties, string workflow) : base(kind, raiConfig, additionalBinaryDataProperties)
+ /// The CSDL YAML definition of the workflow.
+ internal WorkflowAgentDefinition(AgentKind kind, RaiConfig raiConfig, IDictionary additionalBinaryDataProperties, string workflowYaml) : base(kind, raiConfig, additionalBinaryDataProperties)
{
- Workflow = workflow;
+ WorkflowYaml = workflowYaml;
}
-
- /// The CSDL YAML definition of the workflow.
- public string Workflow { get; set; }
}
}
diff --git a/sdk/ai/Azure.AI.Agents/src/Properties/AssemblyInfo.cs b/sdk/ai/Azure.AI.Agents/src/Properties/AssemblyInfo.cs
index d8dc00bbc6da..2874eb9715c4 100644
--- a/sdk/ai/Azure.AI.Agents/src/Properties/AssemblyInfo.cs
+++ b/sdk/ai/Azure.AI.Agents/src/Properties/AssemblyInfo.cs
@@ -1,12 +1,7 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-using System.Reflection;
-using System.Runtime.CompilerServices;
-
-[assembly: InternalsVisibleTo("Azure.AI.Agents.Tests, PublicKey = 0024000004800000940000000602000000240000525341310004000001000100d15ddcb29688295338af4b7686603fe614abd555e09efba8fb88ee09e1f7b1ccaeed2e8f823fa9eef3fdd60217fc012ea67d2479751a0b8c087a4185541b851bd8b16f8d91b840e51b1cb0ba6fe647997e57429265e85ef62d565db50a69ae1647d54d7bd855e4db3d8a91510e5bcbd0edfbbecaa20a7bd9ae74593daa7b11b4")]
-
// Replace Microsoft.Test with the correct resource provider namepace for your service and uncomment.
// See https://docs.microsoft.com/en-us/azure/azure-resource-manager/management/azure-services-resource-providers
// for the list of possible values.
-[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.Template")]
+[assembly: Azure.Core.AzureResourceProviderNamespace("Microsoft.CognitiveServices")]
diff --git a/sdk/ai/Azure.AI.Agents/tests/AgentsSmokeTests.cs b/sdk/ai/Azure.AI.Agents/tests/AgentsSmokeTests.cs
index c3778d2e7b0f..e21b0f3868e0 100644
--- a/sdk/ai/Azure.AI.Agents/tests/AgentsSmokeTests.cs
+++ b/sdk/ai/Azure.AI.Agents/tests/AgentsSmokeTests.cs
@@ -11,6 +11,7 @@
namespace Azure.AI.Agents.Tests;
[Category("Smoke")]
+[SyncOnly]
public class AgentsSmokeTests : AgentsTestBase
{
public AgentsSmokeTests(bool isAsync) : base(isAsync, RecordedTestMode.Live)
@@ -59,14 +60,21 @@ public void TestUseAnAgentTool()
{
ResponseTool.CreateWebSearchTool(),
AgentTool.CreateA2ATool(new Uri("https://test-uri.microsoft.com")),
+ new A2ATool(new Uri("https://test-uri.microsoft.com")),
+ AgentTool.CreateAzureAISearchTool(),
+ new AzureAISearchAgentTool(),
+ AgentTool.CreateAzureAISearchTool(new AzureAISearchToolOptions()
+ {
+ Indexes = { new AzureAISearchIndex(projectConnectionId: "project-foo") { TopK = 42 } }
+ }),
}
};
- Assert.That(responseOptions.Tools, Has.Count.EqualTo(2));
+ Assert.That(responseOptions.Tools, Has.Count.EqualTo(6));
- Assert.That(
- ModelReaderWriter.Write(responseOptions).ToString(),
- Does.Contain("base_url"));
+ string serializedOptions = ModelReaderWriter.Write(responseOptions).ToString();
+ Assert.That(serializedOptions, Does.Contain("base_url"));
+ Assert.That(serializedOptions, Does.Contain("topK"));
OpenAIResponse mockResponse = ModelReaderWriter.Read(BinaryData.FromString("""
{
diff --git a/sdk/ai/Azure.AI.Agents/tests/AgentsTelemetryTests.cs b/sdk/ai/Azure.AI.Agents/tests/AgentsTelemetryTests.cs
index 16046e8a6c71..4840b3c69b5d 100644
--- a/sdk/ai/Azure.AI.Agents/tests/AgentsTelemetryTests.cs
+++ b/sdk/ai/Azure.AI.Agents/tests/AgentsTelemetryTests.cs
@@ -86,9 +86,7 @@ public async Task TestAgentCreateWithTracingActivitySourceDisabled()
{
Environment.SetEnvironmentVariable(TraceContentsEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable(EnableOpenTelemetryEnvironmentVariable, "false", EnvironmentVariableTarget.Process);
- var type = typeof(Azure.AI.Agents.Telemetry.OpenTelemetryScope);
- var methodInfo = type.GetMethod("ReinitializeConfiguration", BindingFlags.Static | BindingFlags.NonPublic);
- methodInfo?.Invoke(null, null);
+ ReinitializeOpenTelemetryScopeConfiguration();
var client = GetTestClient();
var modelDeploymentName = GetModelDeploymentName();
@@ -117,9 +115,7 @@ public async Task TestAgentCreateWithTracingContentRecordingEnabled()
{
Environment.SetEnvironmentVariable(TraceContentsEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable(EnableOpenTelemetryEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
- var type = typeof(Azure.AI.Agents.Telemetry.OpenTelemetryScope);
- var methodInfo = type.GetMethod("ReinitializeConfiguration", BindingFlags.Static | BindingFlags.NonPublic);
- methodInfo?.Invoke(null, null);
+ ReinitializeOpenTelemetryScopeConfiguration();
var client = GetTestClient();
var modelDeploymentName = GetModelDeploymentName();
@@ -149,9 +145,7 @@ public async Task TestAgentCreateWithTracingContentRecordingDisabled()
{
Environment.SetEnvironmentVariable(TraceContentsEnvironmentVariable, "false", EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable(EnableOpenTelemetryEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
- var type = typeof(Azure.AI.Agents.Telemetry.OpenTelemetryScope);
- var methodInfo = type.GetMethod("ReinitializeConfiguration", BindingFlags.Static | BindingFlags.NonPublic);
- methodInfo?.Invoke(null, null);
+ ReinitializeOpenTelemetryScopeConfiguration();
var client = GetTestClient();
var modelDeploymentName = GetModelDeploymentName();
@@ -181,9 +175,7 @@ public async Task TestAgentUpdateWithTracingContentRecordingEnabled()
{
Environment.SetEnvironmentVariable(TraceContentsEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable(EnableOpenTelemetryEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
- var type = typeof(Azure.AI.Agents.Telemetry.OpenTelemetryScope);
- var methodInfo = type.GetMethod("ReinitializeConfiguration", BindingFlags.Static | BindingFlags.NonPublic);
- methodInfo?.Invoke(null, null);
+ ReinitializeOpenTelemetryScopeConfiguration();
var client = GetTestClient();
var modelDeploymentName = GetModelDeploymentName();
@@ -234,9 +226,7 @@ public async Task TestAgentUpdateWithTracingContentRecordingDisabled()
{
Environment.SetEnvironmentVariable(TraceContentsEnvironmentVariable, "false", EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable(EnableOpenTelemetryEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
- var type = typeof(Azure.AI.Agents.Telemetry.OpenTelemetryScope);
- var methodInfo = type.GetMethod("ReinitializeConfiguration", BindingFlags.Static | BindingFlags.NonPublic);
- methodInfo?.Invoke(null, null);
+ ReinitializeOpenTelemetryScopeConfiguration();
var client = GetTestClient();
var modelDeploymentName = GetModelDeploymentName();
@@ -289,9 +279,7 @@ public async Task TestAgentVersionCreateWithTracingContentRecordingEnabled()
{
Environment.SetEnvironmentVariable(TraceContentsEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable(EnableOpenTelemetryEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
- var type = typeof(Azure.AI.Agents.Telemetry.OpenTelemetryScope);
- var methodInfo = type.GetMethod("ReinitializeConfiguration", BindingFlags.Static | BindingFlags.NonPublic);
- methodInfo?.Invoke(null, null);
+ ReinitializeOpenTelemetryScopeConfiguration();
var client = GetTestClient();
var modelDeploymentName = GetModelDeploymentName();
@@ -323,9 +311,7 @@ public async Task TestAgentVersionCreateWithTracingContentRecordingDisabled()
{
Environment.SetEnvironmentVariable(TraceContentsEnvironmentVariable, "false", EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable(EnableOpenTelemetryEnvironmentVariable, "true", EnvironmentVariableTarget.Process);
- var type = typeof(Azure.AI.Agents.Telemetry.OpenTelemetryScope);
- var methodInfo = type.GetMethod("ReinitializeConfiguration", BindingFlags.Static | BindingFlags.NonPublic);
- methodInfo?.Invoke(null, null);
+ ReinitializeOpenTelemetryScopeConfiguration();
var client = GetTestClient();
var modelDeploymentName = GetModelDeploymentName();
@@ -350,6 +336,17 @@ public async Task TestAgentVersionCreateWithTracingContentRecordingDisabled()
CheckCreateAgentVersionTrace(createAgentVersionSpan, modelDeploymentName, agentName, "\"\"");
}
+ private static void ReinitializeOpenTelemetryScopeConfiguration()
+ {
+ Assembly assembly = typeof(AgentsClient).Assembly;
+ Assert.That(assembly, Is.Not.Null);
+ Type openTelemetryScopeType = assembly.GetType("Azure.AI.Agents.OpenTelemetryScope");
+ Assert.That(openTelemetryScopeType, Is.Not.Null);
+ MethodInfo reinitializeConfigurationMethod = openTelemetryScopeType.GetMethod("ReinitializeConfiguration", BindingFlags.Static | BindingFlags.NonPublic);
+ Assert.That(reinitializeConfigurationMethod, Is.Not.Null);
+ reinitializeConfigurationMethod.Invoke(null, null);
+ }
+
#region Helpers
private void CheckCreateAgentTrace(Activity createAgentSpan, string modelName, string agentName, string content)
{
diff --git a/sdk/ai/Azure.AI.Agents/tests/AgentsTests.cs b/sdk/ai/Azure.AI.Agents/tests/AgentsTests.cs
index 25cc75e39f15..1f7a8cbcf6bb 100644
--- a/sdk/ai/Azure.AI.Agents/tests/AgentsTests.cs
+++ b/sdk/ai/Azure.AI.Agents/tests/AgentsTests.cs
@@ -6,6 +6,7 @@
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
+using System.Text.Json.Nodes;
using System.Threading;
using System.Threading.Tasks;
using Microsoft.ClientModel.TestFramework;
@@ -356,7 +357,6 @@ public async Task SimplePromptAgentWithoutConversation()
}
[RecordedTest]
- [Ignore("4771165")]
public async Task ErrorsGiveGoodExceptionMessages()
{
AgentsClient client = GetTestClient();
@@ -375,40 +375,76 @@ public async Task ErrorsGiveGoodExceptionMessages()
}
[Test]
- [Ignore("Bug 4755051")]
+ public async Task StructuredInputsWork()
+ {
+ AgentsClient agentsClient = GetTestClient();
+ OpenAIClient openAIClient = agentsClient.GetOpenAIClient(TestOpenAIClientOptions);
+ OpenAIResponseClient responseClient = openAIClient.GetOpenAIResponseClient(TestEnvironment.MODELDEPLOYMENTNAME);
+
+ AgentVersion agent = await agentsClient.CreateAgentVersionAsync(
+ "TestPromptAgentFromDotnetTests2343",
+ new PromptAgentDefinition(TestEnvironment.MODELDEPLOYMENTNAME)
+ {
+ Instructions = "You are a friendly agent. The name of the user talking to you is {{user_name}}.",
+ StructuredInputs =
+ {
+ ["user_name"] = new StructuredInputDefinition()
+ {
+ DefaultValue = BinaryData.FromObjectAsJson(JsonValue.Create("Ishmael")),
+ }
+ }
+ },
+ new AgentVersionCreationOptions()
+ {
+ Metadata =
+ {
+ ["test_delete_me"] = "true",
+ }
+ });
+
+ ResponseCreationOptions responseOptions = new();
+ responseOptions.SetAgentReference(agent);
+
+ ResponseItem item = ResponseItem.CreateUserMessageItem("What's my name?");
+
+ OpenAIResponse response = await responseClient.CreateResponseAsync([item], responseOptions);
+ Assert.That(response.GetOutputText(), Does.Contain("Ishmael"));
+
+ responseOptions.AddStructuredInput("user_name", "Mr. Jingles");
+ response = await responseClient.CreateResponseAsync([item], responseOptions);
+ Assert.That(response.GetOutputText(), Does.Contain("Mr. Jingles"));
+
+ responseOptions.SetStructuredInputs(BinaryData.FromString("""
+ {
+ "user_name": "Le Flufferkins"
+ }
+ """));
+ response = await responseClient.CreateResponseAsync([item], responseOptions);
+ Assert.That(response.GetOutputText(), Does.Contain("Le Flufferkins"));
+ }
+
+ [Test]
public async Task SimpleWorkflowAgent()
{
AgentsClient agentsClient = GetTestClient();
OpenAIClient openAIClient = agentsClient.GetOpenAIClient(TestOpenAIClientOptions);
OpenAIResponseClient responseClient = openAIClient.GetOpenAIResponseClient(TestEnvironment.MODELDEPLOYMENTNAME);
- AgentDefinition workflowAgentDefinition = new WorkflowAgentDefinition()
- {
- TriggerBytes = MATH_TUTOR_TRIGGER_BYTES,
- };
+ AgentDefinition workflowAgentDefinition = WorkflowAgentDefinition.FromYaml(s_HelloWorkflowYaml);
string agentName = null;
string agentVersion = null;
- AgentRecord existingAgent = await agentsClient.GetAgentAsync("TestWorkflowAgentFromDotnet");
- if (existingAgent is not null)
- {
- agentName = existingAgent.Name;
- agentVersion = existingAgent.Versions.Latest.Version;
- }
- else
- {
- AgentVersion newAgentVersion = await agentsClient.CreateAgentVersionAsync(
- "TestWorkflowAgentFromDotnet",
- workflowAgentDefinition,
- new AgentVersionCreationOptions()
- {
- Description = "A test agent created from the .NET SDK automation suite",
- Metadata = { ["freely_deleteable"] = "true" },
- });
- agentName = newAgentVersion.Name;
- agentVersion = newAgentVersion.Version;
- }
+ AgentVersion newAgentVersion = await agentsClient.CreateAgentVersionAsync(
+ "TestWorkflowAgentFromDotnet234",
+ workflowAgentDefinition,
+ new AgentVersionCreationOptions()
+ {
+ Description = "A test agent created from the .NET SDK automation suite",
+ Metadata = { ["freely_deleteable"] = "true" },
+ });
+ agentName = newAgentVersion.Name;
+ agentVersion = newAgentVersion.Version;
AgentConversation newConversation = await agentsClient.GetConversationClient().CreateConversationAsync();
@@ -430,42 +466,27 @@ public async Task SimpleWorkflowAgent()
}
[Test]
- [Ignore("Bug 4755051")]
public async Task SimpleWorkflowAgentStreaming()
{
- if (!IsAsync && Mode != RecordedTestMode.Live)
- Assert.Inconclusive(STREAMING_CONSTRAINT);
AgentsClient agentsClient = GetTestClient();
OpenAIClient openAIClient = agentsClient.GetOpenAIClient(TestOpenAIClientOptions);
OpenAIResponseClient responseClient = openAIClient.GetOpenAIResponseClient(TestEnvironment.MODELDEPLOYMENTNAME);
- AgentDefinition workflowAgentDefinition = new WorkflowAgentDefinition()
- {
- TriggerBytes = MATH_TUTOR_TRIGGER_BYTES,
- };
+ AgentDefinition workflowAgentDefinition = WorkflowAgentDefinition.FromYaml(s_HelloWorkflowYaml);
string agentName = null;
string agentVersion = null;
- AgentRecord existingAgent = await agentsClient.GetAgentAsync("TestWorkflowAgentFromDotnet");
- if (existingAgent is not null)
- {
- agentName = existingAgent.Name;
- agentVersion = existingAgent.Versions.Latest.Version;
- }
- else
- {
- AgentVersion newAgentVersion = await agentsClient.CreateAgentVersionAsync(
- "TestWorkflowAgentFromDotnet",
- workflowAgentDefinition,
- new AgentVersionCreationOptions()
- {
- Description = "A test agent created from the .NET SDK automation suite",
- Metadata = { ["freely_deleteable"] = "true" },
- });
- agentName = newAgentVersion.Name;
- agentVersion = newAgentVersion.Version;
- }
+ AgentVersion newAgentVersion = await agentsClient.CreateAgentVersionAsync(
+ "TestWorkflowAgentFromDotnet234",
+ workflowAgentDefinition,
+ new AgentVersionCreationOptions()
+ {
+ Description = "A test agent created from the .NET SDK automation suite",
+ Metadata = { ["freely_deleteable"] = "true" },
+ });
+ agentName = newAgentVersion.Name;
+ agentVersion = newAgentVersion.Version;
AgentConversation newConversation = await agentsClient.GetConversationClient().CreateConversationAsync();
@@ -547,10 +568,11 @@ public async Task TestMemorySearch(bool useConversation)
// Create an empty scope and make sure we cannot find anything.
string scope = "Test scope";
memoryClient.UpdateMemories(store.Id, scope, items: []);
- MemorySearchOptions opts = new(
- maxMemories: 1,
- items: [ResponseItem.CreateUserMessageItem("Name your favorite animal")],
- additionalBinaryDataProperties: null);
+ MemorySearchOptions opts = new()
+ {
+ MaxMemories = 1,
+ Items = { ResponseItem.CreateUserMessageItem("Name your favorite animal") },
+ };
MemoryStoreSearchResponse resp = await memoryClient.SearchMemoriesAsync(
memoryStoreId: store.Id,
scope: scope,
@@ -799,98 +821,16 @@ public async Task TestFunctionToolMultiturnWithPersistence(TestItemPersistenceMo
Assert.That(response.GetOutputText().ToLower(), Does.Contain(replyToFunctionCall.ToLower()));
}
- private static BinaryData MATH_TUTOR_TRIGGER_BYTES = BinaryData.FromString("""
- {
- "kind": "OnConversationStart",
- "id": "my_workflow",
- "actions": [
- {
- "kind": "SetVariable",
- "id": "set_variable_input_task",
- "variable": "Local.LatestMessage",
- "value": "=UserMessage(System.LastMessageText)"
- },
- {
- "kind": "CreateConversation",
- "id": "create_student_conversation",
- "conversationId": "Local.StudentConversationId"
- },
- {
- "kind": "CreateConversation",
- "id": "create_teacher_conversation",
- "conversationId": "Local.TeacherConversationId"
- },
- {
- "kind": "InvokeAzureAgent",
- "id": "student_agent",
- "description": "The student node",
- "conversationId": "=Local.StudentConversationId",
- "agent": {
- "name": "StudentAgent_123"
- },
- "input": {
- "messages": "=Local.LatestMessage"
- },
- "output": {
- "messages": "Local.LatestMessage"
- }
- },
- {
- "kind": "InvokeAzureAgent",
- "id": "teacher_agent",
- "description": "The teacher node",
- "conversationId": "=Local.TeacherConversationId",
- "agent": {
- "name": "TeacherAgent_123"
- },
- "input": {
- "messages": "=Local.LatestMessage"
- },
- "output": {
- "messages": "Local.LatestMessage"
- }
- },
- {
- "kind": "SetVariable",
- "id": "set_variable_turncount",
- "variable": "Local.TurnCount",
- "value": "=Local.TurnCount + 1"
- },
- {
- "kind": "ConditionGroup",
- "id": "completion_check",
- "conditions": [
- {
- "condition": "=!IsBlank(Find(\"[COMPLETE]\", Upper(Last(Local.LatestMessage).Text)))",
- "id": "check_done",
- "actions": [
- {
- "kind": "EndConversation",
- "id": "end_workflow"
- }
- ]
- },
- {
- "condition": "=Local.TurnCount >= 4",
- "id": "check_turn_count_exceeded",
- "actions": [
- {
- "kind": "SendActivity",
- "id": "send_activity_tired",
- "activity": "Let's try again later...I am tired."
- }
- ]
- }
- ],
- "elseActions": [
- {
- "kind": "GotoAction",
- "id": "goto_student_agent",
- "actionId": "student_agent"
- }
- ]
- }
- ]
- }
- """);
+ private static readonly string s_HelloWorkflowYaml = """
+ kind: workflow
+ trigger:
+ kind: OnConversationStart
+ id: my_workflow
+ actions:
+ - kind: SendActivity
+ id: sendActivity_welcome
+ activity: hello world
+ - kind: EndConversation
+ id: end_conversation
+ """;
}
diff --git a/sdk/ai/Azure.AI.Agents/tests/Azure.AI.Agents.Tests.csproj b/sdk/ai/Azure.AI.Agents/tests/Azure.AI.Agents.Tests.csproj
index 9a3abb8d9303..7e594863210b 100644
--- a/sdk/ai/Azure.AI.Agents/tests/Azure.AI.Agents.Tests.csproj
+++ b/sdk/ai/Azure.AI.Agents/tests/Azure.AI.Agents.Tests.csproj
@@ -22,7 +22,7 @@
-
+
diff --git a/sdk/ai/Azure.AI.Agents/tests/ResponsesParityTests.cs b/sdk/ai/Azure.AI.Agents/tests/ResponsesParityTests.cs
index 5d113761faa2..3e4970029288 100644
--- a/sdk/ai/Azure.AI.Agents/tests/ResponsesParityTests.cs
+++ b/sdk/ai/Azure.AI.Agents/tests/ResponsesParityTests.cs
@@ -27,6 +27,7 @@ public ResponsesParityTests(bool isAsync) : base(isAsync)
}
[RecordedTest]
+ [Ignore("Pending CI failure investigation (local recording seems fine)")]
public async Task FileSearchToolWorks()
{
AgentsClient agentsClient = GetTestClient();
diff --git a/sdk/ai/Azure.AI.Agents/tests/Samples/Sample_MemorySearchTool.cs b/sdk/ai/Azure.AI.Agents/tests/Samples/Sample_MemorySearchTool.cs
index e4004edc8ae2..d0c43e86a057 100644
--- a/sdk/ai/Azure.AI.Agents/tests/Samples/Sample_MemorySearchTool.cs
+++ b/sdk/ai/Azure.AI.Agents/tests/Samples/Sample_MemorySearchTool.cs
@@ -88,10 +88,11 @@ public async Task MemorySearchToolAsync()
memoryClient.UpdateMemories(memoryStore.Id, scope, updateItems);
#endregion
#region Snippet:Sample_CheckMemorySearch_Async
- MemorySearchOptions opts = new(
- maxMemories: 1,
- items: [ResponseItem.CreateUserMessageItem("What was the joke?")],
- additionalBinaryDataProperties: null);
+ MemorySearchOptions opts = new()
+ {
+ MaxMemories = 1,
+ Items = { ResponseItem.CreateUserMessageItem("What was the joke?") },
+ };
MemoryStoreSearchResponse resp = await memoryClient.SearchMemoriesAsync(
memoryStoreId: memoryStore.Id,
scope: scope,
@@ -208,10 +209,11 @@ public void MemorySearchTool()
memoryClient.UpdateMemories(memoryStore.Id, scope, updateItems);
#endregion
#region Snippet:Sample_CheckMemorySearch_Sync
- MemorySearchOptions opts = new(
- maxMemories: 1,
- items: [ResponseItem.CreateUserMessageItem("What was the joke?")],
- additionalBinaryDataProperties: null);
+ MemorySearchOptions opts = new()
+ {
+ MaxMemories = 1,
+ Items = { ResponseItem.CreateUserMessageItem("What was the joke?") },
+ };
MemoryStoreSearchResponse resp = memoryClient.SearchMemories(
memoryStoreId: memoryStore.Id,
scope: scope,
diff --git a/sdk/ai/Azure.AI.Projects/CHANGELOG.md b/sdk/ai/Azure.AI.Projects/CHANGELOG.md
index abc8097bfc08..b1076d78a9de 100644
--- a/sdk/ai/Azure.AI.Projects/CHANGELOG.md
+++ b/sdk/ai/Azure.AI.Projects/CHANGELOG.md
@@ -1,6 +1,6 @@
# Release History
-## 1.1.0-beta.1 (Unreleased)
+## 1.2.0-beta.1 (Unreleased)
### Features Added
@@ -9,7 +9,14 @@
### Bugs Fixed
### Other Changes
-* Added `files` samples for operations create, delete, list, retrieve and download.
+
+## 1.1.0 (2025-11-03)
+
+### Features Added
+
+- Remove `clientRequestId` parameter from `AIProjectConnectionsOperations` and `AIProjectDeploymentsOperations` methods as this value is controlled transparently by `System.ClientModel`.
+- Remove `type` parameter from `AzureAIProjectsModelFactory.BlobReferenceSasCredential` as this is a hardcoded value.
+- Remove `pendingUploadType` parameter from `AzureAIProjectsModelFactory.PendingUploadRequest` and `AzureAIProjectsModelFactory.PendingUploadConfiguration` as this is a hardcoded value.
## 1.0.0 (2025-10-01)
@@ -82,7 +89,7 @@
`AIProjectsClient` to create, run and delete agents. However there have been some breaking changes in these operations. See [Agents package document and samples](https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent) for more details.
* Several changes to the `Connections` methods, including the response object (now it is simply called `Connection`). The class `ConnectionProperties` was renamed to `Connection`, and its properties have changed.
* `GetAzureOpenAIChatClient` now supports returning an authenticated `AzureOpenAI` ChatClient to be used with
-AI models deployed to the Project's AI Services.
+AI models deployed to the Project's AI Services.
* The method `UploadFileRequest` on `AIProjectClient` had been removed, use `UploadFile` in `Datasets` instead.
* Property `scope` on `AIProjectClient` is removed.
* Evaluator Ids are available using the class `EvaluatorIDs` and no longer require `Azure.AI.Evaluation` package to be installed.
diff --git a/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs b/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs
index a77c91049300..8fd2abe81480 100644
--- a/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs
+++ b/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.net8.0.cs
@@ -199,11 +199,29 @@ public partial class AIProjectConnectionsOperations
{
protected AIProjectConnectionsOperations() { }
public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } }
- public Azure.AI.Projects.AIProjectConnection GetConnection(string connectionName, bool includeCredentials = false, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public System.Threading.Tasks.Task> GetConnectionAsync(string connectionName, bool includeCredentials = false, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.ClientModel.CollectionResult GetConnections(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool? defaultConnection = default(bool?), string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnection(string connectionName, bool includeCredentials, CancellationToken cancellationToken) instead.")]
+ public Azure.AI.Projects.AIProjectConnection GetConnection(string connectionName, bool includeCredentials, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public Azure.AI.Projects.AIProjectConnection GetConnection(string connectionName, bool includeCredentials = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnectionAsync(string connectionName, bool includeCredentials, CancellationToken cancellationToken) instead.")]
+ public System.Threading.Tasks.Task> GetConnectionAsync(string connectionName, bool includeCredentials, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public System.Threading.Tasks.Task> GetConnectionAsync(string connectionName, bool includeCredentials = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnections(ConnectionType? connectionType, bool? defaultConnection, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.CollectionResult GetConnections(Azure.AI.Projects.ConnectionType? connectionType, bool? defaultConnection, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.CollectionResult GetConnections(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool? defaultConnection = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.ClientModel.Primitives.CollectionResult GetConnections(string connectionType, bool? defaultConnection, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnections(string connectionType, bool? defaultConnection, RequestOptions options) instead.")]
public virtual System.ClientModel.Primitives.CollectionResult GetConnections(string connectionType, bool? defaultConnection, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
- public virtual System.ClientModel.AsyncCollectionResult GetConnectionsAsync(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool? defaultConnection = default(bool?), string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnectionsAsync(ConnectionType? connectionType, bool? defaultConnection, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.AsyncCollectionResult GetConnectionsAsync(Azure.AI.Projects.ConnectionType? connectionType, bool? defaultConnection, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.AsyncCollectionResult GetConnectionsAsync(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool? defaultConnection = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConnectionsAsync(string connectionType, bool? defaultConnection, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnectionsAsync(string connectionType, bool? defaultConnection, RequestOptions options) instead.")]
public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConnectionsAsync(string connectionType, bool? defaultConnection, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
public Azure.AI.Projects.AIProjectConnection GetDefaultConnection(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool includeCredentials = false) { throw null; }
public System.Threading.Tasks.Task GetDefaultConnectionAsync(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool includeCredentials = false) { throw null; }
@@ -302,13 +320,37 @@ public partial class AIProjectDeploymentsOperations
{
protected AIProjectDeploymentsOperations() { }
public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } }
+ public virtual System.ClientModel.ClientResult GetDeployment(string name, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeployment(string name, RequestOptions options) instead.")]
public virtual System.ClientModel.ClientResult GetDeployment(string name, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
- public virtual System.ClientModel.ClientResult GetDeployment(string name, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentAsync(string name, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.ClientResult GetDeployment(string name, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.ClientResult GetDeployment(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task GetDeploymentAsync(string name, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentAsync(string name, RequestOptions options) instead.")]
public virtual System.Threading.Tasks.Task GetDeploymentAsync(string name, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
- public virtual System.Threading.Tasks.Task> GetDeploymentAsync(string name, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.ClientModel.CollectionResult GetDeployments(string modelPublisher = null, string modelName = null, Azure.AI.Projects.AIProjectDeploymentType? deploymentType = default(Azure.AI.Projects.AIProjectDeploymentType?), string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentAsync(string name, CancellationToken cancellationToken) instead.")]
+ public virtual System.Threading.Tasks.Task> GetDeploymentAsync(string name, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetDeploymentAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentsAsync(string modelPublisher, string modelName, AIProjectDeploymentType? deploymentType, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.CollectionResult GetDeployments(string modelPublisher, string modelName, Azure.AI.Projects.AIProjectDeploymentType? deploymentType, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.CollectionResult GetDeployments(string modelPublisher = null, string modelName = null, Azure.AI.Projects.AIProjectDeploymentType? deploymentType = default(Azure.AI.Projects.AIProjectDeploymentType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.ClientModel.Primitives.CollectionResult GetDeployments(string modelPublisher, string modelName, string deploymentType, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeployments(string modelPublisher, string modelName, string deploymentType, RequestOptions options) instead.")]
public virtual System.ClientModel.Primitives.CollectionResult GetDeployments(string modelPublisher, string modelName, string deploymentType, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
- public virtual System.ClientModel.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher = null, string modelName = null, Azure.AI.Projects.AIProjectDeploymentType? deploymentType = default(Azure.AI.Projects.AIProjectDeploymentType?), string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentsAsync(string modelPublisher, string modelName, AIProjectDeploymentType? deploymentType, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher, string modelName, Azure.AI.Projects.AIProjectDeploymentType? deploymentType, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher = null, string modelName = null, Azure.AI.Projects.AIProjectDeploymentType? deploymentType = default(Azure.AI.Projects.AIProjectDeploymentType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.ClientModel.Primitives.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher, string modelName, string deploymentType, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentsAsync(string modelPublisher, string modelName, string deploymentType, RequestOptions options) instead.")]
public virtual System.ClientModel.Primitives.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher, string modelName, string deploymentType, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
diff --git a/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs b/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs
index a77c91049300..8fd2abe81480 100644
--- a/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs
+++ b/sdk/ai/Azure.AI.Projects/api/Azure.AI.Projects.netstandard2.0.cs
@@ -199,11 +199,29 @@ public partial class AIProjectConnectionsOperations
{
protected AIProjectConnectionsOperations() { }
public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } }
- public Azure.AI.Projects.AIProjectConnection GetConnection(string connectionName, bool includeCredentials = false, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public System.Threading.Tasks.Task> GetConnectionAsync(string connectionName, bool includeCredentials = false, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.ClientModel.CollectionResult GetConnections(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool? defaultConnection = default(bool?), string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnection(string connectionName, bool includeCredentials, CancellationToken cancellationToken) instead.")]
+ public Azure.AI.Projects.AIProjectConnection GetConnection(string connectionName, bool includeCredentials, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public Azure.AI.Projects.AIProjectConnection GetConnection(string connectionName, bool includeCredentials = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnectionAsync(string connectionName, bool includeCredentials, CancellationToken cancellationToken) instead.")]
+ public System.Threading.Tasks.Task> GetConnectionAsync(string connectionName, bool includeCredentials, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public System.Threading.Tasks.Task> GetConnectionAsync(string connectionName, bool includeCredentials = false, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnections(ConnectionType? connectionType, bool? defaultConnection, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.CollectionResult GetConnections(Azure.AI.Projects.ConnectionType? connectionType, bool? defaultConnection, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.CollectionResult GetConnections(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool? defaultConnection = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.ClientModel.Primitives.CollectionResult GetConnections(string connectionType, bool? defaultConnection, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnections(string connectionType, bool? defaultConnection, RequestOptions options) instead.")]
public virtual System.ClientModel.Primitives.CollectionResult GetConnections(string connectionType, bool? defaultConnection, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
- public virtual System.ClientModel.AsyncCollectionResult GetConnectionsAsync(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool? defaultConnection = default(bool?), string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnectionsAsync(ConnectionType? connectionType, bool? defaultConnection, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.AsyncCollectionResult GetConnectionsAsync(Azure.AI.Projects.ConnectionType? connectionType, bool? defaultConnection, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.AsyncCollectionResult GetConnectionsAsync(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool? defaultConnection = default(bool?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConnectionsAsync(string connectionType, bool? defaultConnection, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetConnectionsAsync(string connectionType, bool? defaultConnection, RequestOptions options) instead.")]
public virtual System.ClientModel.Primitives.AsyncCollectionResult GetConnectionsAsync(string connectionType, bool? defaultConnection, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
public Azure.AI.Projects.AIProjectConnection GetDefaultConnection(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool includeCredentials = false) { throw null; }
public System.Threading.Tasks.Task GetDefaultConnectionAsync(Azure.AI.Projects.ConnectionType? connectionType = default(Azure.AI.Projects.ConnectionType?), bool includeCredentials = false) { throw null; }
@@ -302,13 +320,37 @@ public partial class AIProjectDeploymentsOperations
{
protected AIProjectDeploymentsOperations() { }
public System.ClientModel.Primitives.ClientPipeline Pipeline { get { throw null; } }
+ public virtual System.ClientModel.ClientResult GetDeployment(string name, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeployment(string name, RequestOptions options) instead.")]
public virtual System.ClientModel.ClientResult GetDeployment(string name, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
- public virtual System.ClientModel.ClientResult GetDeployment(string name, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentAsync(string name, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.ClientResult GetDeployment(string name, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.ClientResult GetDeployment(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.Threading.Tasks.Task GetDeploymentAsync(string name, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentAsync(string name, RequestOptions options) instead.")]
public virtual System.Threading.Tasks.Task GetDeploymentAsync(string name, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
- public virtual System.Threading.Tasks.Task> GetDeploymentAsync(string name, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
- public virtual System.ClientModel.CollectionResult GetDeployments(string modelPublisher = null, string modelName = null, Azure.AI.Projects.AIProjectDeploymentType? deploymentType = default(Azure.AI.Projects.AIProjectDeploymentType?), string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentAsync(string name, CancellationToken cancellationToken) instead.")]
+ public virtual System.Threading.Tasks.Task> GetDeploymentAsync(string name, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.Threading.Tasks.Task> GetDeploymentAsync(string name, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentsAsync(string modelPublisher, string modelName, AIProjectDeploymentType? deploymentType, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.CollectionResult GetDeployments(string modelPublisher, string modelName, Azure.AI.Projects.AIProjectDeploymentType? deploymentType, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.CollectionResult GetDeployments(string modelPublisher = null, string modelName = null, Azure.AI.Projects.AIProjectDeploymentType? deploymentType = default(Azure.AI.Projects.AIProjectDeploymentType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.ClientModel.Primitives.CollectionResult GetDeployments(string modelPublisher, string modelName, string deploymentType, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeployments(string modelPublisher, string modelName, string deploymentType, RequestOptions options) instead.")]
public virtual System.ClientModel.Primitives.CollectionResult GetDeployments(string modelPublisher, string modelName, string deploymentType, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
- public virtual System.ClientModel.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher = null, string modelName = null, Azure.AI.Projects.AIProjectDeploymentType? deploymentType = default(Azure.AI.Projects.AIProjectDeploymentType?), string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentsAsync(string modelPublisher, string modelName, AIProjectDeploymentType? deploymentType, CancellationToken cancellationToken) instead.")]
+ public virtual System.ClientModel.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher, string modelName, Azure.AI.Projects.AIProjectDeploymentType? deploymentType, string clientRequestId, System.Threading.CancellationToken cancellationToken) { throw null; }
+ public virtual System.ClientModel.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher = null, string modelName = null, Azure.AI.Projects.AIProjectDeploymentType? deploymentType = default(Azure.AI.Projects.AIProjectDeploymentType?), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; }
+ public virtual System.ClientModel.Primitives.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher, string modelName, string deploymentType, System.ClientModel.Primitives.RequestOptions options) { throw null; }
+ [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)]
+ [System.ObsoleteAttribute("This method is obsolete as the clientRequestId parameter is not used. Please use GetDeploymentsAsync(string modelPublisher, string modelName, string deploymentType, RequestOptions options) instead.")]
public virtual System.ClientModel.Primitives.AsyncCollectionResult GetDeploymentsAsync(string modelPublisher, string modelName, string deploymentType, string clientRequestId, System.ClientModel.Primitives.RequestOptions options) { throw null; }
}
[System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)]
diff --git a/sdk/ai/Azure.AI.Projects/assets.json b/sdk/ai/Azure.AI.Projects/assets.json
index 4f5d893abf52..34a5c7594ddc 100644
--- a/sdk/ai/Azure.AI.Projects/assets.json
+++ b/sdk/ai/Azure.AI.Projects/assets.json
@@ -2,5 +2,5 @@
"AssetsRepo": "Azure/azure-sdk-assets",
"AssetsRepoPrefixPath": "net",
"TagPrefix": "net/ai/Azure.AI.Projects",
- "Tag": "net/ai/Azure.AI.Projects_a5869f551c"
+ "Tag": "net/ai/Azure.AI.Projects_c11aeaf283"
}
diff --git a/sdk/ai/Azure.AI.Projects/samples/Sample15_Files.md b/sdk/ai/Azure.AI.Projects/samples/Sample15_Files.md
index a5498c8df3f0..55e86eef0ea5 100644
--- a/sdk/ai/Azure.AI.Projects/samples/Sample15_Files.md
+++ b/sdk/ai/Azure.AI.Projects/samples/Sample15_Files.md
@@ -9,10 +9,6 @@ This sample demonstrates how to use file operations with OpenAI Files API throug
- Set the following environment variables:
- `PROJECT_ENDPOINT`: The Azure AI Project endpoint, as found in the overview page of your Azure AI Foundry project.
-## Important Note
-
-File upload via OpenAIClient from AgentsClient.GetOpenAIClient() is not currently supported because it doesn't set the required Content-Type header for individual multipart form parts. The sample demonstrates other file operations using pre-existing file IDs.
-
## Asynchronous Sample
```C# Snippet:AI_Projects_FileOperationsAsync
@@ -22,7 +18,15 @@ AgentsClient agentClient = projectClient.GetAgentsClient();
OpenAIClient oaiClient = agentClient.GetOpenAIClient();
OpenAIFileClient fileClient = oaiClient.GetOpenAIFileClient();
-string fileId = "file-abc123"; // Replace with an actual file ID from your project
+// Upload a file
+using FileStream fileStream = File.OpenRead("path/to/your/file.jsonl");
+OpenAIFile uploadedFile = await fileClient.UploadFileAsync(
+ fileStream,
+ "training_data.jsonl",
+ FileUploadPurpose.FineTune);
+Console.WriteLine($"File uploaded: {uploadedFile.Id}");
+
+string fileId = uploadedFile.Id;
// Retrieve file metadata
OpenAIFile retrievedFile = await fileClient.GetFileAsync(fileId);
diff --git a/sdk/ai/Azure.AI.Projects/src/Azure.AI.Projects.csproj b/sdk/ai/Azure.AI.Projects/src/Azure.AI.Projects.csproj
index 32a9966c3031..909a0f5a7867 100644
--- a/sdk/ai/Azure.AI.Projects/src/Azure.AI.Projects.csproj
+++ b/sdk/ai/Azure.AI.Projects/src/Azure.AI.Projects.csproj
@@ -2,9 +2,9 @@