diff --git a/.github/CODEOWNERS b/.github/CODEOWNERS
index ea7cc9035abc..7f4a4ac0b76c 100644
--- a/.github/CODEOWNERS
+++ b/.github/CODEOWNERS
@@ -753,6 +753,12 @@
# ServiceLabel: %Notification Hub
# ServiceOwners: @tjsomasundaram
+# PRLabel: %Online Experimentation
+/sdk/onlineexperimentation/ @Azure/azure-sdk-write-onlineexperimentation
+
+# ServiceLabel: %Online Experimentation
+# ServiceOwners: @Azure/azure-sdk-write-onlineexperimentation
+
# PRLabel: %OpenAI
/sdk/openai/ @jpalvarezl @trrwilson @joseharriaga @m-nash @ralph-msft
@@ -1050,10 +1056,13 @@
# ServiceOwners: @alluri02
# PRLabel: %Network - CDN
-/sdk/cdn/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978
+/sdk/cdn/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978 @Ptnan7
# PRLabel: %Network - Front Door
-/sdk/frontdoor/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978
+/sdk/frontdoor/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978 @Ptnan7
+
+# ServiceLabel: %Network - Front Door %Mgmt
+# ServiceOwners: @Ptnan7
# PRLabel: %Network - Mobile
/sdk/mobilenetwork/Azure.ResourceManager.*/ @ArcturusZhang @ArthurMa1978
@@ -1082,6 +1091,12 @@
# ServiceLabel: %Pinecone %Mgmt
# ServiceOwners: @aggarwalsw
+# PRLabel: %PureStorage
+/sdk/purestorageblock/Azure.ResourceManager.*/ @deepakmauryams
+
+# ServiceLabel: %PureStorage %Mgmt
+# ServiceOwners: @deepakmauryams
+
# PRLabel: %Quota
/sdk/quota/Azure.ResourceManager.*/ @tejasm-microsoft
@@ -1100,8 +1115,8 @@
# ServiceLabel: %Recovery Services Data-Replication %Mgmt
# ServiceOwners: @helen-afework
-# (Remove this when uncommenting path) PRLabel: %Secret Store Extension
-#/sdk/edgeworkloadsecurity/Azure.ResourceManager.*/ @cjoprey @locomotiveviaduct
+# PRLabel: %Secret Store Extension
+/sdk/secretsstoreextension/Azure.ResourceManager.*/ @cjoprey @locomotiveviaduct
# ServiceLabel: %Secret Store Extension %Mgmt
# ServiceOwners: @cjoprey @locomotiveviaduct
diff --git a/.vscode/cspell.json b/.vscode/cspell.json
index 193a39b1a633..8a66b878399f 100644
--- a/.vscode/cspell.json
+++ b/.vscode/cspell.json
@@ -197,7 +197,15 @@
{
"filename": "**/sdk/ai/**/*.cs",
"words": [
- "Ubinary"
+ "Ubinary",
+ "Ansii",
+ "Atbash",
+ "Bleu",
+ "azureai",
+ "bleu",
+ "azureai",
+ "Gleu",
+ "gleu"
]
},
{
diff --git a/doc/GeneratorMigration/Library_Inventory.md b/doc/GeneratorMigration/Library_Inventory.md
new file mode 100644
index 000000000000..2ff5592b3878
--- /dev/null
+++ b/doc/GeneratorMigration/Library_Inventory.md
@@ -0,0 +1,451 @@
+# Azure SDK for .NET Libraries Inventory
+
+## Summary
+
+- Total libraries: 391
+- Management Plane (Swagger): 177
+- Management Plane (TSP-Old): 29
+- Management Plane (TypeSpec - @azure-typespec/http-client-csharp): 0
+- Data Plane (Swagger): 114
+- Data Plane (TSP-Old): 32
+- Data Plane (TypeSpec - @azure-typespec/http-client-csharp): 2
+- No generator: 37
+
+
+## Data Plane Libraries using TypeSpec (@azure-typespec/http-client-csharp)
+
+TypeSpec with @azure-typespec/http-client-csharp generator is detected by the presence of a tsp-location.yaml file with an emitterPackageJsonPath value referencing @azure-typespec/http-client-csharp, or through special handling for specific libraries. Total: 2
+
+| Service | Library | Path |
+| ------- | ------- | ---- |
+| eventgrid | Azure.Messaging.EventGrid.Namespaces | sdk/eventgrid/Azure.Messaging.EventGrid.Namespaces |
+| openai | Azure.AI.OpenAI | sdk/openai/Azure.AI.OpenAI |
+
+
+## Data 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: 32
+
+| Service | Library | Path |
+| ------- | ------- | ---- |
+| ai | Azure.AI.Agents.Persistent | sdk/ai/Azure.AI.Agents.Persistent |
+| ai | Azure.AI.Inference | sdk/ai/Azure.AI.Inference |
+| ai | Azure.AI.Projects | sdk/ai/Azure.AI.Projects |
+| anomalydetector | Azure.AI.AnomalyDetector | sdk/anomalydetector/Azure.AI.AnomalyDetector |
+| batch | Azure.Compute.Batch | sdk/batch/Azure.Compute.Batch |
+| cognitivelanguage | Azure.AI.Language.Conversations | sdk/cognitivelanguage/Azure.AI.Language.Conversations |
+| cognitivelanguage | Azure.AI.Language.Conversations.Authoring | sdk/cognitivelanguage/Azure.AI.Language.Conversations.Authoring |
+| cognitivelanguage | Azure.AI.Language.Text | sdk/cognitivelanguage/Azure.AI.Language.Text |
+| cognitivelanguage | Azure.AI.Language.Text.Authoring | sdk/cognitivelanguage/Azure.AI.Language.Text.Authoring |
+| communication | Azure.Communication.JobRouter | sdk/communication/Azure.Communication.JobRouter |
+| communication | Azure.Communication.Messages | sdk/communication/Azure.Communication.Messages |
+| communication | Azure.Communication.ProgrammableConnectivity | sdk/communication/Azure.Communication.ProgrammableConnectivity |
+| confidentialledger | Azure.Security.CodeTransparency | sdk/confidentialledger/Azure.Security.CodeTransparency |
+| contentsafety | Azure.AI.ContentSafety | sdk/contentsafety/Azure.AI.ContentSafety |
+| devcenter | Azure.Developer.DevCenter | sdk/devcenter/Azure.Developer.DevCenter |
+| documentintelligence | Azure.AI.DocumentIntelligence | sdk/documentintelligence/Azure.AI.DocumentIntelligence |
+| easm | Azure.Analytics.Defender.Easm | sdk/easm/Azure.Analytics.Defender.Easm |
+| eventgrid | Azure.Messaging.EventGrid.SystemEvents | sdk/eventgrid/Azure.Messaging.EventGrid.SystemEvents |
+| face | Azure.AI.Vision.Face | sdk/face/Azure.AI.Vision.Face |
+| healthdataaiservices | Azure.Health.Deidentification | sdk/healthdataaiservices/Azure.Health.Deidentification |
+| healthinsights | Azure.Health.Insights.CancerProfiling | sdk/healthinsights/Azure.Health.Insights.CancerProfiling |
+| healthinsights | Azure.Health.Insights.ClinicalMatching | sdk/healthinsights/Azure.Health.Insights.ClinicalMatching |
+| healthinsights | Azure.Health.Insights.RadiologyInsights | sdk/healthinsights/Azure.Health.Insights.RadiologyInsights |
+| keyvault | Azure.Security.KeyVault.Administration | sdk/keyvault/Azure.Security.KeyVault.Administration |
+| loadtestservice | Azure.Developer.LoadTesting | sdk/loadtestservice/Azure.Developer.LoadTesting |
+| onlineexperimentation | Azure.Analytics.OnlineExperimentation | sdk/onlineexperimentation/Azure.Analytics.OnlineExperimentation |
+| openai | Azure.AI.OpenAI.Assistants | sdk/openai/Azure.AI.OpenAI.Assistants |
+| purview | Azure.Analytics.Purview.DataMap | sdk/purview/Azure.Analytics.Purview.DataMap |
+| schemaregistry | Azure.Data.SchemaRegistry | sdk/schemaregistry/Azure.Data.SchemaRegistry |
+| translation | Azure.AI.Translation.Document | sdk/translation/Azure.AI.Translation.Document |
+| translation | Azure.AI.Translation.Text | sdk/translation/Azure.AI.Translation.Text |
+| vision | Azure.AI.Vision.ImageAnalysis | sdk/vision/Azure.AI.Vision.ImageAnalysis |
+
+
+## Data Plane Libraries using Swagger
+
+Total: 114
+
+| Service | Library | Path |
+| ------- | ------- | ---- |
+| agrifood | Azure.Verticals.AgriFood.Farming | sdk/agrifood/Azure.Verticals.AgriFood.Farming |
+| appconfiguration | Azure.Data.AppConfiguration | sdk/appconfiguration/Azure.Data.AppConfiguration |
+| attestation | Azure.Security.Attestation | sdk/attestation/Azure.Security.Attestation |
+| cognitivelanguage | Azure.AI.Language.QuestionAnswering | sdk/cognitivelanguage/Azure.AI.Language.QuestionAnswering |
+| cognitiveservices | AnomalyDetector | sdk/cognitiveservices/AnomalyDetector |
+| cognitiveservices | FormRecognizer | sdk/cognitiveservices/FormRecognizer |
+| cognitiveservices | Knowledge.QnAMaker | sdk/cognitiveservices/Knowledge.QnAMaker |
+| cognitiveservices | Language.LUIS.Authoring | sdk/cognitiveservices/Language.LUIS.Authoring |
+| cognitiveservices | Language.LUIS.Runtime | sdk/cognitiveservices/Language.LUIS.Runtime |
+| cognitiveservices | Language.SpellCheck | sdk/cognitiveservices/Language.SpellCheck |
+| cognitiveservices | Language.TextAnalytics | sdk/cognitiveservices/Language.TextAnalytics |
+| cognitiveservices | Personalizer | sdk/cognitiveservices/Personalizer |
+| cognitiveservices | Search.BingAutoSuggest | sdk/cognitiveservices/Search.BingAutoSuggest |
+| cognitiveservices | Search.BingCustomImageSearch | sdk/cognitiveservices/Search.BingCustomImageSearch |
+| cognitiveservices | Search.BingCustomSearch | sdk/cognitiveservices/Search.BingCustomSearch |
+| cognitiveservices | Search.BingEntitySearch | sdk/cognitiveservices/Search.BingEntitySearch |
+| cognitiveservices | Search.BingImageSearch | sdk/cognitiveservices/Search.BingImageSearch |
+| cognitiveservices | Search.BingLocalSearch | sdk/cognitiveservices/Search.BingLocalSearch |
+| cognitiveservices | Search.BingNewsSearch | sdk/cognitiveservices/Search.BingNewsSearch |
+| cognitiveservices | Search.BingVideoSearch | sdk/cognitiveservices/Search.BingVideoSearch |
+| cognitiveservices | Search.BingVisualSearch | sdk/cognitiveservices/Search.BingVisualSearch |
+| cognitiveservices | Search.BingWebSearch | sdk/cognitiveservices/Search.BingWebSearch |
+| cognitiveservices | Vision.ComputerVision | sdk/cognitiveservices/Vision.ComputerVision |
+| cognitiveservices | Vision.ContentModerator | sdk/cognitiveservices/Vision.ContentModerator |
+| cognitiveservices | Vision.CustomVision.Prediction | sdk/cognitiveservices/Vision.CustomVision.Prediction |
+| cognitiveservices | Vision.CustomVision.Training | sdk/cognitiveservices/Vision.CustomVision.Training |
+| cognitiveservices | Vision.Face | sdk/cognitiveservices/Vision.Face |
+| communication | Azure.Communication.AlphaIds | sdk/communication/Azure.Communication.AlphaIds |
+| communication | Azure.Communication.CallAutomation | sdk/communication/Azure.Communication.CallAutomation |
+| communication | Azure.Communication.CallingServer | sdk/communication/Azure.Communication.CallingServer |
+| communication | Azure.Communication.Chat | sdk/communication/Azure.Communication.Chat |
+| communication | Azure.Communication.Email | sdk/communication/Azure.Communication.Email |
+| communication | Azure.Communication.Identity | sdk/communication/Azure.Communication.Identity |
+| communication | Azure.Communication.PhoneNumbers | sdk/communication/Azure.Communication.PhoneNumbers |
+| communication | Azure.Communication.Rooms | sdk/communication/Azure.Communication.Rooms |
+| communication | Azure.Communication.ShortCodes | sdk/communication/Azure.Communication.ShortCodes |
+| communication | Azure.Communication.Sms | sdk/communication/Azure.Communication.Sms |
+| confidentialledger | Azure.Security.ConfidentialLedger | sdk/confidentialledger/Azure.Security.ConfidentialLedger |
+| containerregistry | Azure.Containers.ContainerRegistry | sdk/containerregistry/Azure.Containers.ContainerRegistry |
+| core | Azure.Core.Expressions.DataFactory | sdk/core/Azure.Core.Expressions.DataFactory |
+| core | Azure.Core.TestFramework | sdk/core/Azure.Core.TestFramework |
+| deviceupdate | Azure.IoT.DeviceUpdate | sdk/deviceupdate/Azure.IoT.DeviceUpdate |
+| digitaltwins | Azure.DigitalTwins.Core | sdk/digitaltwins/Azure.DigitalTwins.Core |
+| eventgrid | Azure.Messaging.EventGrid | sdk/eventgrid/Azure.Messaging.EventGrid |
+| formrecognizer | Azure.AI.FormRecognizer | sdk/formrecognizer/Azure.AI.FormRecognizer |
+| iot | Azure.IoT.Hub.Service | sdk/iot/Azure.IoT.Hub.Service |
+| maps | Azure.Maps.Common | sdk/maps/Azure.Maps.Common |
+| maps | Azure.Maps.Geolocation | sdk/maps/Azure.Maps.Geolocation |
+| maps | Azure.Maps.Rendering | sdk/maps/Azure.Maps.Rendering |
+| maps | Azure.Maps.Routing | sdk/maps/Azure.Maps.Routing |
+| maps | Azure.Maps.Search | sdk/maps/Azure.Maps.Search |
+| maps | Azure.Maps.TimeZones | sdk/maps/Azure.Maps.TimeZones |
+| maps | Azure.Maps.Weather | sdk/maps/Azure.Maps.Weather |
+| metricsadvisor | Azure.AI.MetricsAdvisor | sdk/metricsadvisor/Azure.AI.MetricsAdvisor |
+| mixedreality | Azure.MixedReality.Authentication | sdk/mixedreality/Azure.MixedReality.Authentication |
+| monitor | Azure.Monitor.Ingestion | sdk/monitor/Azure.Monitor.Ingestion |
+| monitor | Azure.Monitor.OpenTelemetry.Exporter | sdk/monitor/Azure.Monitor.OpenTelemetry.Exporter |
+| monitor | Azure.Monitor.OpenTelemetry.LiveMetrics | sdk/monitor/Azure.Monitor.OpenTelemetry.LiveMetrics |
+| monitor | Azure.Monitor.Query | sdk/monitor/Azure.Monitor.Query |
+| objectanchors | Azure.MixedReality.ObjectAnchors.Conversion | sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion |
+| personalizer | Azure.AI.Personalizer | sdk/personalizer/Azure.AI.Personalizer |
+| playwrighttesting | Azure.Developer.MicrosoftPlaywrightTesting.TestLogger | sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.TestLogger |
+| provisioning | Azure.Provisioning | sdk/provisioning/Azure.Provisioning |
+| provisioning | Azure.Provisioning.AppConfiguration | sdk/provisioning/Azure.Provisioning.AppConfiguration |
+| provisioning | Azure.Provisioning.AppContainers | sdk/provisioning/Azure.Provisioning.AppContainers |
+| provisioning | Azure.Provisioning.AppService | sdk/provisioning/Azure.Provisioning.AppService |
+| provisioning | Azure.Provisioning.ApplicationInsights | sdk/provisioning/Azure.Provisioning.ApplicationInsights |
+| provisioning | Azure.Provisioning.CognitiveServices | sdk/provisioning/Azure.Provisioning.CognitiveServices |
+| provisioning | Azure.Provisioning.Communication | sdk/provisioning/Azure.Provisioning.Communication |
+| provisioning | Azure.Provisioning.ContainerRegistry | sdk/provisioning/Azure.Provisioning.ContainerRegistry |
+| provisioning | Azure.Provisioning.ContainerService | sdk/provisioning/Azure.Provisioning.ContainerService |
+| provisioning | Azure.Provisioning.CosmosDB | sdk/provisioning/Azure.Provisioning.CosmosDB |
+| provisioning | Azure.Provisioning.EventGrid | sdk/provisioning/Azure.Provisioning.EventGrid |
+| provisioning | Azure.Provisioning.EventHubs | sdk/provisioning/Azure.Provisioning.EventHubs |
+| provisioning | Azure.Provisioning.KeyVault | sdk/provisioning/Azure.Provisioning.KeyVault |
+| provisioning | Azure.Provisioning.Kubernetes | sdk/provisioning/Azure.Provisioning.Kubernetes |
+| provisioning | Azure.Provisioning.KubernetesConfiguration | sdk/provisioning/Azure.Provisioning.KubernetesConfiguration |
+| provisioning | Azure.Provisioning.OperationalInsights | sdk/provisioning/Azure.Provisioning.OperationalInsights |
+| provisioning | Azure.Provisioning.PostgreSql | sdk/provisioning/Azure.Provisioning.PostgreSql |
+| provisioning | Azure.Provisioning.Redis | sdk/provisioning/Azure.Provisioning.Redis |
+| provisioning | Azure.Provisioning.Search | sdk/provisioning/Azure.Provisioning.Search |
+| provisioning | Azure.Provisioning.ServiceBus | sdk/provisioning/Azure.Provisioning.ServiceBus |
+| provisioning | Azure.Provisioning.SignalR | sdk/provisioning/Azure.Provisioning.SignalR |
+| provisioning | Azure.Provisioning.Sql | sdk/provisioning/Azure.Provisioning.Sql |
+| provisioning | Azure.Provisioning.Storage | sdk/provisioning/Azure.Provisioning.Storage |
+| provisioning | Azure.Provisioning.WebPubSub | sdk/provisioning/Azure.Provisioning.WebPubSub |
+| purview | Azure.Analytics.Purview.Account | sdk/purview/Azure.Analytics.Purview.Account |
+| purview | Azure.Analytics.Purview.Administration | sdk/purview/Azure.Analytics.Purview.Administration |
+| purview | Azure.Analytics.Purview.Catalog | sdk/purview/Azure.Analytics.Purview.Catalog |
+| purview | Azure.Analytics.Purview.Scanning | sdk/purview/Azure.Analytics.Purview.Scanning |
+| purview | Azure.Analytics.Purview.Sharing | sdk/purview/Azure.Analytics.Purview.Sharing |
+| purview | Azure.Analytics.Purview.Workflows | sdk/purview/Azure.Analytics.Purview.Workflows |
+| quantum | Azure.Quantum.Jobs | sdk/quantum/Azure.Quantum.Jobs |
+| remoterendering | Azure.MixedReality.RemoteRendering | sdk/remoterendering/Azure.MixedReality.RemoteRendering |
+| search | Azure.Search.Documents | sdk/search/Azure.Search.Documents |
+| storage | Azure.Storage.Blobs | sdk/storage/Azure.Storage.Blobs |
+| storage | Azure.Storage.Blobs.Batch | sdk/storage/Azure.Storage.Blobs.Batch |
+| storage | Azure.Storage.Common | sdk/storage/Azure.Storage.Common |
+| storage | Azure.Storage.Files.DataLake | sdk/storage/Azure.Storage.Files.DataLake |
+| storage | Azure.Storage.Files.Shares | sdk/storage/Azure.Storage.Files.Shares |
+| storage | Azure.Storage.Queues | sdk/storage/Azure.Storage.Queues |
+| synapse | Azure.Analytics.Synapse.AccessControl | sdk/synapse/Azure.Analytics.Synapse.AccessControl |
+| synapse | Azure.Analytics.Synapse.Artifacts | sdk/synapse/Azure.Analytics.Synapse.Artifacts |
+| synapse | Azure.Analytics.Synapse.ManagedPrivateEndpoints | sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints |
+| synapse | Azure.Analytics.Synapse.Monitoring | sdk/synapse/Azure.Analytics.Synapse.Monitoring |
+| synapse | Azure.Analytics.Synapse.Spark | sdk/synapse/Azure.Analytics.Synapse.Spark |
+| tables | Azure.Data.Tables | sdk/tables/Azure.Data.Tables |
+| template | .content | sdk/template/.content |
+| template | Azure.Template | sdk/template/Azure.Template |
+| textanalytics | Azure.AI.TextAnalytics | sdk/textanalytics/Azure.AI.TextAnalytics |
+| textanalytics | Azure.AI.TextAnalytics.Legacy.Shared | sdk/textanalytics/Azure.AI.TextAnalytics.Legacy.Shared |
+| timeseriesinsights | Azure.IoT.TimeSeriesInsights | sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights |
+| videoanalyzer | Azure.Media.VideoAnalyzer.Edge | sdk/videoanalyzer/Azure.Media.VideoAnalyzer.Edge |
+| webpubsub | Azure.Messaging.WebPubSub | sdk/webpubsub/Azure.Messaging.WebPubSub |
+
+
+## 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: 29
+
+| Service | Library | Path |
+| ------- | ------- | ---- |
+| agricultureplatform | Azure.ResourceManager.AgriculturePlatform | sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform |
+| arizeaiobservabilityeval | Azure.ResourceManager.ArizeAIObservabilityEval | sdk/arizeaiobservabilityeval/Azure.ResourceManager.ArizeAIObservabilityEval |
+| carbon | Azure.ResourceManager.CarbonOptimization | sdk/carbon/Azure.ResourceManager.CarbonOptimization |
+| chaos | Azure.ResourceManager.Chaos | sdk/chaos/Azure.ResourceManager.Chaos |
+| computefleet | Azure.ResourceManager.ComputeFleet | sdk/computefleet/Azure.ResourceManager.ComputeFleet |
+| computeschedule | Azure.ResourceManager.ComputeSchedule | sdk/computeschedule/Azure.ResourceManager.ComputeSchedule |
+| containerorchestratorruntime | Azure.ResourceManager.ContainerOrchestratorRuntime | sdk/containerorchestratorruntime/Azure.ResourceManager.ContainerOrchestratorRuntime |
+| databasewatcher | Azure.ResourceManager.DatabaseWatcher | sdk/databasewatcher/Azure.ResourceManager.DatabaseWatcher |
+| dependencymap | Azure.ResourceManager.DependencyMap | sdk/dependencymap/Azure.ResourceManager.DependencyMap |
+| deviceregistry | Azure.ResourceManager.DeviceRegistry | sdk/deviceregistry/Azure.ResourceManager.DeviceRegistry |
+| devopsinfrastructure | Azure.ResourceManager.DevOpsInfrastructure | sdk/devopsinfrastructure/Azure.ResourceManager.DevOpsInfrastructure |
+| durabletask | Azure.ResourceManager.DurableTask | sdk/durabletask/Azure.ResourceManager.DurableTask |
+| fabric | Azure.ResourceManager.Fabric | sdk/fabric/Azure.ResourceManager.Fabric |
+| healthdataaiservices | Azure.ResourceManager.HealthDataAIServices | sdk/healthdataaiservices/Azure.ResourceManager.HealthDataAIServices |
+| hybridconnectivity | Azure.ResourceManager.HybridConnectivity | sdk/hybridconnectivity/Azure.ResourceManager.HybridConnectivity |
+| informaticadatamanagement | Azure.ResourceManager.InformaticaDataManagement | sdk/informaticadatamanagement/Azure.ResourceManager.InformaticaDataManagement |
+| iotoperations | Azure.ResourceManager.IotOperations | sdk/iotoperations/Azure.ResourceManager.IotOperations |
+| lambdatesthyperexecute | Azure.ResourceManager.LambdaTestHyperExecute | sdk/lambdatesthyperexecute/Azure.ResourceManager.LambdaTestHyperExecute |
+| mongocluster | Azure.ResourceManager.MongoCluster | sdk/mongocluster/Azure.ResourceManager.MongoCluster |
+| neonpostgres | Azure.ResourceManager.NeonPostgres | sdk/neonpostgres/Azure.ResourceManager.NeonPostgres |
+| pineconevectordb | Azure.ResourceManager.PineconeVectorDB | sdk/pineconevectordb/Azure.ResourceManager.PineconeVectorDB |
+| playwrighttesting | Azure.ResourceManager.PlaywrightTesting | sdk/playwrighttesting/Azure.ResourceManager.PlaywrightTesting |
+| portalservices | Azure.ResourceManager.PortalServicesCopilot | sdk/portalservices/Azure.ResourceManager.PortalServicesCopilot |
+| recoveryservices-datareplication | Azure.ResourceManager.RecoveryServicesDataReplication | sdk/recoveryservices-datareplication/Azure.ResourceManager.RecoveryServicesDataReplication |
+| servicenetworking | Azure.ResourceManager.ServiceNetworking | sdk/servicenetworking/Azure.ResourceManager.ServiceNetworking |
+| standbypool | Azure.ResourceManager.StandbyPool | sdk/standbypool/Azure.ResourceManager.StandbyPool |
+| terraform | Azure.ResourceManager.Terraform | sdk/terraform/Azure.ResourceManager.Terraform |
+| weightsandbiases | Azure.ResourceManager.WeightsAndBiases | sdk/weightsandbiases/Azure.ResourceManager.WeightsAndBiases |
+| workloadssapvirtualinstance | Azure.ResourceManager.WorkloadsSapVirtualInstance | sdk/workloadssapvirtualinstance/Azure.ResourceManager.WorkloadsSapVirtualInstance |
+
+
+## Management Plane Libraries using Swagger
+
+Total: 177
+
+| Service | Library | Path |
+| ------- | ------- | ---- |
+| advisor | Azure.ResourceManager.Advisor | sdk/advisor/Azure.ResourceManager.Advisor |
+| agrifood | Azure.ResourceManager.AgFoodPlatform | sdk/agrifood/Azure.ResourceManager.AgFoodPlatform |
+| alertsmanagement | Azure.ResourceManager.AlertsManagement | sdk/alertsmanagement/Azure.ResourceManager.AlertsManagement |
+| analysisservices | Azure.ResourceManager.Analysis | sdk/analysisservices/Azure.ResourceManager.Analysis |
+| apicenter | Azure.ResourceManager.ApiCenter | sdk/apicenter/Azure.ResourceManager.ApiCenter |
+| apimanagement | Azure.ResourceManager.ApiManagement | sdk/apimanagement/Azure.ResourceManager.ApiManagement |
+| appcomplianceautomation | Azure.ResourceManager.AppComplianceAutomation | sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation |
+| appconfiguration | Azure.ResourceManager.AppConfiguration | sdk/appconfiguration/Azure.ResourceManager.AppConfiguration |
+| applicationinsights | Azure.ResourceManager.ApplicationInsights | sdk/applicationinsights/Azure.ResourceManager.ApplicationInsights |
+| appplatform | Azure.ResourceManager.AppPlatform | sdk/appplatform/Azure.ResourceManager.AppPlatform |
+| arc-scvmm | Azure.ResourceManager.ScVmm | sdk/arc-scvmm/Azure.ResourceManager.ScVmm |
+| astronomer | Azure.ResourceManager.Astro | sdk/astronomer/Azure.ResourceManager.Astro |
+| attestation | Azure.ResourceManager.Attestation | sdk/attestation/Azure.ResourceManager.Attestation |
+| authorization | Azure.ResourceManager.Authorization | sdk/authorization/Azure.ResourceManager.Authorization |
+| automanage | Azure.ResourceManager.Automanage | sdk/automanage/Azure.ResourceManager.Automanage |
+| automation | Azure.ResourceManager.Automation | sdk/automation/Azure.ResourceManager.Automation |
+| avs | Azure.ResourceManager.Avs | sdk/avs/Azure.ResourceManager.Avs |
+| azurelargeinstance | Azure.ResourceManager.LargeInstance | sdk/azurelargeinstance/Azure.ResourceManager.LargeInstance |
+| azurestackhci | Azure.ResourceManager.Hci | sdk/azurestackhci/Azure.ResourceManager.Hci |
+| batch | Azure.ResourceManager.Batch | sdk/batch/Azure.ResourceManager.Batch |
+| billing | Azure.ResourceManager.Billing | sdk/billing/Azure.ResourceManager.Billing |
+| billingbenefits | Azure.ResourceManager.BillingBenefits | sdk/billingbenefits/Azure.ResourceManager.BillingBenefits |
+| blueprint | Azure.ResourceManager.Blueprint | sdk/blueprint/Azure.ResourceManager.Blueprint |
+| botservice | Azure.ResourceManager.BotService | sdk/botservice/Azure.ResourceManager.BotService |
+| cdn | Azure.ResourceManager.Cdn | sdk/cdn/Azure.ResourceManager.Cdn |
+| changeanalysis | Azure.ResourceManager.ChangeAnalysis | sdk/changeanalysis/Azure.ResourceManager.ChangeAnalysis |
+| cognitiveservices | Azure.ResourceManager.CognitiveServices | sdk/cognitiveservices/Azure.ResourceManager.CognitiveServices |
+| communication | Azure.ResourceManager.Communication | sdk/communication/Azure.ResourceManager.Communication |
+| compute | Azure.ResourceManager.Compute | sdk/compute/Azure.ResourceManager.Compute |
+| confidentialledger | Azure.ResourceManager.ConfidentialLedger | sdk/confidentialledger/Azure.ResourceManager.ConfidentialLedger |
+| confluent | Azure.ResourceManager.Confluent | sdk/confluent/Azure.ResourceManager.Confluent |
+| connectedvmwarevsphere | Azure.ResourceManager.ConnectedVMwarevSphere | sdk/connectedvmwarevsphere/Azure.ResourceManager.ConnectedVMwarevSphere |
+| consumption | Azure.ResourceManager.Consumption | sdk/consumption/Azure.ResourceManager.Consumption |
+| containerapps | Azure.ResourceManager.AppContainers | sdk/containerapps/Azure.ResourceManager.AppContainers |
+| containerinstance | Azure.ResourceManager.ContainerInstance | sdk/containerinstance/Azure.ResourceManager.ContainerInstance |
+| containerregistry | Azure.ResourceManager.ContainerRegistry | sdk/containerregistry/Azure.ResourceManager.ContainerRegistry |
+| containerservice | Azure.ResourceManager.ContainerService | sdk/containerservice/Azure.ResourceManager.ContainerService |
+| cosmosdb | Azure.ResourceManager.CosmosDB | sdk/cosmosdb/Azure.ResourceManager.CosmosDB |
+| cosmosdbforpostgresql | Azure.ResourceManager.CosmosDBForPostgreSql | sdk/cosmosdbforpostgresql/Azure.ResourceManager.CosmosDBForPostgreSql |
+| costmanagement | Azure.ResourceManager.CostManagement | sdk/costmanagement/Azure.ResourceManager.CostManagement |
+| customer-insights | Azure.ResourceManager.CustomerInsights | sdk/customer-insights/Azure.ResourceManager.CustomerInsights |
+| databox | Azure.ResourceManager.DataBox | sdk/databox/Azure.ResourceManager.DataBox |
+| databoxedge | Azure.ResourceManager.DataBoxEdge | sdk/databoxedge/Azure.ResourceManager.DataBoxEdge |
+| datadog | Azure.ResourceManager.Datadog | sdk/datadog/Azure.ResourceManager.Datadog |
+| datafactory | Azure.ResourceManager.DataFactory | sdk/datafactory/Azure.ResourceManager.DataFactory |
+| datalake-analytics | Azure.ResourceManager.DataLakeAnalytics | sdk/datalake-analytics/Azure.ResourceManager.DataLakeAnalytics |
+| datalake-store | Azure.ResourceManager.DataLakeStore | sdk/datalake-store/Azure.ResourceManager.DataLakeStore |
+| datamigration | Azure.ResourceManager.DataMigration | sdk/datamigration/Azure.ResourceManager.DataMigration |
+| dataprotection | Azure.ResourceManager.DataProtectionBackup | sdk/dataprotection/Azure.ResourceManager.DataProtectionBackup |
+| datashare | Azure.ResourceManager.DataShare | sdk/datashare/Azure.ResourceManager.DataShare |
+| defendereasm | Azure.ResourceManager.DefenderEasm | sdk/defendereasm/Azure.ResourceManager.DefenderEasm |
+| desktopvirtualization | Azure.ResourceManager.DesktopVirtualization | sdk/desktopvirtualization/Azure.ResourceManager.DesktopVirtualization |
+| devcenter | Azure.ResourceManager.DevCenter | sdk/devcenter/Azure.ResourceManager.DevCenter |
+| deviceprovisioningservices | Azure.ResourceManager.DeviceProvisioningServices | sdk/deviceprovisioningservices/Azure.ResourceManager.DeviceProvisioningServices |
+| deviceupdate | Azure.ResourceManager.DeviceUpdate | sdk/deviceupdate/Azure.ResourceManager.DeviceUpdate |
+| devspaces | Azure.ResourceManager.DevSpaces | sdk/devspaces/Azure.ResourceManager.DevSpaces |
+| devtestlabs | Azure.ResourceManager.DevTestLabs | sdk/devtestlabs/Azure.ResourceManager.DevTestLabs |
+| digitaltwins | Azure.ResourceManager.DigitalTwins | sdk/digitaltwins/Azure.ResourceManager.DigitalTwins |
+| dns | Azure.ResourceManager.Dns | sdk/dns/Azure.ResourceManager.Dns |
+| dnsresolver | Azure.ResourceManager.DnsResolver | sdk/dnsresolver/Azure.ResourceManager.DnsResolver |
+| dynatrace | Azure.ResourceManager.Dynatrace | sdk/dynatrace/Azure.ResourceManager.Dynatrace |
+| edgeorder | Azure.ResourceManager.EdgeOrder | sdk/edgeorder/Azure.ResourceManager.EdgeOrder |
+| edgezones | Azure.ResourceManager.EdgeZones | sdk/edgezones/Azure.ResourceManager.EdgeZones |
+| elastic | Azure.ResourceManager.Elastic | sdk/elastic/Azure.ResourceManager.Elastic |
+| elasticsan | Azure.ResourceManager.ElasticSan | sdk/elasticsan/Azure.ResourceManager.ElasticSan |
+| eventgrid | Azure.ResourceManager.EventGrid | sdk/eventgrid/Azure.ResourceManager.EventGrid |
+| eventhub | Azure.ResourceManager.EventHubs | sdk/eventhub/Azure.ResourceManager.EventHubs |
+| extendedlocation | Azure.ResourceManager.ExtendedLocations | sdk/extendedlocation/Azure.ResourceManager.ExtendedLocations |
+| fleet | Azure.ResourceManager.ContainerServiceFleet | sdk/fleet/Azure.ResourceManager.ContainerServiceFleet |
+| fluidrelay | Azure.ResourceManager.FluidRelay | sdk/fluidrelay/Azure.ResourceManager.FluidRelay |
+| frontdoor | Azure.ResourceManager.FrontDoor | sdk/frontdoor/Azure.ResourceManager.FrontDoor |
+| grafana | Azure.ResourceManager.Grafana | sdk/grafana/Azure.ResourceManager.Grafana |
+| graphservices | Azure.ResourceManager.GraphServices | sdk/graphservices/Azure.ResourceManager.GraphServices |
+| guestconfiguration | Azure.ResourceManager.GuestConfiguration | sdk/guestconfiguration/Azure.ResourceManager.GuestConfiguration |
+| hardwaresecuritymodules | Azure.ResourceManager.HardwareSecurityModules | sdk/hardwaresecuritymodules/Azure.ResourceManager.HardwareSecurityModules |
+| hdinsight | Azure.ResourceManager.HDInsight | sdk/hdinsight/Azure.ResourceManager.HDInsight |
+| hdinsightcontainers | Azure.ResourceManager.HDInsight.Containers | sdk/hdinsightcontainers/Azure.ResourceManager.HDInsight.Containers |
+| healthbot | Azure.ResourceManager.HealthBot | sdk/healthbot/Azure.ResourceManager.HealthBot |
+| healthcareapis | Azure.ResourceManager.HealthcareApis | sdk/healthcareapis/Azure.ResourceManager.HealthcareApis |
+| hybridaks | Azure.ResourceManager.HybridContainerService | sdk/hybridaks/Azure.ResourceManager.HybridContainerService |
+| hybridcompute | Azure.ResourceManager.HybridCompute | sdk/hybridcompute/Azure.ResourceManager.HybridCompute |
+| hybridkubernetes | Azure.ResourceManager.Kubernetes | sdk/hybridkubernetes/Azure.ResourceManager.Kubernetes |
+| hybridnetwork | Azure.ResourceManager.HybridNetwork | sdk/hybridnetwork/Azure.ResourceManager.HybridNetwork |
+| iot | Azure.ResourceManager.IotFirmwareDefense | sdk/iot/Azure.ResourceManager.IotFirmwareDefense |
+| iotcentral | Azure.ResourceManager.IotCentral | sdk/iotcentral/Azure.ResourceManager.IotCentral |
+| iothub | Azure.ResourceManager.IotHub | sdk/iothub/Azure.ResourceManager.IotHub |
+| keyvault | Azure.ResourceManager.KeyVault | sdk/keyvault/Azure.ResourceManager.KeyVault |
+| kubernetesconfiguration | Azure.ResourceManager.KubernetesConfiguration | sdk/kubernetesconfiguration/Azure.ResourceManager.KubernetesConfiguration |
+| kusto | Azure.ResourceManager.Kusto | sdk/kusto/Azure.ResourceManager.Kusto |
+| labservices | Azure.ResourceManager.LabServices | sdk/labservices/Azure.ResourceManager.LabServices |
+| loadtestservice | Azure.ResourceManager.LoadTesting | sdk/loadtestservice/Azure.ResourceManager.LoadTesting |
+| logic | Azure.ResourceManager.Logic | sdk/logic/Azure.ResourceManager.Logic |
+| machinelearningcompute | Azure.ResourceManager.MachineLearningCompute | sdk/machinelearningcompute/Azure.ResourceManager.MachineLearningCompute |
+| machinelearningservices | Azure.ResourceManager.MachineLearning | sdk/machinelearningservices/Azure.ResourceManager.MachineLearning |
+| maintenance | Azure.ResourceManager.Maintenance | sdk/maintenance/Azure.ResourceManager.Maintenance |
+| managednetwork | Azure.ResourceManager.ManagedNetwork | sdk/managednetwork/Azure.ResourceManager.ManagedNetwork |
+| managednetworkfabric | Azure.ResourceManager.ManagedNetworkFabric | sdk/managednetworkfabric/Azure.ResourceManager.ManagedNetworkFabric |
+| managedserviceidentity | Azure.ResourceManager.ManagedServiceIdentities | sdk/managedserviceidentity/Azure.ResourceManager.ManagedServiceIdentities |
+| managedservices | Azure.ResourceManager.ManagedServices | sdk/managedservices/Azure.ResourceManager.ManagedServices |
+| managementpartner | Azure.ResourceManager.ManagementPartner | sdk/managementpartner/Azure.ResourceManager.ManagementPartner |
+| maps | Azure.ResourceManager.Maps | sdk/maps/Azure.ResourceManager.Maps |
+| marketplace | Azure.ResourceManager.Marketplace | sdk/marketplace/Azure.ResourceManager.Marketplace |
+| marketplaceordering | Azure.ResourceManager.MarketplaceOrdering | sdk/marketplaceordering/Azure.ResourceManager.MarketplaceOrdering |
+| mediaservices | Azure.ResourceManager.Media | sdk/mediaservices/Azure.ResourceManager.Media |
+| migrationassessment | Azure.ResourceManager.Migration.Assessment | sdk/migrationassessment/Azure.ResourceManager.Migration.Assessment |
+| migrationdiscoverysap | Azure.ResourceManager.MigrationDiscoverySap | sdk/migrationdiscoverysap/Azure.ResourceManager.MigrationDiscoverySap |
+| mixedreality | Azure.ResourceManager.MixedReality | sdk/mixedreality/Azure.ResourceManager.MixedReality |
+| mobilenetwork | Azure.ResourceManager.MobileNetwork | sdk/mobilenetwork/Azure.ResourceManager.MobileNetwork |
+| monitor | Azure.ResourceManager.Monitor | sdk/monitor/Azure.ResourceManager.Monitor |
+| mysql | Azure.ResourceManager.MySql | sdk/mysql/Azure.ResourceManager.MySql |
+| netapp | Azure.ResourceManager.NetApp | sdk/netapp/Azure.ResourceManager.NetApp |
+| network | Azure.ResourceManager.Network | sdk/network/Azure.ResourceManager.Network |
+| networkanalytics | Azure.ResourceManager.NetworkAnalytics | sdk/networkanalytics/Azure.ResourceManager.NetworkAnalytics |
+| networkcloud | Azure.ResourceManager.NetworkCloud | sdk/networkcloud/Azure.ResourceManager.NetworkCloud |
+| networkfunction | Azure.ResourceManager.NetworkFunction | sdk/networkfunction/Azure.ResourceManager.NetworkFunction |
+| newrelicobservability | Azure.ResourceManager.NewRelicObservability | sdk/newrelicobservability/Azure.ResourceManager.NewRelicObservability |
+| nginx | Azure.ResourceManager.Nginx | sdk/nginx/Azure.ResourceManager.Nginx |
+| notificationhubs | Azure.ResourceManager.NotificationHubs | sdk/notificationhubs/Azure.ResourceManager.NotificationHubs |
+| openenergyplatform | Azure.ResourceManager.EnergyServices | sdk/openenergyplatform/Azure.ResourceManager.EnergyServices |
+| operationalinsights | Azure.ResourceManager.OperationalInsights | sdk/operationalinsights/Azure.ResourceManager.OperationalInsights |
+| oracle | Azure.ResourceManager.OracleDatabase | sdk/oracle/Azure.ResourceManager.OracleDatabase |
+| orbital | Azure.ResourceManager.Orbital | sdk/orbital/Azure.ResourceManager.Orbital |
+| paloaltonetworks.ngfw | Azure.ResourceManager.PaloAltoNetworks.Ngfw | sdk/paloaltonetworks.ngfw/Azure.ResourceManager.PaloAltoNetworks.Ngfw |
+| peering | Azure.ResourceManager.Peering | sdk/peering/Azure.ResourceManager.Peering |
+| policyinsights | Azure.ResourceManager.PolicyInsights | sdk/policyinsights/Azure.ResourceManager.PolicyInsights |
+| postgresql | Azure.ResourceManager.PostgreSql | sdk/postgresql/Azure.ResourceManager.PostgreSql |
+| powerbidedicated | Azure.ResourceManager.PowerBIDedicated | sdk/powerbidedicated/Azure.ResourceManager.PowerBIDedicated |
+| privatedns | Azure.ResourceManager.PrivateDns | sdk/privatedns/Azure.ResourceManager.PrivateDns |
+| providerhub | Azure.ResourceManager.ProviderHub | sdk/providerhub/Azure.ResourceManager.ProviderHub |
+| purview | Azure.ResourceManager.Purview | sdk/purview/Azure.ResourceManager.Purview |
+| quantum | Azure.ResourceManager.Quantum | sdk/quantum/Azure.ResourceManager.Quantum |
+| qumulo | Azure.ResourceManager.Qumulo | sdk/qumulo/Azure.ResourceManager.Qumulo |
+| quota | Azure.ResourceManager.Quota | sdk/quota/Azure.ResourceManager.Quota |
+| recoveryservices | Azure.ResourceManager.RecoveryServices | sdk/recoveryservices/Azure.ResourceManager.RecoveryServices |
+| recoveryservices-backup | Azure.ResourceManager.RecoveryServicesBackup | sdk/recoveryservices-backup/Azure.ResourceManager.RecoveryServicesBackup |
+| recoveryservices-siterecovery | Azure.ResourceManager.RecoveryServicesSiteRecovery | sdk/recoveryservices-siterecovery/Azure.ResourceManager.RecoveryServicesSiteRecovery |
+| redis | Azure.ResourceManager.Redis | sdk/redis/Azure.ResourceManager.Redis |
+| redisenterprise | Azure.ResourceManager.RedisEnterprise | sdk/redisenterprise/Azure.ResourceManager.RedisEnterprise |
+| relay | Azure.ResourceManager.Relay | sdk/relay/Azure.ResourceManager.Relay |
+| reservations | Azure.ResourceManager.Reservations | sdk/reservations/Azure.ResourceManager.Reservations |
+| resourceconnector | Azure.ResourceManager.ResourceConnector | sdk/resourceconnector/Azure.ResourceManager.ResourceConnector |
+| resourcegraph | Azure.ResourceManager.ResourceGraph | sdk/resourcegraph/Azure.ResourceManager.ResourceGraph |
+| resourcehealth | Azure.ResourceManager.ResourceHealth | sdk/resourcehealth/Azure.ResourceManager.ResourceHealth |
+| resourcemanager | Azure.ResourceManager | sdk/resourcemanager/Azure.ResourceManager |
+| resourcemover | Azure.ResourceManager.ResourceMover | sdk/resourcemover/Azure.ResourceManager.ResourceMover |
+| resources | Azure.ResourceManager.Resources | sdk/resources/Azure.ResourceManager.Resources |
+| search | Azure.ResourceManager.Search | sdk/search/Azure.ResourceManager.Search |
+| securitycenter | Azure.ResourceManager.SecurityCenter | sdk/securitycenter/Azure.ResourceManager.SecurityCenter |
+| securitydevops | Azure.ResourceManager.SecurityDevOps | sdk/securitydevops/Azure.ResourceManager.SecurityDevOps |
+| securityinsights | Azure.ResourceManager.SecurityInsights | sdk/securityinsights/Azure.ResourceManager.SecurityInsights |
+| selfhelp | Azure.ResourceManager.SelfHelp | sdk/selfhelp/Azure.ResourceManager.SelfHelp |
+| servicebus | Azure.ResourceManager.ServiceBus | sdk/servicebus/Azure.ResourceManager.ServiceBus |
+| servicefabric | Azure.ResourceManager.ServiceFabric | sdk/servicefabric/Azure.ResourceManager.ServiceFabric |
+| servicefabricmanagedclusters | Azure.ResourceManager.ServiceFabricManagedClusters | sdk/servicefabricmanagedclusters/Azure.ResourceManager.ServiceFabricManagedClusters |
+| servicelinker | Azure.ResourceManager.ServiceLinker | sdk/servicelinker/Azure.ResourceManager.ServiceLinker |
+| signalr | Azure.ResourceManager.SignalR | sdk/signalr/Azure.ResourceManager.SignalR |
+| sphere | Azure.ResourceManager.Sphere | sdk/sphere/Azure.ResourceManager.Sphere |
+| springappdiscovery | Azure.ResourceManager.SpringAppDiscovery | sdk/springappdiscovery/Azure.ResourceManager.SpringAppDiscovery |
+| sqlmanagement | Azure.ResourceManager.Sql | sdk/sqlmanagement/Azure.ResourceManager.Sql |
+| sqlvirtualmachine | Azure.ResourceManager.SqlVirtualMachine | sdk/sqlvirtualmachine/Azure.ResourceManager.SqlVirtualMachine |
+| storage | Azure.ResourceManager.Storage | sdk/storage/Azure.ResourceManager.Storage |
+| storageactions | Azure.ResourceManager.StorageActions | sdk/storageactions/Azure.ResourceManager.StorageActions |
+| storagecache | Azure.ResourceManager.StorageCache | sdk/storagecache/Azure.ResourceManager.StorageCache |
+| storagemover | Azure.ResourceManager.StorageMover | sdk/storagemover/Azure.ResourceManager.StorageMover |
+| storagepool | Azure.ResourceManager.StoragePool | sdk/storagepool/Azure.ResourceManager.StoragePool |
+| storagesync | Azure.ResourceManager.StorageSync | sdk/storagesync/Azure.ResourceManager.StorageSync |
+| streamanalytics | Azure.ResourceManager.StreamAnalytics | sdk/streamanalytics/Azure.ResourceManager.StreamAnalytics |
+| subscription | Azure.ResourceManager.Subscription | sdk/subscription/Azure.ResourceManager.Subscription |
+| support | Azure.ResourceManager.Support | sdk/support/Azure.ResourceManager.Support |
+| synapse | Azure.ResourceManager.Synapse | sdk/synapse/Azure.ResourceManager.Synapse |
+| trafficmanager | Azure.ResourceManager.TrafficManager | sdk/trafficmanager/Azure.ResourceManager.TrafficManager |
+| trustedsigning | Azure.ResourceManager.TrustedSigning | sdk/trustedsigning/Azure.ResourceManager.TrustedSigning |
+| voiceservices | Azure.ResourceManager.VoiceServices | sdk/voiceservices/Azure.ResourceManager.VoiceServices |
+| webpubsub | Azure.ResourceManager.WebPubSub | sdk/webpubsub/Azure.ResourceManager.WebPubSub |
+| websites | Azure.ResourceManager.AppService | sdk/websites/Azure.ResourceManager.AppService |
+| workloadmonitor | Azure.ResourceManager.WorkloadMonitor | sdk/workloadmonitor/Azure.ResourceManager.WorkloadMonitor |
+| workloads | Azure.ResourceManager.Workloads | sdk/workloads/Azure.ResourceManager.Workloads |
+
+
+## Libraries with No Generator
+
+Libraries with no generator have neither autorest.md nor tsp-location.yaml files. Total: 37
+
+| Service | Library | Path |
+| ------- | ------- | ---- |
+| cloudmachine | Azure.Projects | sdk/cloudmachine/Azure.Projects |
+| cloudmachine | Azure.Projects.AI | sdk/cloudmachine/Azure.Projects.AI |
+| cloudmachine | Azure.Projects.AI.Foundry | sdk/cloudmachine/Azure.Projects.AI.Foundry |
+| cloudmachine | Azure.Projects.Provisioning | sdk/cloudmachine/Azure.Projects.Provisioning |
+| cloudmachine | Azure.Projects.Tsp | sdk/cloudmachine/Azure.Projects.Tsp |
+| cloudmachine | Azure.Projects.Web | sdk/cloudmachine/Azure.Projects.Web |
+| communication | Azure.Communication.Common | sdk/communication/Azure.Communication.Common |
+| communication | Shared | sdk/communication/Shared |
+| core | Azure.Core | sdk/core/Azure.Core |
+| core | Azure.Core.Amqp | sdk/core/Azure.Core.Amqp |
+| core | Azure.Core.Experimental | sdk/core/Azure.Core.Experimental |
+| core | System.ClientModel | sdk/core/System.ClientModel |
+| eventhub | Azure.Messaging.EventHubs | sdk/eventhub/Azure.Messaging.EventHubs |
+| eventhub | Azure.Messaging.EventHubs.Processor | sdk/eventhub/Azure.Messaging.EventHubs.Processor |
+| eventhub | Azure.Messaging.EventHubs.Shared | sdk/eventhub/Azure.Messaging.EventHubs.Shared |
+| extensions | Azure.Extensions.AspNetCore.Configuration.Secrets | sdk/extensions/Azure.Extensions.AspNetCore.Configuration.Secrets |
+| extensions | Azure.Extensions.AspNetCore.DataProtection.Blobs | sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Blobs |
+| extensions | Azure.Extensions.AspNetCore.DataProtection.Keys | sdk/extensions/Azure.Extensions.AspNetCore.DataProtection.Keys |
+| identity | Azure.Identity | sdk/identity/Azure.Identity |
+| identity | Azure.Identity.Broker | sdk/identity/Azure.Identity.Broker |
+| keyvault | Azure.Security.KeyVault.Certificates | sdk/keyvault/Azure.Security.KeyVault.Certificates |
+| keyvault | Azure.Security.KeyVault.Keys | sdk/keyvault/Azure.Security.KeyVault.Keys |
+| keyvault | Azure.Security.KeyVault.Secrets | sdk/keyvault/Azure.Security.KeyVault.Secrets |
+| keyvault | Azure.Security.KeyVault.Shared | sdk/keyvault/Azure.Security.KeyVault.Shared |
+| modelsrepository | Azure.IoT.ModelsRepository | sdk/modelsrepository/Azure.IoT.ModelsRepository |
+| monitor | Azure.Monitor.OpenTelemetry.AspNetCore | sdk/monitor/Azure.Monitor.OpenTelemetry.AspNetCore |
+| playwrighttesting | Azure.Developer.MicrosoftPlaywrightTesting.NUnit | sdk/playwrighttesting/Azure.Developer.MicrosoftPlaywrightTesting.NUnit |
+| provisioning | Azure.Provisioning.Deployment | sdk/provisioning/Azure.Provisioning.Deployment |
+| provisioning | Generator | sdk/provisioning/Generator |
+| servicebus | Azure.Messaging.ServiceBus | sdk/servicebus/Azure.Messaging.ServiceBus |
+| storage | Azure.Storage.Blobs.ChangeFeed | sdk/storage/Azure.Storage.Blobs.ChangeFeed |
+| storage | Azure.Storage.DataMovement | sdk/storage/Azure.Storage.DataMovement |
+| storage | Azure.Storage.DataMovement.Blobs | sdk/storage/Azure.Storage.DataMovement.Blobs |
+| storage | Azure.Storage.DataMovement.Files.Shares | sdk/storage/Azure.Storage.DataMovement.Files.Shares |
+| storage | Azure.Storage.Internal.Avro | sdk/storage/Azure.Storage.Internal.Avro |
+| synapse | Azure.Analytics.Synapse.Shared | sdk/synapse/Azure.Analytics.Synapse.Shared |
+| webpubsub | Azure.Messaging.WebPubSub.Client | sdk/webpubsub/Azure.Messaging.WebPubSub.Client |
\ No newline at end of file
diff --git a/doc/GeneratorMigration/Library_Inventory.py b/doc/GeneratorMigration/Library_Inventory.py
new file mode 100644
index 000000000000..7c9ccd6caa12
--- /dev/null
+++ b/doc/GeneratorMigration/Library_Inventory.py
@@ -0,0 +1,362 @@
+#!/usr/bin/env python3
+
+"""
+Azure SDK for .NET Libraries Inventory Generator
+
+This script generates an inventory of libraries in the Azure SDK for .NET repository,
+categorizing them as data plane or management plane, and by the type of generator used
+(Swagger or TypeSpec).
+
+Usage:
+ python Library_Inventory.py [--json]
+
+Options:
+ --json Generate a JSON file with the inventory data
+"""
+
+import os
+import re
+import json
+import glob
+import sys
+from pathlib import Path
+
+def is_mgmt_library(path):
+ """Check if a library is a management plane library."""
+ if "Azure.ResourceManager" in path or ".Management." in path:
+ return True
+ return False
+
+def identify_generator(path):
+ """
+ Identify if a library is generated using swagger or tsp.
+ Returns: "Swagger", a specific TypeSpec generator name, "TSP-Old", or "No Generator"
+ """
+ # Special case for Azure.AI.OpenAI which uses TypeSpec with new generator via special handling
+ if os.path.basename(path) == "Azure.AI.OpenAI" and "openai" in path:
+ return "@azure-typespec/http-client-csharp"
+
+ # First check for direct TypeSpec indicators
+ tsp_config_path = os.path.join(path, "src", "tspconfig.yaml")
+ tsp_dir = os.path.join(path, "src", "tsp")
+ tsp_files = glob.glob(os.path.join(path, "src", "*.tsp"))
+
+ # Check for tsp-location.yaml files
+ tsp_location_paths = []
+ for root, dirs, files in os.walk(path):
+ for file in files:
+ if file.lower() == "tsp-location.yaml":
+ tsp_location_paths.append(os.path.join(root, file))
+
+ # If there's a tsp-location.yaml file and it contains emitterPackageJsonPath, extract the generator name
+ for tsp_location_path in tsp_location_paths:
+ try:
+ with open(tsp_location_path, 'r', encoding='utf-8', errors='ignore') as f:
+ content = f.read()
+ if "emitterPackageJsonPath" in content:
+ # Extract the emitterPackageJsonPath value
+ import re
+ match = re.search(r'emitterPackageJsonPath:\s*"([^"]+)"', content)
+ if match:
+ emitter_path = match.group(1)
+ # Construct absolute path to the emitter package JSON
+ repo_root = os.path.abspath(os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", ".."))
+ emitter_json_path = os.path.join(repo_root, emitter_path)
+
+ # Try to read the generator name from the emitter package JSON
+ if os.path.exists(emitter_json_path):
+ try:
+ with open(emitter_json_path, 'r', encoding='utf-8', errors='ignore') as f:
+ package_json = json.load(f)
+ # Look for TypeSpec generator in dependencies
+ for dep in package_json.get('dependencies', {}):
+ if dep.startswith('@azure-typespec/'):
+ # Return the fully qualified name of the emitter package
+ return dep
+ except Exception as e:
+ pass # Fall back to generic name if can't extract
+
+ # If we couldn't extract a specific name, use a default fully qualified name
+ return "@azure-typespec/http-client-csharp" # Default name for new generator
+ else:
+ # Found tsp-location.yaml but no emitterPackageJsonPath, it's using the old TypeSpec generator
+ return "TSP-Old"
+ except:
+ pass
+
+ if os.path.exists(tsp_config_path) or os.path.exists(tsp_dir) or tsp_files:
+ return "TSP-Old"
+
+ # Check autorest.md for generator information
+ autorest_md_path = os.path.join(path, "src", "autorest.md")
+ if os.path.exists(autorest_md_path):
+ # If autorest.md exists, assume it's a Swagger library
+ return "Swagger"
+
+ # No autorest.md but Generated folder exists, assume Swagger
+ if os.path.exists(os.path.join(path, "src", "Generated")):
+ return "Swagger"
+
+ # Check if there's any file in src with "// " comment
+ # which is typically found in AutoRest generated code
+ src_dir = os.path.join(path, "src")
+ if os.path.exists(src_dir):
+ for root, dirs, files in os.walk(src_dir):
+ for file in files:
+ if file.endswith(".cs"):
+ file_path = os.path.join(root, file)
+ try:
+ with open(file_path, 'r', encoding='utf-8', errors='ignore') as f:
+ first_lines = "".join([f.readline() for _ in range(10)])
+ if "" in first_lines:
+ return "Swagger" # Default to Swagger if we see auto-generated code
+ except:
+ pass
+
+ # If we couldn't identify a generator, it's "No Generator" instead of "Unknown"
+ return "No Generator"
+
+def scan_libraries(sdk_root):
+ """
+ Scan all libraries in the sdk directory.
+
+ Args:
+ sdk_root (str): Path to the SDK root directory
+
+ Returns:
+ list: List of dictionaries with library information
+ """
+ libraries = []
+
+ # Scan through all service directories
+ for service_dir in os.listdir(sdk_root):
+ service_path = os.path.join(sdk_root, service_dir)
+ if not os.path.isdir(service_path):
+ continue
+
+ # Look for library directories
+ for library_dir in os.listdir(service_path):
+ library_path = os.path.join(service_path, library_dir)
+ if not os.path.isdir(library_path):
+ continue
+
+ # Skip directories that don't look like libraries
+ if library_dir in ["tests", "samples", "perf", "assets", "docs"]:
+ continue
+
+ # Skip libraries that start with "Microsoft."
+ if library_dir.startswith("Microsoft."):
+ continue
+
+ # If it has a /src directory or a csproj file, it's likely a library
+ if os.path.exists(os.path.join(library_path, "src")) or glob.glob(os.path.join(library_path, "*.csproj")):
+ library_type = "Management" if is_mgmt_library(library_path) else "Data Plane"
+ generator = identify_generator(library_path)
+
+ libraries.append({
+ "service": service_dir,
+ "library": library_dir,
+ "path": os.path.relpath(library_path, os.path.dirname(sdk_root)),
+ "type": library_type,
+ "generator": generator
+ })
+
+ return libraries
+
+def generate_markdown_report(libraries):
+ """
+ Generate a markdown report from the library inventory.
+
+ Args:
+ libraries (list): List of library dictionaries
+
+ Returns:
+ str: Markdown report content
+ """
+ # Group by type and generator
+ mgmt_swagger = [lib for lib in libraries if lib["type"] == "Management" and lib["generator"] == "Swagger"]
+ data_swagger = [lib for lib in libraries if lib["type"] == "Data Plane" and lib["generator"] == "Swagger"]
+
+ # Old TypeSpec libraries
+ mgmt_tsp_old = [lib for lib in libraries if lib["type"] == "Management" and lib["generator"] == "TSP-Old"]
+ data_tsp_old = [lib for lib in libraries if lib["type"] == "Data Plane" and lib["generator"] == "TSP-Old"]
+
+ # Group by specific TypeSpec generator
+ # First, identify all unique new generator types
+ new_generator_types = set([
+ lib["generator"]
+ for lib in libraries
+ if lib["generator"] not in ["Swagger", "TSP-Old", "No Generator"]
+ ])
+
+ # Create groups for each generator type
+ mgmt_tsp_by_generator = {}
+ data_tsp_by_generator = {}
+
+ for gen_type in new_generator_types:
+ mgmt_tsp_by_generator[gen_type] = [
+ lib for lib in libraries
+ if lib["type"] == "Management" and lib["generator"] == gen_type
+ ]
+ data_tsp_by_generator[gen_type] = [
+ lib for lib in libraries
+ if lib["type"] == "Data Plane" and lib["generator"] == gen_type
+ ]
+
+ no_generator = [lib for lib in libraries if lib["generator"] == "No Generator"]
+
+ report = []
+ report.append("# Azure SDK for .NET Libraries Inventory\n")
+
+ report.append("## Summary\n")
+ report.append(f"- Total libraries: {len(libraries)}")
+ report.append(f"- Management Plane (Swagger): {len(mgmt_swagger)}")
+ report.append(f"- Management Plane (TSP-Old): {len(mgmt_tsp_old)}")
+
+ # List all new generator types with counts
+ for gen_type in sorted(new_generator_types):
+ report.append(f"- Management Plane (TypeSpec - {gen_type}): {len(mgmt_tsp_by_generator[gen_type])}")
+
+ report.append(f"- Data Plane (Swagger): {len(data_swagger)}")
+ report.append(f"- Data Plane (TSP-Old): {len(data_tsp_old)}")
+
+ # List all new generator types with counts for data plane
+ for gen_type in sorted(new_generator_types):
+ report.append(f"- Data Plane (TypeSpec - {gen_type}): {len(data_tsp_by_generator[gen_type])}")
+
+ report.append(f"- No generator: {len(no_generator)}")
+ report.append("\n")
+
+ # Add sections for each TypeSpec generator for Data Plane
+ for gen_type in sorted(new_generator_types):
+ if len(data_tsp_by_generator[gen_type]) > 0:
+ report.append(f"## Data Plane Libraries using TypeSpec ({gen_type})\n")
+ report.append(f"TypeSpec with {gen_type} generator is detected by the presence of a tsp-location.yaml file with an emitterPackageJsonPath value referencing {gen_type}, or through special handling for specific libraries. Total: {len(data_tsp_by_generator[gen_type])}\n")
+ report.append("| Service | Library | Path |")
+ report.append("| ------- | ------- | ---- |")
+ for lib in sorted(data_tsp_by_generator[gen_type], key=lambda x: (x["service"], x["library"])):
+ report.append(f"| {lib['service']} | {lib['library']} | {lib['path']} |")
+ report.append("\n")
+
+ # Old TypeSpec Data Plane Libraries
+ if len(data_tsp_old) > 0:
+ report.append("## Data Plane Libraries using TypeSpec (Old Generator)\n")
+ report.append(f"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: {len(data_tsp_old)}\n")
+ report.append("| Service | Library | Path |")
+ report.append("| ------- | ------- | ---- |")
+ for lib in sorted(data_tsp_old, key=lambda x: (x["service"], x["library"])):
+ report.append(f"| {lib['service']} | {lib['library']} | {lib['path']} |")
+ report.append("\n")
+
+ # Data Plane Swagger Libraries
+ if len(data_swagger) > 0:
+ report.append("## Data Plane Libraries using Swagger\n")
+ report.append(f"Total: {len(data_swagger)}\n")
+ report.append("| Service | Library | Path |")
+ report.append("| ------- | ------- | ---- |")
+ for lib in sorted(data_swagger, key=lambda x: (x["service"], x["library"])):
+ report.append(f"| {lib['service']} | {lib['library']} | {lib['path']} |")
+ report.append("\n")
+
+ # Add sections for each TypeSpec generator for Management Plane
+ for gen_type in sorted(new_generator_types):
+ if len(mgmt_tsp_by_generator[gen_type]) > 0:
+ report.append(f"## Management Plane Libraries using TypeSpec ({gen_type})\n")
+ report.append(f"TypeSpec with {gen_type} generator is detected by the presence of a tsp-location.yaml file with an emitterPackageJsonPath value referencing {gen_type}, or through special handling for specific libraries. Total: {len(mgmt_tsp_by_generator[gen_type])}\n")
+ report.append("| Service | Library | Path |")
+ report.append("| ------- | ------- | ---- |")
+ for lib in sorted(mgmt_tsp_by_generator[gen_type], key=lambda x: (x["service"], x["library"])):
+ report.append(f"| {lib['service']} | {lib['library']} | {lib['path']} |")
+ report.append("\n")
+
+ # Old TypeSpec Management Plane Libraries
+ if len(mgmt_tsp_old) > 0:
+ report.append("## Management Plane Libraries using TypeSpec (Old Generator)\n")
+ report.append(f"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: {len(mgmt_tsp_old)}\n")
+ report.append("| Service | Library | Path |")
+ report.append("| ------- | ------- | ---- |")
+ for lib in sorted(mgmt_tsp_old, key=lambda x: (x["service"], x["library"])):
+ report.append(f"| {lib['service']} | {lib['library']} | {lib['path']} |")
+ report.append("\n")
+
+ # Management Plane Swagger Libraries
+ if len(mgmt_swagger) > 0:
+ report.append("## Management Plane Libraries using Swagger\n")
+ report.append(f"Total: {len(mgmt_swagger)}\n")
+ report.append("| Service | Library | Path |")
+ report.append("| ------- | ------- | ---- |")
+ for lib in sorted(mgmt_swagger, key=lambda x: (x["service"], x["library"])):
+ report.append(f"| {lib['service']} | {lib['library']} | {lib['path']} |")
+ report.append("\n")
+
+ # No Generator Libraries
+ report.append("## Libraries with No Generator\n")
+ report.append(f"Libraries with no generator have neither autorest.md nor tsp-location.yaml files. Total: {len(no_generator)}\n")
+ report.append("| Service | Library | Path |")
+ report.append("| ------- | ------- | ---- |")
+ for lib in sorted(no_generator, key=lambda x: (x["service"], x["library"])):
+ report.append(f"| {lib['service']} | {lib['library']} | {lib['path']} |")
+
+ return "\n".join(report)
+
+if __name__ == "__main__":
+ # Parse command line arguments
+ generate_json = "--json" in sys.argv
+
+ # Define the path to the SDK root directory
+ SDK_ROOT = os.path.join(os.path.dirname(os.path.abspath(__file__)), "..", "..", "sdk")
+
+ # Scan libraries
+ libraries = scan_libraries(SDK_ROOT)
+
+ # Print summary counts
+ mgmt_swagger = sum(1 for lib in libraries if lib["type"] == "Management" and lib["generator"] == "Swagger")
+ mgmt_tsp_old = sum(1 for lib in libraries if lib["type"] == "Management" and lib["generator"] == "TSP-Old")
+ data_swagger = sum(1 for lib in libraries if lib["type"] == "Data Plane" and lib["generator"] == "Swagger")
+ data_tsp_old = sum(1 for lib in libraries if lib["type"] == "Data Plane" and lib["generator"] == "TSP-Old")
+ no_generator = sum(1 for lib in libraries if lib["generator"] == "No Generator")
+
+ # Get counts for specific TypeSpec generators
+ new_generator_types = set([
+ lib["generator"]
+ for lib in libraries
+ if lib["generator"] not in ["Swagger", "TSP-Old", "No Generator"]
+ ])
+
+ print(f"Total libraries found: {len(libraries)}")
+ print(f"Management Plane (Swagger): {mgmt_swagger}")
+ print(f"Management Plane (TSP-Old): {mgmt_tsp_old}")
+
+ # Print counts for each new generator type in Management Plane
+ for gen_type in sorted(new_generator_types):
+ mgmt_gen_count = sum(1 for lib in libraries if lib["type"] == "Management" and lib["generator"] == gen_type)
+ if mgmt_gen_count > 0:
+ print(f"Management Plane (TypeSpec - {gen_type}): {mgmt_gen_count}")
+
+ print(f"Data Plane (Swagger): {data_swagger}")
+ print(f"Data Plane (TSP-Old): {data_tsp_old}")
+
+ # Print counts for each new generator type in Data Plane
+ for gen_type in sorted(new_generator_types):
+ data_gen_count = sum(1 for lib in libraries if lib["type"] == "Data Plane" and lib["generator"] == gen_type)
+ if data_gen_count > 0:
+ print(f"Data Plane (TypeSpec - {gen_type}): {data_gen_count}")
+
+ print(f"No generator: {no_generator}")
+
+ # Generate the inventory markdown file
+ markdown_report = generate_markdown_report(libraries)
+ inventory_md_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "Library_Inventory.md")
+ with open(inventory_md_path, 'w') as f:
+ f.write(markdown_report)
+
+ print(f"Library inventory markdown generated at: {inventory_md_path}")
+
+ # Export JSON only if requested via the --json flag
+ if generate_json:
+ json_path = os.path.join(os.path.dirname(os.path.abspath(__file__)), "Library_Inventory.json")
+ with open(json_path, 'w') as f:
+ json.dump(libraries, f, indent=2)
+ print(f"Library inventory JSON generated at: {json_path}")
+ else:
+ print("JSON file generation skipped. Use --json flag to generate the JSON file.")
\ No newline at end of file
diff --git a/doc/GeneratorMigration/Library_Inventory_Guide.md b/doc/GeneratorMigration/Library_Inventory_Guide.md
new file mode 100644
index 000000000000..062643b28fb4
--- /dev/null
+++ b/doc/GeneratorMigration/Library_Inventory_Guide.md
@@ -0,0 +1,85 @@
+# Azure SDK for .NET Library Inventory Guide
+
+This document outlines how to generate and maintain the inventory of libraries in the Azure SDK for .NET repository.
+
+## Purpose
+
+The library inventory helps us:
+
+1. Track all libraries in the repository
+2. Categorize them as data plane or management plane
+3. Identify which generator (Swagger or TypeSpec) they use
+4. Plan migrations to newer generators
+
+## Generating the Inventory
+
+To generate the library inventory:
+
+1. Run the `Library_Inventory.py` script from the repository root:
+
+```bash
+python doc/GeneratorMigration/Library_Inventory.py
+```
+
+2. The script will:
+ - Scan all libraries in the `sdk/` directory
+ - Categorize them by type (data plane or management plane)
+ - Identify the generator used (Swagger or TypeSpec)
+ - Generate a markdown report (`doc/GeneratorMigration/Library_Inventory.md`)
+
+3. If you need JSON output for programmatic use, use the `--json` flag:
+
+```bash
+python doc/GeneratorMigration/Library_Inventory.py --json
+```
+ - This will generate an additional `Library_Inventory.json` file with the raw inventory data
+ - Note: The JSON file is for temporary analytical use and should not be checked into the repository
+
+## Inventory Classification Logic
+
+The script uses the following logic to categorize libraries:
+
+### Data Plane vs Management Plane
+
+- **Management Plane**: Libraries that contain "Azure.ResourceManager" or ".Management." in their path
+- **Data Plane**: All other libraries
+
+### Swagger vs TypeSpec (TSP)
+
+The script looks for evidence of TypeSpec usage in the following order:
+
+1. Direct TypeSpec indicators:
+ - `tsp-location.yaml` file with an `emitterPackageJsonPath` value
+ - `src/tspconfig.yaml` file
+ - `src/tsp` directory
+ - `.tsp` files in the src directory
+
+2. Swagger indicators:
+ - Presence of `src/autorest.md` file
+ - `src/Generated` directory exists
+ - Files with `` comment headers
+
+If none of these TypeSpec indicators are found but there is evidence of code generation
+(like a `src/Generated` directory or files with `` markers), the script assumes Swagger.
+
+## Understanding the Results
+
+The inventory markdown file provides:
+
+1. Overall summary counts
+2. Tables for each category:
+ - Data Plane libraries using TypeSpec
+ - Data Plane libraries using Swagger
+ - Management Plane libraries using TypeSpec
+ - Management Plane libraries using Swagger
+ - Libraries with unknown generator
+
+## Updating the Inventory
+
+The inventory should be updated whenever:
+
+1. New libraries are added to the repository
+2. Libraries are migrated from Swagger to TypeSpec
+3. Preparing for migration planning
+
+Simply run the script again to regenerate the inventory files.
\ No newline at end of file
diff --git a/eng/CodeGeneration.targets b/eng/CodeGeneration.targets
index 9ecf7d56daa3..b8be7788bdc4 100644
--- a/eng/CodeGeneration.targets
+++ b/eng/CodeGeneration.targets
@@ -1,39 +1,24 @@
-
-
- <_AutoRestVersion>https://github.com/Azure/autorest/releases/download/autorest-3.0.6236/autorest-3.0.6236.tgz
- <_AutoRestCoreVersion>3.0.6306
- <_AutoRestCSharpVersion>https://github.com/Azure/autorest.csharp/releases/download/3.0.0-dev.20200811.1/autorest-csharp-v3-3.0.0-dev.20200811.1.tgz
- <_SupportsCodeGeneration Condition="'$(IsClientLibrary)' == 'true'">true
- <_DefaultInputName Condition="Exists('$(MSBuildProjectDirectory)/autorest.md')">$(MSBuildProjectDirectory)/autorest.md
- $(_DefaultInputName)
-
-
-
- <_GenerateCode Condition="'$(_SupportsCodeGeneration)' == 'true' AND '$(AutoRestInput)' != ''">true
-
-
+
+ $(MSBuildProjectDirectory)/../tsp-location.yaml
+ <_TypeSpecProjectGenerateCommand>npx --no-install --package=@azure-tools/typespec-client-generator-cli --yes tsp-client generate --no-prompt --output-dir $(MSBuildProjectDirectory)/../
+ <_TypeSpecProjectSyncAndGenerateCommand>npx --no-install --package=@azure-tools/typespec-client-generator-cli --yes tsp-client update --no-prompt --output-dir $(MSBuildProjectDirectory)/../
+ <_SaveInputs Condition="'$(SaveInputs)' == 'true'">--save-inputs
+
+ $(TypespecAdditionalOptions)%3Bgenerate-test-project=true
+ generate-test-project=true
+ <_TypespecAdditionalOptions Condition="'$(TypespecAdditionalOptions)' != ''">--emitter-options "$(TypespecAdditionalOptions)"
+ <_LocalSpecRepo Condition="'$(LocalSpecRepo)' != ''">--local-spec-repo $(LocalSpecRepo)
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
diff --git a/eng/Directory.Build.Common.props b/eng/Directory.Build.Common.props
index 874fdf1ec19a..4cd576529d9f 100644
--- a/eng/Directory.Build.Common.props
+++ b/eng/Directory.Build.Common.props
@@ -13,6 +13,7 @@
true
true
+ true
true
true
diff --git a/eng/Directory.Build.Common.targets b/eng/Directory.Build.Common.targets
index 8f42937efb33..f3d56135b7e5 100644
--- a/eng/Directory.Build.Common.targets
+++ b/eng/Directory.Build.Common.targets
@@ -89,7 +89,7 @@
-
+
@@ -172,7 +172,7 @@
-
+
diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props
index 9dca002a1715..42c947e3ee19 100644
--- a/eng/Packages.Data.props
+++ b/eng/Packages.Data.props
@@ -89,7 +89,7 @@
-
+
@@ -166,7 +166,7 @@
-
+
@@ -209,7 +209,6 @@
-
-
+
@@ -301,7 +300,7 @@
-
+
@@ -416,7 +415,7 @@
-
+
@@ -439,7 +438,7 @@
1.0.0-dev.20250501.1
- 1.0.0-alpha.20250509.1
- 1.0.0-alpha.20250508.1
+ 1.0.0-alpha.20250522.1
+ 1.0.0-alpha.20250522.1
diff --git a/eng/common/TestResources/New-TestResources.ps1 b/eng/common/TestResources/New-TestResources.ps1
index 1e28cdf10ef0..500bd89d0dfc 100755
--- a/eng/common/TestResources/New-TestResources.ps1
+++ b/eng/common/TestResources/New-TestResources.ps1
@@ -18,7 +18,7 @@ param (
[ValidatePattern('^[-\w\._\(\)]+$')]
[string] $ResourceGroupName,
- [Parameter(Mandatory = $true, Position = 0)]
+ [Parameter(Position = 0)]
[string] $ServiceDirectory,
[Parameter()]
@@ -159,10 +159,13 @@ if ($initialContext) {
# try..finally will also trap Ctrl+C.
try {
-
# Enumerate test resources to deploy. Fail if none found.
- $repositoryRoot = "$PSScriptRoot/../../.." | Resolve-Path
- $root = [System.IO.Path]::Combine($repositoryRoot, "sdk", $ServiceDirectory) | Resolve-Path
+ $root = $repositoryRoot = "$PSScriptRoot/../../.." | Resolve-Path
+
+ if($ServiceDirectory) {
+ $root = "$repositoryRoot/sdk/$ServiceDirectory" | Resolve-Path
+ }
+
if ($TestResourcesDirectory) {
$root = $TestResourcesDirectory | Resolve-Path
# Add an explicit check below in case ErrorActionPreference is overridden and Resolve-Path doesn't stop execution
@@ -171,6 +174,7 @@ try {
}
Write-Verbose "Overriding test resources search directory to '$root'"
}
+
$templateFiles = @()
"$ResourceType-resources.json", "$ResourceType-resources.bicep" | ForEach-Object {
@@ -192,7 +196,12 @@ try {
exit
}
+ # returns empty string if $ServiceDirectory is not set
$serviceName = GetServiceLeafDirectoryName $ServiceDirectory
+
+ # in ci, random names are used
+ # in non-ci, without BaseName, ResourceGroupName or ServiceDirectory, all invocations will
+ # generate the same resource group name and base name for a given user
$BaseName, $ResourceGroupName = GetBaseAndResourceGroupNames `
-baseNameDefault $BaseName `
-resourceGroupNameDefault $ResourceGroupName `
@@ -296,7 +305,7 @@ try {
}
}
- # This needs to happen after we set the TenantId but before we use the ResourceGroupName
+ # This needs to happen after we set the TenantId but before we use the ResourceGroupName
if ($wellKnownTMETenants.Contains($TenantId)) {
# Add a prefix to the resource group name to avoid flagging the usages of local auth
# See details at https://eng.ms/docs/products/onecert-certificates-key-vault-and-dsms/key-vault-dsms/certandsecretmngmt/credfreefaqs#how-can-i-disable-s360-reporting-when-testing-customer-facing-3p-features-that-depend-on-use-of-unsafe-local-auth
@@ -364,9 +373,10 @@ try {
$ProvisionerApplicationOid = $sp.Id
}
- $tags = @{
- Owners = (GetUserName)
- ServiceDirectory = $ServiceDirectory
+ $tags = @{ Owners = (GetUserName) }
+
+ if ($ServiceDirectory) {
+ $tags['ServiceDirectory'] = $ServiceDirectory
}
# Tag the resource group to be deleted after a certain number of hours.
diff --git a/eng/common/TestResources/Remove-TestResources.ps1 b/eng/common/TestResources/Remove-TestResources.ps1
index 4479d9783d6f..232c86196c15 100755
--- a/eng/common/TestResources/Remove-TestResources.ps1
+++ b/eng/common/TestResources/Remove-TestResources.ps1
@@ -157,10 +157,6 @@ $context = Get-AzContext
if (!$ResourceGroupName) {
if ($CI) {
- if (!$ServiceDirectory) {
- Write-Warning "ServiceDirectory parameter is empty, nothing to remove"
- exit 0
- }
$envVarName = (BuildServiceDirectoryPrefix (GetServiceLeafDirectoryName $ServiceDirectory)) + "RESOURCE_GROUP"
$ResourceGroupName = [Environment]::GetEnvironmentVariable($envVarName)
if (!$ResourceGroupName) {
@@ -221,7 +217,12 @@ if ($wellKnownSubscriptions.ContainsKey($subscriptionName)) {
Log "Selected subscription '$subscriptionName'"
if ($ServiceDirectory) {
- $root = [System.IO.Path]::Combine("$PSScriptRoot/../../../sdk", $ServiceDirectory) | Resolve-Path
+ $root = "$PSScriptRoot/../../.."
+ if($ServiceDirectory) {
+ $root = "$root/sdk/$ServiceDirectory"
+ }
+ $root = $root | Resolve-Path
+
$preRemovalScript = Join-Path -Path $root -ChildPath "remove-$ResourceType-resources-pre.ps1"
if (Test-Path $preRemovalScript) {
Log "Invoking pre resource removal script '$preRemovalScript'"
diff --git a/eng/common/TestResources/SubConfig-Helpers.ps1 b/eng/common/TestResources/SubConfig-Helpers.ps1
index ab2344283bb3..061160d59f6c 100644
--- a/eng/common/TestResources/SubConfig-Helpers.ps1
+++ b/eng/common/TestResources/SubConfig-Helpers.ps1
@@ -1,4 +1,7 @@
function BuildServiceDirectoryPrefix([string]$serviceName) {
+ if(!$serviceName) {
+ return ""
+ }
$serviceName = $serviceName -replace '[\./\\]', '_'
return $serviceName.ToUpperInvariant() + "_"
}
@@ -32,10 +35,15 @@ function GetBaseAndResourceGroupNames(
if ($CI) {
$base = 't' + (New-Guid).ToString('n').Substring(0, 16)
# Format the resource group name based on resource group naming recommendations and limitations.
- $generatedGroup = "rg-{0}-$base" -f ($serviceName -replace '[\.\\\/:]', '-').
- Substring(0, [Math]::Min($serviceDirectoryName.Length, 90 - $base.Length - 4)).
- Trim('-').
- ToLowerInvariant()
+ if ($serviceDirectoryName) {
+ $generatedGroup = "rg-{0}-$base" -f ($serviceName -replace '[\.\\\/:]', '-').
+ Substring(0, [Math]::Min($serviceDirectoryName.Length, 90 - $base.Length - 4)).
+ Trim('-').
+ ToLowerInvariant()
+ } else {
+ $generatedGroup = "rg-$base"
+ }
+
$group = $resourceGroupNameDefault ? $resourceGroupNameDefault : $generatedGroup
Log "Generated resource base name '$base' and resource group name '$group' for CI build"
diff --git a/eng/common/TestResources/TestResources-Helpers.ps1 b/eng/common/TestResources/TestResources-Helpers.ps1
index 5968cac5d0d0..cbe047ebc5f1 100644
--- a/eng/common/TestResources/TestResources-Helpers.ps1
+++ b/eng/common/TestResources/TestResources-Helpers.ps1
@@ -129,8 +129,30 @@ function MergeHashes([hashtable] $source, [psvariable] $dest) {
}
}
+function IsBicepInstalled() {
+ try {
+ bicep --version | Out-Null
+ return $LASTEXITCODE -eq 0
+ }
+ catch {
+ return $false
+ }
+}
+
+function IsAzCliBicepInstalled() {
+ try {
+ az bicep version | Out-Null
+ return $LASTEXITCODE -eq 0
+ }
+ catch {
+ return $false
+ }
+}
+
function BuildBicepFile([System.IO.FileSystemInfo] $file) {
- if (!(Get-Command bicep -ErrorAction Ignore)) {
+ $useBicepCli = IsBicepInstalled
+
+ if (!$useBicepCli -and !(IsAzCliBicepInstalled)) {
Write-Error "A bicep file was found at '$($file.FullName)' but the Azure Bicep CLI is not installed. See https://aka.ms/bicep-install"
throw
}
@@ -140,7 +162,12 @@ function BuildBicepFile([System.IO.FileSystemInfo] $file) {
# Az can deploy bicep files natively, but by compiling here it becomes easier to parse the
# outputted json for mismatched parameter declarations.
- bicep build $file.FullName --outfile $templateFilePath
+ if ($useBicepCli) {
+ bicep build $file.FullName --outfile $templateFilePath
+ } else {
+ az bicep build --file $file.FullName --outfile $templateFilePath
+ }
+
if ($LASTEXITCODE) {
Write-Error "Failure building bicep file '$($file.FullName)'"
throw
@@ -150,13 +177,22 @@ function BuildBicepFile([System.IO.FileSystemInfo] $file) {
}
function LintBicepFile([string] $path) {
- if (!(Get-Command bicep -ErrorAction Ignore)) {
- Write-Error "A bicep file was found at '$path' but the Azure Bicep CLI is not installed. See https://aka.ms/bicep-install"
- throw
+ $useBicepCli = IsBicepInstalled
+
+ if (!$useBicepCli -and !(IsAzCliBicepInstalled)) {
+ Write-Error "A bicep file was found at '$path' but the Azure Bicep CLI is not installed. See https://aka.ms/bicep-install"
+ throw
}
# Work around lack of config file override: https://github.com/Azure/bicep/issues/5013
- $output = bicep lint "$path" 2>&1
+ $output = bicep lint $path 2>&1
+
+ if ($useBicepCli) {
+ $output = bicep lint $path 2>&1
+ } else {
+ $output = az bicep lint --file $path 2>&1
+ }
+
if ($LASTEXITCODE) {
Write-Error "Failed linting bicep file '$path'"
throw
diff --git a/eng/common/TestResources/deploy-test-resources.yml b/eng/common/TestResources/deploy-test-resources.yml
index 9a4887622d4c..e64404e7c5b4 100644
--- a/eng/common/TestResources/deploy-test-resources.yml
+++ b/eng/common/TestResources/deploy-test-resources.yml
@@ -1,5 +1,5 @@
parameters:
- ServiceDirectory: not-set
+ ServiceDirectory: ''
ArmTemplateParameters: '@{}'
DeleteAfterHours: 8
Location: ''
diff --git a/eng/common/mcp/azure-sdk-mcp.ps1 b/eng/common/mcp/azure-sdk-mcp.ps1
index a344051f7e11..ade107e406d8 100755
--- a/eng/common/mcp/azure-sdk-mcp.ps1
+++ b/eng/common/mcp/azure-sdk-mcp.ps1
@@ -1,7 +1,7 @@
#!/bin/env pwsh
param(
- [string]$FileName = 'azsdk',
+ [string]$FileName = 'Azure.Sdk.Tools.Cli',
[string]$Package = 'azsdk',
[string]$Version, # Default to latest
[string]$InstallDirectory = (Join-Path $HOME ".azure-sdk-mcp" "azsdk"),
@@ -56,5 +56,5 @@ $exe = Install-Standalone-Tool `
-Repository $Repository
if ($Run) {
- Start-Process -FilePath $exe -NoNewWindow -Wait
-}
\ No newline at end of file
+ Start-Process -FilePath $exe -ArgumentList 'start' -NoNewWindow -Wait
+}
diff --git a/eng/common/pipelines/templates/steps/check-spelling.yml b/eng/common/pipelines/templates/steps/check-spelling.yml
index a25fd9444118..8d7a716cbdfc 100644
--- a/eng/common/pipelines/templates/steps/check-spelling.yml
+++ b/eng/common/pipelines/templates/steps/check-spelling.yml
@@ -15,15 +15,9 @@ parameters:
steps:
- ${{ if eq(variables['Build.Reason'], 'PullRequest') }}:
- - task: NodeTool@0
- condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
- inputs:
- versionSpec: 18.x
- displayName: Use Node.js 18.x
-
- task: PowerShell@2
displayName: Check spelling (cspell)
- condition: and(succeededOrFailed(), ne(variables['Skip.SpellCheck'],'true'))
+ condition: and(succeeded(), ne(variables['Skip.SpellCheck'],'true'))
continueOnError: ${{ parameters.ContinueOnError }}
inputs:
targetType: filePath
diff --git a/eng/common/pipelines/templates/steps/detect-api-changes.yml b/eng/common/pipelines/templates/steps/detect-api-changes.yml
index 2525dade5205..573a23c1979d 100644
--- a/eng/common/pipelines/templates/steps/detect-api-changes.yml
+++ b/eng/common/pipelines/templates/steps/detect-api-changes.yml
@@ -24,5 +24,5 @@ steps:
-ArtifactName ${{ parameters.ArtifactName }}
-DevopsProject $(System.TeamProject)
pwsh: true
- displayName: Detect API changes
+ displayName: Create APIView if API has changes
condition: and(${{ parameters.Condition }}, succeededOrFailed(), eq(variables['Build.Reason'],'PullRequest'))
diff --git a/eng/common/pipelines/templates/steps/save-package-properties.yml b/eng/common/pipelines/templates/steps/save-package-properties.yml
index 65966d1c6f18..d3a1177aced5 100644
--- a/eng/common/pipelines/templates/steps/save-package-properties.yml
+++ b/eng/common/pipelines/templates/steps/save-package-properties.yml
@@ -41,11 +41,26 @@ steps:
pwsh: true
workingDirectory: '${{ parameters.WorkingDirectory }}'
+ - task: Powershell@2
+ displayName: Save package properties filtered for PR
+ inputs:
+ filePath: ${{ parameters.ScriptDirectory }}/Save-Package-Properties.ps1
+ arguments: >
+ -PrDiff '${{ parameters.DiffDirectory }}/diff.json'
+ -OutDirectory '${{ parameters.PackageInfoDirectory }}'
+ pwsh: true
+ workingDirectory: '${{ parameters.WorkingDirectory }}'
+
# When running in PR mode, we want the detected changed services to be attached to the build as tags.
# However, the public identity does not have the permissions to attach tags to the build.
# Instead, we will save the changed services to a file, attach it as an attachment for PiplineWitness to pick up and utilize.
+ #
- pwsh: |
- $changedServices = (Get-Content -Path '${{ parameters.DiffDirectory }}/diff.json' -Raw | ConvertFrom-Json).ChangedServices
+ $changedPackages = Get-ChildItem -Recurse -Filter *.json "${{ parameters.PackageInfoDirectory }}" `
+ | ForEach-Object { Get-Content -Raw $_ | ConvertFrom-Json }
+
+ $changedServices = $changedPackages | Where-Object { $_.IncludedForValidation -eq $false } `
+ | Select-Object -ExpandProperty ServiceDirectory | Sort-Object -Unique
if ($changedServices) {
Write-Host "Attaching changed service names to the build for additional tag generation."
@@ -55,15 +70,6 @@ steps:
displayName: Upload tags.json with changed services
workingDirectory: '${{ parameters.WorkingDirectory }}'
- - task: Powershell@2
- displayName: Save package properties filtered for PR
- inputs:
- filePath: ${{ parameters.ScriptDirectory }}/Save-Package-Properties.ps1
- arguments: >
- -PrDiff '${{ parameters.DiffDirectory }}/diff.json'
- -OutDirectory '${{ parameters.PackageInfoDirectory }}'
- pwsh: true
- workingDirectory: '${{ parameters.WorkingDirectory }}'
- ${{ else }}:
- task: Powershell@2
displayName: Save package properties
diff --git a/eng/common/pipelines/templates/steps/sparse-checkout.yml b/eng/common/pipelines/templates/steps/sparse-checkout.yml
index d3992a85e3f6..d7f1bc0d1246 100644
--- a/eng/common/pipelines/templates/steps/sparse-checkout.yml
+++ b/eng/common/pipelines/templates/steps/sparse-checkout.yml
@@ -14,6 +14,9 @@ parameters:
- name: TokenToUseForAuth
type: string
default: ''
+ - name: PreserveAuthToken
+ type: boolean
+ default: false
steps:
- ${{ if not(parameters.SkipCheckoutNone) }}:
@@ -137,7 +140,7 @@ steps:
pwsh: true
workingDirectory: $(System.DefaultWorkingDirectory)
- - ${{ if ne(parameters.TokenToUseForAuth, '') }}:
+ - ${{ if and(ne(parameters.TokenToUseForAuth, ''), not(parameters.PreserveAuthToken)) }}:
- pwsh: |
git config unset --global "http.extraheader"
displayName: Removing git config auth header
diff --git a/eng/common/scripts/ChangeLog-Operations.ps1 b/eng/common/scripts/ChangeLog-Operations.ps1
index 3d159ad8be74..f29fc12068dc 100644
--- a/eng/common/scripts/ChangeLog-Operations.ps1
+++ b/eng/common/scripts/ChangeLog-Operations.ps1
@@ -19,7 +19,7 @@ function Get-ChangeLogEntries {
LogError "ChangeLog[${ChangeLogLocation}] does not exist"
return $null
}
- LogDebug "Extracting entries from [${ChangeLogLocation}]."
+ Write-Verbose "Extracting entries from [${ChangeLogLocation}]."
return Get-ChangeLogEntriesFromContent (Get-Content -Path $ChangeLogLocation)
}
diff --git a/eng/common/scripts/Detect-Api-Changes.ps1 b/eng/common/scripts/Detect-Api-Changes.ps1
index 6be93332118c..25f3101a8b9b 100644
--- a/eng/common/scripts/Detect-Api-Changes.ps1
+++ b/eng/common/scripts/Detect-Api-Changes.ps1
@@ -55,11 +55,21 @@ function Submit-Request($filePath, $packageName)
}
$uri = [System.UriBuilder]$APIViewUri
$uri.query = $query.toString()
+
+ $correlationId = [System.Guid]::NewGuid().ToString()
+ $headers = @{
+ "x-correlation-id" = $correlationId
+ }
LogInfo "Request URI: $($uri.Uri.OriginalString)"
+ LogInfo "Correlation ID: $correlationId"
try
{
- $Response = Invoke-WebRequest -Method 'GET' -Uri $uri.Uri -MaximumRetryCount 3
+ $Response = Invoke-WebRequest -Method 'GET' -Uri $uri.Uri -Headers $headers -MaximumRetryCount 3
$StatusCode = $Response.StatusCode
+ if ($Response.Headers['Content-Type'] -like 'application/json*') {
+ $responseContent = $Response.Content | ConvertFrom-Json | ConvertTo-Json -Depth 10
+ LogSuccess $responseContent
+ }
}
catch
{
diff --git a/eng/common/scripts/Helpers/ApiView-Helpers.ps1 b/eng/common/scripts/Helpers/ApiView-Helpers.ps1
index af5335a98def..d5813d19fdcb 100644
--- a/eng/common/scripts/Helpers/ApiView-Helpers.ps1
+++ b/eng/common/scripts/Helpers/ApiView-Helpers.ps1
@@ -168,10 +168,16 @@ function Set-ApiViewCommentForPR {
$apiviewEndpoint = "$APIViewHost/api/pullrequests?pullRequestNumber=$PrNumber&repoName=$repoFullName&commitSHA=$HeadCommitish"
LogDebug "Get APIView information for PR using endpoint: $apiviewEndpoint"
+ $correlationId = [System.Guid]::NewGuid().ToString()
+ $headers = @{
+ "x-correlation-id" = $correlationId
+ }
+ LogInfo "Correlation ID: $correlationId"
+
$commentText = @()
$commentText += "## API Change Check"
try {
- $response = Invoke-WebRequest -Uri $apiviewEndpoint -Method Get -MaximumRetryCount 3
+ $response = Invoke-WebRequest -Uri $apiviewEndpoint -Method Get -Headers $headers -MaximumRetryCount 3
LogInfo "OperationId: $($response.Headers['X-Operation-Id'])"
if ($response.StatusCode -ne 200) {
LogInfo "API changes are not detected in this pull request."
@@ -261,7 +267,6 @@ function Create-API-Review {
$correlationId = [System.Guid]::NewGuid().ToString()
$headers = @{
- "Content-Type" = "application/json"
"x-correlation-id" = $correlationId
}
@@ -271,11 +276,20 @@ function Create-API-Review {
try
{
$response = Invoke-WebRequest -Method 'GET' -Uri $requestUri.Uri -Headers $headers -MaximumRetryCount 3
- if ($response.StatusCode -eq 201) {
- LogSuccess "Status Code: $($response.StatusCode)`nAPI review request created successfully.`n$($response.Content)"
- }
- elseif ($response.StatusCode -eq 208) {
- LogSuccess "Status Code: $($response.StatusCode)`nThere is no API change compared with the previous version."
+ if ($response.StatusCode -eq 201 -or $response.StatusCode -eq 208) {
+ if ($response.StatusCode -eq 201) {
+ LogSuccess "Status Code: $($response.StatusCode)`nAPI review request created successfully"
+ }
+ elseif ($response.StatusCode -eq 208) {
+ LogSuccess "Status Code: $($response.StatusCode)`nThere is no API change compared with the previous version."
+ }
+ if ($response.Headers['Content-Type'] -like 'application/json*') {
+ $responseContent = $response.Content | ConvertFrom-Json | ConvertTo-Json -Depth 10
+ LogSuccess "Response:`n$($responseContent)"
+ }
+ else {
+ LogSuccess "Response: $($response.Content)"
+ }
}
else {
LogError "Failed to create API review request. $($response)"
diff --git a/eng/common/scripts/Package-Properties.ps1 b/eng/common/scripts/Package-Properties.ps1
index 70fa78a1e52b..0142017c8468 100644
--- a/eng/common/scripts/Package-Properties.ps1
+++ b/eng/common/scripts/Package-Properties.ps1
@@ -368,7 +368,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
# this is the primary loop that identifies the packages that have changes
foreach ($pkg in $allPackageProperties) {
- Write-Host "Processing changed files against $($pkg.Name). $pkgCounter of $($allPackageProperties.Count)."
+ Write-Verbose "Processing changed files against $($pkg.Name). $pkgCounter of $($allPackageProperties.Count)."
$pkgDirectory = (Resolve-Path "$($pkg.DirectoryPath)").Path.Replace("`\", "/")
$lookupKey = $pkgDirectory.Replace($RepoRoot, "").TrimStart('\/')
$lookup[$lookupKey] = $pkg
@@ -389,6 +389,8 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
# handle direct changes to packages
$shouldInclude = $filePath -eq $pkgDirectory -or $filePath -like "$pkgDirectory/*"
+ $includeMsg = "Including '$($pkg.Name)' because of changed file '$filePath'."
+
# we only need to do additional work for indirect packages if we haven't already decided
# to include this package due to this file
if (-not $shouldInclude) {
@@ -399,6 +401,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
$includedForValidation = ($filePath -like ("$resolvedRelativePath/*") -or $filePath -eq $resolvedRelativePath)
$shouldInclude = $shouldInclude -or $includedForValidation
if ($includedForValidation) {
+ $includeMsg += " - (triggerPath: '$triggerPath')"
break
}
}
@@ -448,6 +451,8 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
}
if ($shouldInclude) {
+
+ LogInfo $includeMsg
$packagesWithChanges += $pkg
if ($pkg.AdditionalValidationPackages) {
@@ -474,6 +479,7 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
if ($pkg.Name -notin $existingPackageNames) {
$pkg.IncludedForValidation = $true
+ LogInfo "Including '$($pkg.Name)' for validation only because it is a dependency of another package."
$packagesWithChanges += $pkg
}
}
@@ -484,6 +490,9 @@ function Get-PrPkgProperties([string]$InputDiffJson) {
if ($AdditionalValidationPackagesFromPackageSetFn -and (Test-Path "Function:$AdditionalValidationPackagesFromPackageSetFn")) {
$additionalPackages = &$AdditionalValidationPackagesFromPackageSetFn $packagesWithChanges $diff $allPackageProperties
$packagesWithChanges += $additionalPackages
+ foreach ($pkg in $additionalPackages) {
+ LogInfo "Including '$($pkg.Name)' from the additional validation package set."
+ }
}
# finally, if we have gotten all the way here and we still don't have any packages, we should include the template service
diff --git a/eng/common/scripts/Verify-Links.ps1 b/eng/common/scripts/Verify-Links.ps1
index 8162270de615..7bba07fe1ae1 100644
--- a/eng/common/scripts/Verify-Links.ps1
+++ b/eng/common/scripts/Verify-Links.ps1
@@ -283,14 +283,14 @@ function ParseLinks([string]$baseUri, [string]$htmlContent)
$hrefRegex = "]+href\s*=\s*[""']?(?[^""']*)[""']?"
$regexOptions = [System.Text.RegularExpressions.RegexOptions]"Singleline, IgnoreCase";
- $hrefs = [RegEx]::Matches($htmlContent, $hrefRegex, $regexOptions);
+ $matches = [RegEx]::Matches($htmlContent, $hrefRegex, $regexOptions);
- #$hrefs | Foreach-Object { Write-Host $_ }
+ Write-Verbose "Found $($matches.Count) raw href's in page $baseUri";
- Write-Verbose "Found $($hrefs.Count) raw href's in page $baseUri";
- [string[]] $links = $hrefs | ForEach-Object { ResolveUri $baseUri $_.Groups["href"].Value }
+ # Html encoded urls in anchor hrefs need to be decoded
+ $urls = $matches | ForEach-Object { [System.Web.HttpUtility]::HtmlDecode($_.Groups["href"].Value) }
- #$links | Foreach-Object { Write-Host $_ }
+ [string[]] $links = $urls | ForEach-Object { ResolveUri $baseUri $_ }
if ($null -eq $links) {
$links = @()
diff --git a/eng/docsSDKCIConfig.json b/eng/docsSDKCIConfig.json
index 931905297aa1..763a78749655 100644
--- a/eng/docsSDKCIConfig.json
+++ b/eng/docsSDKCIConfig.json
@@ -1,12 +1,12 @@
{
"TFM": "net471",
"target_repo": {
- "url": "https://github.com/Azure/azure-docs-sdk-dotnet",
+ "url": "https://github.com/MicrosoftDocs/azure-docs-sdk-dotnet",
"branch": "%%DocsBranchName%%",
"folder": "xml"
},
"source_repo": {
- "url": "https://github.com/Azure/azure-docs-sdk-dotnet",
+ "url": "https://github.com/MicrosoftDocs/azure-docs-sdk-dotnet",
"branch": "%%DocsBranchName%%",
"csvPath": "bundlepackages"
},
diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json
index 17e2dd3a5bb1..4649ba0b6869 100644
--- a/eng/emitter-package-lock.json
+++ b/eng/emitter-package-lock.json
@@ -5,7 +5,7 @@
"packages": {
"": {
"dependencies": {
- "@azure-tools/typespec-csharp": "0.2.0-beta.20250512.2"
+ "@azure-tools/typespec-csharp": "0.2.0-beta.20250521.1"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.56.0",
@@ -26,9 +26,9 @@
}
},
"node_modules/@autorest/csharp": {
- "version": "3.0.0-beta.20250512.2",
- "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20250512.2.tgz",
- "integrity": "sha512-uHcEQTujg3dMhIGxoFBti+ndAQbuHlBSY5gQmwzBcW9mHWWmR7sYJ2UHRPDrnzIwKHucsCkQP7KUZJQ4rikL+A=="
+ "version": "3.0.0-beta.20250521.1",
+ "resolved": "https://registry.npmjs.org/@autorest/csharp/-/csharp-3.0.0-beta.20250521.1.tgz",
+ "integrity": "sha512-B3iGh/X8I/FpmvkxoaDqpAuyz7Ke4nANRTMT1+MEpaw2j/iiUuy+2TdB3oLMne9VtqoFYeloKgoIO1M+QMEHtA=="
},
"node_modules/@azure-tools/typespec-autorest": {
"version": "0.56.0",
@@ -131,13 +131,13 @@
}
},
"node_modules/@azure-tools/typespec-csharp": {
- "version": "0.2.0-beta.20250512.2",
- "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20250512.2.tgz",
- "integrity": "sha512-KMR5XSGUGidJ1ztH6DmpGDJ/D4tEYqzZkqbqa0SE5fK9e6L7AX4nszG00mTYjjpAyxFZkaWs5RK6cx7XaAWzZQ==",
+ "version": "0.2.0-beta.20250521.1",
+ "resolved": "https://registry.npmjs.org/@azure-tools/typespec-csharp/-/typespec-csharp-0.2.0-beta.20250521.1.tgz",
+ "integrity": "sha512-sxlXO9vEAQdgJC5/7W6p7WgxGSDbdi/jG//rVhuEZxZB7alW2o3k+n68sAts03zm4GcrGNQVvu3AdYFqnOMbwA==",
"license": "MIT",
"dependencies": {
- "@autorest/csharp": "3.0.0-beta.20250512.2",
- "@typespec/http-client-csharp": "1.0.0-alpha.20250507.1"
+ "@autorest/csharp": "3.0.0-beta.20250521.1",
+ "@typespec/http-client-csharp": "1.0.0-alpha.20250521.5"
},
"peerDependencies": {
"@azure-tools/typespec-autorest": ">=0.56.0 <1.0.0",
@@ -636,9 +636,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20250507.1",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250507.1.tgz",
- "integrity": "sha512-KKAhLbPbGxqL6Sv/ffAbPS5CUZbV41akyXy7Qhh+QHamm3vW8uU+qffqVZiTnooRU3yjYpKVL8MRLBMtFvvvrg==",
+ "version": "1.0.0-alpha.20250521.5",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250521.5.tgz",
+ "integrity": "sha512-mDXJGSmIwkiOUNYyj0iWDuOaDKVX09qHNYLwAPDymKhIRV2MuYjnM62ql1Z+INvunXoI2PDVoVwHv98xwW5i6A==",
"license": "MIT",
"dependencies": {
"json-serialize-refs": "0.1.0-0"
diff --git a/eng/emitter-package.json b/eng/emitter-package.json
index 3d08142b3d23..0a1291ceda62 100644
--- a/eng/emitter-package.json
+++ b/eng/emitter-package.json
@@ -1,7 +1,7 @@
{
"main": "dist/src/index.js",
"dependencies": {
- "@azure-tools/typespec-csharp": "0.2.0-beta.20250512.2"
+ "@azure-tools/typespec-csharp": "0.2.0-beta.20250521.1"
},
"devDependencies": {
"@azure-tools/typespec-autorest": "0.56.0",
diff --git a/eng/http-client-csharp-emitter-package-lock.json b/eng/http-client-csharp-emitter-package-lock.json
index ef8a165e0df0..f2195a4e02eb 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": {
- "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250509.1"
+ "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250522.2"
},
"devDependencies": {
"@azure-tools/typespec-azure-core": "0.56.0",
@@ -98,12 +98,12 @@
}
},
"node_modules/@azure-typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20250509.1",
- "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250509.1.tgz",
- "integrity": "sha512-OQsE+xsqF8AWrJtiGgP4K3gFZyE7XuXROvhjdQuZSCROZnCaTaBhgcVySY6YzvgDEzyrKys2AQ1XoVsisycIaQ==",
+ "version": "1.0.0-alpha.20250522.2",
+ "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250522.2.tgz",
+ "integrity": "sha512-rirkIUnpwPf99bxqJ/6U4V/5LVptuXezg7On28LZQgNyNVAUNPGZKWkyZTFvHdU6P3f309Bltd+t/9KB21GcGQ==",
"license": "MIT",
"dependencies": {
- "@typespec/http-client-csharp": "1.0.0-alpha.20250509.1"
+ "@typespec/http-client-csharp": "1.0.0-alpha.20250522.1"
}
},
"node_modules/@babel/code-frame": {
@@ -130,12 +130,12 @@
}
},
"node_modules/@inquirer/checkbox": {
- "version": "4.1.5",
- "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.5.tgz",
- "integrity": "sha512-swPczVU+at65xa5uPfNP9u3qx/alNwiaykiI/ExpsmMSQW55trmZcwhYWzw/7fj+n6Q8z1eENvR7vFfq9oPSAQ==",
+ "version": "4.1.6",
+ "resolved": "https://registry.npmjs.org/@inquirer/checkbox/-/checkbox-4.1.6.tgz",
+ "integrity": "sha512-62u896rWCtKKE43soodq5e/QcRsA22I+7/4Ov7LESWnKRO6BVo2A1DFLDmXL9e28TB0CfHc3YtkbPm7iwajqkg==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/figures": "^1.0.11",
"@inquirer/type": "^3.0.6",
"ansi-escapes": "^4.3.2",
@@ -154,12 +154,12 @@
}
},
"node_modules/@inquirer/confirm": {
- "version": "5.1.9",
- "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.9.tgz",
- "integrity": "sha512-NgQCnHqFTjF7Ys2fsqK2WtnA8X1kHyInyG+nMIuHowVTIgIuS10T4AznI/PvbqSpJqjCUqNBlKGh1v3bwLFL4w==",
+ "version": "5.1.10",
+ "resolved": "https://registry.npmjs.org/@inquirer/confirm/-/confirm-5.1.10.tgz",
+ "integrity": "sha512-FxbQ9giWxUWKUk2O5XZ6PduVnH2CZ/fmMKMBkH71MHJvWr7WL5AHKevhzF1L5uYWB2P548o1RzVxrNd3dpmk6g==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/type": "^3.0.6"
},
"engines": {
@@ -175,9 +175,9 @@
}
},
"node_modules/@inquirer/core": {
- "version": "10.1.10",
- "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.10.tgz",
- "integrity": "sha512-roDaKeY1PYY0aCqhRmXihrHjoSW2A00pV3Ke5fTpMCkzcGF64R8e0lw3dK+eLEHwS4vB5RnW1wuQmvzoRul8Mw==",
+ "version": "10.1.11",
+ "resolved": "https://registry.npmjs.org/@inquirer/core/-/core-10.1.11.tgz",
+ "integrity": "sha512-BXwI/MCqdtAhzNQlBEFE7CEflhPkl/BqvAuV/aK6lW3DClIfYVDWPP/kXuXHtBWC7/EEbNqd/1BGq2BGBBnuxw==",
"license": "MIT",
"dependencies": {
"@inquirer/figures": "^1.0.11",
@@ -202,12 +202,12 @@
}
},
"node_modules/@inquirer/editor": {
- "version": "4.2.10",
- "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.10.tgz",
- "integrity": "sha512-5GVWJ+qeI6BzR6TIInLP9SXhWCEcvgFQYmcRG6d6RIlhFjM5TyG18paTGBgRYyEouvCmzeco47x9zX9tQEofkw==",
+ "version": "4.2.11",
+ "resolved": "https://registry.npmjs.org/@inquirer/editor/-/editor-4.2.11.tgz",
+ "integrity": "sha512-YoZr0lBnnLFPpfPSNsQ8IZyKxU47zPyVi9NLjCWtna52//M/xuL0PGPAxHxxYhdOhnvY2oBafoM+BI5w/JK7jw==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/type": "^3.0.6",
"external-editor": "^3.1.0"
},
@@ -224,12 +224,12 @@
}
},
"node_modules/@inquirer/expand": {
- "version": "4.0.12",
- "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.12.tgz",
- "integrity": "sha512-jV8QoZE1fC0vPe6TnsOfig+qwu7Iza1pkXoUJ3SroRagrt2hxiL+RbM432YAihNR7m7XnU0HWl/WQ35RIGmXHw==",
+ "version": "4.0.13",
+ "resolved": "https://registry.npmjs.org/@inquirer/expand/-/expand-4.0.13.tgz",
+ "integrity": "sha512-HgYNWuZLHX6q5y4hqKhwyytqAghmx35xikOGY3TcgNiElqXGPas24+UzNPOwGUZa5Dn32y25xJqVeUcGlTv+QQ==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/type": "^3.0.6",
"yoctocolors-cjs": "^2.1.2"
},
@@ -255,12 +255,12 @@
}
},
"node_modules/@inquirer/input": {
- "version": "4.1.9",
- "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.9.tgz",
- "integrity": "sha512-mshNG24Ij5KqsQtOZMgj5TwEjIf+F2HOESk6bjMwGWgcH5UBe8UoljwzNFHqdMbGYbgAf6v2wU/X9CAdKJzgOA==",
+ "version": "4.1.10",
+ "resolved": "https://registry.npmjs.org/@inquirer/input/-/input-4.1.10.tgz",
+ "integrity": "sha512-kV3BVne3wJ+j6reYQUZi/UN9NZGZLxgc/tfyjeK3mrx1QI7RXPxGp21IUTv+iVHcbP4ytZALF8vCHoxyNSC6qg==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/type": "^3.0.6"
},
"engines": {
@@ -276,12 +276,12 @@
}
},
"node_modules/@inquirer/number": {
- "version": "3.0.12",
- "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.12.tgz",
- "integrity": "sha512-7HRFHxbPCA4e4jMxTQglHJwP+v/kpFsCf2szzfBHy98Wlc3L08HL76UDiA87TOdX5fwj2HMOLWqRWv9Pnn+Z5Q==",
+ "version": "3.0.13",
+ "resolved": "https://registry.npmjs.org/@inquirer/number/-/number-3.0.13.tgz",
+ "integrity": "sha512-IrLezcg/GWKS8zpKDvnJ/YTflNJdG0qSFlUM/zNFsdi4UKW/CO+gaJpbMgQ20Q58vNKDJbEzC6IebdkprwL6ew==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/type": "^3.0.6"
},
"engines": {
@@ -297,12 +297,12 @@
}
},
"node_modules/@inquirer/password": {
- "version": "4.0.12",
- "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.12.tgz",
- "integrity": "sha512-FlOB0zvuELPEbnBYiPaOdJIaDzb2PmJ7ghi/SVwIHDDSQ2K4opGBkF+5kXOg6ucrtSUQdLhVVY5tycH0j0l+0g==",
+ "version": "4.0.13",
+ "resolved": "https://registry.npmjs.org/@inquirer/password/-/password-4.0.13.tgz",
+ "integrity": "sha512-NN0S/SmdhakqOTJhDwOpeBEEr8VdcYsjmZHDb0rblSh2FcbXQOr+2IApP7JG4WE3sxIdKytDn4ed3XYwtHxmJQ==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/type": "^3.0.6",
"ansi-escapes": "^4.3.2"
},
@@ -319,21 +319,21 @@
}
},
"node_modules/@inquirer/prompts": {
- "version": "7.5.0",
- "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.5.0.tgz",
- "integrity": "sha512-tk8Bx7l5AX/CR0sVfGj3Xg6v7cYlFBkEahH+EgBB+cZib6Fc83dwerTbzj7f2+qKckjIUGsviWRI1d7lx6nqQA==",
+ "version": "7.5.1",
+ "resolved": "https://registry.npmjs.org/@inquirer/prompts/-/prompts-7.5.1.tgz",
+ "integrity": "sha512-5AOrZPf2/GxZ+SDRZ5WFplCA2TAQgK3OYrXCYmJL5NaTu4ECcoWFlfUZuw7Es++6Njv7iu/8vpYJhuzxUH76Vg==",
"license": "MIT",
"dependencies": {
- "@inquirer/checkbox": "^4.1.5",
- "@inquirer/confirm": "^5.1.9",
- "@inquirer/editor": "^4.2.10",
- "@inquirer/expand": "^4.0.12",
- "@inquirer/input": "^4.1.9",
- "@inquirer/number": "^3.0.12",
- "@inquirer/password": "^4.0.12",
- "@inquirer/rawlist": "^4.1.0",
- "@inquirer/search": "^3.0.12",
- "@inquirer/select": "^4.2.0"
+ "@inquirer/checkbox": "^4.1.6",
+ "@inquirer/confirm": "^5.1.10",
+ "@inquirer/editor": "^4.2.11",
+ "@inquirer/expand": "^4.0.13",
+ "@inquirer/input": "^4.1.10",
+ "@inquirer/number": "^3.0.13",
+ "@inquirer/password": "^4.0.13",
+ "@inquirer/rawlist": "^4.1.1",
+ "@inquirer/search": "^3.0.13",
+ "@inquirer/select": "^4.2.1"
},
"engines": {
"node": ">=18"
@@ -348,12 +348,12 @@
}
},
"node_modules/@inquirer/rawlist": {
- "version": "4.1.0",
- "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.0.tgz",
- "integrity": "sha512-6ob45Oh9pXmfprKqUiEeMz/tjtVTFQTgDDz1xAMKMrIvyrYjAmRbQZjMJfsictlL4phgjLhdLu27IkHNnNjB7g==",
+ "version": "4.1.1",
+ "resolved": "https://registry.npmjs.org/@inquirer/rawlist/-/rawlist-4.1.1.tgz",
+ "integrity": "sha512-VBUC0jPN2oaOq8+krwpo/mf3n/UryDUkKog3zi+oIi8/e5hykvdntgHUB9nhDM78RubiyR1ldIOfm5ue+2DeaQ==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/type": "^3.0.6",
"yoctocolors-cjs": "^2.1.2"
},
@@ -370,12 +370,12 @@
}
},
"node_modules/@inquirer/search": {
- "version": "3.0.12",
- "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.12.tgz",
- "integrity": "sha512-H/kDJA3kNlnNIjB8YsaXoQI0Qccgf0Na14K1h8ExWhNmUg2E941dyFPrZeugihEa9AZNW5NdsD/NcvUME83OPQ==",
+ "version": "3.0.13",
+ "resolved": "https://registry.npmjs.org/@inquirer/search/-/search-3.0.13.tgz",
+ "integrity": "sha512-9g89d2c5Izok/Gw/U7KPC3f9kfe5rA1AJ24xxNZG0st+vWekSk7tB9oE+dJv5JXd0ZSijomvW0KPMoBd8qbN4g==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/figures": "^1.0.11",
"@inquirer/type": "^3.0.6",
"yoctocolors-cjs": "^2.1.2"
@@ -393,12 +393,12 @@
}
},
"node_modules/@inquirer/select": {
- "version": "4.2.0",
- "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.2.0.tgz",
- "integrity": "sha512-KkXQ4aSySWimpV4V/TUJWdB3tdfENZUU765GjOIZ0uPwdbGIG6jrxD4dDf1w68uP+DVtfNhr1A92B+0mbTZ8FA==",
+ "version": "4.2.1",
+ "resolved": "https://registry.npmjs.org/@inquirer/select/-/select-4.2.1.tgz",
+ "integrity": "sha512-gt1Kd5XZm+/ddemcT3m23IP8aD8rC9drRckWoP/1f7OL46Yy2FGi8DSmNjEjQKtPl6SV96Kmjbl6p713KXJ/Jg==",
"license": "MIT",
"dependencies": {
- "@inquirer/core": "^10.1.10",
+ "@inquirer/core": "^10.1.11",
"@inquirer/figures": "^1.0.11",
"@inquirer/type": "^3.0.6",
"ansi-escapes": "^4.3.2",
@@ -556,9 +556,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20250509.1",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250509.1.tgz",
- "integrity": "sha512-O6fVeLEivLBDtLP+87ZTm5GU1bQuaLJ2aekTzb3W4VwKgAvXu3dbwc9czloVQ7pa+HBCMTQ8REtZUln0tNdnrg==",
+ "version": "1.0.0-alpha.20250522.1",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250522.1.tgz",
+ "integrity": "sha512-IvF7OSzv3NwzQmJvfANn5LL7kDqjuBYYYb7XtdUW9cYlW5PxF3pV3uGIRC1NKmCabj1WA020RPcVzpalKyPkiw==",
"license": "MIT",
"dependencies": {
"json-serialize-refs": "0.1.0-0"
@@ -1247,9 +1247,9 @@
"license": "MIT"
},
"node_modules/semver": {
- "version": "7.7.1",
- "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.1.tgz",
- "integrity": "sha512-hlq8tAfn0m/61p4BVRcPzIGr6LKiMwo4VM6dGi6pt4qcRkmNzTcWq6eCEjEh+qXjkMDvPlOFFSGwQjoEa6gyMA==",
+ "version": "7.7.2",
+ "resolved": "https://registry.npmjs.org/semver/-/semver-7.7.2.tgz",
+ "integrity": "sha512-RF0Fw+rO5AMf9MAyaRXI4AV0Ulj5lMHqVxxdSgiVbixSCXoEmmX/jk0CuJw4+3SqroYO9VoUh+HcuJivvtJemA==",
"license": "ISC",
"bin": {
"semver": "bin/semver.js"
diff --git a/eng/http-client-csharp-emitter-package.json b/eng/http-client-csharp-emitter-package.json
index 24058ebc8651..9a7934b8ce11 100644
--- a/eng/http-client-csharp-emitter-package.json
+++ b/eng/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.20250509.1"
+ "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250522.2"
},
"devDependencies": {
"@azure-tools/typespec-azure-core": "0.56.0",
diff --git a/eng/packages/http-client-csharp-mgmt/ci.yml b/eng/packages/http-client-csharp-mgmt/ci.yml
index 3fcb197798bc..441239b26a18 100644
--- a/eng/packages/http-client-csharp-mgmt/ci.yml
+++ b/eng/packages/http-client-csharp-mgmt/ci.yml
@@ -4,7 +4,6 @@ trigger:
- main
paths:
include:
- - eng/packages/http-client-csharp
- eng/packages/http-client-csharp-mgmt
- eng/scripts/typespec
pr:
@@ -16,10 +15,9 @@ pr:
- release/*
paths:
include:
- - eng/packages/http-client-csharp
- eng/packages/http-client-csharp-mgmt
- eng/scripts/typespec
-
+
parameters:
- name: UseTypeSpecNext
displayName: "Use TypeSpec Next"
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 c983fdc5b346..fcb56acf8cf1 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
@@ -8,15 +8,19 @@ import {
} from "@typespec/http-client-csharp";
import {
calculateResourceTypeFromPath,
- ResourceMetadata
+ ResourceMetadata,
+ ResourceScope
} from "./resource-metadata.js";
import { DecoratorInfo } from "@azure-tools/typespec-client-generator-core";
import {
armResourceCreateOrUpdate,
armResourceOperations,
armResourceRead,
+ resourceGroupResource,
resourceMetadata,
- singleton
+ singleton,
+ subscriptionResource,
+ tenantResource
} from "./sdk-context-options.js";
export function updateClients(codeModel: CodeModel) {
@@ -43,7 +47,7 @@ export function updateClients(codeModel: CodeModel) {
}
}
-function getAllClients(codeModel: CodeModel): InputClient[] {
+export function getAllClients(codeModel: CodeModel): InputClient[] {
const clients: InputClient[] = [];
for (const client of codeModel.clients) {
traverseClient(client);
@@ -112,15 +116,29 @@ function gatherResourceMetadata(
}
if (resourceModel && resourceType) {
- const metadata = {
+ // find the scope on its model
+ const metadata: ResourceMetadata = {
resourceModel: resourceModel,
resourceClient: client,
resourceType: resourceType,
- isSingleton: isSingleton
+ isSingleton: isSingleton,
+ resourceScope: getResourceScope(resourceModel)
};
metadataMap.set(client, metadata);
}
}
+
+ function getResourceScope(model: InputModelType): ResourceScope {
+ const decorators = model.decorators;
+ if (decorators?.some((d) => d.name == tenantResource)) {
+ return ResourceScope.Tenant;
+ } else if (decorators?.some((d) => d.name == subscriptionResource)) {
+ return ResourceScope.Subscription;
+ } else if (decorators?.some((d) => d.name == resourceGroupResource)) {
+ return ResourceScope.ResourceGroup;
+ }
+ return ResourceScope.ResourceGroup; // all the templates work as if there is a resource group decorator when there is no such decorator
+ }
}
function addResourceMetadata(client: InputClient, metadata: ResourceMetadata) {
@@ -128,8 +146,10 @@ function addResourceMetadata(client: InputClient, metadata: ResourceMetadata) {
name: resourceMetadata,
arguments: {
resourceModel: metadata.resourceModel.crossLanguageDefinitionId,
+ resourceClient: metadata.resourceClient.crossLanguageDefinitionId,
isSingleton: metadata.isSingleton,
- resourceType: metadata.resourceType
+ resourceType: metadata.resourceType,
+ resourceScope: metadata.resourceScope
}
};
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 d6f6f9d3a6bd..592aa35e52cc 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
@@ -10,7 +10,7 @@ const TenantScopePrefix = "/tenants";
const Providers = "/providers";
export function calculateResourceTypeFromPath(path: string): string {
- const providerIndex = path.indexOf(Providers);
+ const providerIndex = path.lastIndexOf(Providers);
if (providerIndex === -1) {
if (path.startsWith(ResourceGroupScopePrefix)) {
return "Microsoft.Resources/resourceGroups";
@@ -32,9 +32,17 @@ export function calculateResourceTypeFromPath(path: string): string {
}, "");
}
+export enum ResourceScope {
+ Tenant = "Tenant",
+ Subscription = "Subscription",
+ ResourceGroup = "ResourceGroup"
+}
+
export interface ResourceMetadata {
resourceType: string;
resourceModel: InputModelType;
resourceClient: InputClient;
isSingleton: boolean;
+ resourceScope: ResourceScope;
+ // TODO -- add parent resource support in the same RP case
}
diff --git a/eng/packages/http-client-csharp-mgmt/emitter/src/sdk-context-options.ts b/eng/packages/http-client-csharp-mgmt/emitter/src/sdk-context-options.ts
index 04b9db2b54bc..747a72a9a809 100644
--- a/eng/packages/http-client-csharp-mgmt/emitter/src/sdk-context-options.ts
+++ b/eng/packages/http-client-csharp-mgmt/emitter/src/sdk-context-options.ts
@@ -34,7 +34,24 @@ const armResourceCreateOrUpdateRegex =
export const singleton = "Azure.ResourceManager.@singleton";
const singletonRegex = "Azure\\.ResourceManager\\.@singleton";
-const armResourceInternalRegex = "Azure\\.ResourceManager\\.Private\\.@armResourceInternal";
+const armResourceInternalRegex =
+ "Azure\\.ResourceManager\\.Private\\.@armResourceInternal";
+
+// https://github.com/Azure/typespec-azure/blob/main/packages/typespec-azure-resource-manager/README.md#subscriptionresource
+export const subscriptionResource =
+ "Azure.ResourceManager.@subscriptionResource";
+const subscriptionResourceRegex =
+ "Azure\\.ResourceManager\\.@subscriptionResource";
+
+// https://github.com/Azure/typespec-azure/blob/main/packages/typespec-azure-resource-manager/README.md#tenantresource
+export const tenantResource = "Azure.ResourceManager.@tenantResource";
+const tenantResourceRegex = "Azure\\.ResourceManager\\.@tenantResource";
+
+// https://github.com/Azure/typespec-azure/blob/main/packages/typespec-azure-resource-manager/README.md#resourcegroupresource
+export const resourceGroupResource =
+ "Azure.ResourceManager.@resourceGroupResource";
+const resourceGroupResourceRegex =
+ "Azure\\.ResourceManager\\.@resourceGroupResource";
// TODO: add this decorator to TCGC
export const resourceMetadata = "Azure.ClientGenerator.Core.@resourceSchema";
@@ -55,5 +72,8 @@ export const azureSDKContextOptions: CreateSdkContextOptions = {
parentResourceRegex,
singletonRegex,
armResourceInternalRegex,
+ subscriptionResourceRegex,
+ resourceGroupResourceRegex,
+ tenantResourceRegex
]
};
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
new file mode 100644
index 000000000000..e9034870daf2
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/emitter/test/resource-detection.test.ts
@@ -0,0 +1,119 @@
+import { beforeEach, describe, it } from "vitest";
+import {
+ createCSharpSdkContext,
+ createEmitterContext,
+ createEmitterTestHost,
+ typeSpecCompile
+} from "./test-util.js";
+import { TestHost } from "@typespec/compiler/testing";
+import { createModel } from "@typespec/http-client-csharp";
+import { getAllClients, updateClients } from "../src/resource-detection.js";
+import { ok, strictEqual } from "assert";
+import { resourceMetadata } from "../src/sdk-context-options.js";
+
+describe("Resource Detection", () => {
+ let runner: TestHost;
+ beforeEach(async () => {
+ runner = await createEmitterTestHost();
+ });
+
+ it("resource group resource", 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;
+
+/** Profile of employee */
+@encode("base64url")
+profile?: bytes;
+
+/** The status of the last operation. */
+@visibility(Lifecycle.Read)
+provisioningState?: ProvisioningState;
+}
+
+/** The provisioning state of a resource. */
+@lroStatus
+union ProvisioningState {
+string,
+
+/** The resource create request has been accepted */
+Accepted: "Accepted",
+
+/** The resource is being provisioned */
+Provisioning: "Provisioning",
+
+/** The resource is updating */
+Updating: "Updating",
+
+/** Resource has been created. */
+Succeeded: "Succeeded",
+
+/** Resource creation failed. */
+Failed: "Failed",
+
+/** Resource creation was canceled. */
+Canceled: "Canceled",
+
+/** The resource is being deleted */
+Deleting: "Deleting",
+}
+
+interface Operations extends Azure.ResourceManager.Operations {}
+
+@armResourceOperations
+interface Employees {
+ get is ArmResourceRead;
+ createOrUpdate is ArmResourceCreateOrReplaceAsync;
+ update is ArmCustomPatchSync<
+ Employee,
+ Azure.ResourceManager.Foundations.ResourceUpdateModel
+ >;
+ delete is ArmResourceDeleteWithoutOkAsync;
+ listByResourceGroup is ArmResourceListByParent;
+ listBySubscription is ArmListBySubscription;
+}`,
+ runner
+ );
+ const context = createEmitterContext(program);
+ const sdkContext = await createCSharpSdkContext(context);
+ const root = createModel(sdkContext);
+ updateClients(root);
+ const client = getAllClients(root).find((c) => c.name === "Employees");
+ ok(client);
+ const model = root.models.find((m) => m.name === "Employee");
+ ok(model);
+
+ const resourceMetadataDecorator = client.decorators?.find(
+ (d) => d.name === resourceMetadata
+ );
+ ok(resourceMetadataDecorator);
+ strictEqual(
+ resourceMetadataDecorator.arguments?.resourceType,
+ "Microsoft.ContosoProviderHub/employees"
+ );
+ strictEqual(
+ resourceMetadataDecorator.arguments?.resourceModel,
+ model.crossLanguageDefinitionId
+ );
+ strictEqual(
+ resourceMetadataDecorator.arguments?.resourceClient,
+ client.crossLanguageDefinitionId
+ );
+ strictEqual(resourceMetadataDecorator.arguments?.isSingleton, false);
+ strictEqual(
+ resourceMetadataDecorator.arguments?.resourceScope,
+ "ResourceGroup"
+ );
+ });
+});
diff --git a/eng/packages/http-client-csharp-mgmt/emitter/test/resource-type.test.ts b/eng/packages/http-client-csharp-mgmt/emitter/test/resource-type.test.ts
new file mode 100644
index 000000000000..9865d090ef85
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/emitter/test/resource-type.test.ts
@@ -0,0 +1,79 @@
+import { describe, it } from "vitest";
+import { calculateResourceTypeFromPath } from "../src/resource-metadata.js";
+import { strictEqual } from "assert";
+
+describe("Resource Type Calculation", () => {
+ it("resource group resource", async () => {
+ const path =
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Compute/virtualMachines");
+ });
+
+ it("resource group sub resource", async () => {
+ const path =
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Compute/virtualMachines/extensions");
+ });
+
+ it("subscription resource", async () => {
+ const path =
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines/{vmName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Compute/virtualMachines");
+ });
+
+ it("subscription sub resource", async () => {
+ const path =
+ "/subscriptions/{subscriptionId}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Compute/virtualMachines/extensions");
+ });
+
+ it("tenant resource", async () => {
+ const path = "/providers/Microsoft.Compute/virtualMachines/{vmName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Compute/virtualMachines");
+ });
+
+ it("tenant sub resource", async () => {
+ const path =
+ "/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Compute/virtualMachines/extensions");
+ });
+
+ it("extension resource", async () => {
+ const path =
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Something/somethingElse/{name}/providers/Microsoft.Compute/virtualMachines/{vmName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Compute/virtualMachines");
+ });
+
+ it("extension sub resource", async () => {
+ const path =
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Something/somethingElse/{name}/providers/Microsoft.Compute/virtualMachines/{vmName}/extensions/{extensionName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Compute/virtualMachines/extensions");
+ });
+
+ it("resource group", async () => {
+ const path =
+ "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Resources/resourceGroups");
+ });
+
+ it("subscription", async () => {
+ const path = "/subscriptions/{subscriptionId}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Resources/subscriptions");
+ });
+
+ it("tenant", async () => {
+ const path = "/tenants/{tenantId}";
+ const resourceType = calculateResourceTypeFromPath(path);
+ strictEqual(resourceType, "Microsoft.Resources/tenants");
+ });
+});
diff --git a/eng/packages/http-client-csharp-mgmt/emitter/test/test-util.ts b/eng/packages/http-client-csharp-mgmt/emitter/test/test-util.ts
new file mode 100644
index 000000000000..948d4fb07119
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/emitter/test/test-util.ts
@@ -0,0 +1,114 @@
+import { AzureCoreTestLibrary } from "@azure-tools/typespec-azure-core/testing";
+import { AzureResourceManagerTestLibrary } from "@azure-tools/typespec-azure-resource-manager/testing";
+import { createSdkContext } from "@azure-tools/typespec-client-generator-core";
+import { SdkTestLibrary } from "@azure-tools/typespec-client-generator-core/testing";
+import { CompilerOptions, EmitContext, Program } from "@typespec/compiler";
+import { createTestHost, TestHost } from "@typespec/compiler/testing";
+import {
+ createCSharpEmitterContext,
+ CSharpEmitterContext,
+ Logger,
+ LoggerLevel
+} from "@typespec/http-client-csharp";
+import { HttpTestLibrary } from "@typespec/http/testing";
+import { RestTestLibrary } from "@typespec/rest/testing";
+import { OpenAPITestLibrary } from "@typespec/openapi/testing";
+import { VersioningTestLibrary } from "@typespec/versioning/testing";
+import { XmlTestLibrary } from "@typespec/xml/testing";
+import { AzureEmitterOptions } from "@azure-typespec/http-client-csharp";
+import { azureSDKContextOptions } from "../src/sdk-context-options.js";
+
+export async function createEmitterTestHost(): Promise {
+ return createTestHost({
+ libraries: [
+ RestTestLibrary,
+ HttpTestLibrary,
+ VersioningTestLibrary,
+ AzureCoreTestLibrary,
+ AzureResourceManagerTestLibrary,
+ OpenAPITestLibrary,
+ SdkTestLibrary,
+ XmlTestLibrary
+ ]
+ });
+}
+
+export interface ArmTypeSpecCompileOptions {
+ providerNamespace?: string;
+}
+
+export async function typeSpecCompile(
+ content: string,
+ host: TestHost,
+ options?: ArmTypeSpecCompileOptions
+) {
+ const fileContent = `
+ import "@typespec/http";
+ import "@typespec/rest";
+ import "@typespec/versioning";
+ import "@azure-tools/typespec-azure-core";
+ import "@azure-tools/typespec-azure-resource-manager";
+ import "@azure-tools/typespec-client-generator-core";
+ using TypeSpec.Http;
+ using TypeSpec.Rest;
+ using TypeSpec.Versioning;
+ using Azure.Core;
+ using Azure.ResourceManager;
+ using Azure.ClientGenerator.Core;
+
+ @armProviderNamespace
+ @service(#{ title: "Azure Management emitter Testing" })
+ @versioned(Versions)
+ namespace ${options?.providerNamespace ?? "Microsoft.ContosoProviderHub"};
+
+ /** api versions */
+ enum Versions {
+ /** 2021-10-01-preview version */
+ @useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
+ @armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v5)
+ \`2021-10-01-preview\`,
+ }
+
+ ${content}
+ `;
+ host.addTypeSpecFile("main.tsp", fileContent);
+ const cliOptions = {
+ warningAsError: false
+ } as CompilerOptions;
+ await host.compile("./", cliOptions);
+ return host.program;
+}
+
+export function createEmitterContext(
+ program: Program
+): EmitContext {
+ const options: AzureEmitterOptions = {
+ "new-project": false,
+ "save-inputs": false,
+ "generate-protocol-methods": true,
+ "generate-convenience-methods": true,
+ "generator-name": "ManagementClientGenerator",
+ "sdk-context-options": azureSDKContextOptions,
+ "model-namespace": true
+ };
+ return {
+ program: program,
+ emitterOutputDir: "./",
+ options: options
+ } as EmitContext;
+}
+
+/* We always need to pass in the emitter name now that it is required so making a helper to do this. */
+export async function createCSharpSdkContext(
+ program: EmitContext
+): Promise {
+ const context = await createSdkContext(
+ program,
+ "@typespec/http-client-csharp",
+ program.options["sdk-context-options"]
+ );
+ return createCSharpEmitterContext(
+ context,
+ new Logger(program.program, LoggerLevel.INFO)
+ );
+}
diff --git a/eng/packages/http-client-csharp-mgmt/eng/scripts/Generate.ps1 b/eng/packages/http-client-csharp-mgmt/eng/scripts/Generate.ps1
index 55e59612b59d..74bb01bf1b40 100644
--- a/eng/packages/http-client-csharp-mgmt/eng/scripts/Generate.ps1
+++ b/eng/packages/http-client-csharp-mgmt/eng/scripts/Generate.ps1
@@ -66,7 +66,7 @@ if ($null -eq $filter) {
}
# Write the launch settings to the launchSettings.json file
- $mgmtLaunchSettingsPath = Join-Path $mgmtSolutionDir "Azure.Generator.Mgmt" "src" "Properties" "launchSettings.json"
+ $mgmtLaunchSettingsPath = Join-Path $mgmtSolutionDir "Azure.Generator.Management" "src" "Properties" "launchSettings.json"
# Write the settings to JSON and normalize line endings to Unix style (LF)
$mgmtSortedLaunchSettings | ConvertTo-Json | ForEach-Object { ($_ -replace "`r`n", "`n") + "`n" } | Set-Content -NoNewline $mgmtLaunchSettingsPath
}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp-mgmt/eng/scripts/Generation.psm1 b/eng/packages/http-client-csharp-mgmt/eng/scripts/Generation.psm1
index 4e5436d2f2c3..ce1b78a0b67a 100644
--- a/eng/packages/http-client-csharp-mgmt/eng/scripts/Generation.psm1
+++ b/eng/packages/http-client-csharp-mgmt/eng/scripts/Generation.psm1
@@ -39,7 +39,7 @@ function Get-Mgmt-TspCommand {
if ($generateStub) {
$command += " --option @azure-typespec/http-client-csharp-mgmt.plugin-name=AzureStubPlugin"
}
-
+
if ($apiVersion) {
$command += " --option @azure-typespec/http-client-csharp-mgmt.api-version=$apiVersion"
}
@@ -58,7 +58,7 @@ function Refresh-Mgmt-Build {
}
# we don't want to build the entire solution because the test projects might not build until after regeneration
- Invoke "dotnet build $repoRoot/../../http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src"
+ Invoke "dotnet build $repoRoot/../../http-client-csharp-mgmt/generator/Azure.Generator.Management/src"
# exit if the generation failed
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management.sln b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management.sln
new file mode 100644
index 000000000000..cb1e62c4a81e
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management.sln
@@ -0,0 +1,43 @@
+
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 17
+VisualStudioVersion = 17.12.35728.132
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Generator.Management", "Azure.Generator.Management\src\Azure.Generator.Management.csproj", "{690F5280-BCDB-433C-B523-D3E782340BA4}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Generator.Management.Tests", "Azure.Generator.Management\test\Azure.Generator.Mgmt.Tests.csproj", "{236F0049-E44C-40C9-90BB-BD19495CB689}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestProjects.Local.Tests", "TestProjects\Local.Tests\TestProjects.Local.Tests.csproj", "{E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Generator.Tests.Common", "..\..\http-client-csharp\generator\Azure.Generator\test\common\Azure.Generator.Tests.Common.csproj", "{5C43C4D9-AC67-6643-B7AF-DF8096B8265A}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {690F5280-BCDB-433C-B523-D3E782340BA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {690F5280-BCDB-433C-B523-D3E782340BA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {690F5280-BCDB-433C-B523-D3E782340BA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {690F5280-BCDB-433C-B523-D3E782340BA4}.Release|Any CPU.Build.0 = Release|Any CPU
+ {236F0049-E44C-40C9-90BB-BD19495CB689}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {236F0049-E44C-40C9-90BB-BD19495CB689}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {236F0049-E44C-40C9-90BB-BD19495CB689}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {236F0049-E44C-40C9-90BB-BD19495CB689}.Release|Any CPU.Build.0 = Release|Any CPU
+ {E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}.Release|Any CPU.Build.0 = Release|Any CPU
+ {5C43C4D9-AC67-6643-B7AF-DF8096B8265A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {5C43C4D9-AC67-6643-B7AF-DF8096B8265A}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {5C43C4D9-AC67-6643-B7AF-DF8096B8265A}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {5C43C4D9-AC67-6643-B7AF-DF8096B8265A}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {9E9389E8-7266-4312-9710-1BE45A571319}
+ EndGlobalSection
+EndGlobal
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj
new file mode 100644
index 000000000000..fd60acff8447
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Azure.Generator.Management.csproj
@@ -0,0 +1,99 @@
+
+
+ Azure.Generator.Management
+ 1.0.0-beta.1
+ true
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+ Always
+
+
+
+
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/InheritableSystemObjectModelVisitor.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/InheritableSystemObjectModelVisitor.cs
similarity index 99%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/InheritableSystemObjectModelVisitor.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/InheritableSystemObjectModelVisitor.cs
index 34baa20dea2c..e66b6f9bb4d1 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/InheritableSystemObjectModelVisitor.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/InheritableSystemObjectModelVisitor.cs
@@ -2,7 +2,7 @@
// Licensed under the MIT License.
using Azure.Generator.Management.Providers;
-using Azure.Generator.Mgmt.Primitives;
+using Azure.Generator.Management.Primitives;
using Microsoft.TypeSpec.Generator.ClientModel;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
using Microsoft.TypeSpec.Generator.Expressions;
@@ -127,7 +127,7 @@ private static void UpdateFullConstructor(ModelProvider model, FieldProvider raw
var body = model.FullConstructor.BodyStatements;
var statement = rawDataField.Assign(model.FullConstructor.Signature.Parameters.Single(f => f.Name.Equals(RawDataParameterName))).Terminate();
- MethodBodyStatement[] updatedBody = [statement, .. body!.Flatten()];
+ MethodBodyStatement[] updatedBody = [statement, .. body!];
model.FullConstructor.Update(bodyStatements: updatedBody);
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/InputTransformation/InputClientTransformer.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/InputTransformation/InputClientTransformer.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/InputTransformation/InputClientTransformer.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/InputTransformation/InputClientTransformer.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementClientGenerator.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementClientGenerator.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementClientGenerator.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementClientGenerator.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementInputLibrary.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementInputLibrary.cs
new file mode 100644
index 000000000000..61450379df82
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementInputLibrary.cs
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Generator.Management.Models;
+using Azure.Generator.Management.Primitives;
+using Microsoft.TypeSpec.Generator.Input;
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace Azure.Generator.Management
+{
+ ///
+ public class ManagementInputLibrary : InputLibrary
+ {
+ private IReadOnlyList? _allClients;
+ private IReadOnlyDictionary? _resourceMetadata;
+ private IReadOnlyDictionary? _inputModelsByCrossLanguageDefinitionId;
+ private IReadOnlyDictionary? _inputClientsByCrossLanguageDefinitionId;
+
+ ///
+ public ManagementInputLibrary(string configPath) : base(configPath)
+ {
+ }
+
+ ///
+ /// All clients in the input library, including the subclients.
+ ///
+ internal IReadOnlyList AllClients => _allClients ??= EnumerateClients();
+
+ private IReadOnlyDictionary ResourceMetadata => _resourceMetadata ??= DeserializeResourceMetadata();
+
+ private IReadOnlyDictionary InputModelsByCrossLanguageDefinitionId => _inputModelsByCrossLanguageDefinitionId ??= BuildModelCrossLanguageDefinitionIds();
+
+ private IReadOnlyDictionary InputClientsByCrossLanguageDefinitionId => _inputClientsByCrossLanguageDefinitionId ??= AllClients.ToDictionary(c => c.CrossLanguageDefinitionId, c => c);
+
+ internal ResourceMetadata? GetResourceMetadata(InputClient client)
+ => ResourceMetadata.TryGetValue(client, out var metadata) ? metadata : null;
+
+ internal InputModelType? GetModelByCrossLanguageDefinitionId(string crossLanguageDefinitionId)
+ => InputModelsByCrossLanguageDefinitionId.TryGetValue(crossLanguageDefinitionId, out var model) ? model : null;
+
+ internal InputClient? GetClientByCrossLanguageDefinitionId(string crossLanguageDefinitionId)
+ => InputClientsByCrossLanguageDefinitionId.TryGetValue(crossLanguageDefinitionId, out var client) ? client : null;
+
+ internal bool IsResourceModel(InputModelType model)
+ => model.Decorators.Any(d => d.Name.Equals(KnownDecorators.ArmResourceInternal));
+
+ private IReadOnlyList EnumerateClients()
+ {
+ var clients = new List(InputNamespace.Clients);
+ for (int i = 0; i < clients.Count; i++)
+ {
+ var client = clients[i];
+ clients.AddRange(client.Children);
+ }
+
+ return clients;
+ }
+
+ private IReadOnlyDictionary BuildModelCrossLanguageDefinitionIds()
+ {
+ // TODO -- we must have this because of a bug or a design issue in TCGC: https://github.com/Azure/typespec-azure/issues/1297
+ // once this is solved, we could change this to the simple invocation of `ToDictionary`.
+ var result = new Dictionary();
+ foreach (var model in InputNamespace.Models)
+ {
+ if (!result.ContainsKey(model.CrossLanguageDefinitionId))
+ {
+ result.Add(model.CrossLanguageDefinitionId, model);
+ }
+ }
+ return result;
+ }
+
+ private IReadOnlyDictionary DeserializeResourceMetadata()
+ {
+ var resourceMetadata = new Dictionary();
+ foreach (var client in AllClients)
+ {
+ var decorator = client.Decorators.FirstOrDefault(d => d.Name == KnownDecorators.ResourceMetadata);
+ if (decorator != null)
+ {
+ var metadata = BuildResourceMetadata(decorator);
+ resourceMetadata.Add(client, metadata);
+ }
+ }
+ return resourceMetadata;
+
+ ResourceMetadata BuildResourceMetadata(InputDecoratorInfo decorator)
+ {
+ var args = decorator.Arguments ?? throw new InvalidOperationException();
+ string? resourceType = null;
+ InputModelType? resourceModel = null;
+ InputClient? resourceClient = null;
+ bool isSingleton = false;
+ ResourceScope? resourceScope = null;
+ if (args.TryGetValue(KnownDecorators.ResourceType, out var resourceTypeData))
+ {
+ resourceType = resourceTypeData.ToObjectFromJson();
+ }
+
+ if (args.TryGetValue(KnownDecorators.ResourceModel, out var resourceModelData))
+ {
+ var resourceModelId = resourceModelData.ToObjectFromJson();
+ if (resourceModelId != null)
+ {
+ resourceModel = GetModelByCrossLanguageDefinitionId(resourceModelId!);
+ }
+ }
+
+ if (args.TryGetValue(KnownDecorators.ResourceClient, out var resourceClientData))
+ {
+ var resourceClientId = resourceClientData.ToObjectFromJson();
+ if (resourceClientId != null)
+ {
+ resourceClient = GetClientByCrossLanguageDefinitionId(resourceClientId!);
+ }
+ }
+
+ if (args.TryGetValue(KnownDecorators.IsSingleton, out var isSingletonData))
+ {
+ isSingleton = isSingletonData.ToObjectFromJson();
+ }
+
+ if (args.TryGetValue(KnownDecorators.ResourceScope, out var scopeData))
+ {
+ var scopeString = scopeData.ToObjectFromJson();
+ if (Enum.TryParse(scopeString, true, out var scope))
+ {
+ resourceScope = scope;
+ }
+ }
+
+ // TODO -- I know we should never throw the exception, but here we just put it here and refine it later
+ return new(resourceType ?? throw new InvalidOperationException("resourceType cannot be null"),
+ resourceModel ?? throw new InvalidOperationException("resourceModel cannot be null"),
+ resourceClient ?? throw new InvalidOperationException("resourceClient cannot be null"),
+ isSingleton,
+ resourceScope ?? throw new InvalidOperationException("resourceScope cannot be null"));
+ }
+ }
+ }
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementOutputLibrary.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementOutputLibrary.cs
similarity index 86%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementOutputLibrary.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementOutputLibrary.cs
index 41c48920c259..1c708ef54d71 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementOutputLibrary.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementOutputLibrary.cs
@@ -1,7 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
-using Azure.Generator.Management.Primitives;
using Azure.Generator.Management.Providers;
using Microsoft.TypeSpec.Generator.Providers;
using System.Collections.Generic;
@@ -22,7 +21,7 @@ public class ManagementOutputLibrary : AzureOutputLibrary
{
var resources = new List();
var collections = new List();
- foreach (var client in ManagementClientGenerator.Instance.InputLibrary.InputNamespace.Clients)
+ foreach (var client in ManagementClientGenerator.Instance.InputLibrary.AllClients)
{
BuildResourceCore(resources, collections, client);
}
@@ -32,24 +31,19 @@ public class ManagementOutputLibrary : AzureOutputLibrary
private static void BuildResourceCore(List resources, List collections, Microsoft.TypeSpec.Generator.Input.InputClient client)
{
// A resource client should contain the decorator "Azure.ResourceManager.@resourceMetadata"
- var resourceMetadata = client.Decorators.FirstOrDefault(d => d.Name.Equals(KnownDecorators.ResourceMetadata));
+ var resourceMetadata = ManagementClientGenerator.Instance.InputLibrary.GetResourceMetadata(client);
if (resourceMetadata is not null)
{
- var resource = new ResourceClientProvider(client);
+ var resource = new ResourceClientProvider(client, resourceMetadata);
ManagementClientGenerator.Instance.AddTypeToKeep(resource.Name);
resources.Add(resource);
if (!resource.IsSingleton)
{
- var collection = new ResourceCollectionClientProvider(client, resource);
+ var collection = new ResourceCollectionClientProvider(client, resourceMetadata, resource);
ManagementClientGenerator.Instance.AddTypeToKeep(collection.Name);
collections.Add(collection);
}
}
-
- foreach (var child in client.Children)
- {
- BuildResourceCore(resources, collections, child);
- }
}
///
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementTypeFactory.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementTypeFactory.cs
similarity index 98%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementTypeFactory.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementTypeFactory.cs
index b3be8e825630..8f4bfd850db4 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementTypeFactory.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ManagementTypeFactory.cs
@@ -3,7 +3,7 @@
using Azure.Generator.Management.InputTransformation;
using Azure.Generator.Management.Providers.Abstraction;
-using Azure.Generator.Mgmt.Primitives;
+using Azure.Generator.Management.Primitives;
using Microsoft.TypeSpec.Generator;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
using Microsoft.TypeSpec.Generator.Expressions;
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Models/RequestPath.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Models/RequestPath.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Models/RequestPath.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Models/RequestPath.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Models/ResourceMetadata.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Models/ResourceMetadata.cs
new file mode 100644
index 000000000000..ba99d6783dbc
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Models/ResourceMetadata.cs
@@ -0,0 +1,9 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Microsoft.TypeSpec.Generator.Input;
+
+namespace Azure.Generator.Management.Models
+{
+ internal record ResourceMetadata(string ResourceType, InputModelType ResourceModel, InputClient ResourceClient, bool IsSingleton, ResourceScope ResourceScope);
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Models/ResourceScope.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Models/ResourceScope.cs
new file mode 100644
index 000000000000..888c0520eeb3
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Models/ResourceScope.cs
@@ -0,0 +1,12 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+namespace Azure.Generator.Management.Models
+{
+ internal enum ResourceScope
+ {
+ Tenant,
+ Subscription,
+ ResourceGroup
+ }
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Primitives/KnownAzureParameters.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownAzureParameters.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Primitives/KnownAzureParameters.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownAzureParameters.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Primitives/KnownDecorators.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownDecorators.cs
similarity index 87%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Primitives/KnownDecorators.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownDecorators.cs
index 16f0f8bfde0d..229d870fb7cb 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Primitives/KnownDecorators.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownDecorators.cs
@@ -11,8 +11,10 @@ internal class KnownDecorators
public const string ResourceMetadata = "Azure.ClientGenerator.Core.@resourceSchema";
public const string ArmResourceInternal = "Azure.ResourceManager.Private.@armResourceInternal";
+ public const string ResourceClient = "resourceClient";
public const string ResourceModel = "resourceModel";
public const string ResourceType = "resourceType";
public const string IsSingleton = "isSingleton";
+ public const string ResourceScope = "resourceScope";
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Primitives/KnownManagementTypes.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownManagementTypes.cs
similarity index 98%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Primitives/KnownManagementTypes.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownManagementTypes.cs
index fa3c318ac359..51477d81faa4 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Primitives/KnownManagementTypes.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Primitives/KnownManagementTypes.cs
@@ -9,7 +9,7 @@
using System.Diagnostics.CodeAnalysis;
using System.Linq;
-namespace Azure.Generator.Mgmt.Primitives
+namespace Azure.Generator.Management.Primitives
{
internal class KnownManagementTypes
{
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Properties/AssemblyInfo.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Properties/AssemblyInfo.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Properties/AssemblyInfo.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Properties/AssemblyInfo.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Properties/launchSettings.json b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Properties/launchSettings.json
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Properties/launchSettings.json
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Properties/launchSettings.json
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/Abstraction/MgmtHttpPipelineProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/Abstraction/MgmtHttpPipelineProvider.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/Abstraction/MgmtHttpPipelineProvider.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/Abstraction/MgmtHttpPipelineProvider.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/InheritableSystemObjectModelProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/InheritableSystemObjectModelProvider.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/InheritableSystemObjectModelProvider.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/InheritableSystemObjectModelProvider.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ManagementLongRunningOperationProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ManagementLongRunningOperationProvider.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ManagementLongRunningOperationProvider.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ManagementLongRunningOperationProvider.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/OperationSourceProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationSourceProvider.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/OperationSourceProvider.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/OperationSourceProvider.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ResourceClientProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceClientProvider.cs
similarity index 90%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ResourceClientProvider.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceClientProvider.cs
index 29df7bec9eba..be437d8f7b0a 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ResourceClientProvider.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceClientProvider.cs
@@ -34,19 +34,17 @@ internal class ResourceClientProvider : TypeProvider
private IReadOnlyCollection _resourceServiceMethods;
private FieldProvider _dataField;
- private FieldProvider _resourcetypeField;
+ private FieldProvider _resourceTypeField;
protected ClientProvider _clientProvider;
protected FieldProvider _clientDiagonosticsField;
protected FieldProvider _restClientField;
- public ResourceClientProvider(InputClient inputClient)
+ public ResourceClientProvider(InputClient inputClient, ResourceMetadata resourceMetadata)
{
- var resourceMetadata = inputClient.Decorators.Single(d => d.Name.Equals(KnownDecorators.ResourceMetadata));
- var codeModelId = resourceMetadata.Arguments?[KnownDecorators.ResourceModel].ToObjectFromJson()!;
- IsSingleton = resourceMetadata.Arguments?.TryGetValue("isSingleton", out var isSingleton) == true ? isSingleton.ToObjectFromJson() : false;
- var resourceType = resourceMetadata.Arguments?[KnownDecorators.ResourceType].ToObjectFromJson()!;
- _resourcetypeField = new FieldProvider(FieldModifiers.Public | FieldModifiers.Static | FieldModifiers.ReadOnly, typeof(ResourceType), "ResourceType", this, description: $"Gets the resource type for the operations.", initializationValue: Literal(resourceType));
- var resourceModel = ManagementClientGenerator.Instance.InputLibrary.GetModelByCrossLanguageDefinitionId(codeModelId)!;
+ IsSingleton = resourceMetadata.IsSingleton;
+ var resourceType = resourceMetadata.ResourceType;
+ _resourceTypeField = new FieldProvider(FieldModifiers.Public | FieldModifiers.Static | FieldModifiers.ReadOnly, typeof(ResourceType), "ResourceType", this, description: $"Gets the resource type for the operations.", initializationValue: Literal(resourceType));
+ var resourceModel = resourceMetadata.ResourceModel;
SpecName = resourceModel.Name;
// We should be able to assume that all operations in the resource client are for the same resource
@@ -90,7 +88,7 @@ private IReadOnlyList GetContextualParameters(string contextualRequestPa
protected override string BuildRelativeFilePath() => Path.Combine("src", "Generated", $"{Name}.cs");
- protected override FieldProvider[] BuildFields() => [_clientDiagonosticsField, _restClientField, _dataField, _resourcetypeField];
+ protected override FieldProvider[] BuildFields() => [_clientDiagonosticsField, _restClientField, _dataField, _resourceTypeField];
protected override PropertyProvider[] BuildProperties()
{
@@ -196,11 +194,11 @@ protected MethodProvider BuildValidateResourceIdMethod()
return new MethodProvider(signature, bodyStatements, this);
}
- protected virtual ValueExpression ResourceTypeExpression => _resourcetypeField;
+ protected virtual ValueExpression ResourceTypeExpression => _resourceTypeField;
- protected virtual ValueExpression ExpectedResourceTypeForValidation => _resourcetypeField;
+ protected virtual ValueExpression ExpectedResourceTypeForValidation => _resourceTypeField;
- protected virtual CSharpType ResourceClientCharpType => this.Type;
+ protected virtual CSharpType ResourceClientCSharpType => this.Type;
protected override CSharpType[] BuildImplements() => [typeof(ArmResource)];
@@ -311,36 +309,36 @@ protected CSharpType GetOperationMethodReturnType(InputServiceMethod method, boo
}
else
{
- return isAsync ? new CSharpType(typeof(Task<>), new CSharpType(typeof(ArmOperation<>), ResourceClientCharpType)) : new CSharpType(typeof(ArmOperation<>), ResourceClientCharpType);
+ return isAsync ? new CSharpType(typeof(Task<>), new CSharpType(typeof(ArmOperation<>), ResourceClientCSharpType)) : new CSharpType(typeof(ArmOperation<>), ResourceClientCSharpType);
}
}
- return isAsync ? new CSharpType(typeof(Task<>), new CSharpType(typeof(Response<>), ResourceClientCharpType)) : new CSharpType(typeof(Response<>), ResourceClientCharpType);
+ return isAsync ? new CSharpType(typeof(Task<>), new CSharpType(typeof(Response<>), ResourceClientCSharpType)) : new CSharpType(typeof(Response<>), ResourceClientCSharpType);
}
- private TryStatement BuildOperationMethodTryStatement(InputServiceMethod method, MethodProvider convenienceMethod, MethodSignature signature, bool isAsync, bool isGeneric)
+ private TryExpression BuildOperationMethodTryStatement(InputServiceMethod method, MethodProvider convenienceMethod, MethodSignature signature, bool isAsync, bool isGeneric)
{
var operation = method.Operation;
var cancellationToken = convenienceMethod.Signature.Parameters.Single(p => p.Type.Equals(typeof(CancellationToken)));
- var tryStatement = new TryStatement();
+ var tryStatements = new List();
var contextDeclaration = Declare("context", typeof(RequestContext), New.Instance(typeof(RequestContext), new Dictionary { { Identifier(nameof(RequestContext.CancellationToken)), cancellationToken } }), out var contextVariable);
- tryStatement.Add(contextDeclaration);
+ tryStatements.Add(contextDeclaration);
var requestMethod = GetCorrespondingRequestMethod(operation);
var messageDeclaration = Declare("message", typeof(HttpMessage), _restClientField.Invoke(requestMethod.Signature.Name, PopulateArguments(requestMethod.Signature.Parameters, convenienceMethod, contextVariable)), out var messageVariable);
- tryStatement.Add(messageDeclaration);
+ tryStatements.Add(messageDeclaration);
var responseType = GetResponseType(convenienceMethod, isAsync);
VariableExpression responseVariable;
if (!responseType.Equals(typeof(Response)))
{
var resultDeclaration = Declare("result", typeof(Response), This.Property("Pipeline").Invoke(isAsync ? "ProcessMessageAsync" : "ProcessMessage", [messageVariable, contextVariable], null, isAsync), out var resultVariable);
- tryStatement.Add(resultDeclaration);
+ tryStatements.Add(resultDeclaration);
var responseDeclaration = Declare("response", responseType, Static(typeof(Response)).Invoke(nameof(Response.FromValue), [resultVariable.CastTo(ResourceData.Type), resultVariable]), out responseVariable);
- tryStatement.Add(responseDeclaration);
+ tryStatements.Add(responseDeclaration);
}
else
{
var responseDeclaration = Declare("response", typeof(Response), This.Property("Pipeline").Invoke(isAsync ? "ProcessMessageAsync" : "ProcessMessage", [messageVariable, contextVariable], null, isAsync), out responseVariable);
- tryStatement.Add(responseDeclaration);
+ tryStatements.Add(responseDeclaration);
}
if (method is InputLongRunningServiceMethod || method is InputLongRunningPagingServiceMethod)
@@ -355,25 +353,25 @@ private TryStatement BuildOperationMethodTryStatement(InputServiceMethod method,
finalStateVia = (OperationFinalStateVia)lroPagingMethod.LongRunningServiceMetadata.FinalStateVia;
}
- var armOperationType = !isGeneric ? ManagementClientGenerator.Instance.OutputLibrary.ArmOperation.Type : ManagementClientGenerator.Instance.OutputLibrary.GenericArmOperation.Type.MakeGenericType([ResourceClientCharpType]);
+ var armOperationType = !isGeneric ? ManagementClientGenerator.Instance.OutputLibrary.ArmOperation.Type : ManagementClientGenerator.Instance.OutputLibrary.GenericArmOperation.Type.MakeGenericType([ResourceClientCSharpType]);
ValueExpression[] armOperationArguments = [_clientDiagonosticsField, This.Property("Pipeline"), messageVariable.Property("Request"), isGeneric ? responseVariable.Invoke("GetRawResponse") : responseVariable, Static(typeof(OperationFinalStateVia)).Property(finalStateVia.ToString())];
var operationDeclaration = Declare("operation", armOperationType, New.Instance(armOperationType, isGeneric ? [New.Instance(Source.Type, This.Property("Client")), .. armOperationArguments] : armOperationArguments), out var operationVariable);
- tryStatement.Add(operationDeclaration);
- tryStatement.Add(new IfStatement(KnownAzureParameters.WaitUntil.Equal(Static(typeof(WaitUntil)).Property(nameof(WaitUntil.Completed))))
+ tryStatements.Add(operationDeclaration);
+ tryStatements.Add(new IfStatement(KnownAzureParameters.WaitUntil.Equal(Static(typeof(WaitUntil)).Property(nameof(WaitUntil.Completed))))
{
isAsync
? operationVariable.Invoke(isGeneric ? "WaitForCompletionAsync" : "WaitForCompletionResponseAsync", [cancellationToken], null, isAsync).Terminate()
: operationVariable.Invoke(isGeneric ? "WaitForCompletion" : "WaitForCompletionResponse", cancellationToken).Terminate()
});
- tryStatement.Add(Return(operationVariable));
+ tryStatements.Add(Return(operationVariable));
}
else
{
- tryStatement.Add(BuildReturnStatements(responseVariable, signature));
+ tryStatements.Add(BuildReturnStatements(responseVariable, signature));
}
- return tryStatement;
+ return new TryExpression(tryStatements);
}
protected virtual MethodBodyStatement BuildReturnStatements(ValueExpression responseVariable, MethodSignature signature)
@@ -385,7 +383,7 @@ protected virtual MethodBodyStatement BuildReturnStatements(ValueExpression resp
((KeywordExpression)ThrowExpression(New.Instance(typeof(RequestFailedException), responseVariable.Invoke("GetRawResponse")))).Terminate()
},
];
- var returnValueExpression = New.Instance(ResourceClientCharpType, This.Property("Client"), responseVariable.Property("Value"));
+ var returnValueExpression = New.Instance(ResourceClientCSharpType, This.Property("Client"), responseVariable.Property("Value"));
statements.Add(Return(Static(typeof(Response)).Invoke(nameof(Response.FromValue), returnValueExpression, responseVariable.Invoke("GetRawResponse"))));
return statements;
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ResourceCollectionClientProvider.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceCollectionClientProvider.cs
similarity index 90%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ResourceCollectionClientProvider.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceCollectionClientProvider.cs
index 62b314428b9b..fe7a6dd037b8 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Providers/ResourceCollectionClientProvider.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Providers/ResourceCollectionClientProvider.cs
@@ -1,5 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
+using Azure.Generator.Management.Models;
using Azure.Generator.Management.Primitives;
using Azure.Generator.Management.Utilities;
using Azure.ResourceManager;
@@ -26,7 +27,7 @@ internal class ResourceCollectionClientProvider : ResourceClientProvider
private InputServiceMethod? _create;
private InputServiceMethod? _get;
- public ResourceCollectionClientProvider(InputClient inputClient, ResourceClientProvider resource) : base(inputClient)
+ public ResourceCollectionClientProvider(InputClient inputClient, ResourceMetadata resourceMetadata, ResourceClientProvider resource) : base(inputClient, resourceMetadata)
{
_resource = resource;
@@ -69,7 +70,7 @@ protected override ConstructorProvider[] BuildConstructors()
protected override ValueExpression ResourceTypeExpression => Static(_resource.Type).Property("ResourceType");
- protected override CSharpType ResourceClientCharpType => _resource.Type;
+ protected override CSharpType ResourceClientCSharpType => _resource.Type;
protected override MethodProvider[] BuildMethods() => [BuildValidateResourceIdMethod(), .. BuildCreateOrUpdateMethods(), .. BuildGetMethods(), .. BuildGetAllMethods(), .. BuildExistsMethods(), .. BuildGetIfExistsMethods(), .. BuildEnumeratorMethods()];
@@ -209,7 +210,7 @@ private List BuildGetIfExistsMethods()
isAsync ? "GetIfExistsAsync" : "GetIfExists",
$"Tries to get details for this resource from the service.",
convenienceMethod.Signature.Modifiers,
- isAsync ? new CSharpType(typeof(Task<>), new CSharpType(typeof(NullableResponse<>), ResourceClientCharpType)) : new CSharpType(typeof(NullableResponse<>), ResourceClientCharpType),
+ isAsync ? new CSharpType(typeof(Task<>), new CSharpType(typeof(NullableResponse<>), ResourceClientCSharpType)) : new CSharpType(typeof(NullableResponse<>), ResourceClientCSharpType),
convenienceMethod.Signature.ReturnDescription,
GetOperationMethodParameters(convenienceMethod, false),
convenienceMethod.Signature.Attributes,
@@ -246,21 +247,19 @@ protected override MethodBodyStatement BuildReturnStatements(ValueExpression res
return base.BuildReturnStatements(responseVariable, signature);
}
- // TODO: make the commented implementation work - find a way to access the NoValueResponse type
private MethodBodyStatement BuildReturnStatementsForGetIfExists(ValueExpression responseVariable, MethodSignature signature)
{
- // List statements =
- // [
- // new IfStatement(responseVariable.Property("Value").Equal(Null))
- // {
- // Return(New.Instance(new CSharpType(typeof(NoValueResponse<>), _resource.Type), responseVariable.Invoke("GetRawResponse")))
- // }
- // ];
- // var returnValueExpression = New.Instance(ResourceClientCharpType, This.Property("Client"), responseVariable.Property("Value"));
- // statements.Add(Return(Static(typeof(Response)).Invoke(nameof(Response.FromValue), returnValueExpression, responseVariable.Invoke("GetRawResponse"))));
-
- // return statements;
- return base.BuildReturnStatements(responseVariable, signature);
+ List statements =
+ [
+ new IfStatement(responseVariable.Property("Value").Equal(Null))
+ {
+ Return(New.Instance(new CSharpType(typeof(NoValueResponse<>), _resource.Type), responseVariable.Invoke("GetRawResponse")))
+ }
+ ];
+ var returnValueExpression = New.Instance(ResourceClientCSharpType, This.Property("Client"), responseVariable.Property("Value"));
+ statements.Add(Return(Static(typeof(Response)).Invoke(nameof(Response.FromValue), returnValueExpression, responseVariable.Invoke("GetRawResponse"))));
+
+ return statements;
}
private MethodBodyStatement BuildReturnStatementsForExists(ValueExpression responseVariable)
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ResourceVisitor.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ResourceVisitor.cs
similarity index 93%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ResourceVisitor.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ResourceVisitor.cs
index 164b586faf0b..097d57169996 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ResourceVisitor.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/ResourceVisitor.cs
@@ -23,7 +23,7 @@ internal class ResourceVisitor : ScmLibraryVisitor
private void TransformResource(InputModelType model, TypeProvider type)
{
- if (type is ModelProvider && model.Decorators.Any(d => d.Name.Equals(KnownDecorators.ArmResourceInternal)))
+ if (type is ModelProvider && ManagementClientGenerator.Instance.InputLibrary.IsResourceModel(model))
{
type.Update(relativeFilePath: TransformRelativeFilePath(type));
type.Type.Update(TransformName(type));
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/RestClientVisitor.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/RestClientVisitor.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/RestClientVisitor.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/RestClientVisitor.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Utilities/ConstructorProviderHelper.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ConstructorProviderHelper.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Utilities/ConstructorProviderHelper.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/src/Utilities/ConstructorProviderHelper.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj
new file mode 100644
index 000000000000..de5dcbddc5d1
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Azure.Generator.Mgmt.Tests.csproj
@@ -0,0 +1,35 @@
+
+
+
+ enable
+
+
+
+
+
+
+
+
+
+
+
+ PreserveNewest
+
+
+
+
+
+ PreserveNewest
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputResourceData.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputResourceData.cs
new file mode 100644
index 000000000000..cb89e489c0c6
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Common/InputResourceData.cs
@@ -0,0 +1,59 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Generator.Management.Models;
+using Azure.Generator.Management.Primitives;
+using Azure.Generator.Tests.Common;
+using Microsoft.TypeSpec.Generator.Input;
+
+namespace Azure.Generator.Management.Tests.Common
+{
+ internal static class InputResourceData
+ {
+ public static (InputClient InputClient, IReadOnlyList InputModels) ClientWithResource()
+ {
+ const string TestClientName = "TestClient";
+ const string ResourceModelName = "ResponseType";
+ var responseModel = InputFactory.Model(ResourceModelName,
+ usage: InputModelTypeUsage.Output | InputModelTypeUsage.Json,
+ properties:
+ [
+ InputFactory.Property("id", InputPrimitiveType.String),
+ InputFactory.Property("type", InputPrimitiveType.String),
+ InputFactory.Property("name", InputFactory.Primitive.String()),
+ ],
+ decorators: [new InputDecoratorInfo(KnownDecorators.ArmResourceInternal, null)]);
+ var responseType = InputFactory.OperationResponse(statusCodes: [200], bodytype: responseModel);
+ var testNameParameter = InputFactory.Parameter("testName", InputPrimitiveType.String, location: InputRequestLocation.Path);
+ var operation = InputFactory.Operation(name: "get", responses: [responseType], parameters: [testNameParameter], path: "/providers/a/test/{testName}", decorators: [new InputDecoratorInfo(KnownDecorators.ArmResourceRead, null)]);
+ var decorators = new List()
+ {
+ new InputDecoratorInfo(KnownDecorators.ArmProviderNamespace, new Dictionary())
+ };
+ var client = InputFactory.Client(
+ TestClientName,
+ methods: [InputFactory.BasicServiceMethod("Get", operation, parameters: [testNameParameter])],
+ crossLanguageDefinitionId: $"Test.{TestClientName}",
+ decorators: decorators);
+ decorators.Add(BuildResourceMetadata(responseModel, client, "a/test", false, ResourceScope.ResourceGroup));
+ return (client, [responseModel]);
+ }
+
+ private static InputDecoratorInfo BuildResourceMetadata(InputModelType resourceModel, InputClient resourceClient, string resourceType, bool isSingleton, ResourceScope resourceScope)
+ {
+ var arguments = new Dictionary
+ {
+ [KnownDecorators.ResourceModel] = FromLiteralString(resourceModel.CrossLanguageDefinitionId),
+ [KnownDecorators.ResourceClient] = FromLiteralString(resourceClient.CrossLanguageDefinitionId),
+ [KnownDecorators.ResourceType] = FromLiteralString(resourceType),
+ [KnownDecorators.IsSingleton] = BinaryData.FromObjectAsJson(isSingleton),
+ [KnownDecorators.ResourceScope] = FromLiteralString(resourceScope.ToString()),
+ };
+
+ return new InputDecoratorInfo(KnownDecorators.ResourceMetadata, arguments);
+
+ static BinaryData FromLiteralString(string literal)
+ => BinaryData.FromString($"\"{literal}\"");
+ }
+ }
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/MgmtLroProviderTests.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/MgmtLroProviderTests.cs
new file mode 100644
index 000000000000..a8329083c691
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/MgmtLroProviderTests.cs
@@ -0,0 +1,44 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Generator.Management.Providers;
+using Azure.Generator.Management.Tests.TestHelpers;
+using Azure.Generator.Tests.Common;
+using Microsoft.TypeSpec.Generator.Primitives;
+using NUnit.Framework;
+
+namespace Azure.Generator.Management.Tests.Providers
+{
+ internal class MgmtLroProviderTests
+ {
+ [SetUp]
+ public void SetUp()
+ {
+ ManagementMockHelpers.LoadMockPlugin();
+ }
+
+ [TestCase]
+ public void Verify_NonGeneric_LROProviderGeneration()
+ {
+ var nonGenericLROProvider = new ManagementLongRunningOperationProvider(false);
+ var codeFile = new TypeProviderWriter(nonGenericLROProvider).Write();
+ var result = codeFile.Content;
+
+ var exptected = Helpers.GetExpectedFromFile();
+
+ Assert.AreEqual(exptected, result);
+ }
+
+ [TestCase]
+ public void Verify_Generic_LROProviderGeneration()
+ {
+ var genericLROProvider = new ManagementLongRunningOperationProvider(true);
+ var codeFile = new TypeProviderWriter(genericLROProvider).Write();
+ var result = codeFile.Content;
+
+ var exptected = Helpers.GetExpectedFromFile();
+
+ Assert.AreEqual(exptected, result);
+ }
+ }
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/OperationSourceProviderTests.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/OperationSourceProviderTests.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/OperationSourceProviderTests.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/OperationSourceProviderTests.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/ResourceClientProviderTests.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/ResourceClientProviderTests.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/ResourceClientProviderTests.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/ResourceClientProviderTests.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/ResourceCollectionClientProviderTests.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/ResourceCollectionClientProviderTests.cs
new file mode 100644
index 000000000000..52143fec1fba
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/ResourceCollectionClientProviderTests.cs
@@ -0,0 +1,153 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using Azure.Generator.Management.Providers;
+using Azure.Generator.Management.Tests.Common;
+using Azure.Generator.Management.Tests.TestHelpers;
+using Azure.Generator.Tests.Common;
+using Microsoft.TypeSpec.Generator.Primitives;
+using Microsoft.TypeSpec.Generator.Providers;
+using NUnit.Framework;
+
+namespace Azure.Generator.Management.Tests.Providers
+{
+ internal class ResourceCollectionClientProviderTests
+ {
+ private static MethodProvider GetResourceCollectionClientProviderMethodByName(string methodName)
+ {
+ ResourceCollectionClientProvider resourceProvider = GetResourceCollectionClientProvider();
+ var method = resourceProvider.Methods.FirstOrDefault(m => m.Signature.Name == methodName);
+ Assert.NotNull(method);
+ return method!;
+ }
+
+ private static ResourceCollectionClientProvider GetResourceCollectionClientProvider()
+ {
+ var (client, models) = InputResourceData.ClientWithResource();
+ var plugin = ManagementMockHelpers.LoadMockPlugin(inputModels: () => models, clients: () => [client]);
+ var resourceProvider = plugin.Object.OutputLibrary.TypeProviders.FirstOrDefault(p => p is ResourceCollectionClientProvider) as ResourceCollectionClientProvider;
+ Assert.NotNull(resourceProvider);
+ return resourceProvider!;
+ }
+
+ [TestCase]
+ public void Verify_GetOperationMethod()
+ {
+ MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("Get");
+
+ // verify the method signature
+ var signature = getMethod.Signature;
+ Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual));
+ Assert.IsTrue(signature.Parameters.Count == 2);
+ Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
+ Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
+ Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Response<>));
+
+ // verify the method body
+ var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
+ Assert.NotNull(bodyStatements);
+ var exptected = Helpers.GetExpectedFromFile();
+ Assert.AreEqual(exptected, bodyStatements);
+ }
+
+ [TestCase]
+ public void Verify_GetAsyncOperationMethod()
+ {
+ MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("GetAsync");
+
+ // verify the method signature
+ var signature = getMethod.Signature;
+ Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual | MethodSignatureModifiers.Async));
+ Assert.IsTrue(signature.Parameters.Count == 2);
+ Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
+ Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
+ Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Task<>));
+
+ // verify the method body
+ var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
+ Assert.NotNull(bodyStatements);
+ var exptected = Helpers.GetExpectedFromFile();
+ Assert.AreEqual(exptected, bodyStatements);
+ }
+
+ [TestCase]
+ public void Verify_ExistsOperationMethod()
+ {
+ MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("Exists");
+
+ // verify the method signature
+ var signature = getMethod.Signature;
+ Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual));
+ Assert.IsTrue(signature.Parameters.Count == 2);
+ Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
+ Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
+ Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Response<>));
+
+ // verify the method body
+ var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
+ Assert.NotNull(bodyStatements);
+ var exptected = Helpers.GetExpectedFromFile();
+ Assert.AreEqual(exptected, bodyStatements);
+ }
+
+ [TestCase]
+ public void Verify_ExistsAsyncOperationMethod()
+ {
+ MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("ExistsAsync");
+
+ // verify the method signature
+ var signature = getMethod.Signature;
+ Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual | MethodSignatureModifiers.Async));
+ Assert.IsTrue(signature.Parameters.Count == 2);
+ Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
+ Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
+ Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Task<>));
+
+ // verify the method body
+ var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
+ Assert.NotNull(bodyStatements);
+ var exptected = Helpers.GetExpectedFromFile();
+ Assert.AreEqual(exptected, bodyStatements);
+ }
+
+ [TestCase]
+ public void Verify_GetIfExistsOperationMethod()
+ {
+ MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("GetIfExists");
+
+ // verify the method signature
+ var signature = getMethod.Signature;
+ Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual));
+ Assert.IsTrue(signature.Parameters.Count == 2);
+ Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
+ Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
+ Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(NullableResponse<>));
+
+ // verify the method body
+ var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
+ Assert.NotNull(bodyStatements);
+ var exptected = Helpers.GetExpectedFromFile();
+ Assert.AreEqual(exptected, bodyStatements);
+ }
+
+ [TestCase]
+ public void Verify_GetIfExistsAsyncOperationMethod()
+ {
+ MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("GetIfExistsAsync");
+
+ // verify the method signature
+ var signature = getMethod.Signature;
+ Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual | MethodSignatureModifiers.Async));
+ Assert.IsTrue(signature.Parameters.Count == 2);
+ Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
+ Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
+ Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Task<>));
+
+ // verify the method body
+ var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
+ Assert.NotNull(bodyStatements);
+ var exptected = Helpers.GetExpectedFromFile();
+ Assert.AreEqual(exptected, bodyStatements);
+ }
+ }
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ManagementLongRunningOperationProviderTests/Verify_Generic_LROProviderGeneration.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/MgmtLroProviderTests/Verify_Generic_LROProviderGeneration.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ManagementLongRunningOperationProviderTests/Verify_Generic_LROProviderGeneration.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/MgmtLroProviderTests/Verify_Generic_LROProviderGeneration.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ManagementLongRunningOperationProviderTests/Verify_NonGeneric_LROProviderGeneration.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/MgmtLroProviderTests/Verify_NonGeneric_LROProviderGeneration.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ManagementLongRunningOperationProviderTests/Verify_NonGeneric_LROProviderGeneration.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/MgmtLroProviderTests/Verify_NonGeneric_LROProviderGeneration.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/OperationSourceProviderTests/Verify_CreateResult.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/OperationSourceProviderTests/Verify_CreateResult.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/OperationSourceProviderTests/Verify_CreateResult.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/OperationSourceProviderTests/Verify_CreateResult.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/OperationSourceProviderTests/Verify_CreateResultAsync.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/OperationSourceProviderTests/Verify_CreateResultAsync.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/OperationSourceProviderTests/Verify_CreateResultAsync.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/OperationSourceProviderTests/Verify_CreateResultAsync.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_AsyncOperationMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_AsyncOperationMethod.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_AsyncOperationMethod.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_AsyncOperationMethod.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_ConstructorWithData.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_ConstructorWithData.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_ConstructorWithData.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_ConstructorWithData.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_ConstructorWithId.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_ConstructorWithId.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_ConstructorWithId.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_ConstructorWithId.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_SyncOperationMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_SyncOperationMethod.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_SyncOperationMethod.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_SyncOperationMethod.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_ValidateIdMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_ValidateIdMethod.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceClientProviderTests/Verify_ValidateIdMethod.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceClientProviderTests/Verify_ValidateIdMethod.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceCollectionClientProviderTests/Verify_ExistsAsyncOperationMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_ExistsAsyncOperationMethod.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceCollectionClientProviderTests/Verify_ExistsAsyncOperationMethod.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_ExistsAsyncOperationMethod.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceCollectionClientProviderTests/Verify_ExistsOperationMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_ExistsOperationMethod.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceCollectionClientProviderTests/Verify_ExistsOperationMethod.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_ExistsOperationMethod.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetAsyncOperationMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetAsyncOperationMethod.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetAsyncOperationMethod.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetAsyncOperationMethod.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetIfExistsAsyncOperationMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetIfExistsAsyncOperationMethod.cs
new file mode 100644
index 000000000000..bb5732c731db
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetIfExistsAsyncOperationMethod.cs
@@ -0,0 +1,23 @@
+using global::Azure.Core.Pipeline.DiagnosticScope scope = _responsetypeClientDiagnostics.CreateScope("ResponseTypeCollection.GetIfExistsAsync");
+scope.Start();
+try
+{
+ global::Azure.RequestContext context = new global::Azure.RequestContext
+ {
+ CancellationToken = cancellationToken
+ }
+ ;
+ global::Azure.Core.HttpMessage message = _responsetypeRestClient.CreateGetRequest(this.Id.Name, context);
+ global::Azure.Response result = await this.Pipeline.ProcessMessageAsync(message, context).ConfigureAwait(false);
+ global::Azure.Response response = global::Azure.Response.FromValue(((global::Samples.Models.ResponseTypeData)result), result);
+ if ((response.Value == null))
+ {
+ return new global::Azure.NoValueResponse(response.GetRawResponse());
+ }
+ return global::Azure.Response.FromValue(new global::Samples.ResponseTypeResource(this.Client, response.Value), response.GetRawResponse());
+}
+catch (global::System.Exception e)
+{
+ scope.Failed(e);
+ throw;
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetIfExistsOperationMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetIfExistsOperationMethod.cs
new file mode 100644
index 000000000000..00a31b5a466d
--- /dev/null
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetIfExistsOperationMethod.cs
@@ -0,0 +1,23 @@
+using global::Azure.Core.Pipeline.DiagnosticScope scope = _responsetypeClientDiagnostics.CreateScope("ResponseTypeCollection.GetIfExists");
+scope.Start();
+try
+{
+ global::Azure.RequestContext context = new global::Azure.RequestContext
+ {
+ CancellationToken = cancellationToken
+ }
+ ;
+ global::Azure.Core.HttpMessage message = _responsetypeRestClient.CreateGetRequest(this.Id.Name, context);
+ global::Azure.Response result = this.Pipeline.ProcessMessage(message, context);
+ global::Azure.Response response = global::Azure.Response.FromValue(((global::Samples.Models.ResponseTypeData)result), result);
+ if ((response.Value == null))
+ {
+ return new global::Azure.NoValueResponse(response.GetRawResponse());
+ }
+ return global::Azure.Response.FromValue(new global::Samples.ResponseTypeResource(this.Client, response.Value), response.GetRawResponse());
+}
+catch (global::System.Exception e)
+{
+ scope.Failed(e);
+ throw;
+}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetOperationMethod.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetOperationMethod.cs
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetOperationMethod.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/Providers/TestData/ResourceCollectionClientProviderTests/Verify_GetOperationMethod.cs
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/TestHelpers/Configuration.json b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/TestHelpers/Configuration.json
similarity index 100%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/TestHelpers/Configuration.json
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/TestHelpers/Configuration.json
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/TestHelpers/ManagementMockHelpers.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/TestHelpers/ManagementMockHelpers.cs
similarity index 94%
rename from eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/TestHelpers/ManagementMockHelpers.cs
rename to eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/TestHelpers/ManagementMockHelpers.cs
index 1b9465564c7c..da671fd4c526 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/TestHelpers/ManagementMockHelpers.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Management/test/TestHelpers/ManagementMockHelpers.cs
@@ -25,6 +25,7 @@ public static Mock LoadMockPlugin(
Func? apiKeyAuth = null,
Func? oauth2Auth = null,
Func>? apiVersions = null,
+ Func>? inputLiterals = null,
Func>? inputEnums = null,
Func>? inputModels = null,
Func>? clients = null,
@@ -33,6 +34,7 @@ public static Mock LoadMockPlugin(
HttpMessageApi? httpMessageApi = null)
{
IReadOnlyList inputNsApiVersions = apiVersions?.Invoke() ?? [];
+ IReadOnlyList inputNsLiterals = inputLiterals?.Invoke() ?? [];
IReadOnlyList inputNsEnums = inputEnums?.Invoke() ?? [];
IReadOnlyList inputNsClients = clients?.Invoke() ?? [];
IReadOnlyList inputNsModels = inputModels?.Invoke() ?? [];
@@ -41,6 +43,7 @@ public static Mock LoadMockPlugin(
var mockInputNs = new Mock(
"Samples",
inputNsApiVersions,
+ inputNsLiterals,
inputNsEnums,
inputNsModels,
inputNsClients,
@@ -75,7 +78,7 @@ public static Mock LoadMockPlugin(
mockPluginInstance.SetupGet(p => p.TypeFactory).Returns(mockTypeFactory.Object);
}
- var sourceInputModel = new Mock(() => new SourceInputModel(null)) { CallBase = true };
+ var sourceInputModel = new Mock(() => new SourceInputModel(null, null)) { CallBase = true };
mockPluginInstance.Setup(p => p.SourceInputModel).Returns(sourceInputModel.Object);
var configureMethod = typeof(CodeModelGenerator).GetMethod(
"Configure",
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt.sln b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt.sln
deleted file mode 100644
index 350e4f2251d5..000000000000
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt.sln
+++ /dev/null
@@ -1,43 +0,0 @@
-
-Microsoft Visual Studio Solution File, Format Version 12.00
-# Visual Studio Version 17
-VisualStudioVersion = 17.12.35728.132
-MinimumVisualStudioVersion = 10.0.40219.1
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Generator.Mgmt", "Azure.Generator.Mgmt\src\Azure.Generator.Mgmt.csproj", "{690F5280-BCDB-433C-B523-D3E782340BA4}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Generator.Mgmt.Tests", "Azure.Generator.Mgmt\test\Azure.Generator.Mgmt.Tests\Azure.Generator.Mgmt.Tests.csproj", "{236F0049-E44C-40C9-90BB-BD19495CB689}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestProjects.Local.Tests", "TestProjects\Local.Tests\TestProjects.Local.Tests.csproj", "{E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}"
-EndProject
-Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Azure.Generator.Tests.Common", "..\..\http-client-csharp\generator\Azure.Generator\test\common\Azure.Generator.Tests.Common.csproj", "{5C43C4D9-AC67-6643-B7AF-DF8096B8265A}"
-EndProject
-Global
- GlobalSection(SolutionConfigurationPlatforms) = preSolution
- Debug|Any CPU = Debug|Any CPU
- Release|Any CPU = Release|Any CPU
- EndGlobalSection
- GlobalSection(ProjectConfigurationPlatforms) = postSolution
- {690F5280-BCDB-433C-B523-D3E782340BA4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {690F5280-BCDB-433C-B523-D3E782340BA4}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {690F5280-BCDB-433C-B523-D3E782340BA4}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {690F5280-BCDB-433C-B523-D3E782340BA4}.Release|Any CPU.Build.0 = Release|Any CPU
- {236F0049-E44C-40C9-90BB-BD19495CB689}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {236F0049-E44C-40C9-90BB-BD19495CB689}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {236F0049-E44C-40C9-90BB-BD19495CB689}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {236F0049-E44C-40C9-90BB-BD19495CB689}.Release|Any CPU.Build.0 = Release|Any CPU
- {E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {E6E6C66A-E1E2-4D4D-9E8A-FD97A1761F90}.Release|Any CPU.Build.0 = Release|Any CPU
- {5C43C4D9-AC67-6643-B7AF-DF8096B8265A}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
- {5C43C4D9-AC67-6643-B7AF-DF8096B8265A}.Debug|Any CPU.Build.0 = Debug|Any CPU
- {5C43C4D9-AC67-6643-B7AF-DF8096B8265A}.Release|Any CPU.ActiveCfg = Release|Any CPU
- {5C43C4D9-AC67-6643-B7AF-DF8096B8265A}.Release|Any CPU.Build.0 = Release|Any CPU
- EndGlobalSection
- GlobalSection(SolutionProperties) = preSolution
- HideSolutionNode = FALSE
- EndGlobalSection
- GlobalSection(ExtensibilityGlobals) = postSolution
- SolutionGuid = {9E9389E8-7266-4312-9710-1BE45A571319}
- EndGlobalSection
-EndGlobal
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Azure.Generator.Mgmt.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Azure.Generator.Mgmt.csproj
deleted file mode 100644
index 3e15df6aacbd..000000000000
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/Azure.Generator.Mgmt.csproj
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
- Azure.Generator.Mgmt
- 1.0.0-beta.1
- true
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
-
-
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementInputLibrary.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementInputLibrary.cs
deleted file mode 100644
index 7e05f6f2b04f..000000000000
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src/ManagementInputLibrary.cs
+++ /dev/null
@@ -1,23 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using Microsoft.TypeSpec.Generator.Input;
-using System.Collections.Generic;
-using System.Linq;
-
-namespace Azure.Generator.Management
-{
- ///
- public class ManagementInputLibrary : InputLibrary
- {
- private IReadOnlyDictionary? _inputModelsByCrossLanguageDefinitionId = null;
- private IReadOnlyDictionary InputModelsByCrossLanguageDefinitionId => _inputModelsByCrossLanguageDefinitionId ??= InputNamespace.Models.DistinctBy(x => x.CrossLanguageDefinitionId).ToDictionary(m => m.CrossLanguageDefinitionId, m => m);
-
- ///
- public ManagementInputLibrary(string configPath) : base(configPath)
- {
- }
-
- internal InputModelType? GetModelByCrossLanguageDefinitionId(string crossLanguageDefinitionId) => InputModelsByCrossLanguageDefinitionId.TryGetValue(crossLanguageDefinitionId, out var model) ? model : null;
- }
-}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Azure.Generator.Mgmt.Tests.csproj b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Azure.Generator.Mgmt.Tests.csproj
deleted file mode 100644
index fd8411b29918..000000000000
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Azure.Generator.Mgmt.Tests.csproj
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
- enable
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
- PreserveNewest
-
-
-
-
-
-
-
-
-
-
- PreserveNewest
-
-
-
-
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Common/InputResourceData.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Common/InputResourceData.cs
deleted file mode 100644
index 7629cdb27358..000000000000
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Common/InputResourceData.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using Azure.Generator.Management.Primitives;
-using Azure.Generator.Tests.Common;
-using Microsoft.TypeSpec.Generator.Input;
-
-namespace Azure.Generator.Management.Tests.Common
-{
- internal static class InputResourceData
- {
- public static (InputClient InputClient, IReadOnlyList InputModels) ClientWithResource()
- {
- const string TestClientName = "TestClient";
- const string ResourceModelName = "ResponseType";
- var responseModel = InputFactory.Model(ResourceModelName,
- usage: InputModelTypeUsage.Output | InputModelTypeUsage.Json,
- properties:
- [
- InputFactory.Property("id", InputPrimitiveType.String),
- InputFactory.Property("type", InputPrimitiveType.String),
- InputFactory.Property("name", InputFactory.Primitive.String()),
- ],
- decorators: [new InputDecoratorInfo(KnownDecorators.ArmResourceInternal, null)]);
- var responseType = InputFactory.OperationResponse(statusCodes: [200], bodytype: responseModel);
- var testNameParameter = InputFactory.Parameter("testName", InputPrimitiveType.String, location: InputRequestLocation.Path);
- var operation = InputFactory.Operation(name: "get", responses: [responseType], parameters: [testNameParameter], path: "/providers/a/test/{testName}", decorators: [new InputDecoratorInfo(KnownDecorators.ArmResourceRead, null)]);
- var resourceMetadataArguments = new Dictionary
- {
- { KnownDecorators.ResourceModel, BinaryData.FromString($"\"{ResourceModelName}\"") },
- { KnownDecorators.ResourceType, BinaryData.FromString("\"a/test\"") }
- };
- var client = InputFactory.Client(TestClientName, methods: [InputFactory.BasicServiceMethod("Get", operation, parameters: [testNameParameter])], decorators: [new InputDecoratorInfo(KnownDecorators.ResourceMetadata, resourceMetadataArguments), new InputDecoratorInfo(KnownDecorators.ArmProviderNamespace, null)]);
- return (client, [responseModel]);
- }
- }
-}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/ManagementLongRunningOperationProviderTests.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/ManagementLongRunningOperationProviderTests.cs
deleted file mode 100644
index ed063b654e90..000000000000
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/ManagementLongRunningOperationProviderTests.cs
+++ /dev/null
@@ -1,44 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using Azure.Generator.Management.Providers;
-using Azure.Generator.Management.Tests.TestHelpers;
-using Azure.Generator.Tests.Common;
-using Microsoft.TypeSpec.Generator.Primitives;
-using NUnit.Framework;
-
-namespace Azure.Generator.Management.Tests.Providers
-{
- internal class ManagementLongRunningOperationProviderTests
- {
- [SetUp]
- public void SetUp()
- {
- ManagementMockHelpers.LoadMockPlugin();
- }
-
- [TestCase]
- public void Verify_NonGeneric_LROProviderGeneration()
- {
- var nonGenericLROProvider = new ManagementLongRunningOperationProvider(false);
- var codeFile = new TypeProviderWriter(nonGenericLROProvider).Write();
- var result = codeFile.Content;
-
- var exptected = Helpers.GetExpectedFromFile();
-
- Assert.AreEqual(exptected, result);
- }
-
- [TestCase]
- public void Verify_Generic_LROProviderGeneration()
- {
- var genericLROProvider = new ManagementLongRunningOperationProvider(true);
- var codeFile = new TypeProviderWriter(genericLROProvider).Write();
- var result = codeFile.Content;
-
- var exptected = Helpers.GetExpectedFromFile();
-
- Assert.AreEqual(exptected, result);
- }
- }
-}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/ResourceCollectionClientProviderTests.cs b/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/ResourceCollectionClientProviderTests.cs
deleted file mode 100644
index 3fe63b45c30b..000000000000
--- a/eng/packages/http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/test/Azure.Generator.Mgmt.Tests/Providers/ResourceCollectionClientProviderTests.cs
+++ /dev/null
@@ -1,113 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-using Azure.Generator.Management.Providers;
-using Azure.Generator.Management.Tests.Common;
-using Azure.Generator.Management.Tests.TestHelpers;
-using Azure.Generator.Tests.Common;
-using Microsoft.TypeSpec.Generator.Primitives;
-using Microsoft.TypeSpec.Generator.Providers;
-using NUnit.Framework;
-
-namespace Azure.Generator.Management.Tests.Providers
-{
- internal class ResourceCollectionClientProviderTests
- {
- private static MethodProvider GetResourceCollectionClientProviderMethodByName(string methodName)
- {
- ResourceCollectionClientProvider resourceProvider = GetResourceCollectionClientProvider();
- var method = resourceProvider.Methods.FirstOrDefault(m => m.Signature.Name == methodName);
- Assert.NotNull(method);
- return method!;
- }
-
- private static ResourceCollectionClientProvider GetResourceCollectionClientProvider()
- {
- var (client, models) = InputResourceData.ClientWithResource();
- var plugin = ManagementMockHelpers.LoadMockPlugin(inputModels: () => models, clients: () => [client]);
- var resourceProvider = plugin.Object.OutputLibrary.TypeProviders.FirstOrDefault(p => p is ResourceCollectionClientProvider) as ResourceCollectionClientProvider;
- Assert.NotNull(resourceProvider);
- return resourceProvider!;
- }
-
- [TestCase]
- public void Verify_GetOperationMethod()
- {
- MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("Get");
-
- // verify the method signature
- var signature = getMethod.Signature;
- Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual));
- Assert.IsTrue(signature.Parameters.Count == 2);
- Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
- Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
- Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Response<>));
-
- // verify the method body
- var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
- Assert.NotNull(bodyStatements);
- var exptected = Helpers.GetExpectedFromFile();
- Assert.AreEqual(exptected, bodyStatements);
- }
-
- [TestCase]
- public void Verify_GetAsyncOperationMethod()
- {
- MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("GetAsync");
-
- // verify the method signature
- var signature = getMethod.Signature;
- Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual | MethodSignatureModifiers.Async));
- Assert.IsTrue(signature.Parameters.Count == 2);
- Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
- Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
- Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Task<>));
-
- // verify the method body
- var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
- Assert.NotNull(bodyStatements);
- var exptected = Helpers.GetExpectedFromFile();
- Assert.AreEqual(exptected, bodyStatements);
- }
-
- [TestCase]
- public void Verify_ExistsOperationMethod()
- {
- MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("Exists");
-
- // verify the method signature
- var signature = getMethod.Signature;
- Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual));
- Assert.IsTrue(signature.Parameters.Count == 2);
- Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
- Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
- Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Response<>));
-
- // verify the method body
- var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
- Assert.NotNull(bodyStatements);
- var exptected = Helpers.GetExpectedFromFile();
- Assert.AreEqual(exptected, bodyStatements);
- }
-
- [TestCase]
- public void Verify_ExistsAsyncOperationMethod()
- {
- MethodProvider getMethod = GetResourceCollectionClientProviderMethodByName("ExistsAsync");
-
- // verify the method signature
- var signature = getMethod.Signature;
- Assert.IsTrue(signature.Modifiers.Equals(MethodSignatureModifiers.Public | MethodSignatureModifiers.Virtual | MethodSignatureModifiers.Async));
- Assert.IsTrue(signature.Parameters.Count == 2);
- Assert.IsTrue(signature.Parameters[0].Type.FrameworkType.Equals(typeof(string)));
- Assert.IsTrue(signature.Parameters[1].Type.FrameworkType.Equals(typeof(CancellationToken)));
- Assert.AreEqual(signature.ReturnType?.FrameworkType, typeof(Task<>));
-
- // verify the method body
- var bodyStatements = getMethod.BodyStatements?.ToDisplayString();
- Assert.NotNull(bodyStatements);
- var exptected = Helpers.GetExpectedFromFile();
- Assert.AreEqual(exptected, bodyStatements);
- }
- }
-}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj
index a69453483d2c..a45785ef6f37 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local.Tests/TestProjects.Local.Tests.csproj
@@ -46,6 +46,7 @@
+
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooCollection.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooCollection.cs
index 054dbbc3ea6a..07314169669d 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooCollection.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooCollection.cs
@@ -292,7 +292,7 @@ public virtual async Task> GetIfExistsAsync(string
Response response = Response.FromValue((FooData)result, result);
if (response.Value == null)
{
- throw new RequestFailedException(response.GetRawResponse());
+ return new NoValueResponse(response.GetRawResponse());
}
return Response.FromValue(new FooResource(Client, response.Value), response.GetRawResponse());
}
@@ -325,7 +325,7 @@ public virtual NullableResponse GetIfExists(string fooName, Cancell
Response response = Response.FromValue((FooData)result, result);
if (response.Value == null)
{
- throw new RequestFailedException(response.GetRawResponse());
+ return new NoValueResponse(response.GetRawResponse());
}
return Response.FromValue(new FooResource(Client, response.Value), response.GetRawResponse());
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooData.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooData.cs
index 00b3cfc2980c..cbb1de893bf1 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooData.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/FooData.cs
@@ -10,6 +10,7 @@
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Resources.Models;
+using MgmtTypeSpec;
namespace MgmtTypeSpec.Models
{
@@ -21,8 +22,11 @@ public partial class FooData : TrackedResourceData
/// Initializes a new instance of .
/// The geo-location where the resource lives.
- internal FooData(string location) : base(location)
+ /// is null.
+ public FooData(string location) : base(location)
{
+ Argument.AssertNotNull(location, nameof(location));
+
}
/// Initializes a new instance of .
@@ -43,9 +47,9 @@ internal FooData(ResourceIdentifier id, string @type, SystemData systemData, IDi
}
/// The resource-specific properties for this resource.
- public FooProperties Properties { get; }
+ public FooProperties Properties { get; set; }
- /// Gets the ExtendedLocation.
- public ExtendedLocation ExtendedLocation { get; }
+ /// Gets or sets the ExtendedLocation.
+ public ExtendedLocation ExtendedLocation { get; set; }
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs
index f83d7e8b4dd1..c894890064f7 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs
@@ -13,14 +13,14 @@ namespace MgmtTypeSpec
{
internal static partial class RequestContextExtensions
{
- ///
- public static ValueTuple Parse(this RequestContext requestContext)
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ public static ValueTuple Parse(this RequestContext context)
{
- if (requestContext == null)
+ if (context == null)
{
return (CancellationToken.None, ErrorOptions.Default);
}
- return (requestContext.CancellationToken, requestContext.ErrorOptions);
+ return (context.CancellationToken, context.ErrorOptions);
}
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooProperties.cs b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooProperties.cs
index 6f2e9cf13231..6f0a403d25d9 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooProperties.cs
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/Generated/Models/FooProperties.cs
@@ -17,7 +17,7 @@ public partial class FooProperties
private protected readonly IDictionary _additionalBinaryDataProperties;
/// Initializes a new instance of .
- internal FooProperties()
+ public FooProperties()
{
}
@@ -39,18 +39,18 @@ internal FooProperties(Uri serviceUrl, string something, bool? boolValue, float?
}
/// the service url.
- public Uri ServiceUrl { get; }
+ public Uri ServiceUrl { get; set; }
/// something.
- public string Something { get; }
+ public string Something { get; set; }
/// boolean value.
- public bool? BoolValue { get; }
+ public bool? BoolValue { get; set; }
/// float value.
- public float? FloatValue { get; }
+ public float? FloatValue { get; set; }
/// double value.
- public double? DoubleValue { get; }
+ public double? DoubleValue { get; set; }
}
}
diff --git a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/MgmtTypeSpec.csproj b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/MgmtTypeSpec.csproj
index f0a70959fe05..31899a3d8734 100644
--- a/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/MgmtTypeSpec.csproj
+++ b/eng/packages/http-client-csharp-mgmt/generator/TestProjects/Local/Mgmt-TypeSpec/src/MgmtTypeSpec.csproj
@@ -17,8 +17,10 @@
+
+
@@ -26,6 +28,8 @@
+
+
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 2064ede228b3..1c2c58e708fc 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
@@ -477,9 +477,235 @@
"decorators": []
}
],
- "models": [
+ "constants": [
{
"$id": "52",
+ "kind": "constant",
+ "name": "listContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "54",
+ "kind": "constant",
+ "name": "listByMongoClusterContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "constant",
+ "name": "startContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "57",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "58",
+ "kind": "constant",
+ "name": "startContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "59",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "60",
+ "kind": "constant",
+ "name": "startContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "61",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "62",
+ "kind": "constant",
+ "name": "startContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "63",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "64",
+ "kind": "constant",
+ "name": "createOrUpdateContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "65",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "66",
+ "kind": "constant",
+ "name": "createOrUpdateContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "68",
+ "kind": "constant",
+ "name": "createOrUpdateContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "69",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "70",
+ "kind": "constant",
+ "name": "createOrUpdateContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "71",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "72",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "73",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "74",
+ "kind": "constant",
+ "name": "deleteContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "75",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "76",
+ "kind": "constant",
+ "name": "deleteContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "77",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "78",
+ "kind": "constant",
+ "name": "listContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "79",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "80",
"kind": "model",
"name": "OperationListResult",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -489,17 +715,17 @@
"decorators": [],
"properties": [
{
- "$id": "53",
+ "$id": "81",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The Operation items on this page",
"type": {
- "$id": "54",
+ "$id": "82",
"kind": "array",
"name": "ArrayOperation",
"valueType": {
- "$id": "55",
+ "$id": "83",
"kind": "model",
"name": "Operation",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -510,13 +736,13 @@
"decorators": [],
"properties": [
{
- "$id": "56",
+ "$id": "84",
"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": "57",
+ "$id": "85",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -529,21 +755,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.name",
"serializationOptions": {
- "$id": "58",
+ "$id": "86",
"json": {
- "$id": "59",
+ "$id": "87",
"name": "name"
}
}
},
{
- "$id": "60",
+ "$id": "88",
"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": "61",
+ "$id": "89",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -556,21 +782,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.isDataAction",
"serializationOptions": {
- "$id": "62",
+ "$id": "90",
"json": {
- "$id": "63",
+ "$id": "91",
"name": "isDataAction"
}
}
},
{
- "$id": "64",
+ "$id": "92",
"kind": "property",
"name": "display",
"serializedName": "display",
"doc": "Localized display information for this particular operation.",
"type": {
- "$id": "65",
+ "$id": "93",
"kind": "model",
"name": "OperationDisplay",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -580,13 +806,13 @@
"decorators": [],
"properties": [
{
- "$id": "66",
+ "$id": "94",
"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": "67",
+ "$id": "95",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -599,21 +825,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay.provider",
"serializationOptions": {
- "$id": "68",
+ "$id": "96",
"json": {
- "$id": "69",
+ "$id": "97",
"name": "provider"
}
}
},
{
- "$id": "70",
+ "$id": "98",
"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": "71",
+ "$id": "99",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -626,21 +852,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay.resource",
"serializationOptions": {
- "$id": "72",
+ "$id": "100",
"json": {
- "$id": "73",
+ "$id": "101",
"name": "resource"
}
}
},
{
- "$id": "74",
+ "$id": "102",
"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": "75",
+ "$id": "103",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -653,21 +879,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay.operation",
"serializationOptions": {
- "$id": "76",
+ "$id": "104",
"json": {
- "$id": "77",
+ "$id": "105",
"name": "operation"
}
}
},
{
- "$id": "78",
+ "$id": "106",
"kind": "property",
"name": "description",
"serializedName": "description",
"doc": "The short, localized friendly description of the operation; suitable for tool tips and detailed views.",
"type": {
- "$id": "79",
+ "$id": "107",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -680,9 +906,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationDisplay.description",
"serializationOptions": {
- "$id": "80",
+ "$id": "108",
"json": {
- "$id": "81",
+ "$id": "109",
"name": "description"
}
}
@@ -696,15 +922,15 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.display",
"serializationOptions": {
- "$id": "82",
+ "$id": "110",
"json": {
- "$id": "83",
+ "$id": "111",
"name": "display"
}
}
},
{
- "$id": "84",
+ "$id": "112",
"kind": "property",
"name": "origin",
"serializedName": "origin",
@@ -719,15 +945,15 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.origin",
"serializationOptions": {
- "$id": "85",
+ "$id": "113",
"json": {
- "$id": "86",
+ "$id": "114",
"name": "origin"
}
}
},
{
- "$id": "87",
+ "$id": "115",
"kind": "property",
"name": "actionType",
"serializedName": "actionType",
@@ -742,9 +968,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Operation.actionType",
"serializationOptions": {
- "$id": "88",
+ "$id": "116",
"json": {
- "$id": "89",
+ "$id": "117",
"name": "actionType"
}
}
@@ -761,26 +987,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationListResult.value",
"serializationOptions": {
- "$id": "90",
+ "$id": "118",
"json": {
- "$id": "91",
+ "$id": "119",
"name": "value"
}
}
},
{
- "$id": "92",
+ "$id": "120",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "93",
+ "$id": "121",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "94",
+ "$id": "122",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -795,9 +1021,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationListResult.nextLink",
"serializationOptions": {
- "$id": "95",
+ "$id": "123",
"json": {
- "$id": "96",
+ "$id": "124",
"name": "nextLink"
}
}
@@ -805,13 +1031,13 @@
]
},
{
- "$ref": "55"
+ "$ref": "83"
},
{
- "$ref": "65"
+ "$ref": "93"
},
{
- "$id": "97",
+ "$id": "125",
"kind": "model",
"name": "ErrorResponse",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -822,13 +1048,13 @@
"decorators": [],
"properties": [
{
- "$id": "98",
+ "$id": "126",
"kind": "property",
"name": "error",
"serializedName": "error",
"doc": "The error object.",
"type": {
- "$id": "99",
+ "$id": "127",
"kind": "model",
"name": "ErrorDetail",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -838,13 +1064,13 @@
"decorators": [],
"properties": [
{
- "$id": "100",
+ "$id": "128",
"kind": "property",
"name": "code",
"serializedName": "code",
"doc": "The error code.",
"type": {
- "$id": "101",
+ "$id": "129",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -857,21 +1083,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.code",
"serializationOptions": {
- "$id": "102",
+ "$id": "130",
"json": {
- "$id": "103",
+ "$id": "131",
"name": "code"
}
}
},
{
- "$id": "104",
+ "$id": "132",
"kind": "property",
"name": "message",
"serializedName": "message",
"doc": "The error message.",
"type": {
- "$id": "105",
+ "$id": "133",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -884,21 +1110,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.message",
"serializationOptions": {
- "$id": "106",
+ "$id": "134",
"json": {
- "$id": "107",
+ "$id": "135",
"name": "message"
}
}
},
{
- "$id": "108",
+ "$id": "136",
"kind": "property",
"name": "target",
"serializedName": "target",
"doc": "The error target.",
"type": {
- "$id": "109",
+ "$id": "137",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -911,25 +1137,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.target",
"serializationOptions": {
- "$id": "110",
+ "$id": "138",
"json": {
- "$id": "111",
+ "$id": "139",
"name": "target"
}
}
},
{
- "$id": "112",
+ "$id": "140",
"kind": "property",
"name": "details",
"serializedName": "details",
"doc": "The error details.",
"type": {
- "$id": "113",
+ "$id": "141",
"kind": "array",
"name": "ArrayErrorDetail",
"valueType": {
- "$ref": "99"
+ "$ref": "127"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -941,25 +1167,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.details",
"serializationOptions": {
- "$id": "114",
+ "$id": "142",
"json": {
- "$id": "115",
+ "$id": "143",
"name": "details"
}
}
},
{
- "$id": "116",
+ "$id": "144",
"kind": "property",
"name": "additionalInfo",
"serializedName": "additionalInfo",
"doc": "The error additional info.",
"type": {
- "$id": "117",
+ "$id": "145",
"kind": "array",
"name": "ArrayErrorAdditionalInfo",
"valueType": {
- "$id": "118",
+ "$id": "146",
"kind": "model",
"name": "ErrorAdditionalInfo",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -969,13 +1195,13 @@
"decorators": [],
"properties": [
{
- "$id": "119",
+ "$id": "147",
"kind": "property",
"name": "type",
"serializedName": "type",
"doc": "The additional info type.",
"type": {
- "$id": "120",
+ "$id": "148",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -988,21 +1214,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo.type",
"serializationOptions": {
- "$id": "121",
+ "$id": "149",
"json": {
- "$id": "122",
+ "$id": "150",
"name": "type"
}
}
},
{
- "$id": "123",
+ "$id": "151",
"kind": "property",
"name": "info",
"serializedName": "info",
"doc": "The additional info.",
"type": {
- "$id": "124",
+ "$id": "152",
"kind": "model",
"name": "ErrorAdditionalInfoInfo",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -1018,9 +1244,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo.info",
"serializationOptions": {
- "$id": "125",
+ "$id": "153",
"json": {
- "$id": "126",
+ "$id": "154",
"name": "info"
}
}
@@ -1037,9 +1263,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorDetail.additionalInfo",
"serializationOptions": {
- "$id": "127",
+ "$id": "155",
"json": {
- "$id": "128",
+ "$id": "156",
"name": "additionalInfo"
}
}
@@ -1053,9 +1279,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ErrorResponse.error",
"serializationOptions": {
- "$id": "129",
+ "$id": "157",
"json": {
- "$id": "130",
+ "$id": "158",
"name": "error"
}
}
@@ -1063,16 +1289,16 @@
]
},
{
- "$ref": "99"
+ "$ref": "127"
},
{
- "$ref": "118"
+ "$ref": "146"
},
{
- "$ref": "124"
+ "$ref": "152"
},
{
- "$id": "131",
+ "$id": "159",
"kind": "model",
"name": "PrivateLinkResourceListResult",
"namespace": "Azure.ResourceManager",
@@ -1082,17 +1308,17 @@
"decorators": [],
"properties": [
{
- "$id": "132",
+ "$id": "160",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The PrivateLinkResource items on this page",
"type": {
- "$id": "133",
+ "$id": "161",
"kind": "array",
"name": "ArrayPrivateLinkResource",
"valueType": {
- "$id": "134",
+ "$id": "162",
"kind": "model",
"name": "PrivateLinkResource",
"namespace": "MgmtTypeSpec",
@@ -1101,15 +1327,15 @@
"doc": "Concrete proxy resource types can be created by aliasing this type using a specific property type.",
"decorators": [
{
- "$id": "135",
+ "$id": "163",
"name": "Azure.ResourceManager.Private.@armResourceInternal",
"arguments": {
- "$id": "136"
+ "$id": "164"
}
}
],
"baseModel": {
- "$id": "137",
+ "$id": "165",
"kind": "model",
"name": "ProxyResource",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -1119,7 +1345,7 @@
"summary": "Proxy Resource",
"decorators": [],
"baseModel": {
- "$id": "138",
+ "$id": "166",
"kind": "model",
"name": "Resource",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -1130,18 +1356,18 @@
"decorators": [],
"properties": [
{
- "$id": "139",
+ "$id": "167",
"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": "140",
+ "$id": "168",
"kind": "string",
"name": "armResourceIdentifier",
"crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier",
"baseType": {
- "$id": "141",
+ "$id": "169",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1156,21 +1382,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource.id",
"serializationOptions": {
- "$id": "142",
+ "$id": "170",
"json": {
- "$id": "143",
+ "$id": "171",
"name": "id"
}
}
},
{
- "$id": "144",
+ "$id": "172",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the resource",
"type": {
- "$id": "145",
+ "$id": "173",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1183,26 +1409,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource.name",
"serializationOptions": {
- "$id": "146",
+ "$id": "174",
"json": {
- "$id": "147",
+ "$id": "175",
"name": "name"
}
}
},
{
- "$id": "148",
+ "$id": "176",
"kind": "property",
"name": "type",
"serializedName": "type",
"doc": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
"type": {
- "$id": "149",
+ "$id": "177",
"kind": "string",
"name": "armResourceType",
"crossLanguageDefinitionId": "Azure.Core.armResourceType",
"baseType": {
- "$id": "150",
+ "$id": "178",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1217,21 +1443,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource.type",
"serializationOptions": {
- "$id": "151",
+ "$id": "179",
"json": {
- "$id": "152",
+ "$id": "180",
"name": "type"
}
}
},
{
- "$id": "153",
+ "$id": "181",
"kind": "property",
"name": "systemData",
"serializedName": "systemData",
"doc": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
"type": {
- "$id": "154",
+ "$id": "182",
"kind": "model",
"name": "SystemData",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -1241,13 +1467,13 @@
"decorators": [],
"properties": [
{
- "$id": "155",
+ "$id": "183",
"kind": "property",
"name": "createdBy",
"serializedName": "createdBy",
"doc": "The identity that created the resource.",
"type": {
- "$id": "156",
+ "$id": "184",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1260,15 +1486,15 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.createdBy",
"serializationOptions": {
- "$id": "157",
+ "$id": "185",
"json": {
- "$id": "158",
+ "$id": "186",
"name": "createdBy"
}
}
},
{
- "$id": "159",
+ "$id": "187",
"kind": "property",
"name": "createdByType",
"serializedName": "createdByType",
@@ -1283,26 +1509,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.createdByType",
"serializationOptions": {
- "$id": "160",
+ "$id": "188",
"json": {
- "$id": "161",
+ "$id": "189",
"name": "createdByType"
}
}
},
{
- "$id": "162",
+ "$id": "190",
"kind": "property",
"name": "createdAt",
"serializedName": "createdAt",
"doc": "The timestamp of resource creation (UTC).",
"type": {
- "$id": "163",
+ "$id": "191",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "164",
+ "$id": "192",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1318,21 +1544,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.createdAt",
"serializationOptions": {
- "$id": "165",
+ "$id": "193",
"json": {
- "$id": "166",
+ "$id": "194",
"name": "createdAt"
}
}
},
{
- "$id": "167",
+ "$id": "195",
"kind": "property",
"name": "lastModifiedBy",
"serializedName": "lastModifiedBy",
"doc": "The identity that last modified the resource.",
"type": {
- "$id": "168",
+ "$id": "196",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1345,15 +1571,15 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.lastModifiedBy",
"serializationOptions": {
- "$id": "169",
+ "$id": "197",
"json": {
- "$id": "170",
+ "$id": "198",
"name": "lastModifiedBy"
}
}
},
{
- "$id": "171",
+ "$id": "199",
"kind": "property",
"name": "lastModifiedByType",
"serializedName": "lastModifiedByType",
@@ -1368,26 +1594,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.lastModifiedByType",
"serializationOptions": {
- "$id": "172",
+ "$id": "200",
"json": {
- "$id": "173",
+ "$id": "201",
"name": "lastModifiedByType"
}
}
},
{
- "$id": "174",
+ "$id": "202",
"kind": "property",
"name": "lastModifiedAt",
"serializedName": "lastModifiedAt",
"doc": "The timestamp of resource last modification (UTC)",
"type": {
- "$id": "175",
+ "$id": "203",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "176",
+ "$id": "204",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1403,9 +1629,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.SystemData.lastModifiedAt",
"serializationOptions": {
- "$id": "177",
+ "$id": "205",
"json": {
- "$id": "178",
+ "$id": "206",
"name": "lastModifiedAt"
}
}
@@ -1419,9 +1645,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.Resource.systemData",
"serializationOptions": {
- "$id": "179",
+ "$id": "207",
"json": {
- "$id": "180",
+ "$id": "208",
"name": "systemData"
}
}
@@ -1432,13 +1658,13 @@
},
"properties": [
{
- "$id": "181",
+ "$id": "209",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "182",
+ "$id": "210",
"kind": "model",
"name": "PrivateLinkResourceProperties",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -1448,13 +1674,13 @@
"decorators": [],
"properties": [
{
- "$id": "183",
+ "$id": "211",
"kind": "property",
"name": "groupId",
"serializedName": "groupId",
"doc": "The private link resource group id.",
"type": {
- "$id": "184",
+ "$id": "212",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1467,25 +1693,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties.groupId",
"serializationOptions": {
- "$id": "185",
+ "$id": "213",
"json": {
- "$id": "186",
+ "$id": "214",
"name": "groupId"
}
}
},
{
- "$id": "187",
+ "$id": "215",
"kind": "property",
"name": "requiredMembers",
"serializedName": "requiredMembers",
"doc": "The private link resource required member names.",
"type": {
- "$id": "188",
+ "$id": "216",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "189",
+ "$id": "217",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1501,25 +1727,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties.requiredMembers",
"serializationOptions": {
- "$id": "190",
+ "$id": "218",
"json": {
- "$id": "191",
+ "$id": "219",
"name": "requiredMembers"
}
}
},
{
- "$id": "192",
+ "$id": "220",
"kind": "property",
"name": "requiredZoneNames",
"serializedName": "requiredZoneNames",
"doc": "The private link resource private link DNS zone name.",
"type": {
- "$id": "193",
+ "$id": "221",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "194",
+ "$id": "222",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1535,9 +1761,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties.requiredZoneNames",
"serializationOptions": {
- "$id": "195",
+ "$id": "223",
"json": {
- "$id": "196",
+ "$id": "224",
"name": "requiredZoneNames"
}
}
@@ -1551,21 +1777,21 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinkResource.properties",
"serializationOptions": {
- "$id": "197",
+ "$id": "225",
"json": {
- "$id": "198",
+ "$id": "226",
"name": "properties"
}
}
},
{
- "$id": "199",
+ "$id": "227",
"kind": "path",
"name": "name",
"serializedName": "name",
"doc": "The name of the private link associated with the Azure resource.",
"type": {
- "$id": "200",
+ "$id": "228",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1575,17 +1801,19 @@
"readOnly": true,
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinkResource.name",
- "discriminator": false,
- "flatten": false
+ "explode": false,
+ "style": "simple",
+ "allowReserved": false,
+ "correspondingMethodParams": []
},
{
- "$id": "201",
+ "$id": "229",
"kind": "property",
"name": "identity",
"serializedName": "identity",
"doc": "The managed service identities assigned to this resource.",
"type": {
- "$id": "202",
+ "$id": "230",
"kind": "model",
"name": "ManagedServiceIdentity",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -1595,18 +1823,18 @@
"decorators": [],
"properties": [
{
- "$id": "203",
+ "$id": "231",
"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": "204",
+ "$id": "232",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "205",
+ "$id": "233",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1621,26 +1849,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity.principalId",
"serializationOptions": {
- "$id": "206",
+ "$id": "234",
"json": {
- "$id": "207",
+ "$id": "235",
"name": "principalId"
}
}
},
{
- "$id": "208",
+ "$id": "236",
"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": "209",
+ "$id": "237",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "210",
+ "$id": "238",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1655,15 +1883,15 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity.tenantId",
"serializationOptions": {
- "$id": "211",
+ "$id": "239",
"json": {
- "$id": "212",
+ "$id": "240",
"name": "tenantId"
}
}
},
{
- "$id": "213",
+ "$id": "241",
"kind": "property",
"name": "type",
"serializedName": "type",
@@ -1678,34 +1906,34 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity.type",
"serializationOptions": {
- "$id": "214",
+ "$id": "242",
"json": {
- "$id": "215",
+ "$id": "243",
"name": "type"
}
}
},
{
- "$id": "216",
+ "$id": "244",
"kind": "property",
"name": "userAssignedIdentities",
"serializedName": "userAssignedIdentities",
"doc": "The identities assigned to this resource by the user.",
"type": {
- "$id": "217",
+ "$id": "245",
"kind": "dict",
"keyType": {
- "$id": "218",
+ "$id": "246",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "219",
+ "$id": "247",
"kind": "nullable",
"type": {
- "$id": "220",
+ "$id": "248",
"kind": "model",
"name": "UserAssignedIdentity",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -1715,18 +1943,18 @@
"decorators": [],
"properties": [
{
- "$id": "221",
+ "$id": "249",
"kind": "property",
"name": "principalId",
"serializedName": "principalId",
"doc": "The principal ID of the assigned identity.",
"type": {
- "$id": "222",
+ "$id": "250",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "223",
+ "$id": "251",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1741,26 +1969,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity.principalId",
"serializationOptions": {
- "$id": "224",
+ "$id": "252",
"json": {
- "$id": "225",
+ "$id": "253",
"name": "principalId"
}
}
},
{
- "$id": "226",
+ "$id": "254",
"kind": "property",
"name": "clientId",
"serializedName": "clientId",
"doc": "The client ID of the assigned identity.",
"type": {
- "$id": "227",
+ "$id": "255",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "228",
+ "$id": "256",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1775,9 +2003,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.UserAssignedIdentity.clientId",
"serializationOptions": {
- "$id": "229",
+ "$id": "257",
"json": {
- "$id": "230",
+ "$id": "258",
"name": "clientId"
}
}
@@ -1795,9 +2023,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ManagedServiceIdentity.userAssignedIdentities",
"serializationOptions": {
- "$id": "231",
+ "$id": "259",
"json": {
- "$id": "232",
+ "$id": "260",
"name": "userAssignedIdentities"
}
}
@@ -1811,9 +2039,9 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinkResource.identity",
"serializationOptions": {
- "$id": "233",
+ "$id": "261",
"json": {
- "$id": "234",
+ "$id": "262",
"name": "identity"
}
}
@@ -1830,26 +2058,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.value",
"serializationOptions": {
- "$id": "235",
+ "$id": "263",
"json": {
- "$id": "236",
+ "$id": "264",
"name": "value"
}
}
},
{
- "$id": "237",
+ "$id": "265",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "238",
+ "$id": "266",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "239",
+ "$id": "267",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -1864,9 +2092,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.nextLink",
"serializationOptions": {
- "$id": "240",
+ "$id": "268",
"json": {
- "$id": "241",
+ "$id": "269",
"name": "nextLink"
}
}
@@ -1874,28 +2102,28 @@
]
},
{
- "$ref": "134"
+ "$ref": "162"
},
{
- "$ref": "182"
+ "$ref": "210"
},
{
- "$ref": "202"
+ "$ref": "230"
},
{
- "$ref": "220"
+ "$ref": "248"
},
{
- "$ref": "137"
+ "$ref": "165"
},
{
- "$ref": "138"
+ "$ref": "166"
},
{
- "$ref": "154"
+ "$ref": "182"
},
{
- "$id": "242",
+ "$id": "270",
"kind": "model",
"name": "StartParameterBody",
"namespace": "MgmtTypeSpec",
@@ -1905,7 +2133,7 @@
"properties": []
},
{
- "$id": "243",
+ "$id": "271",
"kind": "model",
"name": "StartRequest",
"namespace": "MgmtTypeSpec",
@@ -1915,13 +2143,13 @@
"decorators": [],
"properties": [
{
- "$id": "244",
+ "$id": "272",
"kind": "property",
"name": "startVm",
"serializedName": "startVm",
"doc": "The boolean value indicates whether to start the virtual machines before starting the SAP instances.",
"type": {
- "$id": "245",
+ "$id": "273",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -1934,9 +2162,9 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.StartRequest.startVm",
"serializationOptions": {
- "$id": "246",
+ "$id": "274",
"json": {
- "$id": "247",
+ "$id": "275",
"name": "startVm"
}
}
@@ -1944,7 +2172,7 @@
]
},
{
- "$id": "248",
+ "$id": "276",
"kind": "model",
"name": "OperationStatusResult",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -1954,18 +2182,18 @@
"decorators": [],
"properties": [
{
- "$id": "249",
+ "$id": "277",
"kind": "property",
"name": "id",
"serializedName": "id",
"doc": "Fully qualified ID for the async operation.",
"type": {
- "$id": "250",
+ "$id": "278",
"kind": "string",
"name": "armResourceIdentifier",
"crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier",
"baseType": {
- "$id": "251",
+ "$id": "279",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1980,21 +2208,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.id",
"serializationOptions": {
- "$id": "252",
+ "$id": "280",
"json": {
- "$id": "253",
+ "$id": "281",
"name": "id"
}
}
},
{
- "$id": "254",
+ "$id": "282",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "Name of the async operation.",
"type": {
- "$id": "255",
+ "$id": "283",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2007,21 +2235,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.name",
"serializationOptions": {
- "$id": "256",
+ "$id": "284",
"json": {
- "$id": "257",
+ "$id": "285",
"name": "name"
}
}
},
{
- "$id": "258",
+ "$id": "286",
"kind": "property",
"name": "status",
"serializedName": "status",
"doc": "Operation status.",
"type": {
- "$id": "259",
+ "$id": "287",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2034,21 +2262,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.status",
"serializationOptions": {
- "$id": "260",
+ "$id": "288",
"json": {
- "$id": "261",
+ "$id": "289",
"name": "status"
}
}
},
{
- "$id": "262",
+ "$id": "290",
"kind": "property",
"name": "percentComplete",
"serializedName": "percentComplete",
"doc": "Percent of the operation that is complete.",
"type": {
- "$id": "263",
+ "$id": "291",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -2061,26 +2289,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.percentComplete",
"serializationOptions": {
- "$id": "264",
+ "$id": "292",
"json": {
- "$id": "265",
+ "$id": "293",
"name": "percentComplete"
}
}
},
{
- "$id": "266",
+ "$id": "294",
"kind": "property",
"name": "startTime",
"serializedName": "startTime",
"doc": "The start time of the operation.",
"type": {
- "$id": "267",
+ "$id": "295",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "268",
+ "$id": "296",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2096,26 +2324,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.startTime",
"serializationOptions": {
- "$id": "269",
+ "$id": "297",
"json": {
- "$id": "270",
+ "$id": "298",
"name": "startTime"
}
}
},
{
- "$id": "271",
+ "$id": "299",
"kind": "property",
"name": "endTime",
"serializedName": "endTime",
"doc": "The end time of the operation.",
"type": {
- "$id": "272",
+ "$id": "300",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "273",
+ "$id": "301",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2131,25 +2359,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.endTime",
"serializationOptions": {
- "$id": "274",
+ "$id": "302",
"json": {
- "$id": "275",
+ "$id": "303",
"name": "endTime"
}
}
},
{
- "$id": "276",
+ "$id": "304",
"kind": "property",
"name": "operations",
"serializedName": "operations",
"doc": "The operations list.",
"type": {
- "$id": "277",
+ "$id": "305",
"kind": "array",
"name": "ArrayOperationStatusResult",
"valueType": {
- "$ref": "248"
+ "$ref": "276"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -2161,21 +2389,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.operations",
"serializationOptions": {
- "$id": "278",
+ "$id": "306",
"json": {
- "$id": "279",
+ "$id": "307",
"name": "operations"
}
}
},
{
- "$id": "280",
+ "$id": "308",
"kind": "property",
"name": "error",
"serializedName": "error",
"doc": "If present, details of the operation error.",
"type": {
- "$ref": "99"
+ "$ref": "127"
},
"optional": true,
"readOnly": false,
@@ -2184,26 +2412,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.error",
"serializationOptions": {
- "$id": "281",
+ "$id": "309",
"json": {
- "$id": "282",
+ "$id": "310",
"name": "error"
}
}
},
{
- "$id": "283",
+ "$id": "311",
"kind": "property",
"name": "resourceId",
"serializedName": "resourceId",
"doc": "Fully qualified ID of the resource against which the original async operation was started.",
"type": {
- "$id": "284",
+ "$id": "312",
"kind": "string",
"name": "armResourceIdentifier",
"crossLanguageDefinitionId": "Azure.Core.armResourceIdentifier",
"baseType": {
- "$id": "285",
+ "$id": "313",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2218,9 +2446,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.OperationStatusResult.resourceId",
"serializationOptions": {
- "$id": "286",
+ "$id": "314",
"json": {
- "$id": "287",
+ "$id": "315",
"name": "resourceId"
}
}
@@ -2228,7 +2456,7 @@
]
},
{
- "$id": "288",
+ "$id": "316",
"kind": "model",
"name": "ArmOperationStatusResourceProvisioningState",
"namespace": "Azure.ResourceManager",
@@ -2238,7 +2466,7 @@
"decorators": [],
"properties": [
{
- "$id": "289",
+ "$id": "317",
"kind": "property",
"name": "status",
"serializedName": "status",
@@ -2253,21 +2481,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.status",
"serializationOptions": {
- "$id": "290",
+ "$id": "318",
"json": {
- "$id": "291",
+ "$id": "319",
"name": "status"
}
}
},
{
- "$id": "292",
+ "$id": "320",
"kind": "path",
"name": "id",
"serializedName": "id",
"doc": "The unique identifier for the operationStatus resource",
"type": {
- "$id": "293",
+ "$id": "321",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2277,17 +2505,19 @@
"readOnly": false,
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.id",
- "discriminator": false,
- "flatten": false
+ "explode": false,
+ "style": "simple",
+ "allowReserved": false,
+ "correspondingMethodParams": []
},
{
- "$id": "294",
+ "$id": "322",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the operationStatus resource",
"type": {
- "$id": "295",
+ "$id": "323",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2300,26 +2530,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.name",
"serializationOptions": {
- "$id": "296",
+ "$id": "324",
"json": {
- "$id": "297",
+ "$id": "325",
"name": "name"
}
}
},
{
- "$id": "298",
+ "$id": "326",
"kind": "property",
"name": "startTime",
"serializedName": "startTime",
"doc": "Operation start time",
"type": {
- "$id": "299",
+ "$id": "327",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "300",
+ "$id": "328",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2335,26 +2565,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.startTime",
"serializationOptions": {
- "$id": "301",
+ "$id": "329",
"json": {
- "$id": "302",
+ "$id": "330",
"name": "startTime"
}
}
},
{
- "$id": "303",
+ "$id": "331",
"kind": "property",
"name": "endTime",
"serializedName": "endTime",
"doc": "Operation complete time",
"type": {
- "$id": "304",
+ "$id": "332",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "305",
+ "$id": "333",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2370,21 +2600,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.endTime",
"serializationOptions": {
- "$id": "306",
+ "$id": "334",
"json": {
- "$id": "307",
+ "$id": "335",
"name": "endTime"
}
}
},
{
- "$id": "308",
+ "$id": "336",
"kind": "property",
"name": "percentComplete",
"serializedName": "percentComplete",
"doc": "The progress made toward completing the operation",
"type": {
- "$id": "309",
+ "$id": "337",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -2397,21 +2627,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.percentComplete",
"serializationOptions": {
- "$id": "310",
+ "$id": "338",
"json": {
- "$id": "311",
+ "$id": "339",
"name": "percentComplete"
}
}
},
{
- "$id": "312",
+ "$id": "340",
"kind": "property",
"name": "error",
"serializedName": "error",
"doc": "Errors that occurred if the operation ended with Canceled or Failed status",
"type": {
- "$ref": "99"
+ "$ref": "127"
},
"optional": true,
"readOnly": true,
@@ -2420,9 +2650,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ArmOperationStatus.error",
"serializationOptions": {
- "$id": "313",
+ "$id": "341",
"json": {
- "$id": "314",
+ "$id": "342",
"name": "error"
}
}
@@ -2430,7 +2660,7 @@
]
},
{
- "$id": "315",
+ "$id": "343",
"kind": "model",
"name": "Foo",
"namespace": "MgmtTypeSpec",
@@ -2439,15 +2669,15 @@
"doc": "Concrete tracked resource types can be created by aliasing this type using a specific property type.",
"decorators": [
{
- "$id": "316",
+ "$id": "344",
"name": "Azure.ResourceManager.Private.@armResourceInternal",
"arguments": {
- "$id": "317"
+ "$id": "345"
}
}
],
"baseModel": {
- "$id": "318",
+ "$id": "346",
"kind": "model",
"name": "TrackedResource",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -2457,27 +2687,27 @@
"summary": "Tracked Resource",
"decorators": [],
"baseModel": {
- "$ref": "138"
+ "$ref": "166"
},
"properties": [
{
- "$id": "319",
+ "$id": "347",
"kind": "property",
"name": "tags",
"serializedName": "tags",
"doc": "Resource tags.",
"type": {
- "$id": "320",
+ "$id": "348",
"kind": "dict",
"keyType": {
- "$id": "321",
+ "$id": "349",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "322",
+ "$id": "350",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2492,21 +2722,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource.tags",
"serializationOptions": {
- "$id": "323",
+ "$id": "351",
"json": {
- "$id": "324",
+ "$id": "352",
"name": "tags"
}
}
},
{
- "$id": "325",
+ "$id": "353",
"kind": "property",
"name": "location",
"serializedName": "location",
"doc": "The geo-location where the resource lives",
"type": {
- "$id": "326",
+ "$id": "354",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2519,9 +2749,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.TrackedResource.location",
"serializationOptions": {
- "$id": "327",
+ "$id": "355",
"json": {
- "$id": "328",
+ "$id": "356",
"name": "location"
}
}
@@ -2530,13 +2760,13 @@
},
"properties": [
{
- "$id": "329",
+ "$id": "357",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"doc": "The resource-specific properties for this resource.",
"type": {
- "$id": "330",
+ "$id": "358",
"kind": "model",
"name": "FooProperties",
"namespace": "MgmtTypeSpec",
@@ -2544,23 +2774,23 @@
"usage": "Input,Output,Json,LroInitial,LroFinalEnvelope",
"decorators": [
{
- "$id": "331",
+ "$id": "359",
"name": "Azure.ClientGenerator.Core.@useSystemTextJsonConverter",
"arguments": {
- "$id": "332",
+ "$id": "360",
"scope": "csharp"
}
}
],
"properties": [
{
- "$id": "333",
+ "$id": "361",
"kind": "property",
"name": "serviceUrl",
"serializedName": "serviceUrl",
"doc": "the service url",
"type": {
- "$id": "334",
+ "$id": "362",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -2573,21 +2803,21 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.serviceUrl",
"serializationOptions": {
- "$id": "335",
+ "$id": "363",
"json": {
- "$id": "336",
+ "$id": "364",
"name": "serviceUrl"
}
}
},
{
- "$id": "337",
+ "$id": "365",
"kind": "property",
"name": "something",
"serializedName": "something",
"doc": "something",
"type": {
- "$id": "338",
+ "$id": "366",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2600,21 +2830,21 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.something",
"serializationOptions": {
- "$id": "339",
+ "$id": "367",
"json": {
- "$id": "340",
+ "$id": "368",
"name": "something"
}
}
},
{
- "$id": "341",
+ "$id": "369",
"kind": "property",
"name": "boolValue",
"serializedName": "boolValue",
"doc": "boolean value",
"type": {
- "$id": "342",
+ "$id": "370",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -2627,21 +2857,21 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.boolValue",
"serializationOptions": {
- "$id": "343",
+ "$id": "371",
"json": {
- "$id": "344",
+ "$id": "372",
"name": "boolValue"
}
}
},
{
- "$id": "345",
+ "$id": "373",
"kind": "property",
"name": "floatValue",
"serializedName": "floatValue",
"doc": "float value",
"type": {
- "$id": "346",
+ "$id": "374",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -2654,21 +2884,21 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.floatValue",
"serializationOptions": {
- "$id": "347",
+ "$id": "375",
"json": {
- "$id": "348",
+ "$id": "376",
"name": "floatValue"
}
}
},
{
- "$id": "349",
+ "$id": "377",
"kind": "property",
"name": "doubleValue",
"serializedName": "doubleValue",
"doc": "double value",
"type": {
- "$id": "350",
+ "$id": "378",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -2681,9 +2911,9 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.FooProperties.doubleValue",
"serializationOptions": {
- "$id": "351",
+ "$id": "379",
"json": {
- "$id": "352",
+ "$id": "380",
"name": "doubleValue"
}
}
@@ -2697,21 +2927,21 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.Foo.properties",
"serializationOptions": {
- "$id": "353",
+ "$id": "381",
"json": {
- "$id": "354",
+ "$id": "382",
"name": "properties"
}
}
},
{
- "$id": "355",
+ "$id": "383",
"kind": "path",
"name": "name",
"serializedName": "name",
"doc": "The name of the Foo",
"type": {
- "$id": "356",
+ "$id": "384",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2721,16 +2951,18 @@
"readOnly": true,
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.Foo.name",
- "discriminator": false,
- "flatten": false
+ "explode": false,
+ "style": "simple",
+ "allowReserved": false,
+ "correspondingMethodParams": []
},
{
- "$id": "357",
+ "$id": "385",
"kind": "property",
"name": "extendedLocation",
"serializedName": "extendedLocation",
"type": {
- "$id": "358",
+ "$id": "386",
"kind": "model",
"name": "ExtendedLocation",
"namespace": "Azure.ResourceManager.CommonTypes",
@@ -2740,13 +2972,13 @@
"decorators": [],
"properties": [
{
- "$id": "359",
+ "$id": "387",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name of the extended location.",
"type": {
- "$id": "360",
+ "$id": "388",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2759,15 +2991,15 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocation.name",
"serializationOptions": {
- "$id": "361",
+ "$id": "389",
"json": {
- "$id": "362",
+ "$id": "390",
"name": "name"
}
}
},
{
- "$id": "363",
+ "$id": "391",
"kind": "property",
"name": "type",
"serializedName": "type",
@@ -2782,9 +3014,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.CommonTypes.ExtendedLocation.type",
"serializationOptions": {
- "$id": "364",
+ "$id": "392",
"json": {
- "$id": "365",
+ "$id": "393",
"name": "type"
}
}
@@ -2798,9 +3030,9 @@
"decorators": [],
"crossLanguageDefinitionId": "MgmtTypeSpec.Foo.extendedLocation",
"serializationOptions": {
- "$id": "366",
+ "$id": "394",
"json": {
- "$id": "367",
+ "$id": "395",
"name": "extendedLocation"
}
}
@@ -2808,16 +3040,16 @@
]
},
{
- "$ref": "330"
+ "$ref": "358"
},
{
- "$ref": "358"
+ "$ref": "386"
},
{
- "$ref": "318"
+ "$ref": "346"
},
{
- "$id": "368",
+ "$id": "396",
"kind": "model",
"name": "FooListResult",
"namespace": "Azure.ResourceManager",
@@ -2827,17 +3059,17 @@
"decorators": [],
"properties": [
{
- "$id": "369",
+ "$id": "397",
"kind": "property",
"name": "value",
"serializedName": "value",
"doc": "The Foo items on this page",
"type": {
- "$id": "370",
+ "$id": "398",
"kind": "array",
"name": "ArrayFoo",
"valueType": {
- "$ref": "315"
+ "$ref": "343"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -2849,26 +3081,26 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.value",
"serializationOptions": {
- "$id": "371",
+ "$id": "399",
"json": {
- "$id": "372",
+ "$id": "400",
"name": "value"
}
}
},
{
- "$id": "373",
+ "$id": "401",
"kind": "property",
"name": "nextLink",
"serializedName": "nextLink",
"doc": "The link to the next page of items",
"type": {
- "$id": "374",
+ "$id": "402",
"kind": "url",
"name": "ResourceLocation",
"crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
"baseType": {
- "$id": "375",
+ "$id": "403",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url",
@@ -2883,9 +3115,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Azure.ResourceManager.ResourceListResult.nextLink",
"serializationOptions": {
- "$id": "376",
+ "$id": "404",
"json": {
- "$id": "377",
+ "$id": "405",
"name": "nextLink"
}
}
@@ -2895,19 +3127,19 @@
],
"clients": [
{
- "$id": "378",
+ "$id": "406",
"kind": "client",
"name": "MgmtTypeSpecClient",
"namespace": "MgmtTypeSpec",
"methods": [],
"parameters": [
{
- "$id": "379",
+ "$id": "407",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "380",
+ "$id": "408",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2921,9 +3153,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "381",
+ "$id": "409",
"type": {
- "$id": "382",
+ "$id": "410",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2934,10 +3166,10 @@
],
"decorators": [
{
- "$id": "383",
+ "$id": "411",
"name": "Azure.ResourceManager.@armProviderNamespace",
"arguments": {
- "$id": "384"
+ "$id": "412"
}
}
],
@@ -2947,13 +3179,13 @@
],
"children": [
{
- "$id": "385",
+ "$id": "413",
"kind": "client",
"name": "Operations",
"namespace": "MgmtTypeSpec",
"methods": [
{
- "$id": "386",
+ "$id": "414",
"kind": "paging",
"name": "list",
"accessibility": "public",
@@ -2962,19 +3194,19 @@
],
"doc": "List the operations for the provider",
"operation": {
- "$id": "387",
+ "$id": "415",
"name": "list",
"resourceName": "Operations",
"doc": "List the operations for the provider",
"accessibility": "public",
"parameters": [
{
- "$id": "388",
+ "$id": "416",
"name": "apiVersion",
"nameInRequest": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "389",
+ "$id": "417",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2988,9 +3220,9 @@
"isRequired": true,
"kind": "Client",
"defaultValue": {
- "$id": "390",
+ "$id": "418",
"type": {
- "$id": "391",
+ "$id": "419",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3001,21 +3233,11 @@
"skipUrlEncoding": false
},
{
- "$id": "392",
+ "$id": "420",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "393",
- "kind": "constant",
- "valueType": {
- "$id": "394",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -3030,12 +3252,12 @@
],
"responses": [
{
- "$id": "395",
+ "$id": "421",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "52"
+ "$ref": "80"
},
"headers": [],
"isErrorResponse": false,
@@ -3055,11 +3277,11 @@
},
"parameters": [
{
- "$id": "396",
+ "$id": "422",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "393"
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -3073,13 +3295,13 @@
}
],
"response": {
- "$id": "397",
+ "$id": "423",
"type": {
- "$id": "398",
+ "$id": "424",
"kind": "array",
"name": "ArrayOperation",
"valueType": {
- "$ref": "55"
+ "$ref": "83"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3093,12 +3315,12 @@
"generateProtocol": true,
"crossLanguageDefinitionId": "Azure.ResourceManager.Operations.list",
"pagingMetadata": {
- "$id": "399",
+ "$id": "425",
"itemPropertySegments": [
"value"
],
"nextLink": {
- "$id": "400",
+ "$id": "426",
"responseSegments": [
"nextLink"
],
@@ -3109,12 +3331,12 @@
],
"parameters": [
{
- "$id": "401",
+ "$id": "427",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "402",
+ "$id": "428",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3128,9 +3350,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "403",
+ "$id": "429",
"type": {
- "$id": "404",
+ "$id": "430",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3145,17 +3367,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "378"
+ "$ref": "406"
}
},
{
- "$id": "405",
+ "$id": "431",
"kind": "client",
"name": "PrivateLinks",
"namespace": "MgmtTypeSpec",
"methods": [
{
- "$id": "406",
+ "$id": "432",
"kind": "paging",
"name": "GetAllPrivateLinkResources",
"accessibility": "public",
@@ -3164,19 +3386,19 @@
],
"doc": "list private links on the given resource",
"operation": {
- "$id": "407",
+ "$id": "433",
"name": "GetAllPrivateLinkResources",
"resourceName": "PrivateLinkResource",
"doc": "list private links on the given resource",
"accessibility": "public",
"parameters": [
{
- "$id": "408",
+ "$id": "434",
"name": "apiVersion",
"nameInRequest": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "409",
+ "$id": "435",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3190,9 +3412,9 @@
"isRequired": true,
"kind": "Client",
"defaultValue": {
- "$id": "410",
+ "$id": "436",
"type": {
- "$id": "411",
+ "$id": "437",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3203,17 +3425,17 @@
"skipUrlEncoding": false
},
{
- "$id": "412",
+ "$id": "438",
"name": "subscriptionId",
"nameInRequest": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "413",
+ "$id": "439",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "414",
+ "$id": "440",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3232,12 +3454,12 @@
"skipUrlEncoding": false
},
{
- "$id": "415",
+ "$id": "441",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "416",
+ "$id": "442",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3254,21 +3476,11 @@
"skipUrlEncoding": false
},
{
- "$id": "417",
+ "$id": "443",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "418",
- "kind": "constant",
- "valueType": {
- "$id": "419",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -3283,12 +3495,12 @@
],
"responses": [
{
- "$id": "420",
+ "$id": "444",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "131"
+ "$ref": "159"
},
"headers": [],
"isErrorResponse": false,
@@ -3308,12 +3520,12 @@
},
"parameters": [
{
- "$id": "421",
+ "$id": "445",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "422",
+ "$id": "446",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3330,11 +3542,11 @@
"skipUrlEncoding": false
},
{
- "$id": "423",
+ "$id": "447",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "418"
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -3348,13 +3560,13 @@
}
],
"response": {
- "$id": "424",
+ "$id": "448",
"type": {
- "$id": "425",
+ "$id": "449",
"kind": "array",
"name": "ArrayPrivateLinkResource",
"valueType": {
- "$ref": "134"
+ "$ref": "162"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3368,12 +3580,12 @@
"generateProtocol": true,
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.listByMongoCluster",
"pagingMetadata": {
- "$id": "426",
+ "$id": "450",
"itemPropertySegments": [
"value"
],
"nextLink": {
- "$id": "427",
+ "$id": "451",
"responseSegments": [
"nextLink"
],
@@ -3382,7 +3594,7 @@
}
},
{
- "$id": "428",
+ "$id": "452",
"kind": "lro",
"name": "start",
"accessibility": "public",
@@ -3391,19 +3603,19 @@
],
"doc": "Starts the SAP Application Server Instance.",
"operation": {
- "$id": "429",
+ "$id": "453",
"name": "start",
"resourceName": "PrivateLinks",
"doc": "Starts the SAP Application Server Instance.",
"accessibility": "public",
"parameters": [
{
- "$id": "430",
+ "$id": "454",
"name": "apiVersion",
"nameInRequest": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "431",
+ "$id": "455",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3417,9 +3629,9 @@
"isRequired": true,
"kind": "Client",
"defaultValue": {
- "$id": "432",
+ "$id": "456",
"type": {
- "$id": "433",
+ "$id": "457",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3430,17 +3642,17 @@
"skipUrlEncoding": false
},
{
- "$id": "434",
+ "$id": "458",
"name": "subscriptionId",
"nameInRequest": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "435",
+ "$id": "459",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "436",
+ "$id": "460",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3459,12 +3671,12 @@
"skipUrlEncoding": false
},
{
- "$id": "437",
+ "$id": "461",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "438",
+ "$id": "462",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3481,12 +3693,12 @@
"skipUrlEncoding": false
},
{
- "$id": "439",
+ "$id": "463",
"name": "privateLinkResourceName",
"nameInRequest": "privateLinkResourceName",
"doc": "The name of the private link associated with the Azure resource.",
"type": {
- "$id": "440",
+ "$id": "464",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3503,22 +3715,12 @@
"skipUrlEncoding": false
},
{
- "$id": "441",
+ "$id": "465",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "442",
- "kind": "constant",
- "valueType": {
- "$id": "443",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -3531,21 +3733,11 @@
"skipUrlEncoding": false
},
{
- "$id": "444",
+ "$id": "466",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "445",
- "kind": "constant",
- "valueType": {
- "$id": "446",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -3558,12 +3750,12 @@
"skipUrlEncoding": false
},
{
- "$id": "447",
+ "$id": "467",
"name": "body",
"nameInRequest": "body",
"doc": "SAP Application server instance start request body.",
"type": {
- "$ref": "243"
+ "$ref": "271"
},
"location": "Body",
"isApiVersion": false,
@@ -3578,18 +3770,18 @@
],
"responses": [
{
- "$id": "448",
+ "$id": "468",
"statusCodes": [
202
],
"headers": [
{
- "$id": "449",
+ "$id": "469",
"name": "location",
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "450",
+ "$id": "470",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3597,12 +3789,12 @@
}
},
{
- "$id": "451",
+ "$id": "471",
"name": "retryAfter",
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "452",
+ "$id": "472",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -3613,12 +3805,12 @@
"isErrorResponse": false
},
{
- "$id": "453",
+ "$id": "473",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "248"
+ "$ref": "276"
},
"headers": [],
"isErrorResponse": false,
@@ -3641,12 +3833,12 @@
},
"parameters": [
{
- "$id": "454",
+ "$id": "474",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "455",
+ "$id": "475",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3663,12 +3855,12 @@
"skipUrlEncoding": false
},
{
- "$id": "456",
+ "$id": "476",
"name": "privateLinkResourceName",
"nameInRequest": "privateLinkResourceName",
"doc": "The name of the private link associated with the Azure resource.",
"type": {
- "$id": "457",
+ "$id": "477",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3685,12 +3877,12 @@
"skipUrlEncoding": false
},
{
- "$id": "458",
+ "$id": "478",
"name": "body",
"nameInRequest": "body",
"doc": "The content of the action request",
"type": {
- "$ref": "242"
+ "$ref": "270"
},
"location": "",
"isApiVersion": false,
@@ -3703,22 +3895,12 @@
"skipUrlEncoding": false
},
{
- "$id": "459",
+ "$id": "479",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "460",
- "kind": "constant",
- "valueType": {
- "$id": "461",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -3731,21 +3913,11 @@
"skipUrlEncoding": false
},
{
- "$id": "462",
+ "$id": "480",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$id": "463",
- "kind": "constant",
- "valueType": {
- "$id": "464",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -3759,9 +3931,9 @@
}
],
"response": {
- "$id": "465",
+ "$id": "481",
"type": {
- "$ref": "248"
+ "$ref": "276"
}
},
"isOverride": false,
@@ -3769,15 +3941,15 @@
"generateProtocol": true,
"crossLanguageDefinitionId": "MgmtTypeSpec.PrivateLinks.start",
"lroMetadata": {
- "$id": "466",
+ "$id": "482",
"finalStateVia": 1,
"finalResponse": {
- "$id": "467",
+ "$id": "483",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "248"
+ "$ref": "276"
}
}
}
@@ -3785,12 +3957,12 @@
],
"parameters": [
{
- "$id": "468",
+ "$id": "484",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "469",
+ "$id": "485",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3804,9 +3976,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "470",
+ "$id": "486",
"type": {
- "$id": "471",
+ "$id": "487",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3817,10 +3989,10 @@
],
"decorators": [
{
- "$id": "472",
+ "$id": "488",
"name": "Azure.ResourceManager.@armResourceOperations",
"arguments": {
- "$id": "473"
+ "$id": "489"
}
}
],
@@ -3829,17 +4001,17 @@
"2024-05-01"
],
"parent": {
- "$ref": "378"
+ "$ref": "406"
}
},
{
- "$id": "474",
+ "$id": "490",
"kind": "client",
"name": "Foos",
"namespace": "MgmtTypeSpec",
"methods": [
{
- "$id": "475",
+ "$id": "491",
"kind": "lro",
"name": "createOrUpdate",
"accessibility": "public",
@@ -3848,19 +4020,19 @@
],
"doc": "Create a Foo",
"operation": {
- "$id": "476",
+ "$id": "492",
"name": "createOrUpdate",
"resourceName": "Foo",
"doc": "Create a Foo",
"accessibility": "public",
"parameters": [
{
- "$id": "477",
+ "$id": "493",
"name": "apiVersion",
"nameInRequest": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "478",
+ "$id": "494",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3874,9 +4046,9 @@
"isRequired": true,
"kind": "Client",
"defaultValue": {
- "$id": "479",
+ "$id": "495",
"type": {
- "$id": "480",
+ "$id": "496",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3887,17 +4059,17 @@
"skipUrlEncoding": false
},
{
- "$id": "481",
+ "$id": "497",
"name": "subscriptionId",
"nameInRequest": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "482",
+ "$id": "498",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "483",
+ "$id": "499",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3916,12 +4088,12 @@
"skipUrlEncoding": false
},
{
- "$id": "484",
+ "$id": "500",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "485",
+ "$id": "501",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3938,12 +4110,12 @@
"skipUrlEncoding": false
},
{
- "$id": "486",
+ "$id": "502",
"name": "fooName",
"nameInRequest": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "487",
+ "$id": "503",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3960,22 +4132,12 @@
"skipUrlEncoding": false
},
{
- "$id": "488",
+ "$id": "504",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "489",
- "kind": "constant",
- "valueType": {
- "$id": "490",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -3988,21 +4150,11 @@
"skipUrlEncoding": false
},
{
- "$id": "491",
+ "$id": "505",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "492",
- "kind": "constant",
- "valueType": {
- "$id": "493",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -4015,12 +4167,12 @@
"skipUrlEncoding": false
},
{
- "$id": "494",
+ "$id": "506",
"name": "resource",
"nameInRequest": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "315"
+ "$ref": "343"
},
"location": "Body",
"isApiVersion": false,
@@ -4035,12 +4187,12 @@
],
"responses": [
{
- "$id": "495",
+ "$id": "507",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "315"
+ "$ref": "343"
},
"headers": [],
"isErrorResponse": false,
@@ -4049,21 +4201,21 @@
]
},
{
- "$id": "496",
+ "$id": "508",
"statusCodes": [
201
],
"bodyType": {
- "$ref": "315"
+ "$ref": "343"
},
"headers": [
{
- "$id": "497",
+ "$id": "509",
"name": "azureAsyncOperation",
"nameInResponse": "Azure-AsyncOperation",
"doc": "A link to the status monitor",
"type": {
- "$id": "498",
+ "$id": "510",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4071,12 +4223,12 @@
}
},
{
- "$id": "499",
+ "$id": "511",
"name": "retryAfter",
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "500",
+ "$id": "512",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -4102,22 +4254,22 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate",
"decorators": [
{
- "$id": "501",
+ "$id": "513",
"name": "Azure.ResourceManager.@armResourceCreateOrUpdate",
"arguments": {
- "$id": "502"
+ "$id": "514"
}
}
]
},
"parameters": [
{
- "$id": "503",
+ "$id": "515",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "504",
+ "$id": "516",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4134,12 +4286,12 @@
"skipUrlEncoding": false
},
{
- "$id": "505",
+ "$id": "517",
"name": "fooName",
"nameInRequest": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "506",
+ "$id": "518",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4156,12 +4308,12 @@
"skipUrlEncoding": false
},
{
- "$id": "507",
+ "$id": "519",
"name": "resource",
"nameInRequest": "resource",
"doc": "Resource create parameters.",
"type": {
- "$ref": "315"
+ "$ref": "343"
},
"location": "Body",
"isApiVersion": false,
@@ -4174,22 +4326,12 @@
"skipUrlEncoding": false
},
{
- "$id": "508",
+ "$id": "520",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "509",
- "kind": "constant",
- "valueType": {
- "$id": "510",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -4202,21 +4344,11 @@
"skipUrlEncoding": false
},
{
- "$id": "511",
+ "$id": "521",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$id": "512",
- "kind": "constant",
- "valueType": {
- "$id": "513",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -4230,9 +4362,9 @@
}
],
"response": {
- "$id": "514",
+ "$id": "522",
"type": {
- "$ref": "315"
+ "$ref": "343"
}
},
"isOverride": false,
@@ -4240,21 +4372,21 @@
"generateProtocol": true,
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.createOrUpdate",
"lroMetadata": {
- "$id": "515",
+ "$id": "523",
"finalStateVia": 0,
"finalResponse": {
- "$id": "516",
+ "$id": "524",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "315"
+ "$ref": "343"
}
}
}
},
{
- "$id": "517",
+ "$id": "525",
"kind": "basic",
"name": "get",
"accessibility": "public",
@@ -4263,19 +4395,19 @@
],
"doc": "Get a Foo",
"operation": {
- "$id": "518",
+ "$id": "526",
"name": "get",
"resourceName": "Foo",
"doc": "Get a Foo",
"accessibility": "public",
"parameters": [
{
- "$id": "519",
+ "$id": "527",
"name": "apiVersion",
"nameInRequest": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "520",
+ "$id": "528",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4289,9 +4421,9 @@
"isRequired": true,
"kind": "Client",
"defaultValue": {
- "$id": "521",
+ "$id": "529",
"type": {
- "$id": "522",
+ "$id": "530",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4302,17 +4434,17 @@
"skipUrlEncoding": false
},
{
- "$id": "523",
+ "$id": "531",
"name": "subscriptionId",
"nameInRequest": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "524",
+ "$id": "532",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "525",
+ "$id": "533",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4331,12 +4463,12 @@
"skipUrlEncoding": false
},
{
- "$id": "526",
+ "$id": "534",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "527",
+ "$id": "535",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4353,12 +4485,12 @@
"skipUrlEncoding": false
},
{
- "$id": "528",
+ "$id": "536",
"name": "fooName",
"nameInRequest": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "529",
+ "$id": "537",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4375,21 +4507,11 @@
"skipUrlEncoding": false
},
{
- "$id": "530",
+ "$id": "538",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "531",
- "kind": "constant",
- "valueType": {
- "$id": "532",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -4404,12 +4526,12 @@
],
"responses": [
{
- "$id": "533",
+ "$id": "539",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "315"
+ "$ref": "343"
},
"headers": [],
"isErrorResponse": false,
@@ -4427,22 +4549,22 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get",
"decorators": [
{
- "$id": "534",
+ "$id": "540",
"name": "Azure.ResourceManager.@armResourceRead",
"arguments": {
- "$id": "535"
+ "$id": "541"
}
}
]
},
"parameters": [
{
- "$id": "536",
+ "$id": "542",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "537",
+ "$id": "543",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4459,12 +4581,12 @@
"skipUrlEncoding": false
},
{
- "$id": "538",
+ "$id": "544",
"name": "fooName",
"nameInRequest": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "539",
+ "$id": "545",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4481,11 +4603,11 @@
"skipUrlEncoding": false
},
{
- "$id": "540",
+ "$id": "546",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "531"
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -4499,9 +4621,9 @@
}
],
"response": {
- "$id": "541",
+ "$id": "547",
"type": {
- "$ref": "315"
+ "$ref": "343"
}
},
"isOverride": false,
@@ -4510,7 +4632,7 @@
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.get"
},
{
- "$id": "542",
+ "$id": "548",
"kind": "lro",
"name": "delete",
"accessibility": "public",
@@ -4519,19 +4641,19 @@
],
"doc": "Delete a Foo",
"operation": {
- "$id": "543",
+ "$id": "549",
"name": "delete",
"resourceName": "Foo",
"doc": "Delete a Foo",
"accessibility": "public",
"parameters": [
{
- "$id": "544",
+ "$id": "550",
"name": "apiVersion",
"nameInRequest": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "545",
+ "$id": "551",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4545,9 +4667,9 @@
"isRequired": true,
"kind": "Client",
"defaultValue": {
- "$id": "546",
+ "$id": "552",
"type": {
- "$id": "547",
+ "$id": "553",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4558,17 +4680,17 @@
"skipUrlEncoding": false
},
{
- "$id": "548",
+ "$id": "554",
"name": "subscriptionId",
"nameInRequest": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "549",
+ "$id": "555",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "550",
+ "$id": "556",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4587,12 +4709,12 @@
"skipUrlEncoding": false
},
{
- "$id": "551",
+ "$id": "557",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "552",
+ "$id": "558",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4609,12 +4731,12 @@
"skipUrlEncoding": false
},
{
- "$id": "553",
+ "$id": "559",
"name": "fooName",
"nameInRequest": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "554",
+ "$id": "560",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4631,21 +4753,11 @@
"skipUrlEncoding": false
},
{
- "$id": "555",
+ "$id": "561",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "556",
- "kind": "constant",
- "valueType": {
- "$id": "557",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -4660,18 +4772,18 @@
],
"responses": [
{
- "$id": "558",
+ "$id": "562",
"statusCodes": [
202
],
"headers": [
{
- "$id": "559",
+ "$id": "563",
"name": "location",
"nameInResponse": "Location",
"doc": "The Location header contains the URL where the status of the long running operation can be checked.",
"type": {
- "$id": "560",
+ "$id": "564",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4679,12 +4791,12 @@
}
},
{
- "$id": "561",
+ "$id": "565",
"name": "retryAfter",
"nameInResponse": "Retry-After",
"doc": "The Retry-After header can indicate how long the client should wait before polling the operation status.",
"type": {
- "$id": "562",
+ "$id": "566",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -4695,7 +4807,7 @@
"isErrorResponse": false
},
{
- "$id": "563",
+ "$id": "567",
"statusCodes": [
204
],
@@ -4714,12 +4826,12 @@
},
"parameters": [
{
- "$id": "564",
+ "$id": "568",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "565",
+ "$id": "569",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4736,12 +4848,12 @@
"skipUrlEncoding": false
},
{
- "$id": "566",
+ "$id": "570",
"name": "fooName",
"nameInRequest": "fooName",
"doc": "The name of the Foo",
"type": {
- "$id": "567",
+ "$id": "571",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4758,21 +4870,11 @@
"skipUrlEncoding": false
},
{
- "$id": "568",
+ "$id": "572",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$id": "569",
- "kind": "constant",
- "valueType": {
- "$id": "570",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -4786,17 +4888,17 @@
}
],
"response": {
- "$id": "571"
+ "$id": "573"
},
"isOverride": false,
"generateConvenient": true,
"generateProtocol": true,
"crossLanguageDefinitionId": "MgmtTypeSpec.Foos.delete",
"lroMetadata": {
- "$id": "572",
+ "$id": "574",
"finalStateVia": 1,
"finalResponse": {
- "$id": "573",
+ "$id": "575",
"statusCodes": [
204
]
@@ -4804,7 +4906,7 @@
}
},
{
- "$id": "574",
+ "$id": "576",
"kind": "paging",
"name": "list",
"accessibility": "public",
@@ -4813,19 +4915,19 @@
],
"doc": "List Foo resources by resource group",
"operation": {
- "$id": "575",
+ "$id": "577",
"name": "list",
"resourceName": "Foo",
"doc": "List Foo resources by resource group",
"accessibility": "public",
"parameters": [
{
- "$id": "576",
+ "$id": "578",
"name": "apiVersion",
"nameInRequest": "api-version",
"doc": "The API version to use for this operation.",
"type": {
- "$id": "577",
+ "$id": "579",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4839,9 +4941,9 @@
"isRequired": true,
"kind": "Client",
"defaultValue": {
- "$id": "578",
+ "$id": "580",
"type": {
- "$id": "579",
+ "$id": "581",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4852,17 +4954,17 @@
"skipUrlEncoding": false
},
{
- "$id": "580",
+ "$id": "582",
"name": "subscriptionId",
"nameInRequest": "subscriptionId",
"doc": "The ID of the target subscription. The value must be an UUID.",
"type": {
- "$id": "581",
+ "$id": "583",
"kind": "string",
"name": "uuid",
"crossLanguageDefinitionId": "Azure.Core.uuid",
"baseType": {
- "$id": "582",
+ "$id": "584",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4881,12 +4983,12 @@
"skipUrlEncoding": false
},
{
- "$id": "583",
+ "$id": "585",
"name": "resourceGroupName",
"nameInRequest": "resourceGroupName",
"doc": "The name of the resource group. The name is case insensitive.",
"type": {
- "$id": "584",
+ "$id": "586",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4903,21 +5005,11 @@
"skipUrlEncoding": false
},
{
- "$id": "585",
+ "$id": "587",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "586",
- "kind": "constant",
- "valueType": {
- "$id": "587",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -4937,7 +5029,7 @@
200
],
"bodyType": {
- "$ref": "368"
+ "$ref": "396"
},
"headers": [],
"isErrorResponse": false,
@@ -4983,7 +5075,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "586"
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -5003,7 +5095,7 @@
"kind": "array",
"name": "ArrayFoo",
"valueType": {
- "$ref": "315"
+ "$ref": "343"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -5077,8 +5169,10 @@
"arguments": {
"$id": "603",
"resourceModel": "MgmtTypeSpec.Foo",
+ "resourceClient": "MgmtTypeSpec.Foos",
"isSingleton": false,
- "resourceType": "MgmtTypeSpec/foos"
+ "resourceType": "MgmtTypeSpec/foos",
+ "resourceScope": "ResourceGroup"
}
}
],
@@ -5087,7 +5181,7 @@
"2024-05-01"
],
"parent": {
- "$ref": "378"
+ "$ref": "406"
}
}
]
diff --git a/eng/packages/http-client-csharp-mgmt/package-lock.json b/eng/packages/http-client-csharp-mgmt/package-lock.json
index 40ac8aebc448..b213454caac2 100644
--- a/eng/packages/http-client-csharp-mgmt/package-lock.json
+++ b/eng/packages/http-client-csharp-mgmt/package-lock.json
@@ -9,7 +9,7 @@
"version": "1.0.0",
"license": "MIT",
"dependencies": {
- "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250508.1"
+ "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250522.1"
},
"devDependencies": {
"@azure-tools/azure-http-specs": "0.1.0-alpha.17",
@@ -180,12 +180,12 @@
}
},
"node_modules/@azure-typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20250508.1",
- "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250508.1.tgz",
- "integrity": "sha512-hWpnbizoqcVTUUtXd2dQ17/g0G2sm6o96Ek2ruEafJuQNYKq83wI7zwediw0FA7zP7aAvf1A10dFSg0XzlyiWg==",
+ "version": "1.0.0-alpha.20250522.1",
+ "resolved": "https://registry.npmjs.org/@azure-typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250522.1.tgz",
+ "integrity": "sha512-AC2r1TwBQj/RELc5omytsGhiVjKjRU4v1f3hI8r04XCCUcX9TnIYnGJnZ9eDQxhZKBM4/pNAyn7UW7eOq/PRSQ==",
"license": "MIT",
"dependencies": {
- "@typespec/http-client-csharp": "1.0.0-alpha.20250508.3"
+ "@typespec/http-client-csharp": "1.0.0-alpha.20250521.6"
}
},
"node_modules/@azure/abort-controller": {
@@ -2351,9 +2351,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20250508.3",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250508.3.tgz",
- "integrity": "sha512-0dUPs3PhoGo2+/7/80A/1gfXCL7SQr2NMSP7/zOm0Txdwp7lRfl9uCBwN7Cm5qN9nPDXn9U2eqpp+NH5HY2sjQ==",
+ "version": "1.0.0-alpha.20250521.6",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250521.6.tgz",
+ "integrity": "sha512-NneBk0xpDO1RzpNvf5aGHpxaDRMMpKHkwpeYvLV3njhHKdA1lQrv9I5rTLs7F4No30jglmAcV5EeZPGuB0JtUw==",
"license": "MIT",
"dependencies": {
"json-serialize-refs": "0.1.0-0"
diff --git a/eng/packages/http-client-csharp-mgmt/package.json b/eng/packages/http-client-csharp-mgmt/package.json
index f0a4ba319bde..f58d7159e508 100644
--- a/eng/packages/http-client-csharp-mgmt/package.json
+++ b/eng/packages/http-client-csharp-mgmt/package.json
@@ -37,7 +37,7 @@
"dist/**"
],
"dependencies": {
- "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250508.1"
+ "@azure-typespec/http-client-csharp": "1.0.0-alpha.20250522.1"
},
"devDependencies": {
"@azure-tools/azure-http-specs": "0.1.0-alpha.17",
diff --git a/eng/packages/http-client-csharp/emitter/src/emitter.ts b/eng/packages/http-client-csharp/emitter/src/emitter.ts
index 0685d5e03336..002c7887714d 100644
--- a/eng/packages/http-client-csharp/emitter/src/emitter.ts
+++ b/eng/packages/http-client-csharp/emitter/src/emitter.ts
@@ -14,6 +14,7 @@ export async function $onEmit(context: EmitContext) {
name: "MIT License",
company: "Microsoft Corporation"
};
+ context.options["package-name"] ??= context.options["namespace"];
// warn if use-model-namespaces is true, but namespace is not set
if (context.options["model-namespace"] && !context.options["namespace"]) {
diff --git a/eng/packages/http-client-csharp/emitter/test/Unit/options.test.ts b/eng/packages/http-client-csharp/emitter/test/Unit/options.test.ts
index d042db121225..af89c4eb30c9 100644
--- a/eng/packages/http-client-csharp/emitter/test/Unit/options.test.ts
+++ b/eng/packages/http-client-csharp/emitter/test/Unit/options.test.ts
@@ -1,5 +1,5 @@
import { Program } from "@typespec/compiler";
-import { beforeEach, describe, it } from "vitest";
+import { beforeEach, describe, it, vi } from "vitest";
import {
createEmitterContext,
createEmitterTestHost,
@@ -19,6 +19,15 @@ describe("Configuration tests", async () => {
`,
runner
);
+ vi.mock("@typespec/http-client-csharp", async (importOriginal) => {
+ const actual = await importOriginal();
+ return {
+ ...actual,
+ $onEmit: async () => {
+ // do nothing
+ }
+ };
+ })
});
it("Diagnostic is logged when model-namespace is set without namespace", async () => {
@@ -47,4 +56,32 @@ describe("Configuration tests", async () => {
$onEmit(context);
strictEqual(program.diagnostics.length, 0);
});
+ it("package-name defaults to namespace", async () => {
+ const options: AzureEmitterOptions = {
+ "namespace": "Test.Namespace"
+ };
+ const context = createEmitterContext(program, options);
+ $onEmit(context);
+ strictEqual(program.diagnostics.length, 0);
+ strictEqual(context.options.namespace, "Test.Namespace");
+ strictEqual(context.options["package-name"], "Test.Namespace");
+ });
+ it("package-name undefined if namespace and package-name not set", async () => {
+ const context = createEmitterContext(program);
+ $onEmit(context);
+ strictEqual(program.diagnostics.length, 0);
+ strictEqual(context.options["package-name"], undefined);
+ });
+ it("package-name value used if set", async () => {
+ const options: AzureEmitterOptions = {
+ "namespace": "Test.Namespace",
+ "package-name": "Test.Package"
+ };
+ const context = createEmitterContext(program, options);
+ $onEmit(context);
+ strictEqual(program.diagnostics.length, 0);
+ strictEqual(context.options.namespace, "Test.Namespace");
+ strictEqual(context.options["package-name"], "Test.Package");
+ });
});
+
diff --git a/eng/packages/http-client-csharp/emitter/test/Unit/test-util.ts b/eng/packages/http-client-csharp/emitter/test/Unit/test-util.ts
index fcdc4337b5d3..460b00d7d2dd 100644
--- a/eng/packages/http-client-csharp/emitter/test/Unit/test-util.ts
+++ b/eng/packages/http-client-csharp/emitter/test/Unit/test-util.ts
@@ -8,7 +8,6 @@ import { CompilerOptions, EmitContext, Program } from "@typespec/compiler";
import { createTestHost, TestHost } from "@typespec/compiler/testing";
import {
CSharpEmitterContext,
- CSharpEmitterOptions,
createCSharpEmitterContext,
Logger,
LoggerLevel,
@@ -93,7 +92,7 @@ export async function typeSpecCompile(
export function createEmitterContext(
program: Program,
options: AzureEmitterOptions = {}
-): EmitContext {
+): EmitContext {
return {
program: program,
emitterOutputDir: "./",
@@ -107,7 +106,7 @@ export function createEmitterContext(
"generate-convenience-methods": true,
"package-name": undefined
}
- } as EmitContext;
+ } as EmitContext;
}
/* We always need to pass in the emitter name now that it is required so making a helper to do this. */
diff --git a/eng/packages/http-client-csharp/eng/scripts/Generate.ps1 b/eng/packages/http-client-csharp/eng/scripts/Generate.ps1
index ec225b562a69..941530e1aa2e 100644
--- a/eng/packages/http-client-csharp/eng/scripts/Generate.ps1
+++ b/eng/packages/http-client-csharp/eng/scripts/Generate.ps1
@@ -77,15 +77,13 @@ $failingSpecs = @(
Join-Path 'http' 'azure' 'client-generator-core' 'api-version' 'path'
Join-Path 'http' 'azure' 'client-generator-core' 'api-version' 'query'
Join-Path 'http' 'azure' 'core' 'basic'
- Join-Path 'http' 'azure' 'core' 'lro' 'rpc'
- Join-Path 'http' 'azure' 'core' 'lro' 'standard'
Join-Path 'http' 'azure' 'core' 'model'
Join-Path 'http' 'azure' 'core' 'page'
Join-Path 'http' 'azure' 'core' 'scalar'
Join-Path 'http' 'azure' 'core' 'traits'
Join-Path 'http' 'azure' 'encode' 'duration'
Join-Path 'http' 'azure' 'payload' 'pageable'
- # These scenarios will be covered in Azure.Generator.Mgmt
+ # These scenarios will be covered in Azure.Generator.Management
Join-Path 'http' 'azure' 'resource-manager' 'common-properties'
Join-Path 'http' 'azure' 'resource-manager' 'non-resource'
Join-Path 'http' 'azure' 'resource-manager' 'operation-templates'
diff --git a/eng/packages/http-client-csharp/eng/scripts/Generation.psm1 b/eng/packages/http-client-csharp/eng/scripts/Generation.psm1
index 254255cdd244..4d471d4b9aec 100644
--- a/eng/packages/http-client-csharp/eng/scripts/Generation.psm1
+++ b/eng/packages/http-client-csharp/eng/scripts/Generation.psm1
@@ -107,7 +107,7 @@ function Refresh-Mgmt-Build {
}
# we don't want to build the entire solution because the test projects might not build until after regeneration
- Invoke "dotnet build $repoRoot/../../http-client-csharp-mgmt/generator/Azure.Generator.Mgmt/src"
+ Invoke "dotnet build $repoRoot/../../http-client-csharp-mgmt/generator/Azure.Generator.Management/src"
# exit if the generation failed
if ($LASTEXITCODE -ne 0) {
exit $LASTEXITCODE
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator.StubLibrary/src/AzureStubVisitor.cs b/eng/packages/http-client-csharp/generator/Azure.Generator.StubLibrary/src/AzureStubVisitor.cs
index fd6f18f3a96d..e18aed131b93 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator.StubLibrary/src/AzureStubVisitor.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator.StubLibrary/src/AzureStubVisitor.cs
@@ -2,8 +2,8 @@
// Licensed under the MIT License.
using System;
-using System.ClientModel.Primitives;
using System.Linq;
+using Azure.Core;
using Microsoft.TypeSpec.Generator.ClientModel;
using Microsoft.TypeSpec.Generator.ClientModel.Providers;
using Microsoft.TypeSpec.Generator.Expressions;
@@ -80,7 +80,7 @@ private static bool IsCallingBaseCtor(ConstructorProvider constructor)
protected override FieldProvider? VisitField(FieldProvider field)
{
// For ClientOptions, keep the non-public field as this currently represents the latest service version for a client.
- return (field.Modifiers.HasFlag(FieldModifiers.Public) || field.EnclosingType.Implements.Any(i => i.Equals(typeof(ClientPipelineOptions))))
+ return field.Modifiers.HasFlag(FieldModifiers.Public) || field.EnclosingType.Implements.Any(i => i.Equals(typeof(ClientOptions)))
? field
: null;
}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Azure.Generator.csproj b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Azure.Generator.csproj
index d1c7e3c5744b..767a47d42685 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Azure.Generator.csproj
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Azure.Generator.csproj
@@ -26,35 +26,35 @@
-
+
-
- Always
-
-
- Always
-
-
+
+ Shared/Core
Always
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
-
- Always
-
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureClientGenerator.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureClientGenerator.cs
index a3674fcab475..5257ddf4d80c 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureClientGenerator.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/AzureClientGenerator.cs
@@ -52,5 +52,6 @@ protected override void Configure()
AddVisitor(new NamespaceVisitor());
AddVisitor(new DistributedTracingVisitor());
AddVisitor(new PipelinePropertyVisitor());
+ AddVisitor(new LroVisitor());
}
-}
+}
\ No newline at end of file
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
new file mode 100644
index 000000000000..d933accdb2d5
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ClientProviderExtensions.cs
@@ -0,0 +1,33 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Linq;
+using Azure.Core.Pipeline;
+using Microsoft.TypeSpec.Generator.ClientModel.Providers;
+using Microsoft.TypeSpec.Generator.Input;
+using Microsoft.TypeSpec.Generator.Providers;
+
+namespace Azure.Generator
+{
+ internal static class ClientProviderExtensions
+ {
+ public static ClientProvider GetClient(this ScmMethodProvider method) => (ClientProvider)method.EnclosingType;
+
+ public static string GetScopeName(this ScmMethodProvider method) => $"{method.EnclosingType.Name}.{method.Signature.Name}";
+
+ public static bool IsLroMethod(this ScmMethodProvider method) =>
+ method is { ServiceMethod: InputLongRunningServiceMethod, EnclosingType: ClientProvider };
+
+ public static PropertyProvider GetClientDiagnosticProperty(this ClientProvider client)
+ {
+ return client.CanonicalView.Properties
+ .First(p => p.Type.Equals(typeof(ClientDiagnostics)));
+ }
+
+ public static PropertyProvider GetPipelineProperty(this ClientProvider client)
+ {
+ return client.CanonicalView.Properties
+ .First(p => p.Type.Equals(typeof(HttpPipeline)));
+ }
+ }
+}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/ConfigurationExtensions.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ConfigurationExtensions.cs
similarity index 100%
rename from eng/packages/http-client-csharp/generator/Azure.Generator/src/ConfigurationExtensions.cs
rename to eng/packages/http-client-csharp/generator/Azure.Generator/src/Extensions/ConfigurationExtensions.cs
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/KnownAzureParameters.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/KnownAzureParameters.cs
index 1389eceebbc4..618f1af9ac06 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/KnownAzureParameters.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/KnownAzureParameters.cs
@@ -4,6 +4,7 @@
using Microsoft.TypeSpec.Generator.Primitives;
using Microsoft.TypeSpec.Generator.Providers;
using System.Threading;
+using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
namespace Azure.Generator.Primitives
{
@@ -13,6 +14,9 @@ internal class KnownAzureParameters
public static readonly ParameterProvider WaitUntil = new("waitUntil", $" 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.", new CSharpType(typeof(WaitUntil)));
+ public static readonly ParameterProvider RequestContext = new("context", $"The request context, which can override default behaviors of the client pipeline on a per-call basis.", new CSharpType(typeof(RequestContext)));
+ public static readonly ParameterProvider OptionalRequestContext = new("context", $"The request context, which can override default behaviors of the client pipeline on a per-call basis.", new CSharpType(typeof(RequestContext)).WithNullable(true), defaultValue: Null);
+
public static readonly ParameterProvider CancellationTokenWithoutDefault = new("cancellationToken", $"The cancellation token to use.", new CSharpType(typeof(CancellationToken)));
}
}
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/NewAzureProjectScaffolding.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/NewAzureProjectScaffolding.cs
index 8d1754cdd2b4..4ac93d022e38 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/NewAzureProjectScaffolding.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Primitives/NewAzureProjectScaffolding.cs
@@ -81,12 +81,14 @@ protected override string GetSourceProjectFileContent()
"DiagnosticScope.cs",
"HttpMessageSanitizer.cs",
"TrimmingAttribute.cs",
+ "NoValueResponseOfT.cs",
];
private static readonly IReadOnlyList _lroSharedFiles =
[
"AsyncLockWithValue.cs",
"FixedDelayWithNoJitterStrategy.cs",
+ "HttpPipelineExtensions.cs",
"IOperationSource.cs",
"NextLinkOperationImplementation.cs",
"OperationFinalStateVia.cs",
@@ -94,6 +96,8 @@ protected override string GetSourceProjectFileContent()
"OperationInternalBase.cs",
"OperationInternalOfT.cs",
"OperationPoller.cs",
+ "ProtocolOperation.cs",
+ "ProtocolOperationHelpers.cs",
"SequentialDelayStrategy.cs",
"TaskExtensions.cs",
"VoidValue.cs"
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Properties/launchSettings.json b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Properties/launchSettings.json
index de7fde1bc081..27c1c1db475d 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Properties/launchSettings.json
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Properties/launchSettings.json
@@ -35,6 +35,16 @@
"commandName": "Executable",
"executablePath": "dotnet"
},
+ "http-azure-core-lro-rpc": {
+ "commandLineArgs": "$(SolutionDir)/../dist/generator/Microsoft.TypeSpec.Generator.dll $(SolutionDir)/TestProjects/Spector/http/azure/core/lro/rpc -g AzureStubGenerator",
+ "commandName": "Executable",
+ "executablePath": "dotnet"
+ },
+ "http-azure-core-lro-standard": {
+ "commandLineArgs": "$(SolutionDir)/../dist/generator/Microsoft.TypeSpec.Generator.dll $(SolutionDir)/TestProjects/Spector/http/azure/core/lro/standard -g AzureStubGenerator",
+ "commandName": "Executable",
+ "executablePath": "dotnet"
+ },
"http-azure-special-headers-client-request-id": {
"commandLineArgs": "$(SolutionDir)/../dist/generator/Microsoft.TypeSpec.Generator.dll $(SolutionDir)/TestProjects/Spector/http/azure/special-headers/client-request-id -g AzureStubGenerator",
"commandName": "Executable",
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/RequestContextExtensionsDefinition.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/RequestContextExtensionsDefinition.cs
index 9dc9c6b6526d..3be9c0761162 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/RequestContextExtensionsDefinition.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Providers/RequestContextExtensionsDefinition.cs
@@ -7,6 +7,7 @@
using Microsoft.TypeSpec.Generator.Statements;
using System.IO;
using System.Threading;
+using Azure.Generator.Primitives;
using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
namespace Azure.Generator.Providers
@@ -23,22 +24,21 @@ internal class RequestContextExtensionsDefinition : TypeProvider
private MethodProvider BuildParse()
{
- var requestContextParameter = new ParameterProvider("requestContext", $"", typeof(RequestContext));
var signature = new MethodSignature(
"Parse",
null,
MethodSignatureModifiers.Public | MethodSignatureModifiers.Static | MethodSignatureModifiers.Extension,
new CSharpType(typeof((CancellationToken, ErrorOptions))),
null,
- [requestContextParameter]);
+ [KnownAzureParameters.RequestContext]);
var method = new MethodProvider(signature, new MethodBodyStatement[]
{
- new IfStatement(requestContextParameter.Equal(Null))
+ new IfStatement(KnownAzureParameters.RequestContext.Equal(Null))
{
Return(new TupleExpression(Static().Property(nameof(CancellationToken.None)), Static().Property(nameof(ErrorOptions.Default))))
},
- Return(new TupleExpression(requestContextParameter.Property(nameof(RequestContext.CancellationToken)), requestContextParameter.Property(nameof(RequestContext.ErrorOptions))))
+ Return(new TupleExpression(KnownAzureParameters.RequestContext.Property(nameof(RequestContext.CancellationToken)), KnownAzureParameters.RequestContext.Property(nameof(RequestContext.ErrorOptions))))
}, this);
return method;
}
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 045e10591322..41fbeb9fb192 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
@@ -131,7 +131,7 @@ private static void UpdateDistributedTracingRefInSubClientFactoryMethod(
List updatedFactoryMethodStatements = [];
var statementsToVisit = method.BodyStatements ?? new ExpressionStatement(method.BodyExpression!);
- foreach (var statement in statementsToVisit.Flatten())
+ foreach (var statement in statementsToVisit)
{
if (TryUpdateSubClientFactoryMethodReturnStatement(
statement,
@@ -156,15 +156,14 @@ private static void UpdateProtocolMethodsWithDistributedTracing(ScmMethodProvide
return;
}
- string scopeName = $"{method.EnclosingType.Name}.{method.Signature.Name}";
+ string scopeName = method.GetScopeName();
const string asyncSuffix = "Async";
if (scopeName.EndsWith(asyncSuffix))
{
scopeName = scopeName[..^asyncSuffix.Length];
}
- PropertyProvider clientDiagnosticsProperty = method.EnclosingType.CanonicalView.Properties
- .First(p => p.Name == ClientDiagnosticsPropertyName || p.OriginalName?.Equals(ClientDiagnosticsPropertyName) == true);
+ PropertyProvider clientDiagnosticsProperty = method.GetClient().GetClientDiagnosticProperty();
// declare scope
var scopeDeclaration = UsingDeclare(
@@ -175,16 +174,15 @@ private static void UpdateProtocolMethodsWithDistributedTracing(ScmMethodProvide
// start scope
var scopeStart = scope.Invoke(nameof(DiagnosticScope.Start)).Terminate();
// wrap existing statements in try / catch
- var tryStatement = new TryStatement
- {
+ var tryStatement = new TryExpression
+ (
method.BodyStatements ?? new ExpressionStatement(method.BodyExpression!)
- };
+ );
- var catchBlock = new CatchStatement(Declare("e", typeof(Exception), out var exception))
- {
- scope.Invoke(nameof(DiagnosticScope.Failed), [exception]).Terminate(),
- Throw()
- };
+ var catchBlock = new CatchExpression(
+ Declare("e", typeof(Exception), out var exception),
+ scope.Invoke(nameof(DiagnosticScope.Failed), [exception]).Terminate(),
+ Throw());
var tryCatchRequestBlock = new TryCatchFinallyStatement(tryStatement, catchBlock);
List updatedBodyStatements = [scopeDeclaration, scopeStart, tryCatchRequestBlock];
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
new file mode 100644
index 000000000000..0f32d13a7dd3
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/src/Visitors/LroVisitor.cs
@@ -0,0 +1,241 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Runtime.CompilerServices;
+using System.Threading.Tasks;
+using Azure.Core;
+using Azure.Generator.Providers;
+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.Primitives;
+using Microsoft.TypeSpec.Generator.Providers;
+using Microsoft.TypeSpec.Generator.Statements;
+using static Microsoft.TypeSpec.Generator.Snippets.Snippet;
+
+namespace Azure.Generator.Visitors
+{
+ internal class LroVisitor : ScmLibraryVisitor
+ {
+ protected override ScmMethodProviderCollection? Visit(
+ InputServiceMethod serviceMethod,
+ ClientProvider client,
+ ScmMethodProviderCollection? methods)
+ {
+ if (serviceMethod is InputLongRunningServiceMethod { Response.Type: InputModelType responseModel } lroServiceMethod)
+ {
+ UpdateExplicitOperatorMethod(responseModel, lroServiceMethod);
+ }
+
+ return methods;
+ }
+
+ private static void UpdateExplicitOperatorMethod(
+ InputModelType responseModel,
+ InputLongRunningServiceMethod lroServiceMethod)
+ {
+ var model = AzureClientGenerator.Instance.TypeFactory.CreateModel(responseModel);
+ if (model == null)
+ {
+ 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))
+ {
+ return;
+ }
+
+ foreach (var statement in explicitOperator.BodyStatements!)
+ {
+ if (statement is ExpressionStatement { Expression: KeywordExpression
+ { Keyword: "return", Expression: InvokeMethodExpression invokeMethodExpression } })
+ {
+ invokeMethodExpression.Update(
+ arguments:
+ [
+ invokeMethodExpression.Arguments[0]
+ .Invoke("GetProperty", Literal(resultSegment)),
+ ..invokeMethodExpression.Arguments.Skip(1)
+ ]);
+ }
+ }
+ }
+
+ protected override ScmMethodProvider? VisitMethod(ScmMethodProvider method)
+ {
+ if (method.IsLroMethod())
+ {
+ UpdateMethodSignature(method);
+ }
+
+ return method;
+ }
+
+ private static void UpdateMethodSignature(ScmMethodProvider method)
+ {
+ var responseType = method.ServiceMethod!.Response.Type;
+
+ var returnType = (responseType, method.IsProtocolMethod) switch
+ {
+ (null, _) => typeof(Operation),
+ (not null, true) => new CSharpType(typeof(Operation), typeof(BinaryData)),
+ _ => new CSharpType(typeof(Operation<>), AzureClientGenerator.Instance.TypeFactory.CreateCSharpType(responseType)!),
+ };
+ var isAsync = method.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Async);
+
+ // Update the method signature
+ var parameters = new List(method.Signature.Parameters);
+ parameters.Insert(0, new ParameterProvider(
+ name: "waitUntil",
+ type: typeof(WaitUntil),
+ description: FormattableStringFactory.Create(
+ " 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.")));
+
+ method.Signature.Update(
+ parameters: parameters,
+ returnType: isAsync
+ ? new CSharpType(typeof(Task<>), returnType!)
+ : returnType);
+
+ // Needed to update the XML docs
+ method.Update(signature: method.Signature);
+ }
+
+ protected override MethodBodyStatement? VisitExpressionStatement(
+ ExpressionStatement expressionStatement,
+ MethodProvider method)
+ {
+ if (method is ScmMethodProvider scmMethod && scmMethod.IsLroMethod() && !scmMethod.IsProtocolMethod)
+ {
+ return UpdateConvenienceMethod(expressionStatement, scmMethod);
+ }
+
+ return expressionStatement;
+ }
+
+ private static MethodBodyStatement? UpdateConvenienceMethod(
+ ExpressionStatement expressionStatement,
+ ScmMethodProvider scmMethod)
+ {
+ var expression = expressionStatement.Expression;
+ var serviceMethod = scmMethod.ServiceMethod!;
+ switch (expression)
+ {
+ case AssignmentExpression { Value: AzureClientResponseProvider } assignmentExpression:
+ {
+ var resultVariable = (assignmentExpression.Variable as DeclarationExpression)?.Variable!;
+ if (serviceMethod.Response.Type != null)
+ {
+ resultVariable.Update(type: new CSharpType(typeof(Operation), typeof(BinaryData)));
+ }
+ else
+ {
+ // Return the result of the protocol method directly for convenience methods having no response body
+ return new KeywordExpression("return", assignmentExpression.Value).Terminate();
+ }
+
+ break;
+ }
+ // Remove the extra return statement for convenience methods having no response body
+ case KeywordExpression { Keyword: "return", Expression: InvokeMethodExpression { MethodName: "FromValue" } } when serviceMethod.Response.Type == null:
+ return null;
+ case KeywordExpression { Keyword: "return", Expression: InvokeMethodExpression { MethodName: "FromValue" } invokeMethodExpression }:
+ {
+ var response = new VariableExpression(typeof(Response), "response");
+ var responseType = AzureClientGenerator.Instance.TypeFactory.CreateCSharpType(serviceMethod.Response.Type)!;
+ var client = (ClientProvider)scmMethod.EnclosingType;
+ var diagnosticsProperty = client.GetClientDiagnosticProperty();
+ var scopeName = scmMethod.GetScopeName();
+ invokeMethodExpression.Update(
+ instanceReference: Static(typeof(ProtocolOperationHelpers)),
+ methodName: "Convert",
+ arguments:
+ [
+ (invokeMethodExpression.Arguments[0] as CastExpression)!.Inner,
+ new FuncExpression([response.Declaration], new CastExpression(response, responseType)),
+ diagnosticsProperty,
+ Literal(scopeName),
+ ]);
+ break;
+ }
+ }
+
+ return expressionStatement;
+ }
+
+ protected override InvokeMethodExpression? VisitInvokeMethodExpression(InvokeMethodExpression expression, MethodProvider method)
+ {
+ if (method is ScmMethodProvider scmMethod && scmMethod.IsLroMethod())
+ {
+ if (scmMethod.IsProtocolMethod)
+ {
+ return UpdateProcessCall(expression, scmMethod);
+ }
+
+ return UpdateProtocolMethodCall(expression, scmMethod);
+ }
+
+ return expression;
+ }
+
+ private static InvokeMethodExpression UpdateProcessCall(
+ InvokeMethodExpression expression,
+ ScmMethodProvider scmMethod)
+ {
+ // Update the process call to call the operation helper method
+ if (expression.MethodName?.StartsWith("Process") == true)
+ {
+ var client = (ClientProvider)scmMethod.EnclosingType;
+ var serviceMethod = scmMethod.ServiceMethod as InputLongRunningServiceMethod;
+ var finalStateVia = (OperationFinalStateVia) serviceMethod!.LongRunningServiceMetadata.FinalStateVia;
+ var finalStateEnumName = Enum.GetName(typeof(OperationFinalStateVia), finalStateVia);
+
+ expression.Update(
+ instanceReference: Static(typeof(ProtocolOperationHelpers)),
+ arguments:
+ [
+ client.GetPipelineProperty(),
+ expression.Arguments[0],
+ client.GetClientDiagnosticProperty(),
+ Literal(scmMethod.GetScopeName()),
+ Static(typeof(OperationFinalStateVia)).Property(finalStateEnumName!),
+ expression.Arguments[1],
+ scmMethod.Signature.Parameters[0]
+ ]);
+ }
+
+ return expression;
+ }
+
+ private static InvokeMethodExpression UpdateProtocolMethodCall(
+ InvokeMethodExpression expression,
+ ScmMethodProvider scmMethod)
+ {
+ if (scmMethod.Signature.Name == expression.MethodName || scmMethod.Signature.Name == expression.MethodSignature?.Name)
+ {
+ expression.Update(
+ arguments:
+ [
+ scmMethod.Signature.Parameters[0],
+ ..expression.Arguments,
+ ]);
+ }
+
+ return expression;
+ }
+ }
+}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
index b6baa935bb08..a7b8bc9a6bd4 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Azure.Generator.Tests.csproj
@@ -35,5 +35,5 @@
-
+
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 f6f7749aa2bf..5e42073ff751 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
@@ -28,6 +28,7 @@ public static Mock LoadMockPlugin(
Func? apiKeyAuth = null,
Func? oauth2Auth = null,
Func>? apiVersions = null,
+ Func>? inputLiterals = null,
Func>? inputEnums = null,
Func>? inputModels = null,
Func>? clients = null,
@@ -37,6 +38,7 @@ public static Mock LoadMockPlugin(
string? configurationJson = null)
{
IReadOnlyList inputNsApiVersions = apiVersions?.Invoke() ?? [];
+ IReadOnlyList inputNsLiterals = inputLiterals?.Invoke() ?? [];
IReadOnlyList inputNsEnums = inputEnums?.Invoke() ?? [];
IReadOnlyList inputNsClients = clients?.Invoke() ?? [];
IReadOnlyList inputNsModels = inputModels?.Invoke() ?? [];
@@ -44,6 +46,7 @@ public static Mock LoadMockPlugin(
var mockInputNs = new Mock(
"Samples",
inputNsApiVersions,
+ inputNsLiterals,
inputNsEnums,
inputNsModels,
inputNsClients,
@@ -78,7 +81,7 @@ public static Mock LoadMockPlugin(
mockPluginInstance.SetupGet(p => p.TypeFactory).Returns(mockTypeFactory.Object);
}
- var sourceInputModel = new Mock(() => new SourceInputModel(null)) { CallBase = true };
+ var sourceInputModel = new Mock(() => new SourceInputModel(null, null)) { CallBase = true };
mockPluginInstance.Setup(p => p.SourceInputModel).Returns(sourceInputModel.Object);
var configureMethod = typeof(CodeModelGenerator).GetMethod(
"Configure",
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 432614fb0fe2..125a1af61db0 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
@@ -79,7 +79,7 @@ public void TestUpdatesConstructors(InputClient inputClient)
var updatedConstructor = visitor.InvokeVisitConstructor(constructor!);
Assert.IsNotNull(updatedConstructor?.BodyStatements);
- Assert.IsTrue(updatedConstructor!.BodyStatements!.Flatten().Any());
+ Assert.IsTrue(updatedConstructor!.BodyStatements!.Any());
var bodyText = updatedConstructor.BodyStatements!.ToDisplayString();
var expectedText = isSubClient
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
new file mode 100644
index 000000000000..bb6bff206e7a
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/LroVisitorTests.cs
@@ -0,0 +1,263 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Collections.Generic;
+using System.Linq;
+using System.Threading;
+using System.Threading.Tasks;
+using Azure.Core.Pipeline;
+using Azure.Generator.Tests.Common;
+using Azure.Generator.Tests.TestHelpers;
+using Azure.Generator.Visitors;
+using Microsoft.TypeSpec.Generator;
+using Microsoft.TypeSpec.Generator.ClientModel.Providers;
+using Microsoft.TypeSpec.Generator.Input;
+using Microsoft.TypeSpec.Generator.Primitives;
+using Microsoft.TypeSpec.Generator.Providers;
+using Microsoft.TypeSpec.Generator.Statements;
+using NUnit.Framework;
+
+namespace Azure.Generator.Tests.Visitors
+{
+ public class LroVisitorTests
+ {
+ [Test]
+ public void UpdatesLroSignatureNoResponseBody()
+ {
+ var visitor = new TestLroVisitor();
+ List parameters =
+ [
+ InputFactory.Parameter(
+ "p1",
+ InputPrimitiveType.String,
+ kind: InputParameterKind.Method)
+ ];
+ var lro = InputFactory.Operation(
+ "foo",
+ parameters: parameters);
+ var lroServiceMethod = InputFactory.LongRunningServiceMethod("foo", lro, parameters: parameters);
+ var inputClient = InputFactory.Client("TestClient", methods: [lroServiceMethod]);
+ MockHelpers.LoadMockPlugin(clients: () => [inputClient]);
+
+ var clientProvider = AzureClientGenerator.Instance.TypeFactory.CreateClient(inputClient);
+ Assert.IsNotNull(clientProvider);
+
+ foreach (var method in clientProvider!.Methods)
+ {
+ var updatedMethod = visitor.InvokeVisitMethod(method);
+ Assert.IsNotNull(updatedMethod);
+ var scmMethod = method as ScmMethodProvider;
+ Assert.IsNotNull(scmMethod);
+ var waitUntilParameter = scmMethod!.Signature.Parameters[0];
+ Assert.IsTrue(waitUntilParameter.Type.Equals(typeof(WaitUntil)));
+ Assert.AreEqual("waitUntil", waitUntilParameter.Name);
+
+ Assert.IsTrue(scmMethod.Signature.ReturnType!.Equals(typeof(Operation)) ||
+ scmMethod.Signature.ReturnType!.Equals(new CSharpType(typeof(Task<>), typeof(Operation))));
+
+ if (scmMethod.IsProtocolMethod)
+ {
+ var requestContextParameter = scmMethod.Signature.Parameters[^1];
+ Assert.IsTrue(requestContextParameter.Type.Equals(typeof(RequestContext)));
+ Assert.AreEqual("context", requestContextParameter.Name);
+ }
+ else
+ {
+ var cancellationTokenParameter = scmMethod.Signature.Parameters[^1];
+ Assert.IsTrue(cancellationTokenParameter.Type.Equals(typeof(CancellationToken)));
+ Assert.AreEqual("cancellationToken", cancellationTokenParameter.Name);
+ }
+ }
+ }
+
+ [Test]
+ public void UpdatesLroSignatureWithResponseBody()
+ {
+ var visitor = new TestLroVisitor();
+ List parameters =
+ [
+ InputFactory.Parameter(
+ "p1",
+ InputPrimitiveType.String,
+ kind: InputParameterKind.Method)
+ ];
+ var lro = InputFactory.Operation(
+ "foo",
+ parameters: parameters);
+ var responseModel = InputFactory.Model("foo");
+ var lroServiceMethod = InputFactory.LongRunningServiceMethod(
+ "foo",
+ lro, parameters: parameters,
+ response: InputFactory.ServiceMethodResponse(responseModel, ["result"]));
+ var inputClient = InputFactory.Client("TestClient", methods: [lroServiceMethod]);
+ MockHelpers.LoadMockPlugin(clients: () => [inputClient]);
+
+ var clientProvider = AzureClientGenerator.Instance.TypeFactory.CreateClient(inputClient);
+ Assert.IsNotNull(clientProvider);
+
+ var responseModelProvider = AzureClientGenerator.Instance.TypeFactory.CreateModel(responseModel);
+ Assert.IsNotNull(responseModelProvider);
+
+ foreach (var method in clientProvider!.Methods)
+ {
+ var updatedMethod = visitor.InvokeVisitMethod(method);
+ Assert.IsNotNull(updatedMethod);
+ var scmMethod = method as ScmMethodProvider;
+ Assert.IsNotNull(scmMethod);
+ var waitUntilParameter = scmMethod!.Signature.Parameters[0];
+ Assert.IsTrue(waitUntilParameter.Type.Equals(typeof(WaitUntil)));
+ Assert.AreEqual("waitUntil", waitUntilParameter.Name);
+
+ if (scmMethod.IsProtocolMethod)
+ {
+ var requestContextParameter = scmMethod.Signature.Parameters[^1];
+ Assert.IsTrue(requestContextParameter.Type.Equals(typeof(RequestContext)));
+ Assert.AreEqual("context", requestContextParameter.Name);
+ }
+ else
+ {
+ var cancellationTokenParameter = scmMethod.Signature.Parameters[^1];
+ Assert.IsTrue(cancellationTokenParameter.Type.Equals(typeof(CancellationToken)));
+ Assert.AreEqual("cancellationToken", cancellationTokenParameter.Name);
+ Assert.IsTrue(scmMethod.Signature.ReturnType!.Equals(new CSharpType(typeof(Operation<>), responseModelProvider!.Type)) ||
+ scmMethod.Signature.ReturnType!.Equals(new CSharpType(typeof(Task<>), new CSharpType(typeof(Operation<>), responseModelProvider.Type))));
+ }
+ }
+ }
+
+ [Test]
+ public void UpdatesExplicitOperatorToUseResultSegment()
+ {
+ var visitor = new TestLroVisitor();
+ List parameters =
+ [
+ InputFactory.Parameter(
+ "p1",
+ InputPrimitiveType.String,
+ kind: InputParameterKind.Method)
+ ];
+ var lro = InputFactory.Operation(
+ "foo",
+ parameters: parameters);
+ var responseModel = InputFactory.Model("foo");
+ var lroServiceMethod = InputFactory.LongRunningServiceMethod(
+ "foo",
+ lro,
+ parameters: parameters,
+ response: InputFactory.ServiceMethodResponse(responseModel, ["result"]),
+ longRunningServiceMetadata: InputFactory.LongRunningServiceMetadata(
+ finalState: 1,
+ finalResponse: InputFactory.OperationResponse(),
+ resultPath: "someResultPath"));
+ var inputClient = InputFactory.Client("TestClient", methods: [lroServiceMethod]);
+ MockHelpers.LoadMockPlugin(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];
+ var explicitOperator = serializationProvider.Methods
+ .FirstOrDefault(m => m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Explicit) &&
+ m.Signature.Modifiers.HasFlag(MethodSignatureModifiers.Operator));
+
+ Assert.IsNotNull(explicitOperator);
+ Assert.IsNotNull(explicitOperator!.BodyStatements);
+ Assert.AreEqual(Helpers.GetExpectedFromFile(), explicitOperator!.BodyStatements!.ToDisplayString());
+ }
+
+ [Test]
+ public void UpdatesConvenienceMethodBody()
+ {
+ var visitor = new TestLroVisitor();
+ List parameters =
+ [
+ InputFactory.Parameter(
+ "p1",
+ InputPrimitiveType.String,
+ kind: InputParameterKind.Method)
+ ];
+ var lro = InputFactory.Operation(
+ "foo",
+ parameters: parameters);
+ var responseModel = InputFactory.Model("foo");
+ var lroServiceMethod = InputFactory.LongRunningServiceMethod(
+ "foo",
+ lro, parameters: parameters,
+ response: InputFactory.ServiceMethodResponse(responseModel, ["result"]));
+ var inputClient = InputFactory.Client("TestClient", methods: [lroServiceMethod]);
+ var plugin = MockHelpers.LoadMockPlugin(clients: () => [inputClient]);
+ var outputLibrary = plugin.Object.OutputLibrary;
+ visitor.InvokeVisitLibrary(outputLibrary);
+
+ var clientProvider = outputLibrary.TypeProviders.OfType().FirstOrDefault();
+ Assert.IsNotNull(clientProvider);
+ var convenienceMethod = clientProvider!.Methods
+ .FirstOrDefault(m => m.Signature.Parameters.All(p => p.Name != "context"));
+
+ Assert.IsNotNull(convenienceMethod);
+ var actual = convenienceMethod!.BodyStatements!.ToDisplayString();
+ Assert.AreEqual(Helpers.GetExpectedFromFile(), actual);
+ }
+
+ [Test]
+ public void UpdatesProtocolMethodBody()
+ {
+ var visitor = new TestLroVisitor();
+ List parameters =
+ [
+ InputFactory.Parameter(
+ "p1",
+ InputPrimitiveType.String,
+ kind: InputParameterKind.Method)
+ ];
+ var lro = InputFactory.Operation(
+ "foo",
+ parameters: parameters);
+ var responseModel = InputFactory.Model("foo");
+ var lroServiceMethod = InputFactory.LongRunningServiceMethod(
+ "foo",
+ lro, parameters: parameters,
+ response: InputFactory.ServiceMethodResponse(responseModel, ["result"]));
+ var inputClient = InputFactory.Client("TestClient", methods: [lroServiceMethod]);
+ var plugin = MockHelpers.LoadMockPlugin(clients: () => [inputClient]);
+ var outputLibrary = plugin.Object.OutputLibrary;
+ visitor.InvokeVisitLibrary(outputLibrary);
+
+ var clientProvider = outputLibrary.TypeProviders.OfType().FirstOrDefault();
+ Assert.IsNotNull(clientProvider);
+ var protocolMethod = clientProvider!.Methods
+ .FirstOrDefault(m => m.Signature.Parameters.Any(p => p.Name == "context"));
+
+ Assert.IsNotNull(protocolMethod);
+ var actual = protocolMethod!.BodyStatements!.ToDisplayString();
+ Assert.AreEqual(Helpers.GetExpectedFromFile(), actual);
+ }
+
+ private class TestLroVisitor : LroVisitor
+ {
+ public MethodProvider? InvokeVisitMethod(MethodProvider method)
+ {
+ return base.VisitMethod(method);
+ }
+
+ public ScmMethodProviderCollection? InvokeVisitServiceMethod(
+ InputServiceMethod serviceMethod,
+ ClientProvider client,
+ ScmMethodProviderCollection? methodCollection)
+ {
+ return base.Visit(serviceMethod, client, methodCollection);
+ }
+
+ public void InvokeVisitLibrary(OutputLibrary library)
+ {
+ base.VisitLibrary(library);
+ }
+ }
+ }
+}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesConvenienceMethodBody.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesConvenienceMethodBody.cs
new file mode 100644
index 000000000000..17fb3238fa7a
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesConvenienceMethodBody.cs
@@ -0,0 +1,2 @@
+using global::Azure.Core.RequestContent content = global::Azure.Core.RequestContent.Create(global::System.BinaryData.FromString(p1));
+return this.Foo(waitUntil, content, cancellationToken.CanBeCanceled ? new global::Azure.RequestContext { CancellationToken = cancellationToken } : null);
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/UpdatesExplicitOperatorToUseResultSegment.cs
new file mode 100644
index 000000000000..3982914e3957
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesExplicitOperatorToUseResultSegment.cs
@@ -0,0 +1,3 @@
+using global::Azure.Response response = result;
+using global::System.Text.Json.JsonDocument document = global::System.Text.Json.JsonDocument.Parse(response.Content);
+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/LroVisitorTests/UpdatesProtocolMethodBody.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesProtocolMethodBody.cs
new file mode 100644
index 000000000000..4dadcafeba61
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/Visitors/TestData/LroVisitorTests/UpdatesProtocolMethodBody.cs
@@ -0,0 +1,2 @@
+using global::Azure.Core.HttpMessage message = this.CreateFooRequest(content, context);
+return global::Azure.Core.ProtocolOperationHelpers.ProcessMessage(Pipeline, message, ClientDiagnostics, "TestClient.Foo", global::Azure.Core.OperationFinalStateVia.Location, context, waitUntil);
diff --git a/eng/packages/http-client-csharp/generator/Azure.Generator/test/common/InputFactory.cs b/eng/packages/http-client-csharp/generator/Azure.Generator/test/common/InputFactory.cs
index e08f7fc51579..52b4e7fa9c6b 100644
--- a/eng/packages/http-client-csharp/generator/Azure.Generator/test/common/InputFactory.cs
+++ b/eng/packages/http-client-csharp/generator/Azure.Generator/test/common/InputFactory.cs
@@ -4,6 +4,7 @@
using System.Collections.Generic;
using System.Linq;
using Microsoft.TypeSpec.Generator.Input;
+using Microsoft.TypeSpec.Generator.Input.Extensions;
namespace Azure.Generator.Tests.Common
{
@@ -43,7 +44,7 @@ public static class EnumMember
///
public static InputEnumTypeValue Int32(string name, int value)
{
- return new InputEnumTypeValue(name, value, InputPrimitiveType.Int32, null, $"{name} description");
+ return new InputEnumTypeValue(name, value, InputPrimitiveType.Int32, "", $"{name} description");
}
///
@@ -54,7 +55,7 @@ public static InputEnumTypeValue Int32(string name, int value)
///
public static InputEnumTypeValue Float32(string name, float value)
{
- return new InputEnumTypeValue(name, value, InputPrimitiveType.Float32, null, $"{name} description");
+ return new InputEnumTypeValue(name, value, InputPrimitiveType.Float32, "", $"{name} description");
}
///
@@ -65,7 +66,7 @@ public static InputEnumTypeValue Float32(string name, float value)
///
public static InputEnumTypeValue String(string name, string value)
{
- return new InputEnumTypeValue(name, value, InputPrimitiveType.String, null, $"{name} description");
+ return new InputEnumTypeValue(name, value, InputPrimitiveType.String, "", $"{name} description");
}
}
@@ -78,20 +79,24 @@ public static class Literal
/// Construct input literal type value for string
///
///
+ ///
+ ///
///
- public static InputLiteralType String(string value)
+ public static InputLiteralType String(string value, string? name = null, string? @namespace = null)
{
- return new InputLiteralType(InputPrimitiveType.String, value);
+ return new InputLiteralType(name ?? string.Empty, @namespace ?? string.Empty, InputPrimitiveType.String, value);
}
///
/// Construct input enum type value for any
///
///
+ ///
+ ///
///
- public static InputLiteralType Any(object value)
+ public static InputLiteralType Int32(int value, string? name = null, string? @namespace = null)
{
- return new InputLiteralType(InputPrimitiveType.Any, value);
+ return new InputLiteralType(name ?? string.Empty, @namespace ?? string.Empty, InputPrimitiveType.Int32, value);
}
}
@@ -190,9 +195,8 @@ public static InputParameter Parameter(
///
///
///
- ///
///
- ///
+ ///
///
public static InputModelProperty Property(
string name,
@@ -202,20 +206,19 @@ public static InputModelProperty Property(
bool isDiscriminator = false,
string? wireName = null,
string? summary = null,
- string? description = null,
string? serializedName = null,
- InputModelPropertyKind kind = InputModelPropertyKind.Property)
+ string? doc = null)
{
return new InputModelProperty(
name,
- kind,
summary,
- description ?? $"Description for {name}",
+ doc ?? $"Description for {name}",
type,
isRequired,
isReadOnly,
+ access: null,
isDiscriminator,
- serializedName,
+ serializedName ?? wireName ?? name.ToVariableName(),
new(json: new(wireName ?? name)));
}
@@ -371,6 +374,55 @@ public static InputPagingServiceMetadata PagingMetadata(IReadOnlyList it
return new InputPagingServiceMetadata(itemPropertySegments, nextLink, continuationToken);
}
+ ///
+ /// Construct paging service method
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static InputLongRunningServiceMethod LongRunningServiceMethod(
+ string name,
+ InputOperation operation,
+ string access = "public",
+ IReadOnlyList? parameters = null,
+ InputServiceMethodResponse? response = null,
+ InputServiceMethodResponse? exception = null,
+ InputLongRunningServiceMetadata? longRunningServiceMetadata = null)
+ {
+ return new InputLongRunningServiceMethod(
+ name,
+ access,
+ [],
+ null,
+ null,
+ operation,
+ parameters ?? [],
+ response ?? ServiceMethodResponse(null, null),
+ exception,
+ false,
+ true,
+ true,
+ string.Empty,
+ longRunningServiceMetadata ?? LongRunningServiceMetadata(1, OperationResponse(), null));
+ }
+
+ ///
+ /// Construct paging metadata
+ ///
+ ///
+ ///
+ ///
+ ///
+ public static InputLongRunningServiceMetadata LongRunningServiceMetadata(int finalState, InputOperationResponse finalResponse, string? resultPath)
+ {
+ return new InputLongRunningServiceMetadata(finalState, finalResponse, resultPath);
+ }
+
///
/// Construct input operation
///
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj
index 96622e110669..e7654ba03c25 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/BasicTypeSpec.csproj
@@ -18,6 +18,7 @@
+
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.cs
index 43ccfd9a6891..ce28ea62b44d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecClient.cs
@@ -865,12 +865,13 @@ public virtual async Task AnonymousBodyAsync(RequestContent content, R
/// optional literal bool.
/// optional nullable collection.
/// The cancellation token that can be used to cancel the operation.
- /// , or is null.
+ /// , , or is null.
/// Service returned a non-success status code.
- public virtual Response AnonymousBody(string name, BinaryData requiredUnion, ThingModelRequiredLiteralString requiredLiteralString, ThingModelRequiredLiteralInt requiredLiteralInt, ThingModelRequiredLiteralFloat requiredLiteralFloat, bool requiredLiteralBool, string requiredBadDescription, IEnumerable requiredNullableList, ThingModelOptionalLiteralString? optionalLiteralString = default, ThingModelOptionalLiteralInt? optionalLiteralInt = default, ThingModelOptionalLiteralFloat? optionalLiteralFloat = default, bool? optionalLiteralBool = default, IEnumerable optionalNullableList = default, CancellationToken cancellationToken = default)
+ public virtual Response AnonymousBody(string name, BinaryData requiredUnion, string requiredLiteralString, int requiredLiteralInt, float requiredLiteralFloat, bool requiredLiteralBool, string requiredBadDescription, IEnumerable requiredNullableList, string optionalLiteralString = default, int? optionalLiteralInt = default, float? optionalLiteralFloat = default, bool? optionalLiteralBool = default, IEnumerable optionalNullableList = default, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(requiredUnion, nameof(requiredUnion));
+ Argument.AssertNotNull(requiredLiteralString, nameof(requiredLiteralString));
Argument.AssertNotNull(requiredBadDescription, nameof(requiredBadDescription));
ThingModel spreadModel = new ThingModel(
@@ -907,12 +908,13 @@ public virtual Response AnonymousBody(string name, BinaryData requir
/// optional literal bool.
/// optional nullable collection.
/// The cancellation token that can be used to cancel the operation.
- /// , or is null.
+ /// , , or is null.
/// Service returned a non-success status code.
- public virtual async Task> AnonymousBodyAsync(string name, BinaryData requiredUnion, ThingModelRequiredLiteralString requiredLiteralString, ThingModelRequiredLiteralInt requiredLiteralInt, ThingModelRequiredLiteralFloat requiredLiteralFloat, bool requiredLiteralBool, string requiredBadDescription, IEnumerable requiredNullableList, ThingModelOptionalLiteralString? optionalLiteralString = default, ThingModelOptionalLiteralInt? optionalLiteralInt = default, ThingModelOptionalLiteralFloat? optionalLiteralFloat = default, bool? optionalLiteralBool = default, IEnumerable optionalNullableList = default, CancellationToken cancellationToken = default)
+ public virtual async Task> AnonymousBodyAsync(string name, BinaryData requiredUnion, string requiredLiteralString, int requiredLiteralInt, float requiredLiteralFloat, bool requiredLiteralBool, string requiredBadDescription, IEnumerable requiredNullableList, string optionalLiteralString = default, int? optionalLiteralInt = default, float? optionalLiteralFloat = default, bool? optionalLiteralBool = default, IEnumerable optionalNullableList = default, CancellationToken cancellationToken = default)
{
Argument.AssertNotNull(name, nameof(name));
Argument.AssertNotNull(requiredUnion, nameof(requiredUnion));
+ Argument.AssertNotNull(requiredLiteralString, nameof(requiredLiteralString));
Argument.AssertNotNull(requiredBadDescription, nameof(requiredBadDescription));
ThingModel spreadModel = new ThingModel(
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecModelFactory.cs
index 564d003e76a5..139f8fbf22e0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/BasicTypeSpecModelFactory.cs
@@ -29,7 +29,7 @@ public static partial class BasicTypeSpecModelFactory
/// optional nullable collection.
/// required nullable collection.
/// A new instance for mocking.
- public static ThingModel ThingModel(string name = default, BinaryData requiredUnion = default, ThingModelRequiredLiteralString requiredLiteralString = default, ThingModelRequiredLiteralInt requiredLiteralInt = default, ThingModelRequiredLiteralFloat requiredLiteralFloat = default, bool requiredLiteralBool = default, ThingModelOptionalLiteralString? optionalLiteralString = default, ThingModelOptionalLiteralInt? optionalLiteralInt = default, ThingModelOptionalLiteralFloat? optionalLiteralFloat = default, bool? optionalLiteralBool = default, string requiredBadDescription = default, IEnumerable optionalNullableList = default, IEnumerable requiredNullableList = default)
+ public static ThingModel ThingModel(string name = default, BinaryData requiredUnion = default, string requiredLiteralString = default, int requiredLiteralInt = default, float requiredLiteralFloat = default, bool requiredLiteralBool = default, string optionalLiteralString = default, int? optionalLiteralInt = default, float? optionalLiteralFloat = default, bool? optionalLiteralBool = default, string requiredBadDescription = default, IEnumerable optionalNullableList = default, IEnumerable requiredNullableList = default)
{
optionalNullableList ??= new ChangeTrackingList();
requiredNullableList ??= new ChangeTrackingList();
@@ -125,7 +125,6 @@ public static RoundTripModel RoundTripModel(string requiredString = default, int
/// A new instance for mocking.
public static ModelWithRequiredNullableProperties ModelWithRequiredNullableProperties(int? requiredNullablePrimitive = default, StringExtensibleEnum? requiredExtensibleEnum = default, StringFixedEnum? requiredFixedEnum = default)
{
-
return new ModelWithRequiredNullableProperties(requiredNullablePrimitive, requiredExtensibleEnum, requiredFixedEnum, additionalBinaryDataProperties: null);
}
@@ -134,7 +133,6 @@ public static ModelWithRequiredNullableProperties ModelWithRequiredNullablePrope
/// A new instance for mocking.
public static FriendModel FriendModel(string name = default)
{
-
return new FriendModel(name, additionalBinaryDataProperties: null);
}
@@ -143,7 +141,6 @@ public static FriendModel FriendModel(string name = default)
/// A new instance for mocking.
public static RenamedModel RenamedModel(string name = default)
{
-
return new RenamedModel(name, additionalBinaryDataProperties: null);
}
@@ -151,7 +148,6 @@ public static RenamedModel RenamedModel(string name = default)
/// A new instance for mocking.
public static ReturnsAnonymousModelResponse ReturnsAnonymousModelResponse()
{
-
return new ReturnsAnonymousModelResponse(additionalBinaryDataProperties: null);
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs
index 3bf24c7cee31..c83a130ed811 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/RequestContextExtensions.cs
@@ -13,14 +13,14 @@ namespace BasicTypeSpec
{
internal static partial class RequestContextExtensions
{
- ///
- public static ValueTuple Parse(this RequestContext requestContext)
+ /// The request context, which can override default behaviors of the client pipeline on a per-call basis.
+ public static ValueTuple Parse(this RequestContext context)
{
- if (requestContext == null)
+ if (context == null)
{
return (CancellationToken.None, ErrorOptions.Default);
}
- return (requestContext.CancellationToken, requestContext.ErrorOptions);
+ return (context.CancellationToken, context.ErrorOptions);
}
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/TypeFormatters.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/TypeFormatters.cs
index 6cb37b3a0ad1..f737f82412f9 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/TypeFormatters.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Internal/TypeFormatters.cs
@@ -8,7 +8,6 @@
using System;
using System.Collections.Generic;
using System.Globalization;
-using System.Xml;
namespace BasicTypeSpec
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModel.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModel.Serialization.cs
index f9cce1c889c8..5ddbb705140b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModel.Serialization.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModel.Serialization.cs
@@ -52,27 +52,27 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit
}
#endif
writer.WritePropertyName("requiredLiteralString"u8);
- writer.WriteStringValue(RequiredLiteralString.ToString());
+ writer.WriteStringValue(RequiredLiteralString);
writer.WritePropertyName("requiredLiteralInt"u8);
- writer.WriteNumberValue(RequiredLiteralInt.ToSerialInt32());
+ writer.WriteNumberValue(RequiredLiteralInt);
writer.WritePropertyName("requiredLiteralFloat"u8);
- writer.WriteNumberValue(RequiredLiteralFloat.ToSerialSingle());
+ writer.WriteNumberValue(RequiredLiteralFloat);
writer.WritePropertyName("requiredLiteralBool"u8);
writer.WriteBooleanValue(RequiredLiteralBool);
if (Optional.IsDefined(OptionalLiteralString))
{
writer.WritePropertyName("optionalLiteralString"u8);
- writer.WriteStringValue(OptionalLiteralString.Value.ToString());
+ writer.WriteStringValue(OptionalLiteralString);
}
if (Optional.IsDefined(OptionalLiteralInt))
{
writer.WritePropertyName("optionalLiteralInt"u8);
- writer.WriteNumberValue(OptionalLiteralInt.Value.ToSerialInt32());
+ writer.WriteNumberValue(OptionalLiteralInt.Value);
}
if (Optional.IsDefined(OptionalLiteralFloat))
{
writer.WritePropertyName("optionalLiteralFloat"u8);
- writer.WriteNumberValue(OptionalLiteralFloat.Value.ToSerialSingle());
+ writer.WriteNumberValue(OptionalLiteralFloat.Value);
}
if (Optional.IsDefined(OptionalLiteralBool))
{
@@ -149,13 +149,13 @@ internal static ThingModel DeserializeThingModel(JsonElement element, ModelReade
}
string name = default;
BinaryData requiredUnion = default;
- ThingModelRequiredLiteralString requiredLiteralString = default;
- ThingModelRequiredLiteralInt requiredLiteralInt = default;
- ThingModelRequiredLiteralFloat requiredLiteralFloat = default;
+ string requiredLiteralString = default;
+ int requiredLiteralInt = default;
+ float requiredLiteralFloat = default;
bool requiredLiteralBool = default;
- ThingModelOptionalLiteralString? optionalLiteralString = default;
- ThingModelOptionalLiteralInt? optionalLiteralInt = default;
- ThingModelOptionalLiteralFloat? optionalLiteralFloat = default;
+ string optionalLiteralString = default;
+ int? optionalLiteralInt = default;
+ float? optionalLiteralFloat = default;
bool? optionalLiteralBool = default;
string requiredBadDescription = default;
IList optionalNullableList = default;
@@ -175,17 +175,17 @@ internal static ThingModel DeserializeThingModel(JsonElement element, ModelReade
}
if (prop.NameEquals("requiredLiteralString"u8))
{
- requiredLiteralString = new ThingModelRequiredLiteralString(prop.Value.GetString());
+ requiredLiteralString = prop.Value.GetString();
continue;
}
if (prop.NameEquals("requiredLiteralInt"u8))
{
- requiredLiteralInt = new ThingModelRequiredLiteralInt(prop.Value.GetInt32());
+ requiredLiteralInt = prop.Value.GetInt32();
continue;
}
if (prop.NameEquals("requiredLiteralFloat"u8))
{
- requiredLiteralFloat = new ThingModelRequiredLiteralFloat(prop.Value.GetSingle());
+ requiredLiteralFloat = prop.Value.GetSingle();
continue;
}
if (prop.NameEquals("requiredLiteralBool"u8))
@@ -195,11 +195,7 @@ internal static ThingModel DeserializeThingModel(JsonElement element, ModelReade
}
if (prop.NameEquals("optionalLiteralString"u8))
{
- if (prop.Value.ValueKind == JsonValueKind.Null)
- {
- continue;
- }
- optionalLiteralString = new ThingModelOptionalLiteralString(prop.Value.GetString());
+ optionalLiteralString = prop.Value.GetString();
continue;
}
if (prop.NameEquals("optionalLiteralInt"u8))
@@ -208,7 +204,7 @@ internal static ThingModel DeserializeThingModel(JsonElement element, ModelReade
{
continue;
}
- optionalLiteralInt = new ThingModelOptionalLiteralInt(prop.Value.GetInt32());
+ optionalLiteralInt = prop.Value.GetInt32();
continue;
}
if (prop.NameEquals("optionalLiteralFloat"u8))
@@ -217,7 +213,7 @@ internal static ThingModel DeserializeThingModel(JsonElement element, ModelReade
{
continue;
}
- optionalLiteralFloat = new ThingModelOptionalLiteralFloat(prop.Value.GetSingle());
+ optionalLiteralFloat = prop.Value.GetSingle();
continue;
}
if (prop.NameEquals("optionalLiteralBool"u8))
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModel.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModel.cs
index 472eeb446526..960e79411a5a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModel.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModel.cs
@@ -52,7 +52,7 @@ public ThingModel(string name, BinaryData requiredUnion, string requiredBadDescr
/// optional nullable collection.
/// required nullable collection.
/// Keeps track of any properties unknown to the library.
- internal ThingModel(string name, BinaryData requiredUnion, ThingModelRequiredLiteralString requiredLiteralString, ThingModelRequiredLiteralInt requiredLiteralInt, ThingModelRequiredLiteralFloat requiredLiteralFloat, bool requiredLiteralBool, ThingModelOptionalLiteralString? optionalLiteralString, ThingModelOptionalLiteralInt? optionalLiteralInt, ThingModelOptionalLiteralFloat? optionalLiteralFloat, bool? optionalLiteralBool, string requiredBadDescription, IList optionalNullableList, IList requiredNullableList, IDictionary additionalBinaryDataProperties)
+ internal ThingModel(string name, BinaryData requiredUnion, string requiredLiteralString, int requiredLiteralInt, float requiredLiteralFloat, bool requiredLiteralBool, string optionalLiteralString, int? optionalLiteralInt, float? optionalLiteralFloat, bool? optionalLiteralBool, string requiredBadDescription, IList optionalNullableList, IList requiredNullableList, IDictionary additionalBinaryDataProperties)
{
Name = name;
RequiredUnion = requiredUnion;
@@ -118,25 +118,25 @@ internal ThingModel(string name, BinaryData requiredUnion, ThingModelRequiredLit
public BinaryData RequiredUnion { get; set; }
/// required literal string.
- public ThingModelRequiredLiteralString RequiredLiteralString { get; } = "accept";
+ public string RequiredLiteralString { get; } = "accept";
/// required literal int.
- public ThingModelRequiredLiteralInt RequiredLiteralInt { get; } = 123;
+ public int RequiredLiteralInt { get; } = 123;
/// required literal float.
- public ThingModelRequiredLiteralFloat RequiredLiteralFloat { get; } = 1.23F;
+ public float RequiredLiteralFloat { get; } = 1.23F;
/// required literal bool.
public bool RequiredLiteralBool { get; } = false;
/// optional literal string.
- public ThingModelOptionalLiteralString? OptionalLiteralString { get; set; }
+ public string OptionalLiteralString { get; set; }
/// optional literal int.
- public ThingModelOptionalLiteralInt? OptionalLiteralInt { get; set; }
+ public int? OptionalLiteralInt { get; set; }
/// optional literal float.
- public ThingModelOptionalLiteralFloat? OptionalLiteralFloat { get; set; }
+ public float? OptionalLiteralFloat { get; set; }
/// optional literal bool.
public bool? OptionalLiteralBool { get; set; }
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralFloat.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralFloat.Serialization.cs
deleted file mode 100644
index 979acbef69b1..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralFloat.Serialization.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace BasicTypeSpec
-{
- ///
- public readonly partial struct ThingModelOptionalLiteralFloat
- {
- internal float ToSerialSingle() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralFloat.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralFloat.cs
deleted file mode 100644
index cddb8393b790..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralFloat.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-
-namespace BasicTypeSpec
-{
- /// The ThingModel_optionalLiteralFloat.
- public readonly partial struct ThingModelOptionalLiteralFloat : IEquatable
- {
- private readonly float _value;
- /// 4.56.
- private const float _456Value = 4.56F;
-
- /// Initializes a new instance of .
- /// The value.
- public ThingModelOptionalLiteralFloat(float value)
- {
- _value = value;
- }
-
- /// 4.56.
- public static ThingModelOptionalLiteralFloat _456 { get; } = new ThingModelOptionalLiteralFloat(_456Value);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(ThingModelOptionalLiteralFloat left, ThingModelOptionalLiteralFloat right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(ThingModelOptionalLiteralFloat left, ThingModelOptionalLiteralFloat right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator ThingModelOptionalLiteralFloat(float value) => new ThingModelOptionalLiteralFloat(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is ThingModelOptionalLiteralFloat other && Equals(other);
-
- ///
- public bool Equals(ThingModelOptionalLiteralFloat other) => Equals(_value, other._value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value.GetHashCode();
-
- ///
- public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralInt.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralInt.Serialization.cs
deleted file mode 100644
index c3d97e54678f..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralInt.Serialization.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace BasicTypeSpec
-{
- ///
- public readonly partial struct ThingModelOptionalLiteralInt
- {
- internal int ToSerialInt32() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralInt.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralInt.cs
deleted file mode 100644
index 8c01b625d73b..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralInt.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-
-namespace BasicTypeSpec
-{
- /// The ThingModel_optionalLiteralInt.
- public readonly partial struct ThingModelOptionalLiteralInt : IEquatable
- {
- private readonly int _value;
- /// 456.
- private const int _456Value = 456;
-
- /// Initializes a new instance of .
- /// The value.
- public ThingModelOptionalLiteralInt(int value)
- {
- _value = value;
- }
-
- /// 456.
- public static ThingModelOptionalLiteralInt _456 { get; } = new ThingModelOptionalLiteralInt(_456Value);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(ThingModelOptionalLiteralInt left, ThingModelOptionalLiteralInt right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(ThingModelOptionalLiteralInt left, ThingModelOptionalLiteralInt right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator ThingModelOptionalLiteralInt(int value) => new ThingModelOptionalLiteralInt(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is ThingModelOptionalLiteralInt other && Equals(other);
-
- ///
- public bool Equals(ThingModelOptionalLiteralInt other) => Equals(_value, other._value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value.GetHashCode();
-
- ///
- public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralString.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralString.cs
deleted file mode 100644
index 29d9c67646b2..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelOptionalLiteralString.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace BasicTypeSpec
-{
- /// The ThingModel_optionalLiteralString.
- public readonly partial struct ThingModelOptionalLiteralString : IEquatable
- {
- private readonly string _value;
- /// reject.
- private const string RejectValue = "reject";
-
- /// Initializes a new instance of .
- /// The value.
- /// is null.
- public ThingModelOptionalLiteralString(string value)
- {
- Argument.AssertNotNull(value, nameof(value));
-
- _value = value;
- }
-
- /// reject.
- public static ThingModelOptionalLiteralString Reject { get; } = new ThingModelOptionalLiteralString(RejectValue);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(ThingModelOptionalLiteralString left, ThingModelOptionalLiteralString right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(ThingModelOptionalLiteralString left, ThingModelOptionalLiteralString right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator ThingModelOptionalLiteralString(string value) => new ThingModelOptionalLiteralString(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is ThingModelOptionalLiteralString other && Equals(other);
-
- ///
- public bool Equals(ThingModelOptionalLiteralString other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
-
- ///
- public override string ToString() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralFloat.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralFloat.Serialization.cs
deleted file mode 100644
index 6b0d78b8fabe..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralFloat.Serialization.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace BasicTypeSpec
-{
- ///
- public readonly partial struct ThingModelRequiredLiteralFloat
- {
- internal float ToSerialSingle() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralFloat.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralFloat.cs
deleted file mode 100644
index 4d08631cb6e9..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralFloat.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-
-namespace BasicTypeSpec
-{
- /// The ThingModel_requiredLiteralFloat.
- public readonly partial struct ThingModelRequiredLiteralFloat : IEquatable
- {
- private readonly float _value;
- /// 1.23.
- private const float _123Value = 1.23F;
-
- /// Initializes a new instance of .
- /// The value.
- public ThingModelRequiredLiteralFloat(float value)
- {
- _value = value;
- }
-
- /// 1.23.
- public static ThingModelRequiredLiteralFloat _123 { get; } = new ThingModelRequiredLiteralFloat(_123Value);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(ThingModelRequiredLiteralFloat left, ThingModelRequiredLiteralFloat right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(ThingModelRequiredLiteralFloat left, ThingModelRequiredLiteralFloat right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator ThingModelRequiredLiteralFloat(float value) => new ThingModelRequiredLiteralFloat(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is ThingModelRequiredLiteralFloat other && Equals(other);
-
- ///
- public bool Equals(ThingModelRequiredLiteralFloat other) => Equals(_value, other._value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value.GetHashCode();
-
- ///
- public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralInt.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralInt.Serialization.cs
deleted file mode 100644
index 98dcb9e2ff0c..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralInt.Serialization.cs
+++ /dev/null
@@ -1,15 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace BasicTypeSpec
-{
- ///
- public readonly partial struct ThingModelRequiredLiteralInt
- {
- internal int ToSerialInt32() => _value;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralInt.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralInt.cs
deleted file mode 100644
index 3c50b2bfb8b5..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralInt.cs
+++ /dev/null
@@ -1,59 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-using System.Globalization;
-
-namespace BasicTypeSpec
-{
- /// The ThingModel_requiredLiteralInt.
- public readonly partial struct ThingModelRequiredLiteralInt : IEquatable
- {
- private readonly int _value;
- /// 123.
- private const int _123Value = 123;
-
- /// Initializes a new instance of .
- /// The value.
- public ThingModelRequiredLiteralInt(int value)
- {
- _value = value;
- }
-
- /// 123.
- public static ThingModelRequiredLiteralInt _123 { get; } = new ThingModelRequiredLiteralInt(_123Value);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(ThingModelRequiredLiteralInt left, ThingModelRequiredLiteralInt right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(ThingModelRequiredLiteralInt left, ThingModelRequiredLiteralInt right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator ThingModelRequiredLiteralInt(int value) => new ThingModelRequiredLiteralInt(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is ThingModelRequiredLiteralInt other && Equals(other);
-
- ///
- public bool Equals(ThingModelRequiredLiteralInt other) => Equals(_value, other._value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value.GetHashCode();
-
- ///
- public override string ToString() => _value.ToString(CultureInfo.InvariantCulture);
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralString.cs b/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralString.cs
deleted file mode 100644
index 8c2ed1360460..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Local/Basic-TypeSpec/src/Generated/Models/ThingModelRequiredLiteralString.cs
+++ /dev/null
@@ -1,61 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace BasicTypeSpec
-{
- /// The ThingModel_requiredLiteralString.
- public readonly partial struct ThingModelRequiredLiteralString : IEquatable
- {
- private readonly string _value;
- /// accept.
- private const string AcceptValue = "accept";
-
- /// Initializes a new instance of .
- /// The value.
- /// is null.
- public ThingModelRequiredLiteralString(string value)
- {
- Argument.AssertNotNull(value, nameof(value));
-
- _value = value;
- }
-
- /// accept.
- public static ThingModelRequiredLiteralString Accept { get; } = new ThingModelRequiredLiteralString(AcceptValue);
-
- /// Determines if two values are the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator ==(ThingModelRequiredLiteralString left, ThingModelRequiredLiteralString right) => left.Equals(right);
-
- /// Determines if two values are not the same.
- /// The left value to compare.
- /// The right value to compare.
- public static bool operator !=(ThingModelRequiredLiteralString left, ThingModelRequiredLiteralString right) => !left.Equals(right);
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator ThingModelRequiredLiteralString(string value) => new ThingModelRequiredLiteralString(value);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => obj is ThingModelRequiredLiteralString other && Equals(other);
-
- ///
- public bool Equals(ThingModelRequiredLiteralString other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
-
- ///
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
-
- ///
- public override string ToString() => _value;
- }
-}
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 c381435699d7..619903aa0a61 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
@@ -9,214 +9,10 @@
{
"$id": "2",
"kind": "enum",
- "name": "ThingModel_requiredLiteralString",
- "valueType": {
- "$id": "3",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "values": [
- {
- "$id": "4",
- "kind": "enumvalue",
- "name": "accept",
- "value": "accept",
- "doc": "accept",
- "valueType": {
- "$ref": "3"
- },
- "enumType": {
- "$ref": "2"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "BasicTypeSpec",
- "doc": "The ThingModel_requiredLiteralString",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Spread,Json",
- "decorators": []
- },
- {
- "$id": "5",
- "kind": "enum",
- "name": "ThingModel_requiredLiteralInt",
- "valueType": {
- "$id": "6",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "values": [
- {
- "$id": "7",
- "kind": "enumvalue",
- "name": "123",
- "value": 123,
- "doc": "123",
- "valueType": {
- "$ref": "6"
- },
- "enumType": {
- "$ref": "5"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "BasicTypeSpec",
- "doc": "The ThingModel_requiredLiteralInt",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Spread,Json",
- "decorators": []
- },
- {
- "$id": "8",
- "kind": "enum",
- "name": "ThingModel_requiredLiteralFloat",
- "valueType": {
- "$id": "9",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
- "decorators": []
- },
- "values": [
- {
- "$id": "10",
- "kind": "enumvalue",
- "name": "1.23",
- "value": 1.23,
- "doc": "1.23",
- "valueType": {
- "$ref": "9"
- },
- "enumType": {
- "$ref": "8"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "BasicTypeSpec",
- "doc": "The ThingModel_requiredLiteralFloat",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Spread,Json",
- "decorators": []
- },
- {
- "$id": "11",
- "kind": "enum",
- "name": "ThingModel_optionalLiteralString",
- "valueType": {
- "$id": "12",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "values": [
- {
- "$id": "13",
- "kind": "enumvalue",
- "name": "reject",
- "value": "reject",
- "doc": "reject",
- "valueType": {
- "$ref": "12"
- },
- "enumType": {
- "$ref": "11"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "BasicTypeSpec",
- "doc": "The ThingModel_optionalLiteralString",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Spread,Json",
- "decorators": []
- },
- {
- "$id": "14",
- "kind": "enum",
- "name": "ThingModel_optionalLiteralInt",
- "valueType": {
- "$id": "15",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "values": [
- {
- "$id": "16",
- "kind": "enumvalue",
- "name": "456",
- "value": 456,
- "doc": "456",
- "valueType": {
- "$ref": "15"
- },
- "enumType": {
- "$ref": "14"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "BasicTypeSpec",
- "doc": "The ThingModel_optionalLiteralInt",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Spread,Json",
- "decorators": []
- },
- {
- "$id": "17",
- "kind": "enum",
- "name": "ThingModel_optionalLiteralFloat",
- "valueType": {
- "$id": "18",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
- "decorators": []
- },
- "values": [
- {
- "$id": "19",
- "kind": "enumvalue",
- "name": "4.56",
- "value": 4.56,
- "doc": "4.56",
- "valueType": {
- "$ref": "18"
- },
- "enumType": {
- "$ref": "17"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "BasicTypeSpec",
- "doc": "The ThingModel_optionalLiteralFloat",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Spread,Json",
- "decorators": []
- },
- {
- "$id": "20",
- "kind": "enum",
"name": "StringFixedEnum",
"crossLanguageDefinitionId": "BasicTypeSpec.StringFixedEnum",
"valueType": {
- "$id": "21",
+ "$id": "3",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -224,53 +20,53 @@
},
"values": [
{
- "$id": "22",
+ "$id": "4",
"kind": "enumvalue",
"name": "One",
"value": "1",
"valueType": {
- "$id": "23",
+ "$id": "5",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "20"
+ "$ref": "2"
},
"decorators": []
},
{
- "$id": "24",
+ "$id": "6",
"kind": "enumvalue",
"name": "Two",
"value": "2",
"valueType": {
- "$id": "25",
+ "$id": "7",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "20"
+ "$ref": "2"
},
"decorators": []
},
{
- "$id": "26",
+ "$id": "8",
"kind": "enumvalue",
"name": "Four",
"value": "4",
"valueType": {
- "$id": "27",
+ "$id": "9",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "20"
+ "$ref": "2"
},
"decorators": []
}
@@ -283,12 +79,12 @@
"decorators": []
},
{
- "$id": "28",
+ "$id": "10",
"kind": "enum",
"name": "StringExtensibleEnum",
"crossLanguageDefinitionId": "BasicTypeSpec.StringExtensibleEnum",
"valueType": {
- "$id": "29",
+ "$id": "11",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -296,53 +92,53 @@
},
"values": [
{
- "$id": "30",
+ "$id": "12",
"kind": "enumvalue",
"name": "One",
"value": "1",
"valueType": {
- "$id": "31",
+ "$id": "13",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "28"
+ "$ref": "10"
},
"decorators": []
},
{
- "$id": "32",
+ "$id": "14",
"kind": "enumvalue",
"name": "Two",
"value": "2",
"valueType": {
- "$id": "33",
+ "$id": "15",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "28"
+ "$ref": "10"
},
"decorators": []
},
{
- "$id": "34",
+ "$id": "16",
"kind": "enumvalue",
"name": "Four",
"value": "4",
"valueType": {
- "$id": "35",
+ "$id": "17",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "28"
+ "$ref": "10"
},
"decorators": []
}
@@ -355,12 +151,12 @@
"decorators": []
},
{
- "$id": "36",
+ "$id": "18",
"kind": "enum",
"name": "IntExtensibleEnum",
"crossLanguageDefinitionId": "BasicTypeSpec.IntExtensibleEnum",
"valueType": {
- "$id": "37",
+ "$id": "19",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -368,53 +164,53 @@
},
"values": [
{
- "$id": "38",
+ "$id": "20",
"kind": "enumvalue",
"name": "One",
"value": 1,
"valueType": {
- "$id": "39",
+ "$id": "21",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
"enumType": {
- "$ref": "36"
+ "$ref": "18"
},
"decorators": []
},
{
- "$id": "40",
+ "$id": "22",
"kind": "enumvalue",
"name": "Two",
"value": 2,
"valueType": {
- "$id": "41",
+ "$id": "23",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
"enumType": {
- "$ref": "36"
+ "$ref": "18"
},
"decorators": []
},
{
- "$id": "42",
+ "$id": "24",
"kind": "enumvalue",
"name": "Four",
"value": 4,
"valueType": {
- "$id": "43",
+ "$id": "25",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
"enumType": {
- "$ref": "36"
+ "$ref": "18"
},
"decorators": []
}
@@ -427,12 +223,12 @@
"decorators": []
},
{
- "$id": "44",
+ "$id": "26",
"kind": "enum",
"name": "FloatExtensibleEnum",
"crossLanguageDefinitionId": "BasicTypeSpec.FloatExtensibleEnum",
"valueType": {
- "$id": "45",
+ "$id": "27",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -440,53 +236,53 @@
},
"values": [
{
- "$id": "46",
+ "$id": "28",
"kind": "enumvalue",
"name": "OneDotOne",
"value": 1.1,
"valueType": {
- "$id": "47",
+ "$id": "29",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "44"
+ "$ref": "26"
},
"decorators": []
},
{
- "$id": "48",
+ "$id": "30",
"kind": "enumvalue",
"name": "TwoDotTwo",
"value": 2.2,
"valueType": {
- "$id": "49",
+ "$id": "31",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "44"
+ "$ref": "26"
},
"decorators": []
},
{
- "$id": "50",
+ "$id": "32",
"kind": "enumvalue",
"name": "FourDotFour",
"value": 4.4,
"valueType": {
- "$id": "51",
+ "$id": "33",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "44"
+ "$ref": "26"
},
"decorators": []
}
@@ -499,12 +295,12 @@
"decorators": []
},
{
- "$id": "52",
+ "$id": "34",
"kind": "enum",
"name": "FloatExtensibleEnumWithIntValue",
"crossLanguageDefinitionId": "BasicTypeSpec.FloatExtensibleEnumWithIntValue",
"valueType": {
- "$id": "53",
+ "$id": "35",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -512,53 +308,53 @@
},
"values": [
{
- "$id": "54",
+ "$id": "36",
"kind": "enumvalue",
"name": "One",
"value": 1,
"valueType": {
- "$id": "55",
+ "$id": "37",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "52"
+ "$ref": "34"
},
"decorators": []
},
{
- "$id": "56",
+ "$id": "38",
"kind": "enumvalue",
"name": "Two",
"value": 2,
"valueType": {
- "$id": "57",
+ "$id": "39",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "52"
+ "$ref": "34"
},
"decorators": []
},
{
- "$id": "58",
+ "$id": "40",
"kind": "enumvalue",
"name": "Four",
"value": 4,
"valueType": {
- "$id": "59",
+ "$id": "41",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "52"
+ "$ref": "34"
},
"decorators": []
}
@@ -571,12 +367,12 @@
"decorators": []
},
{
- "$id": "60",
+ "$id": "42",
"kind": "enum",
"name": "FloatFixedEnum",
"crossLanguageDefinitionId": "BasicTypeSpec.FloatFixedEnum",
"valueType": {
- "$id": "61",
+ "$id": "43",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -584,53 +380,53 @@
},
"values": [
{
- "$id": "62",
+ "$id": "44",
"kind": "enumvalue",
"name": "OneDotOne",
"value": 1.1,
"valueType": {
- "$id": "63",
+ "$id": "45",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "60"
+ "$ref": "42"
},
"decorators": []
},
{
- "$id": "64",
+ "$id": "46",
"kind": "enumvalue",
"name": "TwoDotTwo",
"value": 2.2,
"valueType": {
- "$id": "65",
+ "$id": "47",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "60"
+ "$ref": "42"
},
"decorators": []
},
{
- "$id": "66",
+ "$id": "48",
"kind": "enumvalue",
"name": "FourDotFour",
"value": 4.4,
"valueType": {
- "$id": "67",
+ "$id": "49",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "60"
+ "$ref": "42"
},
"decorators": []
}
@@ -643,12 +439,12 @@
"decorators": []
},
{
- "$id": "68",
+ "$id": "50",
"kind": "enum",
"name": "FloatFixedEnumWithIntValue",
"crossLanguageDefinitionId": "BasicTypeSpec.FloatFixedEnumWithIntValue",
"valueType": {
- "$id": "69",
+ "$id": "51",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -656,53 +452,53 @@
},
"values": [
{
- "$id": "70",
+ "$id": "52",
"kind": "enumvalue",
"name": "One",
"value": 1,
"valueType": {
- "$id": "71",
+ "$id": "53",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
"enumType": {
- "$ref": "68"
+ "$ref": "50"
},
"decorators": []
},
{
- "$id": "72",
+ "$id": "54",
"kind": "enumvalue",
"name": "Two",
"value": 2,
"valueType": {
- "$id": "73",
+ "$id": "55",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
"enumType": {
- "$ref": "68"
+ "$ref": "50"
},
"decorators": []
},
{
- "$id": "74",
+ "$id": "56",
"kind": "enumvalue",
"name": "Four",
"value": 4,
"valueType": {
- "$id": "75",
+ "$id": "57",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
"enumType": {
- "$ref": "68"
+ "$ref": "50"
},
"decorators": []
}
@@ -715,135 +511,873 @@
"decorators": []
},
{
- "$id": "76",
- "kind": "enum",
- "name": "IntFixedEnum",
- "crossLanguageDefinitionId": "BasicTypeSpec.IntFixedEnum",
+ "$id": "58",
+ "kind": "enum",
+ "name": "IntFixedEnum",
+ "crossLanguageDefinitionId": "BasicTypeSpec.IntFixedEnum",
+ "valueType": {
+ "$id": "59",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "60",
+ "kind": "enumvalue",
+ "name": "One",
+ "value": 1,
+ "valueType": {
+ "$id": "61",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "58"
+ },
+ "decorators": []
+ },
+ {
+ "$id": "62",
+ "kind": "enumvalue",
+ "name": "Two",
+ "value": 2,
+ "valueType": {
+ "$id": "63",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "58"
+ },
+ "decorators": []
+ },
+ {
+ "$id": "64",
+ "kind": "enumvalue",
+ "name": "Four",
+ "value": 4,
+ "valueType": {
+ "$id": "65",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "58"
+ },
+ "decorators": []
+ }
+ ],
+ "namespace": "BasicTypeSpec",
+ "doc": "int fixed enum",
+ "isFixed": true,
+ "isFlags": false,
+ "usage": "Input,Output,Json",
+ "decorators": []
+ },
+ {
+ "$id": "66",
+ "kind": "enum",
+ "name": "Versions",
+ "crossLanguageDefinitionId": "BasicTypeSpec.Versions",
+ "valueType": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "68",
+ "kind": "enumvalue",
+ "name": "2024-07-16-preview",
+ "value": "2024-07-16-preview",
+ "valueType": {
+ "$id": "69",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "66"
+ },
+ "decorators": []
+ },
+ {
+ "$id": "70",
+ "kind": "enumvalue",
+ "name": "2024-08-16-preview",
+ "value": "2024-08-16-preview",
+ "valueType": {
+ "$id": "71",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "66"
+ },
+ "decorators": []
+ }
+ ],
+ "namespace": "BasicTypeSpec",
+ "isFixed": true,
+ "isFlags": false,
+ "usage": "ApiVersionEnum",
+ "decorators": []
+ }
+ ],
+ "constants": [
+ {
+ "$id": "72",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralString",
+ "namespace": "BasicTypeSpec",
+ "usage": "Input,Output,Spread,Json",
+ "valueType": {
+ "$id": "73",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "accept",
+ "decorators": []
+ },
+ {
+ "$id": "74",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralInt",
+ "namespace": "BasicTypeSpec",
+ "usage": "Input,Output,Spread,Json",
+ "valueType": {
+ "$id": "75",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 123,
+ "decorators": []
+ },
+ {
+ "$id": "76",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralFloat",
+ "namespace": "BasicTypeSpec",
+ "usage": "Input,Output,Spread,Json",
+ "valueType": {
+ "$id": "77",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "value": 1.23,
+ "decorators": []
+ },
+ {
+ "$id": "78",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralBool",
+ "namespace": "BasicTypeSpec",
+ "usage": "Input,Output,Spread,Json",
+ "valueType": {
+ "$id": "79",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": false,
+ "decorators": []
+ },
+ {
+ "$id": "80",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralString",
+ "namespace": "BasicTypeSpec",
+ "usage": "Input,Output,Spread,Json",
+ "valueType": {
+ "$id": "81",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "reject",
+ "decorators": []
+ },
+ {
+ "$id": "82",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralInt",
+ "namespace": "BasicTypeSpec",
+ "usage": "Input,Output,Spread,Json",
+ "valueType": {
+ "$id": "83",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 456,
+ "decorators": []
+ },
+ {
+ "$id": "84",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralFloat",
+ "namespace": "BasicTypeSpec",
+ "usage": "Input,Output,Spread,Json",
+ "valueType": {
+ "$id": "85",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "value": 4.56,
+ "decorators": []
+ },
+ {
+ "$id": "86",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralBool",
+ "namespace": "BasicTypeSpec",
+ "usage": "Input,Output,Spread,Json",
+ "valueType": {
+ "$id": "87",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": true,
+ "decorators": []
+ },
+ {
+ "$id": "88",
+ "kind": "constant",
+ "name": "sayHiContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "89",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "90",
+ "kind": "constant",
+ "name": "HelloAgainRequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "91",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "text/plain",
+ "decorators": []
+ },
+ {
+ "$id": "92",
+ "kind": "constant",
+ "name": "helloAgainContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "93",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "94",
+ "kind": "constant",
+ "name": "HelloAgainRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "95",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "text/plain",
+ "decorators": []
+ },
+ {
+ "$id": "96",
+ "kind": "constant",
+ "name": "noContentTypeContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "97",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "98",
+ "kind": "constant",
+ "name": "noContentTypeContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "99",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "100",
+ "kind": "constant",
+ "name": "helloDemo2ContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "101",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "102",
+ "kind": "constant",
+ "name": "createLiteralContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "103",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "104",
+ "kind": "constant",
+ "name": "createLiteralContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "105",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "106",
+ "kind": "constant",
+ "name": "HelloLiteralRequestP1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "107",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "test",
+ "decorators": []
+ },
+ {
+ "$id": "108",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralInt1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "109",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 123,
+ "decorators": []
+ },
+ {
+ "$id": "110",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralBool1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "111",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": true,
+ "decorators": []
+ },
+ {
+ "$id": "112",
+ "kind": "constant",
+ "name": "helloLiteralContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "113",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "114",
+ "kind": "constant",
+ "name": "HelloLiteralRequestP11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "115",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "test",
+ "decorators": []
+ },
+ {
+ "$id": "116",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralInt2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "117",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 123,
+ "decorators": []
+ },
+ {
+ "$id": "118",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralBool2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "119",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": true,
+ "decorators": []
+ },
+ {
+ "$id": "120",
+ "kind": "constant",
+ "name": "topActionContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "121",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "122",
+ "kind": "constant",
+ "name": "topAction2ContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "123",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "124",
+ "kind": "constant",
+ "name": "patchActionContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "125",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "126",
+ "kind": "constant",
+ "name": "patchActionContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "127",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "128",
+ "kind": "constant",
+ "name": "anonymousBodyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "129",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "130",
+ "kind": "constant",
+ "name": "anonymousBodyContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "131",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "132",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralString1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "133",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "accept",
+ "decorators": []
+ },
+ {
+ "$id": "134",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralInt3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "135",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 123,
+ "decorators": []
+ },
+ {
+ "$id": "136",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralFloat1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "137",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "value": 1.23,
+ "decorators": []
+ },
+ {
+ "$id": "138",
+ "kind": "constant",
+ "name": "ThingModelRequiredLiteralBool1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "139",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": false,
+ "decorators": []
+ },
+ {
+ "$id": "140",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralString1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "141",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "reject",
+ "decorators": []
+ },
+ {
+ "$id": "142",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralInt1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "143",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 456,
+ "decorators": []
+ },
+ {
+ "$id": "144",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralFloat1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "145",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "value": 4.56,
+ "decorators": []
+ },
+ {
+ "$id": "146",
+ "kind": "constant",
+ "name": "ThingModelOptionalLiteralBool3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "147",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": true,
+ "decorators": []
+ },
+ {
+ "$id": "148",
+ "kind": "constant",
+ "name": "friendlyModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "149",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "150",
+ "kind": "constant",
+ "name": "friendlyModelContentType1",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "77",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
+ "$id": "151",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "78",
- "kind": "enumvalue",
- "name": "One",
- "value": 1,
- "valueType": {
- "$id": "79",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "enumType": {
- "$ref": "76"
- },
- "decorators": []
- },
- {
- "$id": "80",
- "kind": "enumvalue",
- "name": "Two",
- "value": 2,
- "valueType": {
- "$id": "81",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "enumType": {
- "$ref": "76"
- },
- "decorators": []
- },
- {
- "$id": "82",
- "kind": "enumvalue",
- "name": "Four",
- "value": 4,
- "valueType": {
- "$id": "83",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "enumType": {
- "$ref": "76"
- },
- "decorators": []
- }
- ],
- "namespace": "BasicTypeSpec",
- "doc": "int fixed enum",
- "isFixed": true,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "value": "application/json",
"decorators": []
},
{
- "$id": "84",
- "kind": "enum",
- "name": "Versions",
- "crossLanguageDefinitionId": "BasicTypeSpec.Versions",
+ "$id": "152",
+ "kind": "constant",
+ "name": "projectedNameModelContentType",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "85",
+ "$id": "153",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "86",
- "kind": "enumvalue",
- "name": "2024-07-16-preview",
- "value": "2024-07-16-preview",
- "valueType": {
- "$id": "87",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "enumType": {
- "$ref": "84"
- },
- "decorators": []
- },
- {
- "$id": "88",
- "kind": "enumvalue",
- "name": "2024-08-16-preview",
- "value": "2024-08-16-preview",
- "valueType": {
- "$id": "89",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "enumType": {
- "$ref": "84"
- },
- "decorators": []
- }
- ],
- "namespace": "BasicTypeSpec",
- "isFixed": true,
- "isFlags": false,
- "usage": "ApiVersionEnum",
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "154",
+ "kind": "constant",
+ "name": "projectedNameModelContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "155",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "156",
+ "kind": "constant",
+ "name": "returnsAnonymousModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "157",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "158",
+ "kind": "constant",
+ "name": "GetUnknownValueResponse6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "159",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "Sunday",
+ "decorators": []
+ },
+ {
+ "$id": "160",
+ "kind": "constant",
+ "name": "internalProtocolContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "161",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "162",
+ "kind": "constant",
+ "name": "internalProtocolContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "163",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
"decorators": []
}
],
"models": [
{
- "$id": "90",
+ "$id": "164",
"kind": "model",
"name": "ThingModel",
"namespace": "BasicTypeSpec",
@@ -853,13 +1387,13 @@
"decorators": [],
"properties": [
{
- "$id": "91",
+ "$id": "165",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "name of the ThingModel",
"type": {
- "$id": "92",
+ "$id": "166",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -872,37 +1406,37 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.name",
"serializationOptions": {
- "$id": "93",
+ "$id": "167",
"json": {
- "$id": "94",
+ "$id": "168",
"name": "name"
}
}
},
{
- "$id": "95",
+ "$id": "169",
"kind": "property",
"name": "requiredUnion",
"serializedName": "requiredUnion",
"doc": "required Union",
"type": {
- "$id": "96",
+ "$id": "170",
"kind": "union",
"name": "ThingModelRequiredUnion",
"variantTypes": [
{
- "$id": "97",
+ "$id": "171",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
{
- "$id": "98",
+ "$id": "172",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "99",
+ "$id": "173",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -912,7 +1446,7 @@
"decorators": []
},
{
- "$id": "100",
+ "$id": "174",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -929,27 +1463,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.requiredUnion",
"serializationOptions": {
- "$id": "101",
+ "$id": "175",
"json": {
- "$id": "102",
+ "$id": "176",
"name": "requiredUnion"
}
}
},
{
- "$id": "103",
+ "$id": "177",
"kind": "property",
"name": "requiredLiteralString",
"serializedName": "requiredLiteralString",
"doc": "required literal string",
"type": {
- "$id": "104",
- "kind": "constant",
- "valueType": {
- "$ref": "2"
- },
- "value": "accept",
- "decorators": []
+ "$ref": "72"
},
"optional": false,
"readOnly": false,
@@ -958,27 +1486,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.requiredLiteralString",
"serializationOptions": {
- "$id": "105",
+ "$id": "178",
"json": {
- "$id": "106",
+ "$id": "179",
"name": "requiredLiteralString"
}
}
},
{
- "$id": "107",
+ "$id": "180",
"kind": "property",
"name": "requiredLiteralInt",
"serializedName": "requiredLiteralInt",
"doc": "required literal int",
"type": {
- "$id": "108",
- "kind": "constant",
- "valueType": {
- "$ref": "5"
- },
- "value": 123,
- "decorators": []
+ "$ref": "74"
},
"optional": false,
"readOnly": false,
@@ -987,27 +1509,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.requiredLiteralInt",
"serializationOptions": {
- "$id": "109",
+ "$id": "181",
"json": {
- "$id": "110",
+ "$id": "182",
"name": "requiredLiteralInt"
}
}
},
{
- "$id": "111",
+ "$id": "183",
"kind": "property",
"name": "requiredLiteralFloat",
"serializedName": "requiredLiteralFloat",
"doc": "required literal float",
"type": {
- "$id": "112",
- "kind": "constant",
- "valueType": {
- "$ref": "8"
- },
- "value": 1.23,
- "decorators": []
+ "$ref": "76"
},
"optional": false,
"readOnly": false,
@@ -1016,31 +1532,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.requiredLiteralFloat",
"serializationOptions": {
- "$id": "113",
+ "$id": "184",
"json": {
- "$id": "114",
+ "$id": "185",
"name": "requiredLiteralFloat"
}
}
},
{
- "$id": "115",
+ "$id": "186",
"kind": "property",
"name": "requiredLiteralBool",
"serializedName": "requiredLiteralBool",
"doc": "required literal bool",
"type": {
- "$id": "116",
- "kind": "constant",
- "valueType": {
- "$id": "117",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
- "decorators": []
- },
- "value": false,
- "decorators": []
+ "$ref": "78"
},
"optional": false,
"readOnly": false,
@@ -1049,27 +1555,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.requiredLiteralBool",
"serializationOptions": {
- "$id": "118",
+ "$id": "187",
"json": {
- "$id": "119",
+ "$id": "188",
"name": "requiredLiteralBool"
}
}
},
{
- "$id": "120",
+ "$id": "189",
"kind": "property",
"name": "optionalLiteralString",
"serializedName": "optionalLiteralString",
"doc": "optional literal string",
"type": {
- "$id": "121",
- "kind": "constant",
- "valueType": {
- "$ref": "11"
- },
- "value": "reject",
- "decorators": []
+ "$ref": "80"
},
"optional": true,
"readOnly": false,
@@ -1078,27 +1578,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.optionalLiteralString",
"serializationOptions": {
- "$id": "122",
+ "$id": "190",
"json": {
- "$id": "123",
+ "$id": "191",
"name": "optionalLiteralString"
}
}
},
{
- "$id": "124",
+ "$id": "192",
"kind": "property",
"name": "optionalLiteralInt",
"serializedName": "optionalLiteralInt",
"doc": "optional literal int",
"type": {
- "$id": "125",
- "kind": "constant",
- "valueType": {
- "$ref": "14"
- },
- "value": 456,
- "decorators": []
+ "$ref": "82"
},
"optional": true,
"readOnly": false,
@@ -1107,27 +1601,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.optionalLiteralInt",
"serializationOptions": {
- "$id": "126",
+ "$id": "193",
"json": {
- "$id": "127",
+ "$id": "194",
"name": "optionalLiteralInt"
}
}
},
{
- "$id": "128",
+ "$id": "195",
"kind": "property",
"name": "optionalLiteralFloat",
"serializedName": "optionalLiteralFloat",
"doc": "optional literal float",
"type": {
- "$id": "129",
- "kind": "constant",
- "valueType": {
- "$ref": "17"
- },
- "value": 4.56,
- "decorators": []
+ "$ref": "84"
},
"optional": true,
"readOnly": false,
@@ -1136,31 +1624,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.optionalLiteralFloat",
"serializationOptions": {
- "$id": "130",
+ "$id": "196",
"json": {
- "$id": "131",
+ "$id": "197",
"name": "optionalLiteralFloat"
}
}
},
{
- "$id": "132",
+ "$id": "198",
"kind": "property",
"name": "optionalLiteralBool",
"serializedName": "optionalLiteralBool",
"doc": "optional literal bool",
"type": {
- "$id": "133",
- "kind": "constant",
- "valueType": {
- "$id": "134",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
- "decorators": []
- },
- "value": true,
- "decorators": []
+ "$ref": "86"
},
"optional": true,
"readOnly": false,
@@ -1169,21 +1647,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.optionalLiteralBool",
"serializationOptions": {
- "$id": "135",
+ "$id": "199",
"json": {
- "$id": "136",
+ "$id": "200",
"name": "optionalLiteralBool"
}
}
},
{
- "$id": "137",
+ "$id": "201",
"kind": "property",
"name": "requiredBadDescription",
"serializedName": "requiredBadDescription",
"doc": "description with xml <|endoftext|>",
"type": {
- "$id": "138",
+ "$id": "202",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1196,28 +1674,28 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.requiredBadDescription",
"serializationOptions": {
- "$id": "139",
+ "$id": "203",
"json": {
- "$id": "140",
+ "$id": "204",
"name": "requiredBadDescription"
}
}
},
{
- "$id": "141",
+ "$id": "205",
"kind": "property",
"name": "optionalNullableList",
"serializedName": "optionalNullableList",
"doc": "optional nullable collection",
"type": {
- "$id": "142",
+ "$id": "206",
"kind": "nullable",
"type": {
- "$id": "143",
+ "$id": "207",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "144",
+ "$id": "208",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1235,28 +1713,28 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.optionalNullableList",
"serializationOptions": {
- "$id": "145",
+ "$id": "209",
"json": {
- "$id": "146",
+ "$id": "210",
"name": "optionalNullableList"
}
}
},
{
- "$id": "147",
+ "$id": "211",
"kind": "property",
"name": "requiredNullableList",
"serializedName": "requiredNullableList",
"doc": "required nullable collection",
"type": {
- "$id": "148",
+ "$id": "212",
"kind": "nullable",
"type": {
- "$id": "149",
+ "$id": "213",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "150",
+ "$id": "214",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1274,9 +1752,9 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ThingModel.requiredNullableList",
"serializationOptions": {
- "$id": "151",
+ "$id": "215",
"json": {
- "$id": "152",
+ "$id": "216",
"name": "requiredNullableList"
}
}
@@ -1284,7 +1762,7 @@
]
},
{
- "$id": "153",
+ "$id": "217",
"kind": "model",
"name": "RoundTripModel",
"namespace": "BasicTypeSpec",
@@ -1294,13 +1772,13 @@
"decorators": [],
"properties": [
{
- "$id": "154",
+ "$id": "218",
"kind": "property",
"name": "requiredString",
"serializedName": "requiredString",
"doc": "Required string, illustrating a reference type property.",
"type": {
- "$id": "155",
+ "$id": "219",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1313,21 +1791,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredString",
"serializationOptions": {
- "$id": "156",
+ "$id": "220",
"json": {
- "$id": "157",
+ "$id": "221",
"name": "requiredString"
}
}
},
{
- "$id": "158",
+ "$id": "222",
"kind": "property",
"name": "requiredInt",
"serializedName": "requiredInt",
"doc": "Required int, illustrating a value type property.",
"type": {
- "$id": "159",
+ "$id": "223",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1340,25 +1818,25 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredInt",
"serializationOptions": {
- "$id": "160",
+ "$id": "224",
"json": {
- "$id": "161",
+ "$id": "225",
"name": "requiredInt"
}
}
},
{
- "$id": "162",
+ "$id": "226",
"kind": "property",
"name": "requiredCollection",
"serializedName": "requiredCollection",
"doc": "Required collection of enums",
"type": {
- "$id": "163",
+ "$id": "227",
"kind": "array",
"name": "ArrayStringFixedEnum",
"valueType": {
- "$ref": "20"
+ "$ref": "2"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1370,31 +1848,31 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredCollection",
"serializationOptions": {
- "$id": "164",
+ "$id": "228",
"json": {
- "$id": "165",
+ "$id": "229",
"name": "requiredCollection"
}
}
},
{
- "$id": "166",
+ "$id": "230",
"kind": "property",
"name": "requiredDictionary",
"serializedName": "requiredDictionary",
"doc": "Required dictionary of enums",
"type": {
- "$id": "167",
+ "$id": "231",
"kind": "dict",
"keyType": {
- "$id": "168",
+ "$id": "232",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "28"
+ "$ref": "10"
},
"decorators": []
},
@@ -1405,21 +1883,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredDictionary",
"serializationOptions": {
- "$id": "169",
+ "$id": "233",
"json": {
- "$id": "170",
+ "$id": "234",
"name": "requiredDictionary"
}
}
},
{
- "$id": "171",
+ "$id": "235",
"kind": "property",
"name": "requiredModel",
"serializedName": "requiredModel",
"doc": "Required model",
"type": {
- "$ref": "90"
+ "$ref": "164"
},
"optional": false,
"readOnly": false,
@@ -1428,21 +1906,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredModel",
"serializationOptions": {
- "$id": "172",
+ "$id": "236",
"json": {
- "$id": "173",
+ "$id": "237",
"name": "requiredModel"
}
}
},
{
- "$id": "174",
+ "$id": "238",
"kind": "property",
"name": "intExtensibleEnum",
"serializedName": "intExtensibleEnum",
"doc": "this is an int based extensible enum",
"type": {
- "$ref": "36"
+ "$ref": "18"
},
"optional": true,
"readOnly": false,
@@ -1451,25 +1929,25 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.intExtensibleEnum",
"serializationOptions": {
- "$id": "175",
+ "$id": "239",
"json": {
- "$id": "176",
+ "$id": "240",
"name": "intExtensibleEnum"
}
}
},
{
- "$id": "177",
+ "$id": "241",
"kind": "property",
"name": "intExtensibleEnumCollection",
"serializedName": "intExtensibleEnumCollection",
"doc": "this is a collection of int based extensible enum",
"type": {
- "$id": "178",
+ "$id": "242",
"kind": "array",
"name": "ArrayIntExtensibleEnum",
"valueType": {
- "$ref": "36"
+ "$ref": "18"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1481,21 +1959,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.intExtensibleEnumCollection",
"serializationOptions": {
- "$id": "179",
+ "$id": "243",
"json": {
- "$id": "180",
+ "$id": "244",
"name": "intExtensibleEnumCollection"
}
}
},
{
- "$id": "181",
+ "$id": "245",
"kind": "property",
"name": "floatExtensibleEnum",
"serializedName": "floatExtensibleEnum",
"doc": "this is a float based extensible enum",
"type": {
- "$ref": "44"
+ "$ref": "26"
},
"optional": true,
"readOnly": false,
@@ -1504,21 +1982,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatExtensibleEnum",
"serializationOptions": {
- "$id": "182",
+ "$id": "246",
"json": {
- "$id": "183",
+ "$id": "247",
"name": "floatExtensibleEnum"
}
}
},
{
- "$id": "184",
+ "$id": "248",
"kind": "property",
"name": "floatExtensibleEnumWithIntValue",
"serializedName": "floatExtensibleEnumWithIntValue",
"doc": "this is a float based extensible enum",
"type": {
- "$ref": "52"
+ "$ref": "34"
},
"optional": true,
"readOnly": false,
@@ -1527,25 +2005,25 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatExtensibleEnumWithIntValue",
"serializationOptions": {
- "$id": "185",
+ "$id": "249",
"json": {
- "$id": "186",
+ "$id": "250",
"name": "floatExtensibleEnumWithIntValue"
}
}
},
{
- "$id": "187",
+ "$id": "251",
"kind": "property",
"name": "floatExtensibleEnumCollection",
"serializedName": "floatExtensibleEnumCollection",
"doc": "this is a collection of float based extensible enum",
"type": {
- "$id": "188",
+ "$id": "252",
"kind": "array",
"name": "ArrayFloatExtensibleEnum",
"valueType": {
- "$ref": "44"
+ "$ref": "26"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1557,21 +2035,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatExtensibleEnumCollection",
"serializationOptions": {
- "$id": "189",
+ "$id": "253",
"json": {
- "$id": "190",
+ "$id": "254",
"name": "floatExtensibleEnumCollection"
}
}
},
{
- "$id": "191",
+ "$id": "255",
"kind": "property",
"name": "floatFixedEnum",
"serializedName": "floatFixedEnum",
"doc": "this is a float based fixed enum",
"type": {
- "$ref": "60"
+ "$ref": "42"
},
"optional": true,
"readOnly": false,
@@ -1580,21 +2058,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatFixedEnum",
"serializationOptions": {
- "$id": "192",
+ "$id": "256",
"json": {
- "$id": "193",
+ "$id": "257",
"name": "floatFixedEnum"
}
}
},
{
- "$id": "194",
+ "$id": "258",
"kind": "property",
"name": "floatFixedEnumWithIntValue",
"serializedName": "floatFixedEnumWithIntValue",
"doc": "this is a float based fixed enum",
"type": {
- "$ref": "68"
+ "$ref": "50"
},
"optional": true,
"readOnly": false,
@@ -1603,25 +2081,25 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatFixedEnumWithIntValue",
"serializationOptions": {
- "$id": "195",
+ "$id": "259",
"json": {
- "$id": "196",
+ "$id": "260",
"name": "floatFixedEnumWithIntValue"
}
}
},
{
- "$id": "197",
+ "$id": "261",
"kind": "property",
"name": "floatFixedEnumCollection",
"serializedName": "floatFixedEnumCollection",
"doc": "this is a collection of float based fixed enum",
"type": {
- "$id": "198",
+ "$id": "262",
"kind": "array",
"name": "ArrayFloatFixedEnum",
"valueType": {
- "$ref": "60"
+ "$ref": "42"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1633,21 +2111,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.floatFixedEnumCollection",
"serializationOptions": {
- "$id": "199",
+ "$id": "263",
"json": {
- "$id": "200",
+ "$id": "264",
"name": "floatFixedEnumCollection"
}
}
},
{
- "$id": "201",
+ "$id": "265",
"kind": "property",
"name": "intFixedEnum",
"serializedName": "intFixedEnum",
"doc": "this is a int based fixed enum",
"type": {
- "$ref": "76"
+ "$ref": "58"
},
"optional": true,
"readOnly": false,
@@ -1656,25 +2134,25 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.intFixedEnum",
"serializationOptions": {
- "$id": "202",
+ "$id": "266",
"json": {
- "$id": "203",
+ "$id": "267",
"name": "intFixedEnum"
}
}
},
{
- "$id": "204",
+ "$id": "268",
"kind": "property",
"name": "intFixedEnumCollection",
"serializedName": "intFixedEnumCollection",
"doc": "this is a collection of int based fixed enum",
"type": {
- "$id": "205",
+ "$id": "269",
"kind": "array",
"name": "ArrayIntFixedEnum",
"valueType": {
- "$ref": "76"
+ "$ref": "58"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1686,21 +2164,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.intFixedEnumCollection",
"serializationOptions": {
- "$id": "206",
+ "$id": "270",
"json": {
- "$id": "207",
+ "$id": "271",
"name": "intFixedEnumCollection"
}
}
},
{
- "$id": "208",
+ "$id": "272",
"kind": "property",
"name": "stringFixedEnum",
"serializedName": "stringFixedEnum",
"doc": "this is a string based fixed enum",
"type": {
- "$ref": "20"
+ "$ref": "2"
},
"optional": true,
"readOnly": false,
@@ -1709,21 +2187,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.stringFixedEnum",
"serializationOptions": {
- "$id": "209",
+ "$id": "273",
"json": {
- "$id": "210",
+ "$id": "274",
"name": "stringFixedEnum"
}
}
},
{
- "$id": "211",
+ "$id": "275",
"kind": "property",
"name": "requiredUnknown",
"serializedName": "requiredUnknown",
"doc": "required unknown",
"type": {
- "$id": "212",
+ "$id": "276",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1736,21 +2214,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredUnknown",
"serializationOptions": {
- "$id": "213",
+ "$id": "277",
"json": {
- "$id": "214",
+ "$id": "278",
"name": "requiredUnknown"
}
}
},
{
- "$id": "215",
+ "$id": "279",
"kind": "property",
"name": "optionalUnknown",
"serializedName": "optionalUnknown",
"doc": "optional unknown",
"type": {
- "$id": "216",
+ "$id": "280",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1763,31 +2241,31 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.optionalUnknown",
"serializationOptions": {
- "$id": "217",
+ "$id": "281",
"json": {
- "$id": "218",
+ "$id": "282",
"name": "optionalUnknown"
}
}
},
{
- "$id": "219",
+ "$id": "283",
"kind": "property",
"name": "requiredRecordUnknown",
"serializedName": "requiredRecordUnknown",
"doc": "required record of unknown",
"type": {
- "$id": "220",
+ "$id": "284",
"kind": "dict",
"keyType": {
- "$id": "221",
+ "$id": "285",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "222",
+ "$id": "286",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1802,31 +2280,31 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredRecordUnknown",
"serializationOptions": {
- "$id": "223",
+ "$id": "287",
"json": {
- "$id": "224",
+ "$id": "288",
"name": "requiredRecordUnknown"
}
}
},
{
- "$id": "225",
+ "$id": "289",
"kind": "property",
"name": "optionalRecordUnknown",
"serializedName": "optionalRecordUnknown",
"doc": "optional record of unknown",
"type": {
- "$id": "226",
+ "$id": "290",
"kind": "dict",
"keyType": {
- "$id": "227",
+ "$id": "291",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "228",
+ "$id": "292",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1841,31 +2319,31 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.optionalRecordUnknown",
"serializationOptions": {
- "$id": "229",
+ "$id": "293",
"json": {
- "$id": "230",
+ "$id": "294",
"name": "optionalRecordUnknown"
}
}
},
{
- "$id": "231",
+ "$id": "295",
"kind": "property",
"name": "readOnlyRequiredRecordUnknown",
"serializedName": "readOnlyRequiredRecordUnknown",
"doc": "required readonly record of unknown",
"type": {
- "$id": "232",
+ "$id": "296",
"kind": "dict",
"keyType": {
- "$id": "233",
+ "$id": "297",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "234",
+ "$id": "298",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1880,31 +2358,31 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.readOnlyRequiredRecordUnknown",
"serializationOptions": {
- "$id": "235",
+ "$id": "299",
"json": {
- "$id": "236",
+ "$id": "300",
"name": "readOnlyRequiredRecordUnknown"
}
}
},
{
- "$id": "237",
+ "$id": "301",
"kind": "property",
"name": "readOnlyOptionalRecordUnknown",
"serializedName": "readOnlyOptionalRecordUnknown",
"doc": "optional readonly record of unknown",
"type": {
- "$id": "238",
+ "$id": "302",
"kind": "dict",
"keyType": {
- "$id": "239",
+ "$id": "303",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "240",
+ "$id": "304",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1919,21 +2397,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.readOnlyOptionalRecordUnknown",
"serializationOptions": {
- "$id": "241",
+ "$id": "305",
"json": {
- "$id": "242",
+ "$id": "306",
"name": "readOnlyOptionalRecordUnknown"
}
}
},
{
- "$id": "243",
+ "$id": "307",
"kind": "property",
"name": "modelWithRequiredNullable",
"serializedName": "modelWithRequiredNullable",
"doc": "this is a model with required nullable properties",
"type": {
- "$id": "244",
+ "$id": "308",
"kind": "model",
"name": "ModelWithRequiredNullableProperties",
"namespace": "BasicTypeSpec",
@@ -1943,16 +2421,16 @@
"decorators": [],
"properties": [
{
- "$id": "245",
+ "$id": "309",
"kind": "property",
"name": "requiredNullablePrimitive",
"serializedName": "requiredNullablePrimitive",
"doc": "required nullable primitive type",
"type": {
- "$id": "246",
+ "$id": "310",
"kind": "nullable",
"type": {
- "$id": "247",
+ "$id": "311",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1967,24 +2445,24 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredNullablePrimitive",
"serializationOptions": {
- "$id": "248",
+ "$id": "312",
"json": {
- "$id": "249",
+ "$id": "313",
"name": "requiredNullablePrimitive"
}
}
},
{
- "$id": "250",
+ "$id": "314",
"kind": "property",
"name": "requiredExtensibleEnum",
"serializedName": "requiredExtensibleEnum",
"doc": "required nullable extensible enum type",
"type": {
- "$id": "251",
+ "$id": "315",
"kind": "nullable",
"type": {
- "$ref": "28"
+ "$ref": "10"
},
"namespace": ""
},
@@ -1995,24 +2473,24 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredExtensibleEnum",
"serializationOptions": {
- "$id": "252",
+ "$id": "316",
"json": {
- "$id": "253",
+ "$id": "317",
"name": "requiredExtensibleEnum"
}
}
},
{
- "$id": "254",
+ "$id": "318",
"kind": "property",
"name": "requiredFixedEnum",
"serializedName": "requiredFixedEnum",
"doc": "required nullable fixed enum type",
"type": {
- "$id": "255",
+ "$id": "319",
"kind": "nullable",
"type": {
- "$ref": "20"
+ "$ref": "2"
},
"namespace": ""
},
@@ -2023,9 +2501,9 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ModelWithRequiredNullableProperties.requiredFixedEnum",
"serializationOptions": {
- "$id": "256",
+ "$id": "320",
"json": {
- "$id": "257",
+ "$id": "321",
"name": "requiredFixedEnum"
}
}
@@ -2039,21 +2517,21 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.modelWithRequiredNullable",
"serializationOptions": {
- "$id": "258",
+ "$id": "322",
"json": {
- "$id": "259",
+ "$id": "323",
"name": "modelWithRequiredNullable"
}
}
},
{
- "$id": "260",
+ "$id": "324",
"kind": "property",
"name": "requiredBytes",
"serializedName": "requiredBytes",
"doc": "Required bytes",
"type": {
- "$id": "261",
+ "$id": "325",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -2067,9 +2545,9 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.RoundTripModel.requiredBytes",
"serializationOptions": {
- "$id": "262",
+ "$id": "326",
"json": {
- "$id": "263",
+ "$id": "327",
"name": "requiredBytes"
}
}
@@ -2077,10 +2555,10 @@
]
},
{
- "$ref": "244"
+ "$ref": "308"
},
{
- "$id": "264",
+ "$id": "328",
"kind": "model",
"name": "FriendModel",
"namespace": "BasicTypeSpec",
@@ -2090,13 +2568,13 @@
"decorators": [],
"properties": [
{
- "$id": "265",
+ "$id": "329",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "name of the NotFriend",
"type": {
- "$id": "266",
+ "$id": "330",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2109,9 +2587,9 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.NotFriend.name",
"serializationOptions": {
- "$id": "267",
+ "$id": "331",
"json": {
- "$id": "268",
+ "$id": "332",
"name": "name"
}
}
@@ -2119,7 +2597,7 @@
]
},
{
- "$id": "269",
+ "$id": "333",
"kind": "model",
"name": "RenamedModel",
"namespace": "BasicTypeSpec",
@@ -2129,13 +2607,13 @@
"decorators": [],
"properties": [
{
- "$id": "270",
+ "$id": "334",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "name of the ModelWithClientName",
"type": {
- "$id": "271",
+ "$id": "335",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2148,9 +2626,9 @@
"decorators": [],
"crossLanguageDefinitionId": "BasicTypeSpec.ModelWithClientName.name",
"serializationOptions": {
- "$id": "272",
+ "$id": "336",
"json": {
- "$id": "273",
+ "$id": "337",
"name": "name"
}
}
@@ -2158,7 +2636,7 @@
]
},
{
- "$id": "274",
+ "$id": "338",
"kind": "model",
"name": "ReturnsAnonymousModelResponse",
"namespace": "BasicTypeSpec",
@@ -2170,14 +2648,14 @@
],
"clients": [
{
- "$id": "275",
+ "$id": "339",
"kind": "client",
"name": "BasicTypeSpecClient",
"namespace": "BasicTypeSpec",
"doc": "This is a sample typespec project.",
"methods": [
{
- "$id": "276",
+ "$id": "340",
"kind": "basic",
"name": "sayHi",
"accessibility": "public",
@@ -2187,18 +2665,18 @@
],
"doc": "Return hi",
"operation": {
- "$id": "277",
+ "$id": "341",
"name": "sayHi",
"resourceName": "BasicTypeSpec",
"doc": "Return hi",
"accessibility": "public",
"parameters": [
{
- "$id": "278",
+ "$id": "342",
"name": "headParameter",
"nameInRequest": "head-parameter",
"type": {
- "$id": "279",
+ "$id": "343",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2215,11 +2693,11 @@
"skipUrlEncoding": false
},
{
- "$id": "280",
+ "$id": "344",
"name": "queryParameter",
"nameInRequest": "queryParameter",
"type": {
- "$id": "281",
+ "$id": "345",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2236,11 +2714,11 @@
"skipUrlEncoding": false
},
{
- "$id": "282",
+ "$id": "346",
"name": "optionalQuery",
"nameInRequest": "optionalQuery",
"type": {
- "$id": "283",
+ "$id": "347",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2257,21 +2735,11 @@
"skipUrlEncoding": false
},
{
- "$id": "284",
+ "$id": "348",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "285",
- "kind": "constant",
- "valueType": {
- "$id": "286",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -2286,12 +2754,12 @@
],
"responses": [
{
- "$id": "287",
+ "$id": "349",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -2311,11 +2779,11 @@
},
"parameters": [
{
- "$id": "288",
+ "$id": "350",
"name": "headParameter",
"nameInRequest": "head-parameter",
"type": {
- "$id": "289",
+ "$id": "351",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2332,11 +2800,11 @@
"skipUrlEncoding": false
},
{
- "$id": "290",
+ "$id": "352",
"name": "queryParameter",
"nameInRequest": "queryParameter",
"type": {
- "$id": "291",
+ "$id": "353",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2353,11 +2821,11 @@
"skipUrlEncoding": false
},
{
- "$id": "292",
+ "$id": "354",
"name": "optionalQuery",
"nameInRequest": "optionalQuery",
"type": {
- "$id": "293",
+ "$id": "355",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2374,11 +2842,11 @@
"skipUrlEncoding": false
},
{
- "$id": "294",
+ "$id": "356",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "285"
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -2392,9 +2860,9 @@
}
],
"response": {
- "$id": "295",
+ "$id": "357",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -2403,7 +2871,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.sayHi"
},
{
- "$id": "296",
+ "$id": "358",
"kind": "basic",
"name": "helloAgain",
"accessibility": "public",
@@ -2413,18 +2881,18 @@
],
"doc": "Return hi again",
"operation": {
- "$id": "297",
+ "$id": "359",
"name": "helloAgain",
"resourceName": "BasicTypeSpec",
"doc": "Return hi again",
"accessibility": "public",
"parameters": [
{
- "$id": "298",
+ "$id": "360",
"name": "p1",
"nameInRequest": "p1",
"type": {
- "$id": "299",
+ "$id": "361",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2441,21 +2909,11 @@
"skipUrlEncoding": false
},
{
- "$id": "300",
+ "$id": "362",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "301",
- "kind": "constant",
- "valueType": {
- "$id": "302",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "text/plain",
- "decorators": []
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -2468,11 +2926,11 @@
"skipUrlEncoding": false
},
{
- "$id": "303",
+ "$id": "363",
"name": "p2",
"nameInRequest": "p2",
"type": {
- "$id": "304",
+ "$id": "364",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2489,21 +2947,11 @@
"skipUrlEncoding": false
},
{
- "$id": "305",
+ "$id": "365",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "306",
- "kind": "constant",
- "valueType": {
- "$id": "307",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -2516,11 +2964,11 @@
"skipUrlEncoding": false
},
{
- "$id": "308",
+ "$id": "366",
"name": "action",
"nameInRequest": "action",
"type": {
- "$ref": "153"
+ "$ref": "217"
},
"location": "Body",
"isApiVersion": false,
@@ -2535,12 +2983,12 @@
],
"responses": [
{
- "$id": "309",
+ "$id": "367",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "153"
+ "$ref": "217"
},
"headers": [],
"isErrorResponse": false,
@@ -2563,11 +3011,11 @@
},
"parameters": [
{
- "$id": "310",
+ "$id": "368",
"name": "p1",
"nameInRequest": "p1",
"type": {
- "$id": "311",
+ "$id": "369",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2584,11 +3032,11 @@
"skipUrlEncoding": false
},
{
- "$id": "312",
+ "$id": "370",
"name": "action",
"nameInRequest": "action",
"type": {
- "$ref": "153"
+ "$ref": "217"
},
"location": "Body",
"isApiVersion": false,
@@ -2601,21 +3049,11 @@
"skipUrlEncoding": false
},
{
- "$id": "313",
+ "$id": "371",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "314",
- "kind": "constant",
- "valueType": {
- "$id": "315",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "text/plain",
- "decorators": []
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -2628,11 +3066,11 @@
"skipUrlEncoding": false
},
{
- "$id": "316",
+ "$id": "372",
"name": "p2",
"nameInRequest": "p2",
"type": {
- "$id": "317",
+ "$id": "373",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2649,11 +3087,11 @@
"skipUrlEncoding": false
},
{
- "$id": "318",
+ "$id": "374",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "306"
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -2667,9 +3105,9 @@
}
],
"response": {
- "$id": "319",
+ "$id": "375",
"type": {
- "$ref": "153"
+ "$ref": "217"
}
},
"isOverride": false,
@@ -2678,7 +3116,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.helloAgain"
},
{
- "$id": "320",
+ "$id": "376",
"kind": "basic",
"name": "noContentType",
"accessibility": "public",
@@ -2688,18 +3126,18 @@
],
"doc": "Return hi again",
"operation": {
- "$id": "321",
+ "$id": "377",
"name": "noContentType",
"resourceName": "BasicTypeSpec",
"doc": "Return hi again",
"accessibility": "public",
"parameters": [
{
- "$id": "322",
+ "$id": "378",
"name": "p1",
"nameInRequest": "p1",
"type": {
- "$id": "323",
+ "$id": "379",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2716,11 +3154,11 @@
"skipUrlEncoding": false
},
{
- "$id": "324",
+ "$id": "380",
"name": "p2",
"nameInRequest": "p2",
"type": {
- "$id": "325",
+ "$id": "381",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2737,22 +3175,12 @@
"skipUrlEncoding": false
},
{
- "$id": "326",
+ "$id": "382",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "327",
- "kind": "constant",
- "valueType": {
- "$id": "328",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -2765,21 +3193,11 @@
"skipUrlEncoding": false
},
{
- "$id": "329",
+ "$id": "383",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "330",
- "kind": "constant",
- "valueType": {
- "$id": "331",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -2792,11 +3210,11 @@
"skipUrlEncoding": false
},
{
- "$id": "332",
+ "$id": "384",
"name": "action",
"nameInRequest": "action",
"type": {
- "$ref": "153"
+ "$ref": "217"
},
"location": "Body",
"isApiVersion": false,
@@ -2811,12 +3229,12 @@
],
"responses": [
{
- "$id": "333",
+ "$id": "385",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "153"
+ "$ref": "217"
},
"headers": [],
"isErrorResponse": false,
@@ -2839,11 +3257,11 @@
},
"parameters": [
{
- "$id": "334",
+ "$id": "386",
"name": "p1",
"nameInRequest": "p1",
"type": {
- "$id": "335",
+ "$id": "387",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2860,11 +3278,11 @@
"skipUrlEncoding": false
},
{
- "$id": "336",
+ "$id": "388",
"name": "action",
"nameInRequest": "action",
"type": {
- "$ref": "153"
+ "$ref": "217"
},
"location": "Body",
"isApiVersion": false,
@@ -2877,11 +3295,11 @@
"skipUrlEncoding": false
},
{
- "$id": "337",
+ "$id": "389",
"name": "p2",
"nameInRequest": "p2",
"type": {
- "$id": "338",
+ "$id": "390",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2898,12 +3316,12 @@
"skipUrlEncoding": false
},
{
- "$id": "339",
+ "$id": "391",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "327"
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -2916,11 +3334,11 @@
"skipUrlEncoding": false
},
{
- "$id": "340",
+ "$id": "392",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "330"
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -2934,9 +3352,9 @@
}
],
"response": {
- "$id": "341",
+ "$id": "393",
"type": {
- "$ref": "153"
+ "$ref": "217"
}
},
"isOverride": false,
@@ -2945,7 +3363,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.noContentType"
},
{
- "$id": "342",
+ "$id": "394",
"kind": "basic",
"name": "helloDemo2",
"accessibility": "public",
@@ -2955,28 +3373,18 @@
],
"doc": "Return hi in demo2",
"operation": {
- "$id": "343",
+ "$id": "395",
"name": "helloDemo2",
"resourceName": "BasicTypeSpec",
"doc": "Return hi in demo2",
"accessibility": "public",
"parameters": [
{
- "$id": "344",
+ "$id": "396",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "345",
- "kind": "constant",
- "valueType": {
- "$id": "346",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -2991,12 +3399,12 @@
],
"responses": [
{
- "$id": "347",
+ "$id": "397",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -3016,11 +3424,11 @@
},
"parameters": [
{
- "$id": "348",
+ "$id": "398",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "345"
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -3034,9 +3442,9 @@
}
],
"response": {
- "$id": "349",
+ "$id": "399",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -3045,7 +3453,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.helloDemo2"
},
{
- "$id": "350",
+ "$id": "400",
"kind": "basic",
"name": "createLiteral",
"accessibility": "public",
@@ -3055,29 +3463,19 @@
],
"doc": "Create with literal value",
"operation": {
- "$id": "351",
+ "$id": "401",
"name": "createLiteral",
"resourceName": "BasicTypeSpec",
"doc": "Create with literal value",
"accessibility": "public",
"parameters": [
{
- "$id": "352",
+ "$id": "402",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "353",
- "kind": "constant",
- "valueType": {
- "$id": "354",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -3090,21 +3488,11 @@
"skipUrlEncoding": false
},
{
- "$id": "355",
+ "$id": "403",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "356",
- "kind": "constant",
- "valueType": {
- "$id": "357",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "104"
},
"location": "Header",
"isApiVersion": false,
@@ -3117,11 +3505,11 @@
"skipUrlEncoding": false
},
{
- "$id": "358",
+ "$id": "404",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "90"
+ "$ref": "164"
},
"location": "Body",
"isApiVersion": false,
@@ -3136,12 +3524,12 @@
],
"responses": [
{
- "$id": "359",
+ "$id": "405",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -3164,11 +3552,11 @@
},
"parameters": [
{
- "$id": "360",
+ "$id": "406",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "90"
+ "$ref": "164"
},
"location": "Body",
"isApiVersion": false,
@@ -3181,12 +3569,12 @@
"skipUrlEncoding": false
},
{
- "$id": "361",
+ "$id": "407",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "353"
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -3199,11 +3587,11 @@
"skipUrlEncoding": false
},
{
- "$id": "362",
+ "$id": "408",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "356"
+ "$ref": "104"
},
"location": "Header",
"isApiVersion": false,
@@ -3217,9 +3605,9 @@
}
],
"response": {
- "$id": "363",
+ "$id": "409",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -3228,7 +3616,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.createLiteral"
},
{
- "$id": "364",
+ "$id": "410",
"kind": "basic",
"name": "helloLiteral",
"accessibility": "public",
@@ -3238,28 +3626,18 @@
],
"doc": "Send literal parameters",
"operation": {
- "$id": "365",
+ "$id": "411",
"name": "helloLiteral",
"resourceName": "BasicTypeSpec",
"doc": "Send literal parameters",
"accessibility": "public",
"parameters": [
{
- "$id": "366",
+ "$id": "412",
"name": "p1",
"nameInRequest": "p1",
"type": {
- "$id": "367",
- "kind": "constant",
- "valueType": {
- "$id": "368",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "test",
- "decorators": []
+ "$ref": "106"
},
"location": "Header",
"isApiVersion": false,
@@ -3272,21 +3650,11 @@
"skipUrlEncoding": false
},
{
- "$id": "369",
+ "$id": "413",
"name": "p2",
"nameInRequest": "p2",
"type": {
- "$id": "370",
- "kind": "constant",
- "valueType": {
- "$id": "371",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "value": 123,
- "decorators": []
+ "$ref": "108"
},
"location": "Path",
"isApiVersion": false,
@@ -3299,21 +3667,11 @@
"skipUrlEncoding": false
},
{
- "$id": "372",
+ "$id": "414",
"name": "p3",
"nameInRequest": "p3",
"type": {
- "$id": "373",
- "kind": "constant",
- "valueType": {
- "$id": "374",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
- "decorators": []
- },
- "value": true,
- "decorators": []
+ "$ref": "110"
},
"location": "Query",
"isApiVersion": false,
@@ -3326,21 +3684,11 @@
"skipUrlEncoding": false
},
{
- "$id": "375",
+ "$id": "415",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "376",
- "kind": "constant",
- "valueType": {
- "$id": "377",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "112"
},
"location": "Header",
"isApiVersion": false,
@@ -3355,12 +3703,12 @@
],
"responses": [
{
- "$id": "378",
+ "$id": "416",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -3380,21 +3728,11 @@
},
"parameters": [
{
- "$id": "379",
+ "$id": "417",
"name": "p1",
"nameInRequest": "p1",
"type": {
- "$id": "380",
- "kind": "constant",
- "valueType": {
- "$id": "381",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "test",
- "decorators": []
+ "$ref": "114"
},
"location": "Header",
"isApiVersion": false,
@@ -3407,21 +3745,11 @@
"skipUrlEncoding": false
},
{
- "$id": "382",
+ "$id": "418",
"name": "p2",
"nameInRequest": "p2",
"type": {
- "$id": "383",
- "kind": "constant",
- "valueType": {
- "$id": "384",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "value": 123,
- "decorators": []
+ "$ref": "116"
},
"location": "Path",
"isApiVersion": false,
@@ -3434,21 +3762,11 @@
"skipUrlEncoding": false
},
{
- "$id": "385",
+ "$id": "419",
"name": "p3",
"nameInRequest": "p3",
"type": {
- "$id": "386",
- "kind": "constant",
- "valueType": {
- "$id": "387",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
- "decorators": []
- },
- "value": true,
- "decorators": []
+ "$ref": "118"
},
"location": "Query",
"isApiVersion": false,
@@ -3461,11 +3779,11 @@
"skipUrlEncoding": false
},
{
- "$id": "388",
+ "$id": "420",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "376"
+ "$ref": "112"
},
"location": "Header",
"isApiVersion": false,
@@ -3479,9 +3797,9 @@
}
],
"response": {
- "$id": "389",
+ "$id": "421",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -3490,7 +3808,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.helloLiteral"
},
{
- "$id": "390",
+ "$id": "422",
"kind": "basic",
"name": "topAction",
"accessibility": "public",
@@ -3500,23 +3818,23 @@
],
"doc": "top level method",
"operation": {
- "$id": "391",
+ "$id": "423",
"name": "topAction",
"resourceName": "BasicTypeSpec",
"doc": "top level method",
"accessibility": "public",
"parameters": [
{
- "$id": "392",
+ "$id": "424",
"name": "action",
"nameInRequest": "action",
"type": {
- "$id": "393",
+ "$id": "425",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "394",
+ "$id": "426",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3536,21 +3854,11 @@
"skipUrlEncoding": false
},
{
- "$id": "395",
+ "$id": "427",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "396",
- "kind": "constant",
- "valueType": {
- "$id": "397",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "120"
},
"location": "Header",
"isApiVersion": false,
@@ -3565,12 +3873,12 @@
],
"responses": [
{
- "$id": "398",
+ "$id": "428",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -3590,16 +3898,16 @@
},
"parameters": [
{
- "$id": "399",
+ "$id": "429",
"name": "action",
"nameInRequest": "action",
"type": {
- "$id": "400",
+ "$id": "430",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "401",
+ "$id": "431",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3619,11 +3927,11 @@
"skipUrlEncoding": false
},
{
- "$id": "402",
+ "$id": "432",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "396"
+ "$ref": "120"
},
"location": "Header",
"isApiVersion": false,
@@ -3637,9 +3945,9 @@
}
],
"response": {
- "$id": "403",
+ "$id": "433",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -3648,7 +3956,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.topAction"
},
{
- "$id": "404",
+ "$id": "434",
"kind": "basic",
"name": "topAction2",
"accessibility": "public",
@@ -3658,28 +3966,18 @@
],
"doc": "top level method2",
"operation": {
- "$id": "405",
+ "$id": "435",
"name": "topAction2",
"resourceName": "BasicTypeSpec",
"doc": "top level method2",
"accessibility": "public",
"parameters": [
{
- "$id": "406",
+ "$id": "436",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "407",
- "kind": "constant",
- "valueType": {
- "$id": "408",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "122"
},
"location": "Header",
"isApiVersion": false,
@@ -3694,12 +3992,12 @@
],
"responses": [
{
- "$id": "409",
+ "$id": "437",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -3719,11 +4017,11 @@
},
"parameters": [
{
- "$id": "410",
+ "$id": "438",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "407"
+ "$ref": "122"
},
"location": "Header",
"isApiVersion": false,
@@ -3737,9 +4035,9 @@
}
],
"response": {
- "$id": "411",
+ "$id": "439",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -3748,7 +4046,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.topAction2"
},
{
- "$id": "412",
+ "$id": "440",
"kind": "basic",
"name": "patchAction",
"accessibility": "public",
@@ -3758,29 +4056,19 @@
],
"doc": "top level patch",
"operation": {
- "$id": "413",
+ "$id": "441",
"name": "patchAction",
"resourceName": "BasicTypeSpec",
"doc": "top level patch",
"accessibility": "public",
"parameters": [
{
- "$id": "414",
+ "$id": "442",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "415",
- "kind": "constant",
- "valueType": {
- "$id": "416",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "124"
},
"location": "Header",
"isApiVersion": false,
@@ -3793,21 +4081,11 @@
"skipUrlEncoding": false
},
{
- "$id": "417",
+ "$id": "443",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "418",
- "kind": "constant",
- "valueType": {
- "$id": "419",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "126"
},
"location": "Header",
"isApiVersion": false,
@@ -3820,11 +4098,11 @@
"skipUrlEncoding": false
},
{
- "$id": "420",
+ "$id": "444",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "90"
+ "$ref": "164"
},
"location": "Body",
"isApiVersion": false,
@@ -3839,12 +4117,12 @@
],
"responses": [
{
- "$id": "421",
+ "$id": "445",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -3867,11 +4145,11 @@
},
"parameters": [
{
- "$id": "422",
+ "$id": "446",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "90"
+ "$ref": "164"
},
"location": "Body",
"isApiVersion": false,
@@ -3884,12 +4162,12 @@
"skipUrlEncoding": false
},
{
- "$id": "423",
+ "$id": "447",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "415"
+ "$ref": "124"
},
"location": "Header",
"isApiVersion": false,
@@ -3902,11 +4180,11 @@
"skipUrlEncoding": false
},
{
- "$id": "424",
+ "$id": "448",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "418"
+ "$ref": "126"
},
"location": "Header",
"isApiVersion": false,
@@ -3920,9 +4198,9 @@
}
],
"response": {
- "$id": "425",
+ "$id": "449",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -3931,7 +4209,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.patchAction"
},
{
- "$id": "426",
+ "$id": "450",
"kind": "basic",
"name": "anonymousBody",
"accessibility": "public",
@@ -3941,29 +4219,19 @@
],
"doc": "body parameter without body decorator",
"operation": {
- "$id": "427",
+ "$id": "451",
"name": "anonymousBody",
"resourceName": "BasicTypeSpec",
"doc": "body parameter without body decorator",
"accessibility": "public",
"parameters": [
{
- "$id": "428",
+ "$id": "452",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "429",
- "kind": "constant",
- "valueType": {
- "$id": "430",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "128"
},
"location": "Header",
"isApiVersion": false,
@@ -3976,21 +4244,11 @@
"skipUrlEncoding": false
},
{
- "$id": "431",
+ "$id": "453",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "432",
- "kind": "constant",
- "valueType": {
- "$id": "433",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "130"
},
"location": "Header",
"isApiVersion": false,
@@ -4003,11 +4261,11 @@
"skipUrlEncoding": false
},
{
- "$id": "434",
+ "$id": "454",
"name": "thingModel",
"nameInRequest": "thingModel",
"type": {
- "$ref": "90"
+ "$ref": "164"
},
"location": "Body",
"isApiVersion": false,
@@ -4022,12 +4280,12 @@
],
"responses": [
{
- "$id": "435",
+ "$id": "455",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -4050,12 +4308,12 @@
},
"parameters": [
{
- "$id": "436",
+ "$id": "456",
"name": "name",
"nameInRequest": "name",
"doc": "name of the ThingModel",
"type": {
- "$id": "437",
+ "$id": "457",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4072,12 +4330,12 @@
"skipUrlEncoding": false
},
{
- "$id": "438",
+ "$id": "458",
"name": "requiredUnion",
"nameInRequest": "requiredUnion",
"doc": "required Union",
"type": {
- "$ref": "96"
+ "$ref": "170"
},
"location": "Body",
"isApiVersion": false,
@@ -4090,12 +4348,12 @@
"skipUrlEncoding": false
},
{
- "$id": "439",
+ "$id": "459",
"name": "requiredLiteralString",
"nameInRequest": "requiredLiteralString",
"doc": "required literal string",
"type": {
- "$ref": "104"
+ "$ref": "72"
},
"location": "Body",
"isApiVersion": false,
@@ -4108,12 +4366,12 @@
"skipUrlEncoding": false
},
{
- "$id": "440",
+ "$id": "460",
"name": "requiredLiteralInt",
"nameInRequest": "requiredLiteralInt",
"doc": "required literal int",
"type": {
- "$ref": "108"
+ "$ref": "74"
},
"location": "Body",
"isApiVersion": false,
@@ -4126,12 +4384,12 @@
"skipUrlEncoding": false
},
{
- "$id": "441",
+ "$id": "461",
"name": "requiredLiteralFloat",
"nameInRequest": "requiredLiteralFloat",
"doc": "required literal float",
"type": {
- "$ref": "112"
+ "$ref": "76"
},
"location": "Body",
"isApiVersion": false,
@@ -4144,12 +4402,12 @@
"skipUrlEncoding": false
},
{
- "$id": "442",
+ "$id": "462",
"name": "requiredLiteralBool",
"nameInRequest": "requiredLiteralBool",
"doc": "required literal bool",
"type": {
- "$ref": "116"
+ "$ref": "78"
},
"location": "Body",
"isApiVersion": false,
@@ -4162,12 +4420,12 @@
"skipUrlEncoding": false
},
{
- "$id": "443",
+ "$id": "463",
"name": "optionalLiteralString",
"nameInRequest": "optionalLiteralString",
"doc": "optional literal string",
"type": {
- "$ref": "121"
+ "$ref": "80"
},
"location": "Body",
"isApiVersion": false,
@@ -4180,12 +4438,12 @@
"skipUrlEncoding": false
},
{
- "$id": "444",
+ "$id": "464",
"name": "optionalLiteralInt",
"nameInRequest": "optionalLiteralInt",
"doc": "optional literal int",
"type": {
- "$ref": "125"
+ "$ref": "82"
},
"location": "Body",
"isApiVersion": false,
@@ -4198,12 +4456,12 @@
"skipUrlEncoding": false
},
{
- "$id": "445",
+ "$id": "465",
"name": "optionalLiteralFloat",
"nameInRequest": "optionalLiteralFloat",
"doc": "optional literal float",
"type": {
- "$ref": "129"
+ "$ref": "84"
},
"location": "Body",
"isApiVersion": false,
@@ -4216,12 +4474,12 @@
"skipUrlEncoding": false
},
{
- "$id": "446",
+ "$id": "466",
"name": "optionalLiteralBool",
"nameInRequest": "optionalLiteralBool",
"doc": "optional literal bool",
"type": {
- "$ref": "133"
+ "$ref": "86"
},
"location": "Body",
"isApiVersion": false,
@@ -4234,12 +4492,12 @@
"skipUrlEncoding": false
},
{
- "$id": "447",
+ "$id": "467",
"name": "requiredBadDescription",
"nameInRequest": "requiredBadDescription",
"doc": "description with xml <|endoftext|>",
"type": {
- "$id": "448",
+ "$id": "468",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4256,12 +4514,12 @@
"skipUrlEncoding": false
},
{
- "$id": "449",
+ "$id": "469",
"name": "optionalNullableList",
"nameInRequest": "optionalNullableList",
"doc": "optional nullable collection",
"type": {
- "$ref": "142"
+ "$ref": "206"
},
"location": "Body",
"isApiVersion": false,
@@ -4274,12 +4532,12 @@
"skipUrlEncoding": false
},
{
- "$id": "450",
+ "$id": "470",
"name": "requiredNullableList",
"nameInRequest": "requiredNullableList",
"doc": "required nullable collection",
"type": {
- "$ref": "148"
+ "$ref": "212"
},
"location": "Body",
"isApiVersion": false,
@@ -4292,12 +4550,12 @@
"skipUrlEncoding": false
},
{
- "$id": "451",
+ "$id": "471",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "429"
+ "$ref": "128"
},
"location": "Header",
"isApiVersion": false,
@@ -4310,11 +4568,11 @@
"skipUrlEncoding": false
},
{
- "$id": "452",
+ "$id": "472",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "432"
+ "$ref": "130"
},
"location": "Header",
"isApiVersion": false,
@@ -4328,9 +4586,9 @@
}
],
"response": {
- "$id": "453",
+ "$id": "473",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -4339,7 +4597,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.anonymousBody"
},
{
- "$id": "454",
+ "$id": "474",
"kind": "basic",
"name": "friendlyModel",
"accessibility": "public",
@@ -4349,29 +4607,19 @@
],
"doc": "Model can have its friendly name",
"operation": {
- "$id": "455",
+ "$id": "475",
"name": "friendlyModel",
"resourceName": "BasicTypeSpec",
"doc": "Model can have its friendly name",
"accessibility": "public",
"parameters": [
{
- "$id": "456",
+ "$id": "476",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "457",
- "kind": "constant",
- "valueType": {
- "$id": "458",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "148"
},
"location": "Header",
"isApiVersion": false,
@@ -4384,21 +4632,11 @@
"skipUrlEncoding": false
},
{
- "$id": "459",
+ "$id": "477",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "460",
- "kind": "constant",
- "valueType": {
- "$id": "461",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "150"
},
"location": "Header",
"isApiVersion": false,
@@ -4411,11 +4649,11 @@
"skipUrlEncoding": false
},
{
- "$id": "462",
+ "$id": "478",
"name": "friendModel",
"nameInRequest": "friendModel",
"type": {
- "$ref": "264"
+ "$ref": "328"
},
"location": "Body",
"isApiVersion": false,
@@ -4430,12 +4668,12 @@
],
"responses": [
{
- "$id": "463",
+ "$id": "479",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "264"
+ "$ref": "328"
},
"headers": [],
"isErrorResponse": false,
@@ -4458,12 +4696,12 @@
},
"parameters": [
{
- "$id": "464",
+ "$id": "480",
"name": "name",
"nameInRequest": "name",
"doc": "name of the NotFriend",
"type": {
- "$id": "465",
+ "$id": "481",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4480,12 +4718,12 @@
"skipUrlEncoding": false
},
{
- "$id": "466",
+ "$id": "482",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "457"
+ "$ref": "148"
},
"location": "Header",
"isApiVersion": false,
@@ -4498,11 +4736,11 @@
"skipUrlEncoding": false
},
{
- "$id": "467",
+ "$id": "483",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "460"
+ "$ref": "150"
},
"location": "Header",
"isApiVersion": false,
@@ -4516,9 +4754,9 @@
}
],
"response": {
- "$id": "468",
+ "$id": "484",
"type": {
- "$ref": "264"
+ "$ref": "328"
}
},
"isOverride": false,
@@ -4527,7 +4765,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.friendlyModel"
},
{
- "$id": "469",
+ "$id": "485",
"kind": "basic",
"name": "addTimeHeader",
"accessibility": "public",
@@ -4536,22 +4774,22 @@
"2024-08-16-preview"
],
"operation": {
- "$id": "470",
+ "$id": "486",
"name": "addTimeHeader",
"resourceName": "BasicTypeSpec",
"accessibility": "public",
"parameters": [
{
- "$id": "471",
+ "$id": "487",
"name": "repeatabilityFirstSent",
"nameInRequest": "Repeatability-First-Sent",
"type": {
- "$id": "472",
+ "$id": "488",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc7231",
"wireType": {
- "$id": "473",
+ "$id": "489",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4573,7 +4811,7 @@
],
"responses": [
{
- "$id": "474",
+ "$id": "490",
"statusCodes": [
204
],
@@ -4592,16 +4830,16 @@
},
"parameters": [
{
- "$id": "475",
+ "$id": "491",
"name": "repeatabilityFirstSent",
"nameInRequest": "Repeatability-First-Sent",
"type": {
- "$id": "476",
+ "$id": "492",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc7231",
"wireType": {
- "$id": "477",
+ "$id": "493",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4622,7 +4860,7 @@
}
],
"response": {
- "$id": "478"
+ "$id": "494"
},
"isOverride": false,
"generateConvenient": true,
@@ -4630,7 +4868,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.addTimeHeader"
},
{
- "$id": "479",
+ "$id": "495",
"kind": "basic",
"name": "projectedNameModel",
"accessibility": "public",
@@ -4640,29 +4878,19 @@
],
"doc": "Model can have its projected name",
"operation": {
- "$id": "480",
+ "$id": "496",
"name": "projectedNameModel",
"resourceName": "BasicTypeSpec",
"doc": "Model can have its projected name",
"accessibility": "public",
"parameters": [
{
- "$id": "481",
+ "$id": "497",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "482",
- "kind": "constant",
- "valueType": {
- "$id": "483",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "152"
},
"location": "Header",
"isApiVersion": false,
@@ -4675,21 +4903,11 @@
"skipUrlEncoding": false
},
{
- "$id": "484",
+ "$id": "498",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "485",
- "kind": "constant",
- "valueType": {
- "$id": "486",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "154"
},
"location": "Header",
"isApiVersion": false,
@@ -4702,11 +4920,11 @@
"skipUrlEncoding": false
},
{
- "$id": "487",
+ "$id": "499",
"name": "renamedModel",
"nameInRequest": "renamedModel",
"type": {
- "$ref": "269"
+ "$ref": "333"
},
"location": "Body",
"isApiVersion": false,
@@ -4721,12 +4939,12 @@
],
"responses": [
{
- "$id": "488",
+ "$id": "500",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "269"
+ "$ref": "333"
},
"headers": [],
"isErrorResponse": false,
@@ -4749,12 +4967,12 @@
},
"parameters": [
{
- "$id": "489",
+ "$id": "501",
"name": "name",
"nameInRequest": "name",
"doc": "name of the ModelWithClientName",
"type": {
- "$id": "490",
+ "$id": "502",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4771,12 +4989,12 @@
"skipUrlEncoding": false
},
{
- "$id": "491",
+ "$id": "503",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "482"
+ "$ref": "152"
},
"location": "Header",
"isApiVersion": false,
@@ -4789,11 +5007,11 @@
"skipUrlEncoding": false
},
{
- "$id": "492",
+ "$id": "504",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "485"
+ "$ref": "154"
},
"location": "Header",
"isApiVersion": false,
@@ -4807,9 +5025,9 @@
}
],
"response": {
- "$id": "493",
+ "$id": "505",
"type": {
- "$ref": "269"
+ "$ref": "333"
}
},
"isOverride": false,
@@ -4818,7 +5036,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.projectedNameModel"
},
{
- "$id": "494",
+ "$id": "506",
"kind": "basic",
"name": "returnsAnonymousModel",
"accessibility": "public",
@@ -4828,28 +5046,18 @@
],
"doc": "return anonymous model",
"operation": {
- "$id": "495",
+ "$id": "507",
"name": "returnsAnonymousModel",
"resourceName": "BasicTypeSpec",
"doc": "return anonymous model",
"accessibility": "public",
"parameters": [
{
- "$id": "496",
+ "$id": "508",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "497",
- "kind": "constant",
- "valueType": {
- "$id": "498",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "156"
},
"location": "Header",
"isApiVersion": false,
@@ -4864,12 +5072,12 @@
],
"responses": [
{
- "$id": "499",
+ "$id": "509",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "274"
+ "$ref": "338"
},
"headers": [],
"isErrorResponse": false,
@@ -4889,11 +5097,11 @@
},
"parameters": [
{
- "$id": "500",
+ "$id": "510",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "497"
+ "$ref": "156"
},
"location": "Header",
"isApiVersion": false,
@@ -4907,9 +5115,9 @@
}
],
"response": {
- "$id": "501",
+ "$id": "511",
"type": {
- "$ref": "274"
+ "$ref": "338"
}
},
"isOverride": false,
@@ -4918,7 +5126,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.returnsAnonymousModel"
},
{
- "$id": "502",
+ "$id": "512",
"kind": "basic",
"name": "getUnknownValue",
"accessibility": "public",
@@ -4928,18 +5136,18 @@
],
"doc": "get extensible enum",
"operation": {
- "$id": "503",
+ "$id": "513",
"name": "getUnknownValue",
"resourceName": "BasicTypeSpec",
"doc": "get extensible enum",
"accessibility": "public",
"parameters": [
{
- "$id": "504",
+ "$id": "514",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "505",
+ "$id": "515",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -4958,22 +5166,12 @@
],
"responses": [
{
- "$id": "506",
+ "$id": "516",
"statusCodes": [
200
],
"bodyType": {
- "$id": "507",
- "kind": "constant",
- "valueType": {
- "$id": "508",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "Sunday",
- "decorators": []
+ "$ref": "158"
},
"headers": [],
"isErrorResponse": false,
@@ -5000,11 +5198,11 @@
},
"parameters": [
{
- "$id": "509",
+ "$id": "517",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "505"
+ "$ref": "515"
},
"location": "Header",
"isApiVersion": false,
@@ -5018,9 +5216,9 @@
}
],
"response": {
- "$id": "510",
+ "$id": "518",
"type": {
- "$ref": "507"
+ "$ref": "158"
}
},
"isOverride": false,
@@ -5029,7 +5227,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.getUnknownValue"
},
{
- "$id": "511",
+ "$id": "519",
"kind": "basic",
"name": "internalProtocol",
"accessibility": "public",
@@ -5039,29 +5237,19 @@
],
"doc": "When set protocol false and convenient true, then the protocol method should be internal",
"operation": {
- "$id": "512",
+ "$id": "520",
"name": "internalProtocol",
"resourceName": "BasicTypeSpec",
"doc": "When set protocol false and convenient true, then the protocol method should be internal",
"accessibility": "public",
"parameters": [
{
- "$id": "513",
+ "$id": "521",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "514",
- "kind": "constant",
- "valueType": {
- "$id": "515",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "160"
},
"location": "Header",
"isApiVersion": false,
@@ -5074,21 +5262,11 @@
"skipUrlEncoding": false
},
{
- "$id": "516",
+ "$id": "522",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "517",
- "kind": "constant",
- "valueType": {
- "$id": "518",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "162"
},
"location": "Header",
"isApiVersion": false,
@@ -5101,11 +5279,11 @@
"skipUrlEncoding": false
},
{
- "$id": "519",
+ "$id": "523",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "90"
+ "$ref": "164"
},
"location": "Body",
"isApiVersion": false,
@@ -5120,12 +5298,12 @@
],
"responses": [
{
- "$id": "520",
+ "$id": "524",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "90"
+ "$ref": "164"
},
"headers": [],
"isErrorResponse": false,
@@ -5148,11 +5326,11 @@
},
"parameters": [
{
- "$id": "521",
+ "$id": "525",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "90"
+ "$ref": "164"
},
"location": "Body",
"isApiVersion": false,
@@ -5165,12 +5343,12 @@
"skipUrlEncoding": false
},
{
- "$id": "522",
+ "$id": "526",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "514"
+ "$ref": "160"
},
"location": "Header",
"isApiVersion": false,
@@ -5183,11 +5361,11 @@
"skipUrlEncoding": false
},
{
- "$id": "523",
+ "$id": "527",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "517"
+ "$ref": "162"
},
"location": "Header",
"isApiVersion": false,
@@ -5201,9 +5379,9 @@
}
],
"response": {
- "$id": "524",
+ "$id": "528",
"type": {
- "$ref": "90"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -5212,7 +5390,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.internalProtocol"
},
{
- "$id": "525",
+ "$id": "529",
"kind": "basic",
"name": "stillConvenient",
"accessibility": "public",
@@ -5222,7 +5400,7 @@
],
"doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one",
"operation": {
- "$id": "526",
+ "$id": "530",
"name": "stillConvenient",
"resourceName": "BasicTypeSpec",
"doc": "When set protocol false and convenient true, the convenient method should be generated even it has the same signature as protocol one",
@@ -5230,7 +5408,7 @@
"parameters": [],
"responses": [
{
- "$id": "527",
+ "$id": "531",
"statusCodes": [
204
],
@@ -5249,7 +5427,7 @@
},
"parameters": [],
"response": {
- "$id": "528"
+ "$id": "532"
},
"isOverride": false,
"generateConvenient": true,
@@ -5257,7 +5435,7 @@
"crossLanguageDefinitionId": "BasicTypeSpec.stillConvenient"
},
{
- "$id": "529",
+ "$id": "533",
"kind": "basic",
"name": "headAsBoolean",
"accessibility": "public",
@@ -5267,18 +5445,18 @@
],
"doc": "head as boolean.",
"operation": {
- "$id": "530",
+ "$id": "534",
"name": "headAsBoolean",
"resourceName": "BasicTypeSpec",
"doc": "head as boolean.",
"accessibility": "public",
"parameters": [
{
- "$id": "531",
+ "$id": "535",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "532",
+ "$id": "536",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5297,7 +5475,7 @@
],
"responses": [
{
- "$id": "533",
+ "$id": "537",
"statusCodes": [
204
],
@@ -5316,11 +5494,11 @@
},
"parameters": [
{
- "$id": "534",
+ "$id": "538",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "535",
+ "$id": "539",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -5338,7 +5516,7 @@
}
],
"response": {
- "$id": "536"
+ "$id": "540"
},
"isOverride": false,
"generateConvenient": true,
@@ -5348,11 +5526,11 @@
],
"parameters": [
{
- "$id": "537",
+ "$id": "541",
"name": "basicTypeSpecUrl",
"nameInRequest": "basicTypeSpecUrl",
"type": {
- "$id": "538",
+ "$id": "542",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5376,14 +5554,14 @@
}
],
"auth": {
- "$id": "539",
+ "$id": "543",
"apiKey": {
- "$id": "540",
+ "$id": "544",
"name": "my-api-key",
"in": "header"
},
"oAuth2": {
- "$id": "541",
+ "$id": "545",
"scopes": [
"https://theservice.azure.com/.default"
]
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
new file mode 100644
index 000000000000..918a862760e1
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Rpc/LroRpcTests.cs
@@ -0,0 +1,34 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Threading.Tasks;
+using _Specs_.Azure.Core.Lro.Rpc;
+using Azure;
+using NUnit.Framework;
+
+namespace TestProjects.Spector.Tests.Http.Azure.Core.Lro.Rpc
+{
+ public class LongRunningOperation : SpectorTestBase
+ {
+ [SpectorTest]
+ public Task LongRunningRpc_Completed() => Test(async (host) =>
+ {
+ var option = new GenerationOptions("text");
+ var response = await new RpcClient(host, null).LongRunningRpcAsync(WaitUntil.Completed, option);
+ Assert.AreEqual(200, response.GetRawResponse().Status);
+ Assert.AreEqual("text data", response.Value.Data);
+ });
+
+ [SpectorTest]
+ public Task LongRunningRpc_Started() => Test(async (host) =>
+ {
+ var option = new GenerationOptions("text");
+ var response = await new RpcClient(host, null).LongRunningRpcAsync(WaitUntil.Started, option);
+ Assert.AreEqual(202, response.GetRawResponse().Status);
+ Assert.AreEqual(true, response.GetRawResponse().Headers.TryGetValue("operation-location", out string? operationLocation));
+ Assert.AreEqual(true, operationLocation!.Contains("/azure/core/lro/rpc/generations/operations/operation1"));
+ });
+
+
+ }
+}
\ No newline at end of file
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
new file mode 100644
index 000000000000..fe4811c6ffdf
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Azure/Core/Lro/Standard/LroStandardTests.cs
@@ -0,0 +1,47 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+using System.Net;
+using System.Threading.Tasks;
+using _Specs_.Azure.Core.Lro.Standard;
+using Azure;
+using NUnit.Framework;
+
+namespace TestProjects.Spector.Tests.Http.Azure.Core.Lro.Standard
+{
+ public class LroStandardTests : SpectorTestBase
+ {
+ [SpectorTest]
+ public Task CreateOrReplace() => Test(async (host) =>
+ {
+ var operation = await new StandardClient(host, null).CreateOrReplaceAsync(
+ WaitUntil.Completed,
+ "madge",
+ new User("contributor"));
+ var user = operation.Value;
+
+ Assert.AreEqual("madge", user.Name);
+ Assert.AreEqual("contributor", user.Role);
+ });
+
+ [SpectorTest]
+ public Task Delete() => Test(async (host) =>
+ {
+ var operation = await new StandardClient(host, null).DeleteAsync(WaitUntil.Completed, "madge");
+
+ Assert.IsTrue(operation.HasCompleted);
+ Assert.AreEqual(((int)HttpStatusCode.OK), operation.GetRawResponse().Status);
+ });
+
+ [SpectorTest]
+ public Task Action() => Test(async (host) =>
+ {
+ var operation = await new StandardClient(host, null).ExportAsync(WaitUntil.Completed, "madge", "json");
+ Assert.IsTrue(operation.HasCompleted);
+
+ var exportedUser = operation.Value;
+ Assert.AreEqual("madge", exportedUser.Name);
+ Assert.AreEqual("/users/madge", exportedUser.ResourceUri);
+ });
+ }
+}
\ No newline at end of file
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Encode/Bytes/EncodeBytesTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Encode/Bytes/EncodeBytesTests.cs
index c2adfde6d8d2..4059a219a3be 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Encode/Bytes/EncodeBytesTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/Encode/Bytes/EncodeBytesTests.cs
@@ -4,6 +4,7 @@
using System;
using System.IO;
using System.Threading.Tasks;
+using Azure;
using Encode.Bytes;
using NUnit.Framework;
@@ -18,7 +19,7 @@ public Task QueryDefault() => Test(async (host) =>
{
BinaryData data = BinaryData.FromString("test");
- Azure.Response result = await new BytesClient(host, null).GetQueryClient().DefaultAsync(data);
+ Response result = await new BytesClient(host, null).GetQueryClient().DefaultAsync(data);
Assert.AreEqual(204, result.Status);
});
@@ -26,7 +27,7 @@ public Task QueryDefault() => Test(async (host) =>
public Task QueryBase64() => Test(async (host) =>
{
BinaryData data = BinaryData.FromString("test");
- Azure.Response result = await new BytesClient(host, null).GetQueryClient().Base64Async(data);
+ Response result = await new BytesClient(host, null).GetQueryClient().Base64Async(data);
Assert.AreEqual(204, result.Status);
});
@@ -34,7 +35,7 @@ public Task QueryBase64() => Test(async (host) =>
public Task QueryBase64url() => Test(async (host) =>
{
BinaryData data = BinaryData.FromString("test");
- Azure.Response result = await new BytesClient(host, null).GetQueryClient().Base64urlAsync(data);
+ Response result = await new BytesClient(host, null).GetQueryClient().Base64urlAsync(data);
Assert.AreEqual(204, result.Status);
});
@@ -43,7 +44,7 @@ public Task QueryBase64urlArray() => Test(async (host) =>
{
BinaryData data1 = BinaryData.FromString("test");
BinaryData data2 = BinaryData.FromString("test");
- Azure.Response result = await new BytesClient(host, null).GetQueryClient().Base64urlArrayAsync(new[] { data1, data2 });
+ Response result = await new BytesClient(host, null).GetQueryClient().Base64urlArrayAsync(new[] { data1, data2 });
Assert.AreEqual(204, result.Status);
});
@@ -90,16 +91,15 @@ public Task HeaderDefault() => Test(async (host) =>
{
BinaryData data = BinaryData.FromString("test");
- Azure.Response result = await new BytesClient(host, null).GetHeaderClient().DefaultAsync(data);
+ Response result = await new BytesClient(host, null).GetHeaderClient().DefaultAsync(data);
Assert.AreEqual(204, result.Status);
});
[SpectorTest]
public Task HeaderBase64() => Test(async (host) =>
{
-
BinaryData data = BinaryData.FromString("test");
- Azure.Response result = await new BytesClient(host, null).GetHeaderClient().Base64Async(data);
+ Response result = await new BytesClient(host, null).GetHeaderClient().Base64Async(data);
Assert.AreEqual(204, result.Status);
});
@@ -107,7 +107,7 @@ public Task HeaderBase64() => Test(async (host) =>
public Task HeaderBase64url() => Test(async (host) =>
{
BinaryData data = BinaryData.FromString("test");
- Azure.Response result = await new BytesClient(host, null).GetHeaderClient().Base64urlAsync(data);
+ Response result = await new BytesClient(host, null).GetHeaderClient().Base64urlAsync(data);
Assert.AreEqual(204, result.Status);
});
@@ -116,7 +116,7 @@ public Task HeaderBase64urlArray() => Test(async (host) =>
{
BinaryData data1 = BinaryData.FromString("test");
BinaryData data2 = BinaryData.FromString("test");
- Azure.Response result = await new BytesClient(host, null).GetHeaderClient().Base64urlArrayAsync(new[] { data1, data2 });
+ Response result = await new BytesClient(host, null).GetHeaderClient().Base64urlArrayAsync(new[] { data1, data2 });
Assert.AreEqual(204, result.Status);
});
@@ -124,7 +124,7 @@ public Task HeaderBase64urlArray() => Test(async (host) =>
public Task RequestBodyDefault() => Test(async (host) =>
{
BinaryData data = new BinaryData(File.ReadAllBytes(SamplePngPath));
- Azure.Response result = await new BytesClient(host, null).GetRequestBodyClient().DefaultAsync(data);
+ Response result = await new BytesClient(host, null).GetRequestBodyClient().DefaultAsync(data);
Assert.AreEqual(204, result.Status);
});
@@ -132,7 +132,7 @@ public Task RequestBodyDefault() => Test(async (host) =>
public Task RequestBodyOctetStream() => Test(async (host) =>
{
BinaryData data = new BinaryData(File.ReadAllBytes(SamplePngPath));
- Azure.Response result = await new BytesClient(host, null).GetRequestBodyClient().OctetStreamAsync(data);
+ Response result = await new BytesClient(host, null).GetRequestBodyClient().OctetStreamAsync(data);
Assert.AreEqual(204, result.Status);
});
@@ -140,7 +140,7 @@ public Task RequestBodyOctetStream() => Test(async (host) =>
public Task RequestBodyCustomContentType() => Test(async (host) =>
{
BinaryData data = new BinaryData(File.ReadAllBytes(SamplePngPath));
- Azure.Response result = await new BytesClient(host, null).GetRequestBodyClient().CustomContentTypeAsync(data);
+ Response result = await new BytesClient(host, null).GetRequestBodyClient().CustomContentTypeAsync(data);
Assert.AreEqual(204, result.Status);
});
@@ -148,7 +148,7 @@ public Task RequestBodyCustomContentType() => Test(async (host) =>
public Task RequestBodyBase64() => Test(async (host) =>
{
BinaryData data = new BinaryData($"\"{Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("test"))}\"");
- Azure.Response result = await new BytesClient(host, null).GetRequestBodyClient().Base64Async(data);
+ Response result = await new BytesClient(host, null).GetRequestBodyClient().Base64Async(data);
Assert.AreEqual(204, result.Status);
});
@@ -156,7 +156,7 @@ public Task RequestBodyBase64() => Test(async (host) =>
public Task RequestBodyBase64url() => Test(async (host) =>
{
BinaryData data = new BinaryData($"\"{Convert.ToBase64String(System.Text.Encoding.UTF8.GetBytes("test")).Replace('+', '-').Replace('/', '_').Replace("=", "")}\"");
- Azure.Response result = await new BytesClient(host, null).GetRequestBodyClient().Base64urlAsync(data);
+ Response result = await new BytesClient(host, null).GetRequestBodyClient().Base64urlAsync(data);
Assert.AreEqual(204, result.Status);
});
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/_Type/Property/Optionality/OptionalityTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/_Type/Property/Optionality/OptionalityTests.cs
index 454dd1327539..93a70a15bb35 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/_Type/Property/Optionality/OptionalityTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/_Type/Property/Optionality/OptionalityTests.cs
@@ -353,7 +353,7 @@ public Task RequiredAndOptionalPutRequiredOnly() => Test(async (host) =>
public Task FloatLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetFloatLiteralClient().GetAllAsync();
- Assert.AreEqual(FloatLiteralPropertyProperty._125, response.Value.Property);
+ Assert.AreEqual(1.25f, response.Value.Property);
});
[SpectorTest]
@@ -368,7 +368,7 @@ public Task FloatLiteralPutAll() => Test(async (host) =>
{
FloatLiteralProperty data = new()
{
- Property = new FloatLiteralPropertyProperty(1.25f)
+ Property = 1.25f
};
var response = await new OptionalClient(host, null).GetFloatLiteralClient().PutAllAsync(data);
Assert.AreEqual(204, response.Status);
@@ -385,7 +385,7 @@ public Task FloatLiteralPutDefault() => Test(async (host) =>
public Task IntLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetIntLiteralClient().GetAllAsync();
- Assert.AreEqual(IntLiteralPropertyProperty._1, response.Value.Property);
+ Assert.AreEqual(1, response.Value.Property);
});
[SpectorTest]
@@ -417,7 +417,7 @@ public Task IntLiteralPutDefault() => Test(async (host) =>
public Task StringLiteralGetAll() => Test(async (host) =>
{
var response = await new OptionalClient(host, null).GetStringLiteralClient().GetAllAsync();
- Assert.AreEqual(StringLiteralPropertyProperty.Hello, response.Value.Property);
+ Assert.AreEqual("hello", response.Value.Property);
});
[SpectorTest]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/_Type/Property/ValueTypes/ValueTypesTests.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/_Type/Property/ValueTypes/ValueTypesTests.cs
index d7f0b8a6cbd5..dc20e7a83551 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/_Type/Property/ValueTypes/ValueTypesTests.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/Http/_Type/Property/ValueTypes/ValueTypesTests.cs
@@ -61,7 +61,7 @@ public Task StringPut() => Test(async (host) =>
public Task StringLiteralGet() => Test(async (host) =>
{
var response = await new ValueTypesClient(host, null).GetStringLiteralClient().GetAsync();
- Assert.AreEqual(StringLiteralPropertyProperty.Hello, response.Value.Property);
+ Assert.AreEqual(new StringLiteralProperty().Property, response.Value.Property);
});
[SpectorTest]
@@ -103,7 +103,7 @@ public Task IntPut() => Test(async (host) =>
public Task IntLiteralGet() => Test(async (host) =>
{
var response = await new ValueTypesClient(host, null).GetIntLiteralClient().GetAsync();
- Assert.AreEqual(IntLiteralPropertyProperty._42, response.Value.Property);
+ Assert.AreEqual(new IntLiteralProperty().Property, response.Value.Property);
});
[SpectorTest]
@@ -130,7 +130,7 @@ public Task FloatPut() => Test(async (host) =>
public Task FloatLiteralGet() => Test(async (host) =>
{
var response = await new ValueTypesClient(host, null).GetFloatLiteralClient().GetAsync();
- Assert.AreEqual(FloatLiteralPropertyProperty._43125, response.Value.Property);
+ Assert.AreEqual(new FloatLiteralProperty().Property, response.Value.Property);
});
[SpectorTest]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj
index 62ede0f611a8..1300fd1661e1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector.Tests/TestProjects.Spector.Tests.csproj
@@ -18,6 +18,8 @@
+
+
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/src/Authentication.ApiKey.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/src/Authentication.ApiKey.csproj
index 9ac5ee3eb00f..0078e5004f56 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/src/Authentication.ApiKey.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/api-key/src/Authentication.ApiKey.csproj
@@ -18,6 +18,7 @@
+
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 2fdff1e080dc..ee9fa7332c2e 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
@@ -3,9 +3,27 @@
"name": "Authentication.ApiKey",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "invalidContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "4",
"kind": "model",
"name": "InvalidAuth",
"namespace": "Authentication.ApiKey",
@@ -14,12 +32,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "5",
"kind": "property",
"name": "error",
"serializedName": "error",
"type": {
- "$id": "4",
+ "$id": "6",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -32,9 +50,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Authentication.ApiKey.InvalidAuth.error",
"serializationOptions": {
- "$id": "5",
+ "$id": "7",
"json": {
- "$id": "6",
+ "$id": "8",
"name": "error"
}
}
@@ -44,21 +62,21 @@
],
"clients": [
{
- "$id": "7",
+ "$id": "9",
"kind": "client",
"name": "ApiKeyClient",
"namespace": "Authentication.ApiKey",
"doc": "Illustrates clients generated with ApiKey authentication.",
"methods": [
{
- "$id": "8",
+ "$id": "10",
"kind": "basic",
"name": "valid",
"accessibility": "public",
"apiVersions": [],
"doc": "Check whether client is authenticated",
"operation": {
- "$id": "9",
+ "$id": "11",
"name": "valid",
"resourceName": "ApiKey",
"doc": "Check whether client is authenticated",
@@ -66,7 +84,7 @@
"parameters": [],
"responses": [
{
- "$id": "10",
+ "$id": "12",
"statusCodes": [
204
],
@@ -85,7 +103,7 @@
},
"parameters": [],
"response": {
- "$id": "11"
+ "$id": "13"
},
"isOverride": false,
"generateConvenient": true,
@@ -93,35 +111,25 @@
"crossLanguageDefinitionId": "Authentication.ApiKey.valid"
},
{
- "$id": "12",
+ "$id": "14",
"kind": "basic",
"name": "invalid",
"accessibility": "public",
"apiVersions": [],
"doc": "Check whether client is authenticated.",
"operation": {
- "$id": "13",
+ "$id": "15",
"name": "invalid",
"resourceName": "ApiKey",
"doc": "Check whether client is authenticated.",
"accessibility": "public",
"parameters": [
{
- "$id": "14",
+ "$id": "16",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "15",
- "kind": "constant",
- "valueType": {
- "$id": "16",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -159,7 +167,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "15"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Authentication.Http.Custom.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Authentication.Http.Custom.csproj
index 3f3a25e7d88c..527d8d3d03b7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Authentication.Http.Custom.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/http/custom/src/Authentication.Http.Custom.csproj
@@ -18,6 +18,7 @@
+
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 5e2941896def..22fb8f770936 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
@@ -3,9 +3,27 @@
"name": "Authentication.Http.Custom",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "invalidContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "4",
"kind": "model",
"name": "InvalidAuth",
"namespace": "Authentication.Http.Custom",
@@ -14,12 +32,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "5",
"kind": "property",
"name": "error",
"serializedName": "error",
"type": {
- "$id": "4",
+ "$id": "6",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -32,9 +50,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Authentication.Http.Custom.InvalidAuth.error",
"serializationOptions": {
- "$id": "5",
+ "$id": "7",
"json": {
- "$id": "6",
+ "$id": "8",
"name": "error"
}
}
@@ -44,21 +62,21 @@
],
"clients": [
{
- "$id": "7",
+ "$id": "9",
"kind": "client",
"name": "CustomClient",
"namespace": "Authentication.Http.Custom",
"doc": "Illustrates clients generated with generic HTTP auth.",
"methods": [
{
- "$id": "8",
+ "$id": "10",
"kind": "basic",
"name": "valid",
"accessibility": "public",
"apiVersions": [],
"doc": "Check whether client is authenticated",
"operation": {
- "$id": "9",
+ "$id": "11",
"name": "valid",
"resourceName": "Custom",
"doc": "Check whether client is authenticated",
@@ -66,7 +84,7 @@
"parameters": [],
"responses": [
{
- "$id": "10",
+ "$id": "12",
"statusCodes": [
204
],
@@ -85,7 +103,7 @@
},
"parameters": [],
"response": {
- "$id": "11"
+ "$id": "13"
},
"isOverride": false,
"generateConvenient": true,
@@ -93,35 +111,25 @@
"crossLanguageDefinitionId": "Authentication.Http.Custom.valid"
},
{
- "$id": "12",
+ "$id": "14",
"kind": "basic",
"name": "invalid",
"accessibility": "public",
"apiVersions": [],
"doc": "Check whether client is authenticated.",
"operation": {
- "$id": "13",
+ "$id": "15",
"name": "invalid",
"resourceName": "Custom",
"doc": "Check whether client is authenticated.",
"accessibility": "public",
"parameters": [
{
- "$id": "14",
+ "$id": "16",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "15",
- "kind": "constant",
- "valueType": {
- "$id": "16",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -159,7 +167,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "15"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/src/Authentication.OAuth2.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/src/Authentication.OAuth2.csproj
index 633d29a6f926..75ac6e65c5be 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/src/Authentication.OAuth2.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/oauth2/src/Authentication.OAuth2.csproj
@@ -17,6 +17,7 @@
+
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 a4ea7ba9be34..9004a1e03f07 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
@@ -3,9 +3,27 @@
"name": "Authentication.OAuth2",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "invalidContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "4",
"kind": "model",
"name": "InvalidAuth",
"namespace": "Authentication.OAuth2",
@@ -14,12 +32,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "5",
"kind": "property",
"name": "error",
"serializedName": "error",
"type": {
- "$id": "4",
+ "$id": "6",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -32,9 +50,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Authentication.OAuth2.InvalidAuth.error",
"serializationOptions": {
- "$id": "5",
+ "$id": "7",
"json": {
- "$id": "6",
+ "$id": "8",
"name": "error"
}
}
@@ -44,21 +62,21 @@
],
"clients": [
{
- "$id": "7",
+ "$id": "9",
"kind": "client",
"name": "OAuth2Client",
"namespace": "Authentication.OAuth2",
"doc": "Illustrates clients generated with OAuth2 authentication.",
"methods": [
{
- "$id": "8",
+ "$id": "10",
"kind": "basic",
"name": "valid",
"accessibility": "public",
"apiVersions": [],
"doc": "Check whether client is authenticated",
"operation": {
- "$id": "9",
+ "$id": "11",
"name": "valid",
"resourceName": "OAuth2",
"doc": "Check whether client is authenticated",
@@ -66,7 +84,7 @@
"parameters": [],
"responses": [
{
- "$id": "10",
+ "$id": "12",
"statusCodes": [
204
],
@@ -85,7 +103,7 @@
},
"parameters": [],
"response": {
- "$id": "11"
+ "$id": "13"
},
"isOverride": false,
"generateConvenient": true,
@@ -93,35 +111,25 @@
"crossLanguageDefinitionId": "Authentication.OAuth2.valid"
},
{
- "$id": "12",
+ "$id": "14",
"kind": "basic",
"name": "invalid",
"accessibility": "public",
"apiVersions": [],
"doc": "Check whether client is authenticated. Will return an invalid bearer error.",
"operation": {
- "$id": "13",
+ "$id": "15",
"name": "invalid",
"resourceName": "OAuth2",
"doc": "Check whether client is authenticated. Will return an invalid bearer error.",
"accessibility": "public",
"parameters": [
{
- "$id": "14",
+ "$id": "16",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "15",
- "kind": "constant",
- "valueType": {
- "$id": "16",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -159,7 +167,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "15"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/src/Authentication.Union.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/src/Authentication.Union.csproj
index 4018e6294285..0c8555f8cba7 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/src/Authentication.Union.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/authentication/union/src/Authentication.Union.csproj
@@ -18,6 +18,7 @@
+
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 6d58ca2f4f06..1161b88dcc65 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
@@ -3,6 +3,7 @@
"name": "Authentication.Union",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
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 3bb5f904456e..9bbfd83a0258 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
@@ -17,6 +17,7 @@
+
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 ab936bf9a5aa..3d54498b4482 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
@@ -3,9 +3,75 @@
"name": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "putFlattenModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "putFlattenModelContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "putNestedFlattenModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "putNestedFlattenModelContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "10",
"kind": "model",
"name": "FlattenModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty",
@@ -15,12 +81,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "11",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "4",
+ "$id": "12",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -33,20 +99,20 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.FlattenModel.name",
"serializationOptions": {
- "$id": "5",
+ "$id": "13",
"json": {
- "$id": "6",
+ "$id": "14",
"name": "name"
}
}
},
{
- "$id": "7",
+ "$id": "15",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"type": {
- "$id": "8",
+ "$id": "16",
"kind": "model",
"name": "ChildModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty",
@@ -56,12 +122,12 @@
"decorators": [],
"properties": [
{
- "$id": "9",
+ "$id": "17",
"kind": "property",
"name": "description",
"serializedName": "description",
"type": {
- "$id": "10",
+ "$id": "18",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -74,20 +140,20 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.ChildModel.description",
"serializationOptions": {
- "$id": "11",
+ "$id": "19",
"json": {
- "$id": "12",
+ "$id": "20",
"name": "description"
}
}
},
{
- "$id": "13",
+ "$id": "21",
"kind": "property",
"name": "age",
"serializedName": "age",
"type": {
- "$id": "14",
+ "$id": "22",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -100,9 +166,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.ChildModel.age",
"serializationOptions": {
- "$id": "15",
+ "$id": "23",
"json": {
- "$id": "16",
+ "$id": "24",
"name": "age"
}
}
@@ -116,9 +182,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.FlattenModel.properties",
"serializationOptions": {
- "$id": "17",
+ "$id": "25",
"json": {
- "$id": "18",
+ "$id": "26",
"name": "properties"
}
}
@@ -126,10 +192,10 @@
]
},
{
- "$ref": "8"
+ "$ref": "16"
},
{
- "$id": "19",
+ "$id": "27",
"kind": "model",
"name": "NestedFlattenModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty",
@@ -139,12 +205,12 @@
"decorators": [],
"properties": [
{
- "$id": "20",
+ "$id": "28",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "21",
+ "$id": "29",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -157,20 +223,20 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.NestedFlattenModel.name",
"serializationOptions": {
- "$id": "22",
+ "$id": "30",
"json": {
- "$id": "23",
+ "$id": "31",
"name": "name"
}
}
},
{
- "$id": "24",
+ "$id": "32",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"type": {
- "$id": "25",
+ "$id": "33",
"kind": "model",
"name": "ChildFlattenModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty",
@@ -180,12 +246,12 @@
"decorators": [],
"properties": [
{
- "$id": "26",
+ "$id": "34",
"kind": "property",
"name": "summary",
"serializedName": "summary",
"type": {
- "$id": "27",
+ "$id": "35",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -198,20 +264,20 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.ChildFlattenModel.summary",
"serializationOptions": {
- "$id": "28",
+ "$id": "36",
"json": {
- "$id": "29",
+ "$id": "37",
"name": "summary"
}
}
},
{
- "$id": "30",
+ "$id": "38",
"kind": "property",
"name": "properties",
"serializedName": "properties",
"type": {
- "$ref": "8"
+ "$ref": "16"
},
"optional": false,
"readOnly": false,
@@ -220,9 +286,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.ChildFlattenModel.properties",
"serializationOptions": {
- "$id": "31",
+ "$id": "39",
"json": {
- "$id": "32",
+ "$id": "40",
"name": "properties"
}
}
@@ -236,9 +302,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.NestedFlattenModel.properties",
"serializationOptions": {
- "$id": "33",
+ "$id": "41",
"json": {
- "$id": "34",
+ "$id": "42",
"name": "properties"
}
}
@@ -246,46 +312,36 @@
]
},
{
- "$ref": "25"
+ "$ref": "33"
}
],
"clients": [
{
- "$id": "35",
+ "$id": "43",
"kind": "client",
"name": "FlattenPropertyClient",
"namespace": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty",
"doc": "Illustrates the model flatten cases.",
"methods": [
{
- "$id": "36",
+ "$id": "44",
"kind": "basic",
"name": "putFlattenModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "37",
+ "$id": "45",
"name": "putFlattenModel",
"resourceName": "FlattenProperty",
"accessibility": "public",
"parameters": [
{
- "$id": "38",
+ "$id": "46",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "39",
- "kind": "constant",
- "valueType": {
- "$id": "40",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -298,21 +354,11 @@
"skipUrlEncoding": false
},
{
- "$id": "41",
+ "$id": "47",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "42",
- "kind": "constant",
- "valueType": {
- "$id": "43",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -325,11 +371,11 @@
"skipUrlEncoding": false
},
{
- "$id": "44",
+ "$id": "48",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -344,12 +390,12 @@
],
"responses": [
{
- "$id": "45",
+ "$id": "49",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "10"
},
"headers": [],
"isErrorResponse": false,
@@ -372,11 +418,11 @@
},
"parameters": [
{
- "$id": "46",
+ "$id": "50",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -389,12 +435,12 @@
"skipUrlEncoding": false
},
{
- "$id": "47",
+ "$id": "51",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "39"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -407,11 +453,11 @@
"skipUrlEncoding": false
},
{
- "$id": "48",
+ "$id": "52",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "42"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -425,9 +471,9 @@
}
],
"response": {
- "$id": "49",
+ "$id": "53",
"type": {
- "$ref": "2"
+ "$ref": "10"
}
},
"isOverride": false,
@@ -436,34 +482,24 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.FlattenProperty.putFlattenModel"
},
{
- "$id": "50",
+ "$id": "54",
"kind": "basic",
"name": "putNestedFlattenModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "51",
+ "$id": "55",
"name": "putNestedFlattenModel",
"resourceName": "FlattenProperty",
"accessibility": "public",
"parameters": [
{
- "$id": "52",
+ "$id": "56",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "53",
- "kind": "constant",
- "valueType": {
- "$id": "54",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -476,21 +512,11 @@
"skipUrlEncoding": false
},
{
- "$id": "55",
+ "$id": "57",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "56",
- "kind": "constant",
- "valueType": {
- "$id": "57",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -507,7 +533,7 @@
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "19"
+ "$ref": "27"
},
"location": "Body",
"isApiVersion": false,
@@ -527,7 +553,7 @@
200
],
"bodyType": {
- "$ref": "19"
+ "$ref": "27"
},
"headers": [],
"isErrorResponse": false,
@@ -554,7 +580,7 @@
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "19"
+ "$ref": "27"
},
"location": "Body",
"isApiVersion": false,
@@ -572,7 +598,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "53"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -589,7 +615,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "56"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -605,7 +631,7 @@
"response": {
"$id": "63",
"type": {
- "$ref": "19"
+ "$ref": "27"
}
},
"isOverride": false,
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 35b3695c3298..7c0a5873765c 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
@@ -17,6 +17,7 @@
+
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 5c3ab723b796..59cac0e53121 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
@@ -3,9 +3,91 @@
"name": "_Specs_.Azure.ClientGenerator.Core.Usage",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "inputToInputOutputContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "outputToInputOutputContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "modelInReadOnlyPropertyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "modelInReadOnlyPropertyContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "orphanModelSerializableContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "12",
"kind": "model",
"name": "InputModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation",
@@ -15,12 +97,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "13",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "4",
+ "$id": "14",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -33,9 +115,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation.InputModel.name",
"serializationOptions": {
- "$id": "5",
+ "$id": "15",
"json": {
- "$id": "6",
+ "$id": "16",
"name": "name"
}
}
@@ -43,7 +125,7 @@
]
},
{
- "$id": "7",
+ "$id": "17",
"kind": "model",
"name": "OutputModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation",
@@ -53,12 +135,12 @@
"decorators": [],
"properties": [
{
- "$id": "8",
+ "$id": "18",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "9",
+ "$id": "19",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -71,9 +153,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation.OutputModel.name",
"serializationOptions": {
- "$id": "10",
+ "$id": "20",
"json": {
- "$id": "11",
+ "$id": "21",
"name": "name"
}
}
@@ -81,7 +163,7 @@
]
},
{
- "$id": "12",
+ "$id": "22",
"kind": "model",
"name": "RoundTripModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation",
@@ -90,12 +172,12 @@
"decorators": [],
"properties": [
{
- "$id": "13",
+ "$id": "23",
"kind": "property",
"name": "result",
"serializedName": "result",
"type": {
- "$id": "14",
+ "$id": "24",
"kind": "model",
"name": "ResultModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation",
@@ -104,12 +186,12 @@
"decorators": [],
"properties": [
{
- "$id": "15",
+ "$id": "25",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "16",
+ "$id": "26",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -122,9 +204,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation.ResultModel.name",
"serializationOptions": {
- "$id": "17",
+ "$id": "27",
"json": {
- "$id": "18",
+ "$id": "28",
"name": "name"
}
}
@@ -138,9 +220,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation.RoundTripModel.result",
"serializationOptions": {
- "$id": "19",
+ "$id": "29",
"json": {
- "$id": "20",
+ "$id": "30",
"name": "result"
}
}
@@ -148,10 +230,10 @@
]
},
{
- "$ref": "14"
+ "$ref": "24"
},
{
- "$id": "21",
+ "$id": "31",
"kind": "model",
"name": "OrphanModel",
"namespace": "_Specs_.Azure.ClientGenerator.Core.Usage",
@@ -162,12 +244,12 @@
"decorators": [],
"properties": [
{
- "$id": "22",
+ "$id": "32",
"kind": "property",
"name": "modelName",
"serializedName": "name",
"type": {
- "$id": "23",
+ "$id": "33",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -180,16 +262,16 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.OrphanModel.name",
"serializationOptions": {
- "$id": "24"
+ "$id": "34"
}
},
{
- "$id": "25",
+ "$id": "35",
"kind": "property",
"name": "description",
"serializedName": "desc",
"type": {
- "$id": "26",
+ "$id": "36",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -202,9 +284,9 @@
"decorators": [],
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.OrphanModel.description",
"serializationOptions": {
- "$id": "27",
+ "$id": "37",
"json": {
- "$id": "28",
+ "$id": "38",
"name": "desc"
}
}
@@ -214,7 +296,7 @@
],
"clients": [
{
- "$id": "29",
+ "$id": "39",
"kind": "client",
"name": "UsageClient",
"namespace": "_Specs_.Azure.ClientGenerator.Core.Usage",
@@ -222,12 +304,12 @@
"methods": [],
"parameters": [
{
- "$id": "30",
+ "$id": "40",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "31",
+ "$id": "41",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -241,9 +323,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "32",
+ "$id": "42",
"type": {
- "$id": "33",
+ "$id": "43",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -257,42 +339,32 @@
"apiVersions": [],
"children": [
{
- "$id": "34",
+ "$id": "44",
"kind": "client",
"name": "ModelInOperation",
"namespace": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation",
"methods": [
{
- "$id": "35",
+ "$id": "45",
"kind": "basic",
"name": "inputToInputOutput",
"accessibility": "public",
"apiVersions": [],
"doc": "Expected body parameter: \n```json\n{\n \"name\": \"Madge\"\n}\n```",
"operation": {
- "$id": "36",
+ "$id": "46",
"name": "inputToInputOutput",
"resourceName": "ModelInOperation",
"doc": "Expected body parameter: \n```json\n{\n \"name\": \"Madge\"\n}\n```",
"accessibility": "public",
"parameters": [
{
- "$id": "37",
+ "$id": "47",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "38",
- "kind": "constant",
- "valueType": {
- "$id": "39",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -305,11 +377,11 @@
"skipUrlEncoding": false
},
{
- "$id": "40",
+ "$id": "48",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "12"
},
"location": "Body",
"isApiVersion": false,
@@ -324,7 +396,7 @@
],
"responses": [
{
- "$id": "41",
+ "$id": "49",
"statusCodes": [
204
],
@@ -346,11 +418,11 @@
},
"parameters": [
{
- "$id": "42",
+ "$id": "50",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "12"
},
"location": "Body",
"isApiVersion": false,
@@ -363,12 +435,12 @@
"skipUrlEncoding": false
},
{
- "$id": "43",
+ "$id": "51",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "38"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -382,7 +454,7 @@
}
],
"response": {
- "$id": "44"
+ "$id": "52"
},
"isOverride": false,
"generateConvenient": true,
@@ -390,35 +462,25 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation.inputToInputOutput"
},
{
- "$id": "45",
+ "$id": "53",
"kind": "basic",
"name": "outputToInputOutput",
"accessibility": "public",
"apiVersions": [],
"doc": "Expected response body: \n```json\n{\n \"name\": \"Madge\"\n}\n```",
"operation": {
- "$id": "46",
+ "$id": "54",
"name": "outputToInputOutput",
"resourceName": "ModelInOperation",
"doc": "Expected response body: \n```json\n{\n \"name\": \"Madge\"\n}\n```",
"accessibility": "public",
"parameters": [
{
- "$id": "47",
+ "$id": "55",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "48",
- "kind": "constant",
- "valueType": {
- "$id": "49",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -433,12 +495,12 @@
],
"responses": [
{
- "$id": "50",
+ "$id": "56",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "7"
+ "$ref": "17"
},
"headers": [],
"isErrorResponse": false,
@@ -458,11 +520,11 @@
},
"parameters": [
{
- "$id": "51",
+ "$id": "57",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "48"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -476,9 +538,9 @@
}
],
"response": {
- "$id": "52",
+ "$id": "58",
"type": {
- "$ref": "7"
+ "$ref": "17"
}
},
"isOverride": false,
@@ -487,36 +549,26 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation.outputToInputOutput"
},
{
- "$id": "53",
+ "$id": "59",
"kind": "basic",
"name": "modelInReadOnlyProperty",
"accessibility": "public",
"apiVersions": [],
"doc": "\"ResultModel\" should be usage=output, as it is read-only and does not exist in request body.\n\nExpected body parameter: \n```json\n{\n}\n```\n\nExpected response body: \n```json\n{\n \"result\": {\n \"name\": \"Madge\"\n }\n}\n```",
"operation": {
- "$id": "54",
+ "$id": "60",
"name": "modelInReadOnlyProperty",
"resourceName": "ModelInOperation",
"doc": "\"ResultModel\" should be usage=output, as it is read-only and does not exist in request body.\n\nExpected body parameter: \n```json\n{\n}\n```\n\nExpected response body: \n```json\n{\n \"result\": {\n \"name\": \"Madge\"\n }\n}\n```",
"accessibility": "public",
"parameters": [
{
- "$id": "55",
+ "$id": "61",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "56",
- "kind": "constant",
- "valueType": {
- "$id": "57",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -529,21 +581,11 @@
"skipUrlEncoding": false
},
{
- "$id": "58",
+ "$id": "62",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "59",
- "kind": "constant",
- "valueType": {
- "$id": "60",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -556,11 +598,11 @@
"skipUrlEncoding": false
},
{
- "$id": "61",
+ "$id": "63",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "22"
},
"location": "Body",
"isApiVersion": false,
@@ -575,12 +617,12 @@
],
"responses": [
{
- "$id": "62",
+ "$id": "64",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "12"
+ "$ref": "22"
},
"headers": [],
"isErrorResponse": false,
@@ -603,11 +645,11 @@
},
"parameters": [
{
- "$id": "63",
+ "$id": "65",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "22"
},
"location": "Body",
"isApiVersion": false,
@@ -620,12 +662,12 @@
"skipUrlEncoding": false
},
{
- "$id": "64",
+ "$id": "66",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "56"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -638,11 +680,11 @@
"skipUrlEncoding": false
},
{
- "$id": "65",
+ "$id": "67",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "59"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -656,9 +698,9 @@
}
],
"response": {
- "$id": "66",
+ "$id": "68",
"type": {
- "$ref": "12"
+ "$ref": "22"
}
},
"isOverride": false,
@@ -667,36 +709,26 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation.modelInReadOnlyProperty"
},
{
- "$id": "67",
+ "$id": "69",
"kind": "basic",
"name": "orphanModelSerializable",
"accessibility": "public",
"apiVersions": [],
"doc": "Serialize the 'OrphanModel' as request body.\n\nExpected body parameter: \n```json\n{\n \"name\": \"name\",\n \"desc\": \"desc\"\n}\n```",
"operation": {
- "$id": "68",
+ "$id": "70",
"name": "orphanModelSerializable",
"resourceName": "ModelInOperation",
"doc": "Serialize the 'OrphanModel' as request body.\n\nExpected body parameter: \n```json\n{\n \"name\": \"name\",\n \"desc\": \"desc\"\n}\n```",
"accessibility": "public",
"parameters": [
{
- "$id": "69",
+ "$id": "71",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "70",
- "kind": "constant",
- "valueType": {
- "$id": "71",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -780,7 +812,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "70"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -838,7 +870,7 @@
"crossLanguageDefinitionId": "_Specs_.Azure.ClientGenerator.Core.Usage.ModelInOperation",
"apiVersions": [],
"parent": {
- "$ref": "29"
+ "$ref": "39"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/Configuration.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/Configuration.json
new file mode 100644
index 000000000000..c6467b1bd6a1
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/Configuration.json
@@ -0,0 +1,10 @@
+{
+ "package-name": "_Specs_.Azure.Core.Lro.Rpc",
+ "license": {
+ "name": "MIT License",
+ "company": "Microsoft Corporation",
+ "link": "https://mit-license.org",
+ "header": "Copyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the MIT License.",
+ "description": "Copyright (c) Microsoft Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/_Specs_.Azure.Core.Lro.Rpc.sln b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/_Specs_.Azure.Core.Lro.Rpc.sln
new file mode 100644
index 000000000000..09aa480a9284
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/_Specs_.Azure.Core.Lro.Rpc.sln
@@ -0,0 +1,48 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "_Specs_.Azure.Core.Lro.Rpc", "src\_Specs_.Azure.Core.Lro.Rpc.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationOptions.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationOptions.Serialization.cs
new file mode 100644
index 000000000000..7c837056e296
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationOptions.Serialization.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace _Specs_.Azure.Core.Lro.Rpc
+{
+ public partial class GenerationOptions : IJsonModel
+ {
+ internal GenerationOptions() => throw null;
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
+
+ GenerationOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual GenerationOptions JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null;
+
+ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
+
+ GenerationOptions IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual GenerationOptions PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
+
+ /// The to serialize into .
+ public static implicit operator RequestContent(GenerationOptions generationOptions) => throw null;
+
+ public static explicit operator GenerationOptions(Response result) => throw null;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationOptions.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationOptions.cs
new file mode 100644
index 000000000000..2cf1b2d1e6a1
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationOptions.cs
@@ -0,0 +1,16 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace _Specs_.Azure.Core.Lro.Rpc
+{
+ public partial class GenerationOptions
+ {
+ public GenerationOptions(string prompt) => throw null;
+
+ public string Prompt => throw null;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationResult.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationResult.Serialization.cs
new file mode 100644
index 000000000000..4de052d597cf
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationResult.Serialization.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace _Specs_.Azure.Core.Lro.Rpc
+{
+ public partial class GenerationResult : IJsonModel
+ {
+ internal GenerationResult() => throw null;
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
+
+ GenerationResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual GenerationResult JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null;
+
+ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
+
+ GenerationResult IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual GenerationResult PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
+
+ /// The to serialize into .
+ public static implicit operator RequestContent(GenerationResult generationResult) => throw null;
+
+ public static explicit operator GenerationResult(Response result) => throw null;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationResult.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationResult.cs
new file mode 100644
index 000000000000..31dddebeacd7
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/GenerationResult.cs
@@ -0,0 +1,14 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace _Specs_.Azure.Core.Lro.Rpc
+{
+ public partial class GenerationResult
+ {
+ public string Data => throw null;
+ }
+}
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/_Specs_AzureCoreLroRpcContext.cs
new file mode 100644
index 000000000000..e5c796171a09
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/Models/_Specs_AzureCoreLroRpcContext.cs
@@ -0,0 +1,15 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+
+namespace _Specs_.Azure.Core.Lro.Rpc
+{
+ public partial class _Specs_AzureCoreLroRpcContext : 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
new file mode 100644
index 000000000000..0a8f320d2b00
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClient.cs
@@ -0,0 +1,33 @@
+// 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.Core.Pipeline;
+
+namespace _Specs_.Azure.Core.Lro.Rpc
+{
+ public partial class RpcClient
+ {
+ public RpcClient() : this(new Uri("http://localhost:3000"), new RpcClientOptions()) => throw null;
+
+ public RpcClient(Uri endpoint, RpcClientOptions options) => throw null;
+
+ public virtual HttpPipeline Pipeline => throw null;
+
+ public virtual Operation LongRunningRpc(WaitUntil waitUntil, RequestContent content, RequestContext context = null) => throw null;
+
+ public virtual Task> LongRunningRpcAsync(WaitUntil waitUntil, RequestContent content, RequestContext context = null) => throw null;
+
+ public virtual Operation LongRunningRpc(WaitUntil waitUntil, GenerationOptions body, CancellationToken cancellationToken = default) => throw null;
+
+ public virtual Task> LongRunningRpcAsync(WaitUntil waitUntil, GenerationOptions body, CancellationToken cancellationToken = default) => throw null;
+ }
+}
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
new file mode 100644
index 000000000000..2a397dd3a662
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/RpcClientOptions.cs
@@ -0,0 +1,24 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace _Specs_.Azure.Core.Lro.Rpc
+{
+ public partial class RpcClientOptions : ClientOptions
+ {
+ private const ServiceVersion LatestVersion = ServiceVersion.V2022_12_01_Preview;
+
+ public RpcClientOptions(ServiceVersion version = LatestVersion) => throw null;
+
+ public enum ServiceVersion
+ {
+ /// The 2022-12-01-preview version.
+ V2022_12_01_Preview = 1
+ }
+ }
+}
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
new file mode 100644
index 000000000000..5caf7f0bf220
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/Generated/_Specs_AzureCoreLroRpcModelFactory.cs
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+
+namespace _Specs_.Azure.Core.Lro.Rpc
+{
+ public static partial class _Specs_AzureCoreLroRpcModelFactory
+ {
+ public static GenerationOptions GenerationOptions(string prompt = default) => throw null;
+
+ public static GenerationResult GenerationResult(string data = default) => throw null;
+ }
+}
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
new file mode 100644
index 000000000000..51f52f699679
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/src/_Specs_.Azure.Core.Lro.Rpc.csproj
@@ -0,0 +1,41 @@
+
+
+ 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
+ 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
new file mode 100644
index 000000000000..39d7ce3e3c3b
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/rpc/tspCodeModel.json
@@ -0,0 +1,1013 @@
+{
+ "$id": "1",
+ "name": "_Specs_.Azure.Core.Lro.Rpc",
+ "apiVersions": [
+ "2022-12-01-preview"
+ ],
+ "enums": [
+ {
+ "$id": "2",
+ "kind": "enum",
+ "name": "Versions",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.Versions",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "4",
+ "kind": "enumvalue",
+ "name": "v2022_12_01_preview",
+ "value": "2022-12-01-preview",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "The 2022-12-01-preview version.",
+ "decorators": []
+ }
+ ],
+ "namespace": "_Specs_.Azure.Core.Lro.Rpc",
+ "doc": "The API version.",
+ "isFixed": true,
+ "isFlags": false,
+ "usage": "ApiVersionEnum",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "enum",
+ "name": "OperationState",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationState",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "8",
+ "kind": "enumvalue",
+ "name": "NotStarted",
+ "value": "NotStarted",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation has not started.",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "enumvalue",
+ "name": "Running",
+ "value": "Running",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation is in progress.",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "enumvalue",
+ "name": "Succeeded",
+ "value": "Succeeded",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation has completed successfully.",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "enumvalue",
+ "name": "Failed",
+ "value": "Failed",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation has failed.",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "enumvalue",
+ "name": "Canceled",
+ "value": "Canceled",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation has been canceled by the user.",
+ "decorators": []
+ }
+ ],
+ "namespace": "Azure.Core.Foundations",
+ "doc": "Enum describing allowed operation states.",
+ "isFixed": false,
+ "isFlags": false,
+ "usage": "Json,LroInitial,LroPolling,LroFinalEnvelope",
+ "decorators": []
+ }
+ ],
+ "constants": [
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "longRunningRpcContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "longRunningRpcContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "longRunningRpcContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "longRunningRpcContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "26",
+ "kind": "model",
+ "name": "GenerationOptions",
+ "namespace": "_Specs_.Azure.Core.Lro.Rpc",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.GenerationOptions",
+ "usage": "Input,Json",
+ "doc": "Options for the generation.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "27",
+ "kind": "property",
+ "name": "prompt",
+ "serializedName": "prompt",
+ "doc": "Prompt.",
+ "type": {
+ "$id": "28",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.GenerationOptions.prompt",
+ "serializationOptions": {
+ "$id": "29",
+ "json": {
+ "$id": "30",
+ "name": "prompt"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "31",
+ "kind": "model",
+ "name": "GenerationResult",
+ "namespace": "_Specs_.Azure.Core.Lro.Rpc",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.GenerationResult",
+ "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "Result of the generation.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "32",
+ "kind": "property",
+ "name": "data",
+ "serializedName": "data",
+ "doc": "The data.",
+ "type": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.GenerationResult.data",
+ "serializationOptions": {
+ "$id": "34",
+ "json": {
+ "$id": "35",
+ "name": "data"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "36",
+ "kind": "model",
+ "name": "ResourceOperationStatusGenerationResponseGenerationResultError",
+ "namespace": "Azure.Core",
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus",
+ "usage": "Json,LroInitial",
+ "doc": "Provides status details for long running operations.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "37",
+ "kind": "property",
+ "name": "id",
+ "serializedName": "id",
+ "doc": "The unique ID of the operation.",
+ "type": {
+ "$id": "38",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": true,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.id",
+ "serializationOptions": {
+ "$id": "39",
+ "json": {
+ "$id": "40",
+ "name": "id"
+ }
+ }
+ },
+ {
+ "$id": "41",
+ "kind": "property",
+ "name": "status",
+ "serializedName": "status",
+ "doc": "The status of the operation",
+ "type": {
+ "$ref": "6"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.status",
+ "serializationOptions": {
+ "$id": "42",
+ "json": {
+ "$id": "43",
+ "name": "status"
+ }
+ }
+ },
+ {
+ "$id": "44",
+ "kind": "property",
+ "name": "error",
+ "serializedName": "error",
+ "doc": "Error object that describes the error when status is \"Failed\".",
+ "type": {
+ "$id": "45",
+ "kind": "model",
+ "name": "Error",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error",
+ "usage": "Json,Exception,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "The error object.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "46",
+ "kind": "property",
+ "name": "code",
+ "serializedName": "code",
+ "doc": "One of a server-defined set of error codes.",
+ "type": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.code",
+ "serializationOptions": {
+ "$id": "48",
+ "json": {
+ "$id": "49",
+ "name": "code"
+ }
+ }
+ },
+ {
+ "$id": "50",
+ "kind": "property",
+ "name": "message",
+ "serializedName": "message",
+ "doc": "A human-readable representation of the error.",
+ "type": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.message",
+ "serializationOptions": {
+ "$id": "52",
+ "json": {
+ "$id": "53",
+ "name": "message"
+ }
+ }
+ },
+ {
+ "$id": "54",
+ "kind": "property",
+ "name": "target",
+ "serializedName": "target",
+ "doc": "The target of the error.",
+ "type": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.target",
+ "serializationOptions": {
+ "$id": "56",
+ "json": {
+ "$id": "57",
+ "name": "target"
+ }
+ }
+ },
+ {
+ "$id": "58",
+ "kind": "property",
+ "name": "details",
+ "serializedName": "details",
+ "doc": "An array of details about specific errors that led to this reported error.",
+ "type": {
+ "$id": "59",
+ "kind": "array",
+ "name": "ArrayError",
+ "valueType": {
+ "$ref": "45"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.details",
+ "serializationOptions": {
+ "$id": "60",
+ "json": {
+ "$id": "61",
+ "name": "details"
+ }
+ }
+ },
+ {
+ "$id": "62",
+ "kind": "property",
+ "name": "innererror",
+ "serializedName": "innererror",
+ "doc": "An object containing more specific information than the current object about the error.",
+ "type": {
+ "$id": "63",
+ "kind": "model",
+ "name": "InnerError",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError",
+ "usage": "Json,Exception,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "64",
+ "kind": "property",
+ "name": "code",
+ "serializedName": "code",
+ "doc": "One of a server-defined set of error codes.",
+ "type": {
+ "$id": "65",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.code",
+ "serializationOptions": {
+ "$id": "66",
+ "json": {
+ "$id": "67",
+ "name": "code"
+ }
+ }
+ },
+ {
+ "$id": "68",
+ "kind": "property",
+ "name": "innererror",
+ "serializedName": "innererror",
+ "doc": "Inner error.",
+ "type": {
+ "$ref": "63"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.innererror",
+ "serializationOptions": {
+ "$id": "69",
+ "json": {
+ "$id": "70",
+ "name": "innererror"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.innererror",
+ "serializationOptions": {
+ "$id": "71",
+ "json": {
+ "$id": "72",
+ "name": "innererror"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.error",
+ "serializationOptions": {
+ "$id": "73",
+ "json": {
+ "$id": "74",
+ "name": "error"
+ }
+ }
+ },
+ {
+ "$id": "75",
+ "kind": "property",
+ "name": "result",
+ "serializedName": "result",
+ "doc": "The result of the operation.",
+ "type": {
+ "$ref": "31"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.result",
+ "serializationOptions": {
+ "$id": "76",
+ "json": {
+ "$id": "77",
+ "name": "result"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$ref": "45"
+ },
+ {
+ "$ref": "63"
+ },
+ {
+ "$id": "78",
+ "kind": "model",
+ "name": "OperationStatusGenerationResultError",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus",
+ "usage": "LroPolling,LroFinalEnvelope",
+ "doc": "Provides status details for long running operations.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "79",
+ "kind": "property",
+ "name": "id",
+ "serializedName": "id",
+ "doc": "The unique ID of the operation.",
+ "type": {
+ "$id": "80",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": true,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.id",
+ "serializationOptions": {
+ "$id": "81",
+ "json": {
+ "$id": "82",
+ "name": "id"
+ }
+ }
+ },
+ {
+ "$id": "83",
+ "kind": "property",
+ "name": "status",
+ "serializedName": "status",
+ "doc": "The status of the operation",
+ "type": {
+ "$ref": "6"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.status",
+ "serializationOptions": {
+ "$id": "84",
+ "json": {
+ "$id": "85",
+ "name": "status"
+ }
+ }
+ },
+ {
+ "$id": "86",
+ "kind": "property",
+ "name": "error",
+ "serializedName": "error",
+ "doc": "Error object that describes the error when status is \"Failed\".",
+ "type": {
+ "$ref": "45"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.error",
+ "serializationOptions": {
+ "$id": "87",
+ "json": {
+ "$id": "88",
+ "name": "error"
+ }
+ }
+ },
+ {
+ "$id": "89",
+ "kind": "property",
+ "name": "result",
+ "serializedName": "result",
+ "doc": "The result of the operation.",
+ "type": {
+ "$ref": "31"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.result",
+ "serializationOptions": {
+ "$id": "90",
+ "json": {
+ "$id": "91",
+ "name": "result"
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "clients": [
+ {
+ "$id": "92",
+ "kind": "client",
+ "name": "RpcClient",
+ "namespace": "_Specs_.Azure.Core.Lro.Rpc",
+ "doc": "Illustrates bodies templated with Azure Core with long-running RPC operation",
+ "methods": [
+ {
+ "$id": "93",
+ "kind": "lro",
+ "name": "longRunningRpc",
+ "accessibility": "public",
+ "apiVersions": [
+ "2022-12-01-preview"
+ ],
+ "doc": "Generate data.",
+ "summary": "Generate data.",
+ "operation": {
+ "$id": "94",
+ "name": "longRunningRpc",
+ "resourceName": "Rpc",
+ "summary": "Generate data.",
+ "doc": "Generate data.",
+ "accessibility": "public",
+ "parameters": [
+ {
+ "$id": "95",
+ "name": "apiVersion",
+ "nameInRequest": "api-version",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "96",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Query",
+ "isApiVersion": true,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Client",
+ "defaultValue": {
+ "$id": "97",
+ "type": {
+ "$id": "98",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "99",
+ "name": "contentType",
+ "nameInRequest": "Content-Type",
+ "doc": "Body parameter's content type. Known values are application/json",
+ "type": {
+ "$ref": "18"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": true,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "100",
+ "name": "accept",
+ "nameInRequest": "Accept",
+ "type": {
+ "$ref": "20"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "101",
+ "name": "body",
+ "nameInRequest": "body",
+ "doc": "The body parameter.",
+ "type": {
+ "$ref": "26"
+ },
+ "location": "Body",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ }
+ ],
+ "responses": [
+ {
+ "$id": "102",
+ "statusCodes": [
+ 202
+ ],
+ "bodyType": {
+ "$ref": "36"
+ },
+ "headers": [
+ {
+ "$id": "103",
+ "name": "operationLocation",
+ "nameInResponse": "Operation-Location",
+ "doc": "The location for monitoring the operation state.",
+ "type": {
+ "$id": "104",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "105",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ }
+ }
+ ],
+ "isErrorResponse": false,
+ "contentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "httpMethod": "POST",
+ "uri": "{endpoint}",
+ "path": "/azure/core/lro/rpc/generations:submit",
+ "requestMediaTypes": [
+ "application/json"
+ ],
+ "bufferResponse": true,
+ "generateProtocolMethod": true,
+ "generateConvenienceMethod": true,
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.longRunningRpc",
+ "decorators": []
+ },
+ "parameters": [
+ {
+ "$id": "106",
+ "name": "body",
+ "nameInRequest": "body",
+ "doc": "The body parameter.",
+ "type": {
+ "$ref": "26"
+ },
+ "location": "Body",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "107",
+ "name": "contentType",
+ "nameInRequest": "contentType",
+ "doc": "Body parameter's content type. Known values are application/json",
+ "type": {
+ "$ref": "22"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "108",
+ "name": "accept",
+ "nameInRequest": "accept",
+ "type": {
+ "$ref": "24"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ }
+ ],
+ "response": {
+ "$id": "109",
+ "type": {
+ "$ref": "31"
+ },
+ "resultSegments": [
+ "result"
+ ]
+ },
+ "isOverride": false,
+ "generateConvenient": true,
+ "generateProtocol": true,
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc.longRunningRpc",
+ "lroMetadata": {
+ "$id": "110",
+ "finalStateVia": 3,
+ "finalResponse": {
+ "$id": "111",
+ "statusCodes": [
+ 200
+ ],
+ "bodyType": {
+ "$ref": "78"
+ }
+ },
+ "resultPath": "result"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "$id": "112",
+ "name": "endpoint",
+ "nameInRequest": "endpoint",
+ "doc": "Service host",
+ "type": {
+ "$id": "113",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url"
+ },
+ "location": "Uri",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isRequired": true,
+ "isEndpoint": true,
+ "skipUrlEncoding": false,
+ "explode": false,
+ "kind": "Client",
+ "defaultValue": {
+ "$id": "114",
+ "type": {
+ "$id": "115",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "http://localhost:3000"
+ }
+ }
+ ],
+ "decorators": [],
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Rpc",
+ "apiVersions": [
+ "2022-12-01-preview"
+ ]
+ }
+ ]
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/Configuration.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/Configuration.json
new file mode 100644
index 000000000000..34ec013de7ef
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/Configuration.json
@@ -0,0 +1,10 @@
+{
+ "package-name": "_Specs_.Azure.Core.Lro.Standard",
+ "license": {
+ "name": "MIT License",
+ "company": "Microsoft Corporation",
+ "link": "https://mit-license.org",
+ "header": "Copyright (c) Microsoft Corporation. All rights reserved.\nLicensed under the MIT License.",
+ "description": "Copyright (c) Microsoft Corporation\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the “Software”), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in\nall copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\nTHE SOFTWARE."
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/_Specs_.Azure.Core.Lro.Standard.sln b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/_Specs_.Azure.Core.Lro.Standard.sln
new file mode 100644
index 000000000000..ead4253bf4aa
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/_Specs_.Azure.Core.Lro.Standard.sln
@@ -0,0 +1,48 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "_Specs_.Azure.Core.Lro.Standard", "src\_Specs_.Azure.Core.Lro.Standard.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/ExportedUser.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/ExportedUser.Serialization.cs
new file mode 100644
index 000000000000..ef8cf489127f
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/ExportedUser.Serialization.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace _Specs_.Azure.Core.Lro.Standard
+{
+ public partial class ExportedUser : IJsonModel
+ {
+ internal ExportedUser() => throw null;
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
+
+ ExportedUser IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual ExportedUser JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null;
+
+ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
+
+ ExportedUser IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual ExportedUser PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
+
+ /// The to serialize into .
+ public static implicit operator RequestContent(ExportedUser exportedUser) => throw null;
+
+ public static explicit operator ExportedUser(Response result) => throw null;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/ExportedUser.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/ExportedUser.cs
new file mode 100644
index 000000000000..ca2b91b23684
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/ExportedUser.cs
@@ -0,0 +1,16 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace _Specs_.Azure.Core.Lro.Standard
+{
+ public partial class ExportedUser
+ {
+ public string Name => throw null;
+
+ public string ResourceUri => throw null;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/User.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/User.Serialization.cs
new file mode 100644
index 000000000000..c6d6eeee7ce3
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/User.Serialization.cs
@@ -0,0 +1,43 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace _Specs_.Azure.Core.Lro.Standard
+{
+ public partial class User : IJsonModel
+ {
+ internal User() => throw null;
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
+
+ User IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual User JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null;
+
+ protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
+
+ User IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
+
+ protected virtual User PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
+
+ /// The to serialize into .
+ public static implicit operator RequestContent(User user) => throw null;
+
+ public static explicit operator User(Response result) => throw null;
+ }
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/User.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/User.cs
new file mode 100644
index 000000000000..e3d7d72c3ce1
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/User.cs
@@ -0,0 +1,22 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+namespace _Specs_.Azure.Core.Lro.Standard
+{
+ public partial class User
+ {
+ public User(string role) => throw null;
+
+ public string Name => throw null;
+
+ public string Role
+ {
+ get => throw null;
+ set => throw null;
+ }
+ }
+}
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/_Specs_AzureCoreLroStandardContext.cs
new file mode 100644
index 000000000000..93b4cd39ec3e
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/Models/_Specs_AzureCoreLroStandardContext.cs
@@ -0,0 +1,15 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.ClientModel.Primitives;
+
+namespace _Specs_.Azure.Core.Lro.Standard
+{
+ public partial class _Specs_AzureCoreLroStandardContext : 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
new file mode 100644
index 000000000000..580882f9ecd2
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClient.cs
@@ -0,0 +1,49 @@
+// 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.Core.Pipeline;
+
+namespace _Specs_.Azure.Core.Lro.Standard
+{
+ public partial class StandardClient
+ {
+ public StandardClient() : this(new Uri("http://localhost:3000"), new StandardClientOptions()) => throw null;
+
+ public StandardClient(Uri endpoint, StandardClientOptions options) => throw null;
+
+ public virtual HttpPipeline Pipeline => throw null;
+
+ public virtual Operation CreateOrReplace(WaitUntil waitUntil, string name, RequestContent content, RequestContext context = null) => throw null;
+
+ public virtual Task> CreateOrReplaceAsync(WaitUntil waitUntil, string name, RequestContent content, RequestContext context = null) => throw null;
+
+ public virtual Operation CreateOrReplace(WaitUntil waitUntil, string name, User resource, CancellationToken cancellationToken = default) => throw null;
+
+ public virtual Task> CreateOrReplaceAsync(WaitUntil waitUntil, string name, User resource, CancellationToken cancellationToken = default) => throw null;
+
+ public virtual Operation Delete(WaitUntil waitUntil, string name, RequestContext context) => throw null;
+
+ public virtual Task DeleteAsync(WaitUntil waitUntil, string name, RequestContext context) => throw null;
+
+ public virtual Operation Delete(WaitUntil waitUntil, string name, CancellationToken cancellationToken = default) => throw null;
+
+ public virtual Task DeleteAsync(WaitUntil waitUntil, string name, CancellationToken cancellationToken = default) => throw null;
+
+ public virtual Operation Export(WaitUntil waitUntil, string name, string format, RequestContext context) => throw null;
+
+ public virtual Task> ExportAsync(WaitUntil waitUntil, string name, string format, RequestContext context) => throw null;
+
+ public virtual Operation Export(WaitUntil waitUntil, string name, string format, CancellationToken cancellationToken = default) => throw null;
+
+ public virtual Task> ExportAsync(WaitUntil waitUntil, string name, string format, CancellationToken cancellationToken = default) => throw null;
+ }
+}
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
new file mode 100644
index 000000000000..683db1815f22
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/StandardClientOptions.cs
@@ -0,0 +1,24 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using Azure.Core;
+
+namespace _Specs_.Azure.Core.Lro.Standard
+{
+ public partial class StandardClientOptions : ClientOptions
+ {
+ private const ServiceVersion LatestVersion = ServiceVersion.V2022_12_01_Preview;
+
+ public StandardClientOptions(ServiceVersion version = LatestVersion) => throw null;
+
+ public enum ServiceVersion
+ {
+ /// The 2022-12-01-preview version.
+ V2022_12_01_Preview = 1
+ }
+ }
+}
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
new file mode 100644
index 000000000000..f09375539dab
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/Generated/_Specs_AzureCoreLroStandardModelFactory.cs
@@ -0,0 +1,20 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System.Collections.Generic;
+using Azure;
+using Azure.Core;
+
+namespace _Specs_.Azure.Core.Lro.Standard
+{
+ public static partial class _Specs_AzureCoreLroStandardModelFactory
+ {
+ public static User User(string name = default, string role = default) => throw null;
+
+ public static ExportedUser ExportedUser(string name = default, string resourceUri = default) => throw null;
+ }
+}
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
new file mode 100644
index 000000000000..d0a9740315d4
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/src/_Specs_.Azure.Core.Lro.Standard.csproj
@@ -0,0 +1,41 @@
+
+
+ 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
+ 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
new file mode 100644
index 000000000000..12122d556e60
--- /dev/null
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/core/lro/standard/tspCodeModel.json
@@ -0,0 +1,1735 @@
+{
+ "$id": "1",
+ "name": "_Specs_.Azure.Core.Lro.Standard",
+ "apiVersions": [
+ "2022-12-01-preview"
+ ],
+ "enums": [
+ {
+ "$id": "2",
+ "kind": "enum",
+ "name": "Versions",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.Versions",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "4",
+ "kind": "enumvalue",
+ "name": "v2022_12_01_preview",
+ "value": "2022-12-01-preview",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "The 2022-12-01-preview version.",
+ "decorators": []
+ }
+ ],
+ "namespace": "_Specs_.Azure.Core.Lro.Standard",
+ "doc": "The API version.",
+ "isFixed": true,
+ "isFlags": false,
+ "usage": "ApiVersionEnum",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "enum",
+ "name": "OperationState",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationState",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "8",
+ "kind": "enumvalue",
+ "name": "NotStarted",
+ "value": "NotStarted",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation has not started.",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "enumvalue",
+ "name": "Running",
+ "value": "Running",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation is in progress.",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "enumvalue",
+ "name": "Succeeded",
+ "value": "Succeeded",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation has completed successfully.",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "enumvalue",
+ "name": "Failed",
+ "value": "Failed",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation has failed.",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "enumvalue",
+ "name": "Canceled",
+ "value": "Canceled",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "The operation has been canceled by the user.",
+ "decorators": []
+ }
+ ],
+ "namespace": "Azure.Core.Foundations",
+ "doc": "Enum describing allowed operation states.",
+ "isFixed": false,
+ "isFlags": false,
+ "usage": "Json,LroInitial,LroPolling,LroFinalEnvelope",
+ "decorators": []
+ }
+ ],
+ "constants": [
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "createOrReplaceContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "createOrReplaceContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "createOrReplaceContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "createOrReplaceContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "deleteContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "deleteContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "exportContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "exportContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "34",
+ "kind": "model",
+ "name": "User",
+ "namespace": "_Specs_.Azure.Core.Lro.Standard",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.User",
+ "usage": "Input,Output,Json,LroInitial,LroFinalEnvelope",
+ "doc": "Details about a user.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "35",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "The name of user.",
+ "type": {
+ "$id": "36",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": true,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.User.name",
+ "serializationOptions": {
+ "$id": "37",
+ "json": {
+ "$id": "38",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "39",
+ "kind": "property",
+ "name": "role",
+ "serializedName": "role",
+ "doc": "The role of user",
+ "type": {
+ "$id": "40",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.User.role",
+ "serializationOptions": {
+ "$id": "41",
+ "json": {
+ "$id": "42",
+ "name": "role"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "43",
+ "kind": "model",
+ "name": "ExportedUser",
+ "namespace": "_Specs_.Azure.Core.Lro.Standard",
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.ExportedUser",
+ "usage": "Output,Json,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "The exported user data.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "44",
+ "kind": "property",
+ "name": "name",
+ "serializedName": "name",
+ "doc": "The name of user.",
+ "type": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.ExportedUser.name",
+ "serializationOptions": {
+ "$id": "46",
+ "json": {
+ "$id": "47",
+ "name": "name"
+ }
+ }
+ },
+ {
+ "$id": "48",
+ "kind": "property",
+ "name": "resourceUri",
+ "serializedName": "resourceUri",
+ "doc": "The exported URI.",
+ "type": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.ExportedUser.resourceUri",
+ "serializationOptions": {
+ "$id": "50",
+ "json": {
+ "$id": "51",
+ "name": "resourceUri"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "52",
+ "kind": "model",
+ "name": "OperationStatusError",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus",
+ "usage": "Json,LroInitial,LroPolling",
+ "doc": "Provides status details for long running operations.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "53",
+ "kind": "property",
+ "name": "id",
+ "serializedName": "id",
+ "doc": "The unique ID of the operation.",
+ "type": {
+ "$id": "54",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.id",
+ "serializationOptions": {
+ "$id": "55",
+ "json": {
+ "$id": "56",
+ "name": "id"
+ }
+ }
+ },
+ {
+ "$id": "57",
+ "kind": "property",
+ "name": "status",
+ "serializedName": "status",
+ "doc": "The status of the operation",
+ "type": {
+ "$ref": "6"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.status",
+ "serializationOptions": {
+ "$id": "58",
+ "json": {
+ "$id": "59",
+ "name": "status"
+ }
+ }
+ },
+ {
+ "$id": "60",
+ "kind": "property",
+ "name": "error",
+ "serializedName": "error",
+ "doc": "Error object that describes the error when status is \"Failed\".",
+ "type": {
+ "$id": "61",
+ "kind": "model",
+ "name": "Error",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error",
+ "usage": "Json,Exception,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "The error object.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "62",
+ "kind": "property",
+ "name": "code",
+ "serializedName": "code",
+ "doc": "One of a server-defined set of error codes.",
+ "type": {
+ "$id": "63",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.code",
+ "serializationOptions": {
+ "$id": "64",
+ "json": {
+ "$id": "65",
+ "name": "code"
+ }
+ }
+ },
+ {
+ "$id": "66",
+ "kind": "property",
+ "name": "message",
+ "serializedName": "message",
+ "doc": "A human-readable representation of the error.",
+ "type": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.message",
+ "serializationOptions": {
+ "$id": "68",
+ "json": {
+ "$id": "69",
+ "name": "message"
+ }
+ }
+ },
+ {
+ "$id": "70",
+ "kind": "property",
+ "name": "target",
+ "serializedName": "target",
+ "doc": "The target of the error.",
+ "type": {
+ "$id": "71",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.target",
+ "serializationOptions": {
+ "$id": "72",
+ "json": {
+ "$id": "73",
+ "name": "target"
+ }
+ }
+ },
+ {
+ "$id": "74",
+ "kind": "property",
+ "name": "details",
+ "serializedName": "details",
+ "doc": "An array of details about specific errors that led to this reported error.",
+ "type": {
+ "$id": "75",
+ "kind": "array",
+ "name": "ArrayError",
+ "valueType": {
+ "$ref": "61"
+ },
+ "crossLanguageDefinitionId": "TypeSpec.Array",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.details",
+ "serializationOptions": {
+ "$id": "76",
+ "json": {
+ "$id": "77",
+ "name": "details"
+ }
+ }
+ },
+ {
+ "$id": "78",
+ "kind": "property",
+ "name": "innererror",
+ "serializedName": "innererror",
+ "doc": "An object containing more specific information than the current object about the error.",
+ "type": {
+ "$id": "79",
+ "kind": "model",
+ "name": "InnerError",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError",
+ "usage": "Json,Exception,LroInitial,LroPolling,LroFinalEnvelope",
+ "doc": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/microsoft/api-guidelines/blob/vNext/azure/Guidelines.md#handling-errors.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "80",
+ "kind": "property",
+ "name": "code",
+ "serializedName": "code",
+ "doc": "One of a server-defined set of error codes.",
+ "type": {
+ "$id": "81",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.code",
+ "serializationOptions": {
+ "$id": "82",
+ "json": {
+ "$id": "83",
+ "name": "code"
+ }
+ }
+ },
+ {
+ "$id": "84",
+ "kind": "property",
+ "name": "innererror",
+ "serializedName": "innererror",
+ "doc": "Inner error.",
+ "type": {
+ "$ref": "79"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.innererror",
+ "serializationOptions": {
+ "$id": "85",
+ "json": {
+ "$id": "86",
+ "name": "innererror"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.innererror",
+ "serializationOptions": {
+ "$id": "87",
+ "json": {
+ "$id": "88",
+ "name": "innererror"
+ }
+ }
+ }
+ ]
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.error",
+ "serializationOptions": {
+ "$id": "89",
+ "json": {
+ "$id": "90",
+ "name": "error"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$ref": "61"
+ },
+ {
+ "$ref": "79"
+ },
+ {
+ "$id": "91",
+ "kind": "model",
+ "name": "ResourceOperationStatusUserExportedUserError",
+ "namespace": "Azure.Core",
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus",
+ "usage": "Json,LroInitial",
+ "doc": "Provides status details for long running operations.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "92",
+ "kind": "property",
+ "name": "id",
+ "serializedName": "id",
+ "doc": "The unique ID of the operation.",
+ "type": {
+ "$id": "93",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.id",
+ "serializationOptions": {
+ "$id": "94",
+ "json": {
+ "$id": "95",
+ "name": "id"
+ }
+ }
+ },
+ {
+ "$id": "96",
+ "kind": "property",
+ "name": "status",
+ "serializedName": "status",
+ "doc": "The status of the operation",
+ "type": {
+ "$ref": "6"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.status",
+ "serializationOptions": {
+ "$id": "97",
+ "json": {
+ "$id": "98",
+ "name": "status"
+ }
+ }
+ },
+ {
+ "$id": "99",
+ "kind": "property",
+ "name": "error",
+ "serializedName": "error",
+ "doc": "Error object that describes the error when status is \"Failed\".",
+ "type": {
+ "$ref": "61"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.error",
+ "serializationOptions": {
+ "$id": "100",
+ "json": {
+ "$id": "101",
+ "name": "error"
+ }
+ }
+ },
+ {
+ "$id": "102",
+ "kind": "property",
+ "name": "result",
+ "serializedName": "result",
+ "doc": "The result of the operation.",
+ "type": {
+ "$ref": "43"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.ResourceOperationStatus.result",
+ "serializationOptions": {
+ "$id": "103",
+ "json": {
+ "$id": "104",
+ "name": "result"
+ }
+ }
+ }
+ ]
+ },
+ {
+ "$id": "105",
+ "kind": "model",
+ "name": "OperationStatusExportedUserError",
+ "namespace": "Azure.Core.Foundations",
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus",
+ "usage": "LroPolling,LroFinalEnvelope",
+ "doc": "Provides status details for long running operations.",
+ "decorators": [],
+ "properties": [
+ {
+ "$id": "106",
+ "kind": "property",
+ "name": "id",
+ "serializedName": "id",
+ "doc": "The unique ID of the operation.",
+ "type": {
+ "$id": "107",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.id",
+ "serializationOptions": {
+ "$id": "108",
+ "json": {
+ "$id": "109",
+ "name": "id"
+ }
+ }
+ },
+ {
+ "$id": "110",
+ "kind": "property",
+ "name": "status",
+ "serializedName": "status",
+ "doc": "The status of the operation",
+ "type": {
+ "$ref": "6"
+ },
+ "optional": false,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.status",
+ "serializationOptions": {
+ "$id": "111",
+ "json": {
+ "$id": "112",
+ "name": "status"
+ }
+ }
+ },
+ {
+ "$id": "113",
+ "kind": "property",
+ "name": "error",
+ "serializedName": "error",
+ "doc": "Error object that describes the error when status is \"Failed\".",
+ "type": {
+ "$ref": "61"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.error",
+ "serializationOptions": {
+ "$id": "114",
+ "json": {
+ "$id": "115",
+ "name": "error"
+ }
+ }
+ },
+ {
+ "$id": "116",
+ "kind": "property",
+ "name": "result",
+ "serializedName": "result",
+ "doc": "The result of the operation.",
+ "type": {
+ "$ref": "43"
+ },
+ "optional": true,
+ "readOnly": false,
+ "discriminator": false,
+ "flatten": false,
+ "decorators": [],
+ "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationStatus.result",
+ "serializationOptions": {
+ "$id": "117",
+ "json": {
+ "$id": "118",
+ "name": "result"
+ }
+ }
+ }
+ ]
+ }
+ ],
+ "clients": [
+ {
+ "$id": "119",
+ "kind": "client",
+ "name": "StandardClient",
+ "namespace": "_Specs_.Azure.Core.Lro.Standard",
+ "doc": "Illustrates bodies templated with Azure Core with long-running operation",
+ "methods": [
+ {
+ "$id": "120",
+ "kind": "lro",
+ "name": "createOrReplace",
+ "accessibility": "public",
+ "apiVersions": [
+ "2022-12-01-preview"
+ ],
+ "doc": "Creates or replaces a User",
+ "summary": "Adds a user or replaces a user's fields.",
+ "operation": {
+ "$id": "121",
+ "name": "createOrReplace",
+ "resourceName": "User",
+ "summary": "Adds a user or replaces a user's fields.",
+ "doc": "Creates or replaces a User",
+ "accessibility": "public",
+ "parameters": [
+ {
+ "$id": "122",
+ "name": "apiVersion",
+ "nameInRequest": "api-version",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "123",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Query",
+ "isApiVersion": true,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Client",
+ "defaultValue": {
+ "$id": "124",
+ "type": {
+ "$id": "125",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "126",
+ "name": "name",
+ "nameInRequest": "name",
+ "doc": "The name of user.",
+ "type": {
+ "$id": "127",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Path",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "128",
+ "name": "contentType",
+ "nameInRequest": "Content-Type",
+ "doc": "Body parameter's content type. Known values are application/json",
+ "type": {
+ "$ref": "18"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": true,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "129",
+ "name": "accept",
+ "nameInRequest": "Accept",
+ "type": {
+ "$ref": "20"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "130",
+ "name": "resource",
+ "nameInRequest": "resource",
+ "doc": "The resource instance.",
+ "type": {
+ "$ref": "34"
+ },
+ "location": "Body",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ }
+ ],
+ "responses": [
+ {
+ "$id": "131",
+ "statusCodes": [
+ 201
+ ],
+ "bodyType": {
+ "$ref": "34"
+ },
+ "headers": [
+ {
+ "$id": "132",
+ "name": "operationLocation",
+ "nameInResponse": "Operation-Location",
+ "doc": "The location for monitoring the operation state.",
+ "type": {
+ "$id": "133",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "134",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ }
+ }
+ ],
+ "isErrorResponse": false,
+ "contentTypes": [
+ "application/json"
+ ]
+ },
+ {
+ "$id": "135",
+ "statusCodes": [
+ 200
+ ],
+ "bodyType": {
+ "$ref": "34"
+ },
+ "headers": [
+ {
+ "$id": "136",
+ "name": "operationLocation",
+ "nameInResponse": "Operation-Location",
+ "doc": "The location for monitoring the operation state.",
+ "type": {
+ "$id": "137",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "138",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ }
+ }
+ ],
+ "isErrorResponse": false,
+ "contentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "httpMethod": "PUT",
+ "uri": "{endpoint}",
+ "path": "/azure/core/lro/standard/users/{name}",
+ "requestMediaTypes": [
+ "application/json"
+ ],
+ "bufferResponse": true,
+ "generateProtocolMethod": true,
+ "generateConvenienceMethod": true,
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.createOrReplace",
+ "decorators": []
+ },
+ "parameters": [
+ {
+ "$id": "139",
+ "name": "name",
+ "nameInRequest": "name",
+ "doc": "The name of user.",
+ "type": {
+ "$id": "140",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Path",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "141",
+ "name": "resource",
+ "nameInRequest": "resource",
+ "doc": "The resource instance.",
+ "type": {
+ "$ref": "34"
+ },
+ "location": "Body",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "142",
+ "name": "contentType",
+ "nameInRequest": "contentType",
+ "doc": "Body parameter's content type. Known values are application/json",
+ "type": {
+ "$ref": "22"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "143",
+ "name": "accept",
+ "nameInRequest": "accept",
+ "type": {
+ "$ref": "24"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ }
+ ],
+ "response": {
+ "$id": "144",
+ "type": {
+ "$ref": "34"
+ }
+ },
+ "isOverride": false,
+ "generateConvenient": true,
+ "generateProtocol": true,
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.createOrReplace",
+ "lroMetadata": {
+ "$id": "145",
+ "finalStateVia": 2,
+ "finalResponse": {
+ "$id": "146",
+ "statusCodes": [
+ 200
+ ],
+ "bodyType": {
+ "$ref": "34"
+ }
+ }
+ }
+ },
+ {
+ "$id": "147",
+ "kind": "lro",
+ "name": "delete",
+ "accessibility": "public",
+ "apiVersions": [
+ "2022-12-01-preview"
+ ],
+ "doc": "Deletes a User",
+ "summary": "Deletes a user.",
+ "operation": {
+ "$id": "148",
+ "name": "delete",
+ "resourceName": "User",
+ "summary": "Deletes a user.",
+ "doc": "Deletes a User",
+ "accessibility": "public",
+ "parameters": [
+ {
+ "$id": "149",
+ "name": "apiVersion",
+ "nameInRequest": "api-version",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "150",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Query",
+ "isApiVersion": true,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Client",
+ "defaultValue": {
+ "$id": "151",
+ "type": {
+ "$id": "152",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "153",
+ "name": "name",
+ "nameInRequest": "name",
+ "doc": "The name of user.",
+ "type": {
+ "$id": "154",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Path",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "155",
+ "name": "accept",
+ "nameInRequest": "Accept",
+ "type": {
+ "$ref": "26"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ }
+ ],
+ "responses": [
+ {
+ "$id": "156",
+ "statusCodes": [
+ 202
+ ],
+ "bodyType": {
+ "$ref": "52"
+ },
+ "headers": [
+ {
+ "$id": "157",
+ "name": "operationLocation",
+ "nameInResponse": "Operation-Location",
+ "doc": "The location for monitoring the operation state.",
+ "type": {
+ "$id": "158",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "159",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ }
+ }
+ ],
+ "isErrorResponse": false,
+ "contentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "httpMethod": "DELETE",
+ "uri": "{endpoint}",
+ "path": "/azure/core/lro/standard/users/{name}",
+ "bufferResponse": true,
+ "generateProtocolMethod": true,
+ "generateConvenienceMethod": true,
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.delete",
+ "decorators": []
+ },
+ "parameters": [
+ {
+ "$id": "160",
+ "name": "name",
+ "nameInRequest": "name",
+ "doc": "The name of user.",
+ "type": {
+ "$id": "161",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Path",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "162",
+ "name": "accept",
+ "nameInRequest": "accept",
+ "type": {
+ "$ref": "28"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ }
+ ],
+ "response": {
+ "$id": "163"
+ },
+ "isOverride": false,
+ "generateConvenient": true,
+ "generateProtocol": true,
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.delete",
+ "lroMetadata": {
+ "$id": "164",
+ "finalStateVia": 3,
+ "finalResponse": {
+ "$id": "165",
+ "statusCodes": [
+ 204
+ ]
+ }
+ }
+ },
+ {
+ "$id": "166",
+ "kind": "lro",
+ "name": "export",
+ "accessibility": "public",
+ "apiVersions": [
+ "2022-12-01-preview"
+ ],
+ "doc": "Exports a User",
+ "summary": "Exports a user.",
+ "operation": {
+ "$id": "167",
+ "name": "export",
+ "resourceName": "Standard",
+ "summary": "Exports a user.",
+ "doc": "Exports a User",
+ "accessibility": "public",
+ "parameters": [
+ {
+ "$id": "168",
+ "name": "apiVersion",
+ "nameInRequest": "api-version",
+ "doc": "The API version to use for this operation.",
+ "type": {
+ "$id": "169",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Query",
+ "isApiVersion": true,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Client",
+ "defaultValue": {
+ "$id": "170",
+ "type": {
+ "$id": "171",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "2022-12-01-preview"
+ },
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "172",
+ "name": "name",
+ "nameInRequest": "name",
+ "doc": "The name of user.",
+ "type": {
+ "$id": "173",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Path",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "174",
+ "name": "format",
+ "nameInRequest": "format",
+ "doc": "The format of the data.",
+ "type": {
+ "$id": "175",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Query",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "176",
+ "name": "accept",
+ "nameInRequest": "Accept",
+ "type": {
+ "$ref": "30"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ }
+ ],
+ "responses": [
+ {
+ "$id": "177",
+ "statusCodes": [
+ 202
+ ],
+ "bodyType": {
+ "$ref": "91"
+ },
+ "headers": [
+ {
+ "$id": "178",
+ "name": "operationLocation",
+ "nameInResponse": "Operation-Location",
+ "doc": "The location for monitoring the operation state.",
+ "type": {
+ "$id": "179",
+ "kind": "url",
+ "name": "ResourceLocation",
+ "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "baseType": {
+ "$id": "180",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url",
+ "decorators": []
+ },
+ "decorators": []
+ }
+ }
+ ],
+ "isErrorResponse": false,
+ "contentTypes": [
+ "application/json"
+ ]
+ }
+ ],
+ "httpMethod": "POST",
+ "uri": "{endpoint}",
+ "path": "/azure/core/lro/standard/users/{name}:export",
+ "bufferResponse": true,
+ "generateProtocolMethod": true,
+ "generateConvenienceMethod": true,
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.export",
+ "decorators": []
+ },
+ "parameters": [
+ {
+ "$id": "181",
+ "name": "name",
+ "nameInRequest": "name",
+ "doc": "The name of user.",
+ "type": {
+ "$id": "182",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Path",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "183",
+ "name": "format",
+ "nameInRequest": "format",
+ "doc": "The format of the data.",
+ "type": {
+ "$id": "184",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "location": "Query",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Method",
+ "decorators": [],
+ "skipUrlEncoding": false
+ },
+ {
+ "$id": "185",
+ "name": "accept",
+ "nameInRequest": "accept",
+ "type": {
+ "$ref": "32"
+ },
+ "location": "Header",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isEndpoint": false,
+ "explode": false,
+ "isRequired": true,
+ "kind": "Constant",
+ "decorators": [],
+ "skipUrlEncoding": false
+ }
+ ],
+ "response": {
+ "$id": "186",
+ "type": {
+ "$ref": "43"
+ },
+ "resultSegments": [
+ "result"
+ ]
+ },
+ "isOverride": false,
+ "generateConvenient": true,
+ "generateProtocol": true,
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard.export",
+ "lroMetadata": {
+ "$id": "187",
+ "finalStateVia": 3,
+ "finalResponse": {
+ "$id": "188",
+ "statusCodes": [
+ 200
+ ],
+ "bodyType": {
+ "$ref": "105"
+ }
+ },
+ "resultPath": "result"
+ }
+ }
+ ],
+ "parameters": [
+ {
+ "$id": "189",
+ "name": "endpoint",
+ "nameInRequest": "endpoint",
+ "doc": "Service host",
+ "type": {
+ "$id": "190",
+ "kind": "url",
+ "name": "url",
+ "crossLanguageDefinitionId": "TypeSpec.url"
+ },
+ "location": "Uri",
+ "isApiVersion": false,
+ "isContentType": false,
+ "isRequired": true,
+ "isEndpoint": true,
+ "skipUrlEncoding": false,
+ "explode": false,
+ "kind": "Client",
+ "defaultValue": {
+ "$id": "191",
+ "type": {
+ "$id": "192",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "value": "http://localhost:3000"
+ }
+ }
+ ],
+ "decorators": [],
+ "crossLanguageDefinitionId": "_Specs_.Azure.Core.Lro.Standard",
+ "apiVersions": [
+ "2022-12-01-preview"
+ ]
+ }
+ ]
+}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/special-headers/client-request-id/src/Azure.SpecialHeaders.XmsClientRequestId.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/special-headers/client-request-id/src/Azure.SpecialHeaders.XmsClientRequestId.csproj
index f782016d5386..ff64531d0c98 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/special-headers/client-request-id/src/Azure.SpecialHeaders.XmsClientRequestId.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/azure/special-headers/client-request-id/src/Azure.SpecialHeaders.XmsClientRequestId.csproj
@@ -17,6 +17,7 @@
+
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 c8ccc8168a36..846a00812cc1 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
@@ -3,6 +3,7 @@
"name": "Azure.SpecialHeaders.XmsClientRequestId",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/src/Client.Structure.Service.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/src/Client.Structure.Service.csproj
index 316747881622..3e154927e676 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/src/Client.Structure.Service.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/client/structure/default/src/Client.Structure.Service.csproj
@@ -17,6 +17,7 @@
+
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 1eefc8728f45..b2130556ebf6 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
@@ -109,6 +109,7 @@
"decorators": []
}
],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/src/Encode.Bytes.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/src/Encode.Bytes.csproj
index f0b4bf9705f5..dce9844f416d 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/src/Encode.Bytes.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/bytes/src/Encode.Bytes.csproj
@@ -17,6 +17,7 @@
+
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 3a4072ec5b46..fddcdbf51879 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
@@ -3,9 +3,427 @@
"name": "Encode.Bytes",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "defaultContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "defaultContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "base64ContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "base64ContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "base64urlContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "base64urlContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "base64urlArrayContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "base64urlArrayContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "defaultContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/octet-stream",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "OctetStreamRequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/octet-stream",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "OctetStreamRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/octet-stream",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "CustomContentTypeRequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "CustomContentTypeRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "Base64RequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "Base64RequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "Base64RequestContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "Base64RequestContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "defaultContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/octet-stream",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "octetStreamContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/octet-stream",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "OctetStreamRequestContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/octet-stream",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "customContentTypeContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "CustomContentTypeRequestContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "base64ContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "Base64RequestContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "base64urlContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "Base64RequestContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "54",
"kind": "model",
"name": "DefaultBytesProperty",
"namespace": "Encode.Bytes",
@@ -14,12 +432,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "55",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "4",
+ "$id": "56",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -33,9 +451,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.DefaultBytesProperty.value",
"serializationOptions": {
- "$id": "5",
+ "$id": "57",
"json": {
- "$id": "6",
+ "$id": "58",
"name": "value"
}
}
@@ -43,7 +461,7 @@
]
},
{
- "$id": "7",
+ "$id": "59",
"kind": "model",
"name": "Base64BytesProperty",
"namespace": "Encode.Bytes",
@@ -52,12 +470,12 @@
"decorators": [],
"properties": [
{
- "$id": "8",
+ "$id": "60",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "9",
+ "$id": "61",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -71,9 +489,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.Base64BytesProperty.value",
"serializationOptions": {
- "$id": "10",
+ "$id": "62",
"json": {
- "$id": "11",
+ "$id": "63",
"name": "value"
}
}
@@ -81,7 +499,7 @@
]
},
{
- "$id": "12",
+ "$id": "64",
"kind": "model",
"name": "Base64urlBytesProperty",
"namespace": "Encode.Bytes",
@@ -90,12 +508,12 @@
"decorators": [],
"properties": [
{
- "$id": "13",
+ "$id": "65",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "14",
+ "$id": "66",
"kind": "bytes",
"name": "bytes",
"encode": "base64url",
@@ -109,9 +527,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.Base64urlBytesProperty.value",
"serializationOptions": {
- "$id": "15",
+ "$id": "67",
"json": {
- "$id": "16",
+ "$id": "68",
"name": "value"
}
}
@@ -119,7 +537,7 @@
]
},
{
- "$id": "17",
+ "$id": "69",
"kind": "model",
"name": "Base64urlArrayBytesProperty",
"namespace": "Encode.Bytes",
@@ -128,22 +546,22 @@
"decorators": [],
"properties": [
{
- "$id": "18",
+ "$id": "70",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "19",
+ "$id": "71",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "20",
+ "$id": "72",
"kind": "bytes",
"name": "base64urlBytes",
"encode": "base64url",
"crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes",
"baseType": {
- "$id": "21",
+ "$id": "73",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -162,9 +580,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Bytes.Base64urlArrayBytesProperty.value",
"serializationOptions": {
- "$id": "22",
+ "$id": "74",
"json": {
- "$id": "23",
+ "$id": "75",
"name": "value"
}
}
@@ -174,7 +592,7 @@
],
"clients": [
{
- "$id": "24",
+ "$id": "76",
"kind": "client",
"name": "BytesClient",
"namespace": "Encode.Bytes",
@@ -182,12 +600,12 @@
"methods": [],
"parameters": [
{
- "$id": "25",
+ "$id": "77",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "26",
+ "$id": "78",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -201,9 +619,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "27",
+ "$id": "79",
"type": {
- "$id": "28",
+ "$id": "80",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -217,29 +635,29 @@
"apiVersions": [],
"children": [
{
- "$id": "29",
+ "$id": "81",
"kind": "client",
"name": "Query",
"namespace": "Encode.Bytes.Query",
"methods": [
{
- "$id": "30",
+ "$id": "82",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "31",
+ "$id": "83",
"name": "default",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "32",
+ "$id": "84",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "33",
+ "$id": "85",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -259,7 +677,7 @@
],
"responses": [
{
- "$id": "34",
+ "$id": "86",
"statusCodes": [
204
],
@@ -278,11 +696,11 @@
},
"parameters": [
{
- "$id": "35",
+ "$id": "87",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "36",
+ "$id": "88",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -301,7 +719,7 @@
}
],
"response": {
- "$id": "37"
+ "$id": "89"
},
"isOverride": false,
"generateConvenient": true,
@@ -309,23 +727,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.Query.default"
},
{
- "$id": "38",
+ "$id": "90",
"kind": "basic",
"name": "base64",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "39",
+ "$id": "91",
"name": "base64",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "40",
+ "$id": "92",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "41",
+ "$id": "93",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -345,7 +763,7 @@
],
"responses": [
{
- "$id": "42",
+ "$id": "94",
"statusCodes": [
204
],
@@ -364,11 +782,11 @@
},
"parameters": [
{
- "$id": "43",
+ "$id": "95",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "44",
+ "$id": "96",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -387,7 +805,7 @@
}
],
"response": {
- "$id": "45"
+ "$id": "97"
},
"isOverride": false,
"generateConvenient": true,
@@ -395,23 +813,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.Query.base64"
},
{
- "$id": "46",
+ "$id": "98",
"kind": "basic",
"name": "base64url",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "47",
+ "$id": "99",
"name": "base64url",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "48",
+ "$id": "100",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "49",
+ "$id": "101",
"kind": "bytes",
"name": "bytes",
"encode": "base64url",
@@ -431,7 +849,7 @@
],
"responses": [
{
- "$id": "50",
+ "$id": "102",
"statusCodes": [
204
],
@@ -450,11 +868,11 @@
},
"parameters": [
{
- "$id": "51",
+ "$id": "103",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "52",
+ "$id": "104",
"kind": "bytes",
"name": "bytes",
"encode": "base64url",
@@ -473,7 +891,7 @@
}
],
"response": {
- "$id": "53"
+ "$id": "105"
},
"isOverride": false,
"generateConvenient": true,
@@ -481,33 +899,33 @@
"crossLanguageDefinitionId": "Encode.Bytes.Query.base64url"
},
{
- "$id": "54",
+ "$id": "106",
"kind": "basic",
"name": "base64urlArray",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "55",
+ "$id": "107",
"name": "base64urlArray",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "56",
+ "$id": "108",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "57",
+ "$id": "109",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "58",
+ "$id": "110",
"kind": "bytes",
"name": "base64urlBytes",
"encode": "base64url",
"crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes",
"baseType": {
- "$id": "59",
+ "$id": "111",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -533,7 +951,7 @@
],
"responses": [
{
- "$id": "60",
+ "$id": "112",
"statusCodes": [
204
],
@@ -552,21 +970,21 @@
},
"parameters": [
{
- "$id": "61",
+ "$id": "113",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "62",
+ "$id": "114",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "63",
+ "$id": "115",
"kind": "bytes",
"name": "base64urlBytes",
"encode": "base64url",
"crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes",
"baseType": {
- "$id": "64",
+ "$id": "116",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -590,7 +1008,7 @@
}
],
"response": {
- "$id": "65"
+ "$id": "117"
},
"isOverride": false,
"generateConvenient": true,
@@ -600,12 +1018,12 @@
],
"parameters": [
{
- "$id": "66",
+ "$id": "118",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "67",
+ "$id": "119",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -619,9 +1037,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "68",
+ "$id": "120",
"type": {
- "$id": "69",
+ "$id": "121",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -634,44 +1052,34 @@
"crossLanguageDefinitionId": "Encode.Bytes.Query",
"apiVersions": [],
"parent": {
- "$ref": "24"
+ "$ref": "76"
}
},
{
- "$id": "70",
+ "$id": "122",
"kind": "client",
"name": "Property",
"namespace": "Encode.Bytes.Property",
"methods": [
{
- "$id": "71",
+ "$id": "123",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "72",
+ "$id": "124",
"name": "default",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "73",
+ "$id": "125",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "74",
- "kind": "constant",
- "valueType": {
- "$id": "75",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -684,21 +1092,11 @@
"skipUrlEncoding": false
},
{
- "$id": "76",
+ "$id": "126",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "77",
- "kind": "constant",
- "valueType": {
- "$id": "78",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -711,11 +1109,11 @@
"skipUrlEncoding": false
},
{
- "$id": "79",
+ "$id": "127",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "54"
},
"location": "Body",
"isApiVersion": false,
@@ -730,12 +1128,12 @@
],
"responses": [
{
- "$id": "80",
+ "$id": "128",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "54"
},
"headers": [],
"isErrorResponse": false,
@@ -758,11 +1156,11 @@
},
"parameters": [
{
- "$id": "81",
+ "$id": "129",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "54"
},
"location": "Body",
"isApiVersion": false,
@@ -775,12 +1173,12 @@
"skipUrlEncoding": false
},
{
- "$id": "82",
+ "$id": "130",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "74"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -793,11 +1191,11 @@
"skipUrlEncoding": false
},
{
- "$id": "83",
+ "$id": "131",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "77"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -811,9 +1209,9 @@
}
],
"response": {
- "$id": "84",
+ "$id": "132",
"type": {
- "$ref": "2"
+ "$ref": "54"
}
},
"isOverride": false,
@@ -822,34 +1220,24 @@
"crossLanguageDefinitionId": "Encode.Bytes.Property.default"
},
{
- "$id": "85",
+ "$id": "133",
"kind": "basic",
"name": "base64",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "86",
+ "$id": "134",
"name": "base64",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "87",
+ "$id": "135",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "88",
- "kind": "constant",
- "valueType": {
- "$id": "89",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -862,21 +1250,11 @@
"skipUrlEncoding": false
},
{
- "$id": "90",
+ "$id": "136",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "91",
- "kind": "constant",
- "valueType": {
- "$id": "92",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -889,11 +1267,11 @@
"skipUrlEncoding": false
},
{
- "$id": "93",
+ "$id": "137",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "7"
+ "$ref": "59"
},
"location": "Body",
"isApiVersion": false,
@@ -908,12 +1286,12 @@
],
"responses": [
{
- "$id": "94",
+ "$id": "138",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "7"
+ "$ref": "59"
},
"headers": [],
"isErrorResponse": false,
@@ -936,11 +1314,11 @@
},
"parameters": [
{
- "$id": "95",
+ "$id": "139",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "7"
+ "$ref": "59"
},
"location": "Body",
"isApiVersion": false,
@@ -953,12 +1331,12 @@
"skipUrlEncoding": false
},
{
- "$id": "96",
+ "$id": "140",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "88"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -971,11 +1349,11 @@
"skipUrlEncoding": false
},
{
- "$id": "97",
+ "$id": "141",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "91"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -989,9 +1367,9 @@
}
],
"response": {
- "$id": "98",
+ "$id": "142",
"type": {
- "$ref": "7"
+ "$ref": "59"
}
},
"isOverride": false,
@@ -1000,34 +1378,24 @@
"crossLanguageDefinitionId": "Encode.Bytes.Property.base64"
},
{
- "$id": "99",
+ "$id": "143",
"kind": "basic",
"name": "base64url",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "100",
+ "$id": "144",
"name": "base64url",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "101",
+ "$id": "145",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "102",
- "kind": "constant",
- "valueType": {
- "$id": "103",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1040,21 +1408,11 @@
"skipUrlEncoding": false
},
{
- "$id": "104",
+ "$id": "146",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "105",
- "kind": "constant",
- "valueType": {
- "$id": "106",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1067,11 +1425,11 @@
"skipUrlEncoding": false
},
{
- "$id": "107",
+ "$id": "147",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "64"
},
"location": "Body",
"isApiVersion": false,
@@ -1086,12 +1444,12 @@
],
"responses": [
{
- "$id": "108",
+ "$id": "148",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "12"
+ "$ref": "64"
},
"headers": [],
"isErrorResponse": false,
@@ -1114,11 +1472,11 @@
},
"parameters": [
{
- "$id": "109",
+ "$id": "149",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "64"
},
"location": "Body",
"isApiVersion": false,
@@ -1131,12 +1489,12 @@
"skipUrlEncoding": false
},
{
- "$id": "110",
+ "$id": "150",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "102"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1149,11 +1507,11 @@
"skipUrlEncoding": false
},
{
- "$id": "111",
+ "$id": "151",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "105"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1167,9 +1525,9 @@
}
],
"response": {
- "$id": "112",
+ "$id": "152",
"type": {
- "$ref": "12"
+ "$ref": "64"
}
},
"isOverride": false,
@@ -1178,34 +1536,24 @@
"crossLanguageDefinitionId": "Encode.Bytes.Property.base64url"
},
{
- "$id": "113",
+ "$id": "153",
"kind": "basic",
"name": "base64urlArray",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "114",
+ "$id": "154",
"name": "base64urlArray",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "115",
+ "$id": "155",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "116",
- "kind": "constant",
- "valueType": {
- "$id": "117",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1218,21 +1566,11 @@
"skipUrlEncoding": false
},
{
- "$id": "118",
+ "$id": "156",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "119",
- "kind": "constant",
- "valueType": {
- "$id": "120",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1245,11 +1583,11 @@
"skipUrlEncoding": false
},
{
- "$id": "121",
+ "$id": "157",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "17"
+ "$ref": "69"
},
"location": "Body",
"isApiVersion": false,
@@ -1264,12 +1602,12 @@
],
"responses": [
{
- "$id": "122",
+ "$id": "158",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "17"
+ "$ref": "69"
},
"headers": [],
"isErrorResponse": false,
@@ -1292,11 +1630,11 @@
},
"parameters": [
{
- "$id": "123",
+ "$id": "159",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "17"
+ "$ref": "69"
},
"location": "Body",
"isApiVersion": false,
@@ -1309,12 +1647,12 @@
"skipUrlEncoding": false
},
{
- "$id": "124",
+ "$id": "160",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "116"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1327,11 +1665,11 @@
"skipUrlEncoding": false
},
{
- "$id": "125",
+ "$id": "161",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "119"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1345,9 +1683,9 @@
}
],
"response": {
- "$id": "126",
+ "$id": "162",
"type": {
- "$ref": "17"
+ "$ref": "69"
}
},
"isOverride": false,
@@ -1358,12 +1696,12 @@
],
"parameters": [
{
- "$id": "127",
+ "$id": "163",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "128",
+ "$id": "164",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1377,9 +1715,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "129",
+ "$id": "165",
"type": {
- "$id": "130",
+ "$id": "166",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1392,33 +1730,33 @@
"crossLanguageDefinitionId": "Encode.Bytes.Property",
"apiVersions": [],
"parent": {
- "$ref": "24"
+ "$ref": "76"
}
},
{
- "$id": "131",
+ "$id": "167",
"kind": "client",
"name": "Header",
"namespace": "Encode.Bytes.Header",
"methods": [
{
- "$id": "132",
+ "$id": "168",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "133",
+ "$id": "169",
"name": "default",
"resourceName": "Header",
"accessibility": "public",
"parameters": [
{
- "$id": "134",
+ "$id": "170",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "135",
+ "$id": "171",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -1438,7 +1776,7 @@
],
"responses": [
{
- "$id": "136",
+ "$id": "172",
"statusCodes": [
204
],
@@ -1457,11 +1795,11 @@
},
"parameters": [
{
- "$id": "137",
+ "$id": "173",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "138",
+ "$id": "174",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -1480,7 +1818,7 @@
}
],
"response": {
- "$id": "139"
+ "$id": "175"
},
"isOverride": false,
"generateConvenient": true,
@@ -1488,23 +1826,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.Header.default"
},
{
- "$id": "140",
+ "$id": "176",
"kind": "basic",
"name": "base64",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "141",
+ "$id": "177",
"name": "base64",
"resourceName": "Header",
"accessibility": "public",
"parameters": [
{
- "$id": "142",
+ "$id": "178",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "143",
+ "$id": "179",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -1524,7 +1862,7 @@
],
"responses": [
{
- "$id": "144",
+ "$id": "180",
"statusCodes": [
204
],
@@ -1543,11 +1881,11 @@
},
"parameters": [
{
- "$id": "145",
+ "$id": "181",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "146",
+ "$id": "182",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -1566,7 +1904,7 @@
}
],
"response": {
- "$id": "147"
+ "$id": "183"
},
"isOverride": false,
"generateConvenient": true,
@@ -1574,23 +1912,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.Header.base64"
},
{
- "$id": "148",
+ "$id": "184",
"kind": "basic",
"name": "base64url",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "149",
+ "$id": "185",
"name": "base64url",
"resourceName": "Header",
"accessibility": "public",
"parameters": [
{
- "$id": "150",
+ "$id": "186",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "151",
+ "$id": "187",
"kind": "bytes",
"name": "bytes",
"encode": "base64url",
@@ -1610,7 +1948,7 @@
],
"responses": [
{
- "$id": "152",
+ "$id": "188",
"statusCodes": [
204
],
@@ -1629,11 +1967,11 @@
},
"parameters": [
{
- "$id": "153",
+ "$id": "189",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "154",
+ "$id": "190",
"kind": "bytes",
"name": "bytes",
"encode": "base64url",
@@ -1652,7 +1990,7 @@
}
],
"response": {
- "$id": "155"
+ "$id": "191"
},
"isOverride": false,
"generateConvenient": true,
@@ -1660,33 +1998,33 @@
"crossLanguageDefinitionId": "Encode.Bytes.Header.base64url"
},
{
- "$id": "156",
+ "$id": "192",
"kind": "basic",
"name": "base64urlArray",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "157",
+ "$id": "193",
"name": "base64urlArray",
"resourceName": "Header",
"accessibility": "public",
"parameters": [
{
- "$id": "158",
+ "$id": "194",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "159",
+ "$id": "195",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "160",
+ "$id": "196",
"kind": "bytes",
"name": "base64urlBytes",
"encode": "base64url",
"crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes",
"baseType": {
- "$id": "161",
+ "$id": "197",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -1712,7 +2050,7 @@
],
"responses": [
{
- "$id": "162",
+ "$id": "198",
"statusCodes": [
204
],
@@ -1731,21 +2069,21 @@
},
"parameters": [
{
- "$id": "163",
+ "$id": "199",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "164",
+ "$id": "200",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "165",
+ "$id": "201",
"kind": "bytes",
"name": "base64urlBytes",
"encode": "base64url",
"crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes",
"baseType": {
- "$id": "166",
+ "$id": "202",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -1769,7 +2107,7 @@
}
],
"response": {
- "$id": "167"
+ "$id": "203"
},
"isOverride": false,
"generateConvenient": true,
@@ -1779,12 +2117,12 @@
],
"parameters": [
{
- "$id": "168",
+ "$id": "204",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "169",
+ "$id": "205",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1798,9 +2136,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "170",
+ "$id": "206",
"type": {
- "$id": "171",
+ "$id": "207",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1813,44 +2151,34 @@
"crossLanguageDefinitionId": "Encode.Bytes.Header",
"apiVersions": [],
"parent": {
- "$ref": "24"
+ "$ref": "76"
}
},
{
- "$id": "172",
+ "$id": "208",
"kind": "client",
"name": "RequestBody",
"namespace": "Encode.Bytes.RequestBody",
"methods": [
{
- "$id": "173",
+ "$id": "209",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "174",
+ "$id": "210",
"name": "default",
"resourceName": "RequestBody",
"accessibility": "public",
"parameters": [
{
- "$id": "175",
+ "$id": "211",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/octet-stream",
"type": {
- "$id": "176",
- "kind": "constant",
- "valueType": {
- "$id": "177",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/octet-stream",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1863,11 +2191,11 @@
"skipUrlEncoding": false
},
{
- "$id": "178",
+ "$id": "212",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "179",
+ "$id": "213",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -1886,7 +2214,7 @@
],
"responses": [
{
- "$id": "180",
+ "$id": "214",
"statusCodes": [
204
],
@@ -1908,11 +2236,11 @@
},
"parameters": [
{
- "$id": "181",
+ "$id": "215",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "182",
+ "$id": "216",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -1929,12 +2257,12 @@
"skipUrlEncoding": false
},
{
- "$id": "183",
+ "$id": "217",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/octet-stream",
"type": {
- "$ref": "176"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1948,7 +2276,7 @@
}
],
"response": {
- "$id": "184"
+ "$id": "218"
},
"isOverride": false,
"generateConvenient": true,
@@ -1956,33 +2284,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.RequestBody.default"
},
{
- "$id": "185",
+ "$id": "219",
"kind": "basic",
"name": "octetStream",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "186",
+ "$id": "220",
"name": "octetStream",
"resourceName": "RequestBody",
"accessibility": "public",
"parameters": [
{
- "$id": "187",
+ "$id": "221",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "188",
- "kind": "constant",
- "valueType": {
- "$id": "189",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/octet-stream",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1995,11 +2313,11 @@
"skipUrlEncoding": false
},
{
- "$id": "190",
+ "$id": "222",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "191",
+ "$id": "223",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -2018,7 +2336,7 @@
],
"responses": [
{
- "$id": "192",
+ "$id": "224",
"statusCodes": [
204
],
@@ -2040,21 +2358,11 @@
},
"parameters": [
{
- "$id": "193",
+ "$id": "225",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "194",
- "kind": "constant",
- "valueType": {
- "$id": "195",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/octet-stream",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -2067,11 +2375,11 @@
"skipUrlEncoding": false
},
{
- "$id": "196",
+ "$id": "226",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "197",
+ "$id": "227",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -2089,7 +2397,7 @@
}
],
"response": {
- "$id": "198"
+ "$id": "228"
},
"isOverride": false,
"generateConvenient": true,
@@ -2097,33 +2405,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.RequestBody.octetStream"
},
{
- "$id": "199",
+ "$id": "229",
"kind": "basic",
"name": "customContentType",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "200",
+ "$id": "230",
"name": "customContentType",
"resourceName": "RequestBody",
"accessibility": "public",
"parameters": [
{
- "$id": "201",
+ "$id": "231",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "202",
- "kind": "constant",
- "valueType": {
- "$id": "203",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -2136,11 +2434,11 @@
"skipUrlEncoding": false
},
{
- "$id": "204",
+ "$id": "232",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "205",
+ "$id": "233",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -2159,7 +2457,7 @@
],
"responses": [
{
- "$id": "206",
+ "$id": "234",
"statusCodes": [
204
],
@@ -2181,21 +2479,11 @@
},
"parameters": [
{
- "$id": "207",
+ "$id": "235",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "208",
- "kind": "constant",
- "valueType": {
- "$id": "209",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -2208,11 +2496,11 @@
"skipUrlEncoding": false
},
{
- "$id": "210",
+ "$id": "236",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "211",
+ "$id": "237",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -2230,7 +2518,7 @@
}
],
"response": {
- "$id": "212"
+ "$id": "238"
},
"isOverride": false,
"generateConvenient": true,
@@ -2238,33 +2526,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.RequestBody.customContentType"
},
{
- "$id": "213",
+ "$id": "239",
"kind": "basic",
"name": "base64",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "214",
+ "$id": "240",
"name": "base64",
"resourceName": "RequestBody",
"accessibility": "public",
"parameters": [
{
- "$id": "215",
+ "$id": "241",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "216",
- "kind": "constant",
- "valueType": {
- "$id": "217",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -2277,11 +2555,11 @@
"skipUrlEncoding": false
},
{
- "$id": "218",
+ "$id": "242",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "219",
+ "$id": "243",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -2301,7 +2579,7 @@
],
"responses": [
{
- "$id": "220",
+ "$id": "244",
"statusCodes": [
204
],
@@ -2323,21 +2601,11 @@
},
"parameters": [
{
- "$id": "221",
+ "$id": "245",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "222",
- "kind": "constant",
- "valueType": {
- "$id": "223",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -2350,11 +2618,11 @@
"skipUrlEncoding": false
},
{
- "$id": "224",
+ "$id": "246",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "225",
+ "$id": "247",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -2373,7 +2641,7 @@
}
],
"response": {
- "$id": "226"
+ "$id": "248"
},
"isOverride": false,
"generateConvenient": true,
@@ -2381,33 +2649,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.RequestBody.base64"
},
{
- "$id": "227",
+ "$id": "249",
"kind": "basic",
"name": "base64url",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "228",
+ "$id": "250",
"name": "base64url",
"resourceName": "RequestBody",
"accessibility": "public",
"parameters": [
{
- "$id": "229",
+ "$id": "251",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "230",
- "kind": "constant",
- "valueType": {
- "$id": "231",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -2420,11 +2678,11 @@
"skipUrlEncoding": false
},
{
- "$id": "232",
+ "$id": "252",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "233",
+ "$id": "253",
"kind": "bytes",
"name": "bytes",
"encode": "base64url",
@@ -2444,7 +2702,7 @@
],
"responses": [
{
- "$id": "234",
+ "$id": "254",
"statusCodes": [
204
],
@@ -2466,21 +2724,11 @@
},
"parameters": [
{
- "$id": "235",
+ "$id": "255",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "236",
- "kind": "constant",
- "valueType": {
- "$id": "237",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -2493,11 +2741,11 @@
"skipUrlEncoding": false
},
{
- "$id": "238",
+ "$id": "256",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "239",
+ "$id": "257",
"kind": "bytes",
"name": "bytes",
"encode": "base64url",
@@ -2516,7 +2764,7 @@
}
],
"response": {
- "$id": "240"
+ "$id": "258"
},
"isOverride": false,
"generateConvenient": true,
@@ -2526,12 +2774,12 @@
],
"parameters": [
{
- "$id": "241",
+ "$id": "259",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "242",
+ "$id": "260",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2545,9 +2793,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "243",
+ "$id": "261",
"type": {
- "$id": "244",
+ "$id": "262",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2560,43 +2808,33 @@
"crossLanguageDefinitionId": "Encode.Bytes.RequestBody",
"apiVersions": [],
"parent": {
- "$ref": "24"
+ "$ref": "76"
}
},
{
- "$id": "245",
+ "$id": "263",
"kind": "client",
"name": "ResponseBody",
"namespace": "Encode.Bytes.ResponseBody",
"methods": [
{
- "$id": "246",
+ "$id": "264",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "247",
+ "$id": "265",
"name": "default",
"resourceName": "ResponseBody",
"accessibility": "public",
"parameters": [
{
- "$id": "248",
+ "$id": "266",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "249",
- "kind": "constant",
- "valueType": {
- "$id": "250",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/octet-stream",
- "decorators": []
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -2611,12 +2849,12 @@
],
"responses": [
{
- "$id": "251",
+ "$id": "267",
"statusCodes": [
200
],
"bodyType": {
- "$id": "252",
+ "$id": "268",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -2640,11 +2878,11 @@
},
"parameters": [
{
- "$id": "253",
+ "$id": "269",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "249"
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -2658,9 +2896,9 @@
}
],
"response": {
- "$id": "254",
+ "$id": "270",
"type": {
- "$ref": "252"
+ "$ref": "268"
}
},
"isOverride": false,
@@ -2669,33 +2907,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.default"
},
{
- "$id": "255",
+ "$id": "271",
"kind": "basic",
"name": "octetStream",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "256",
+ "$id": "272",
"name": "octetStream",
"resourceName": "ResponseBody",
"accessibility": "public",
"parameters": [
{
- "$id": "257",
+ "$id": "273",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "258",
- "kind": "constant",
- "valueType": {
- "$id": "259",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/octet-stream",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -2710,12 +2938,12 @@
],
"responses": [
{
- "$id": "260",
+ "$id": "274",
"statusCodes": [
200
],
"bodyType": {
- "$id": "261",
+ "$id": "275",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -2723,21 +2951,11 @@
},
"headers": [
{
- "$id": "262",
+ "$id": "276",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "263",
- "kind": "constant",
- "valueType": {
- "$id": "264",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/octet-stream",
- "decorators": []
+ "$ref": "40"
}
}
],
@@ -2758,11 +2976,11 @@
},
"parameters": [
{
- "$id": "265",
+ "$id": "277",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "258"
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -2776,9 +2994,9 @@
}
],
"response": {
- "$id": "266",
+ "$id": "278",
"type": {
- "$ref": "261"
+ "$ref": "275"
}
},
"isOverride": false,
@@ -2787,33 +3005,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.octetStream"
},
{
- "$id": "267",
+ "$id": "279",
"kind": "basic",
"name": "customContentType",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "268",
+ "$id": "280",
"name": "customContentType",
"resourceName": "ResponseBody",
"accessibility": "public",
"parameters": [
{
- "$id": "269",
+ "$id": "281",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "270",
- "kind": "constant",
- "valueType": {
- "$id": "271",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -2828,12 +3036,12 @@
],
"responses": [
{
- "$id": "272",
+ "$id": "282",
"statusCodes": [
200
],
"bodyType": {
- "$id": "273",
+ "$id": "283",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -2841,21 +3049,11 @@
},
"headers": [
{
- "$id": "274",
+ "$id": "284",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "275",
- "kind": "constant",
- "valueType": {
- "$id": "276",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "44"
}
}
],
@@ -2876,11 +3074,11 @@
},
"parameters": [
{
- "$id": "277",
+ "$id": "285",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "270"
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -2894,9 +3092,9 @@
}
],
"response": {
- "$id": "278",
+ "$id": "286",
"type": {
- "$ref": "273"
+ "$ref": "283"
}
},
"isOverride": false,
@@ -2905,33 +3103,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.customContentType"
},
{
- "$id": "279",
+ "$id": "287",
"kind": "basic",
"name": "base64",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "280",
+ "$id": "288",
"name": "base64",
"resourceName": "ResponseBody",
"accessibility": "public",
"parameters": [
{
- "$id": "281",
+ "$id": "289",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "282",
- "kind": "constant",
- "valueType": {
- "$id": "283",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -2946,12 +3134,12 @@
],
"responses": [
{
- "$id": "284",
+ "$id": "290",
"statusCodes": [
200
],
"bodyType": {
- "$id": "285",
+ "$id": "291",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -2960,21 +3148,11 @@
},
"headers": [
{
- "$id": "286",
+ "$id": "292",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "287",
- "kind": "constant",
- "valueType": {
- "$id": "288",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "48"
}
}
],
@@ -2995,11 +3173,11 @@
},
"parameters": [
{
- "$id": "289",
+ "$id": "293",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "282"
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -3013,9 +3191,9 @@
}
],
"response": {
- "$id": "290",
+ "$id": "294",
"type": {
- "$ref": "285"
+ "$ref": "291"
}
},
"isOverride": false,
@@ -3024,33 +3202,23 @@
"crossLanguageDefinitionId": "Encode.Bytes.ResponseBody.base64"
},
{
- "$id": "291",
+ "$id": "295",
"kind": "basic",
"name": "base64url",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "292",
+ "$id": "296",
"name": "base64url",
"resourceName": "ResponseBody",
"accessibility": "public",
"parameters": [
{
- "$id": "293",
+ "$id": "297",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "294",
- "kind": "constant",
- "valueType": {
- "$id": "295",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -3065,18 +3233,18 @@
],
"responses": [
{
- "$id": "296",
+ "$id": "298",
"statusCodes": [
200
],
"bodyType": {
- "$id": "297",
+ "$id": "299",
"kind": "bytes",
"name": "base64urlBytes",
"encode": "base64url",
"crossLanguageDefinitionId": "Encode.Bytes.base64urlBytes",
"baseType": {
- "$id": "298",
+ "$id": "300",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -3087,21 +3255,11 @@
},
"headers": [
{
- "$id": "299",
+ "$id": "301",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "300",
- "kind": "constant",
- "valueType": {
- "$id": "301",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
}
}
],
@@ -3126,7 +3284,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "294"
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -3142,7 +3300,7 @@
"response": {
"$id": "303",
"type": {
- "$ref": "297"
+ "$ref": "299"
}
},
"isOverride": false,
@@ -3187,7 +3345,7 @@
"crossLanguageDefinitionId": "Encode.Bytes.ResponseBody",
"apiVersions": [],
"parent": {
- "$ref": "24"
+ "$ref": "76"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/src/Encode.Datetime.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/src/Encode.Datetime.csproj
index 8495253fb07f..ee85371d2cf0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/src/Encode.Datetime.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/datetime/src/Encode.Datetime.csproj
@@ -17,6 +17,7 @@
+
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 8d4d66affeb8..1a5045e883f1 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
@@ -3,9 +3,171 @@
"name": "Encode.Datetime",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "defaultContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "defaultContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "rfc3339ContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "rfc3339ContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "rfc7231ContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "rfc7231ContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "unixTimestampContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "unixTimestampContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "unixTimestampArrayContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "unixTimestampArrayContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "22",
"kind": "model",
"name": "DefaultDatetimeProperty",
"namespace": "Encode.Datetime",
@@ -14,17 +176,17 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "23",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "4",
+ "$id": "24",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "5",
+ "$id": "25",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -40,9 +202,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.DefaultDatetimeProperty.value",
"serializationOptions": {
- "$id": "6",
+ "$id": "26",
"json": {
- "$id": "7",
+ "$id": "27",
"name": "value"
}
}
@@ -50,7 +212,7 @@
]
},
{
- "$id": "8",
+ "$id": "28",
"kind": "model",
"name": "Rfc3339DatetimeProperty",
"namespace": "Encode.Datetime",
@@ -59,17 +221,17 @@
"decorators": [],
"properties": [
{
- "$id": "9",
+ "$id": "29",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "10",
+ "$id": "30",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "11",
+ "$id": "31",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -85,9 +247,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.Rfc3339DatetimeProperty.value",
"serializationOptions": {
- "$id": "12",
+ "$id": "32",
"json": {
- "$id": "13",
+ "$id": "33",
"name": "value"
}
}
@@ -95,7 +257,7 @@
]
},
{
- "$id": "14",
+ "$id": "34",
"kind": "model",
"name": "Rfc7231DatetimeProperty",
"namespace": "Encode.Datetime",
@@ -104,17 +266,17 @@
"decorators": [],
"properties": [
{
- "$id": "15",
+ "$id": "35",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "16",
+ "$id": "36",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc7231",
"wireType": {
- "$id": "17",
+ "$id": "37",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -130,9 +292,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.Rfc7231DatetimeProperty.value",
"serializationOptions": {
- "$id": "18",
+ "$id": "38",
"json": {
- "$id": "19",
+ "$id": "39",
"name": "value"
}
}
@@ -140,7 +302,7 @@
]
},
{
- "$id": "20",
+ "$id": "40",
"kind": "model",
"name": "UnixTimestampDatetimeProperty",
"namespace": "Encode.Datetime",
@@ -149,17 +311,17 @@
"decorators": [],
"properties": [
{
- "$id": "21",
+ "$id": "41",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "22",
+ "$id": "42",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "unixTimestamp",
"wireType": {
- "$id": "23",
+ "$id": "43",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -175,9 +337,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampDatetimeProperty.value",
"serializationOptions": {
- "$id": "24",
+ "$id": "44",
"json": {
- "$id": "25",
+ "$id": "45",
"name": "value"
}
}
@@ -185,7 +347,7 @@
]
},
{
- "$id": "26",
+ "$id": "46",
"kind": "model",
"name": "UnixTimestampArrayDatetimeProperty",
"namespace": "Encode.Datetime",
@@ -194,21 +356,21 @@
"decorators": [],
"properties": [
{
- "$id": "27",
+ "$id": "47",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "28",
+ "$id": "48",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "29",
+ "$id": "49",
"kind": "utcDateTime",
"name": "unixTimestampDatetime",
"encode": "unixTimestamp",
"wireType": {
- "$id": "30",
+ "$id": "50",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -216,12 +378,12 @@
},
"crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime",
"baseType": {
- "$id": "31",
+ "$id": "51",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "32",
+ "$id": "52",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -242,9 +404,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Datetime.UnixTimestampArrayDatetimeProperty.value",
"serializationOptions": {
- "$id": "33",
+ "$id": "53",
"json": {
- "$id": "34",
+ "$id": "54",
"name": "value"
}
}
@@ -254,7 +416,7 @@
],
"clients": [
{
- "$id": "35",
+ "$id": "55",
"kind": "client",
"name": "DatetimeClient",
"namespace": "Encode.Datetime",
@@ -262,12 +424,12 @@
"methods": [],
"parameters": [
{
- "$id": "36",
+ "$id": "56",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "37",
+ "$id": "57",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -281,9 +443,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "38",
+ "$id": "58",
"type": {
- "$id": "39",
+ "$id": "59",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -297,34 +459,34 @@
"apiVersions": [],
"children": [
{
- "$id": "40",
+ "$id": "60",
"kind": "client",
"name": "Query",
"namespace": "Encode.Datetime.Query",
"methods": [
{
- "$id": "41",
+ "$id": "61",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "42",
+ "$id": "62",
"name": "default",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "43",
+ "$id": "63",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "44",
+ "$id": "64",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "45",
+ "$id": "65",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -346,7 +508,7 @@
],
"responses": [
{
- "$id": "46",
+ "$id": "66",
"statusCodes": [
204
],
@@ -365,16 +527,16 @@
},
"parameters": [
{
- "$id": "47",
+ "$id": "67",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "48",
+ "$id": "68",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "49",
+ "$id": "69",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -395,7 +557,7 @@
}
],
"response": {
- "$id": "50"
+ "$id": "70"
},
"isOverride": false,
"generateConvenient": true,
@@ -403,28 +565,28 @@
"crossLanguageDefinitionId": "Encode.Datetime.Query.default"
},
{
- "$id": "51",
+ "$id": "71",
"kind": "basic",
"name": "rfc3339",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "52",
+ "$id": "72",
"name": "rfc3339",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "53",
+ "$id": "73",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "54",
+ "$id": "74",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "55",
+ "$id": "75",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -446,7 +608,7 @@
],
"responses": [
{
- "$id": "56",
+ "$id": "76",
"statusCodes": [
204
],
@@ -465,16 +627,16 @@
},
"parameters": [
{
- "$id": "57",
+ "$id": "77",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "58",
+ "$id": "78",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "59",
+ "$id": "79",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -495,7 +657,7 @@
}
],
"response": {
- "$id": "60"
+ "$id": "80"
},
"isOverride": false,
"generateConvenient": true,
@@ -503,28 +665,28 @@
"crossLanguageDefinitionId": "Encode.Datetime.Query.rfc3339"
},
{
- "$id": "61",
+ "$id": "81",
"kind": "basic",
"name": "rfc7231",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "62",
+ "$id": "82",
"name": "rfc7231",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "63",
+ "$id": "83",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "64",
+ "$id": "84",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc7231",
"wireType": {
- "$id": "65",
+ "$id": "85",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -546,7 +708,7 @@
],
"responses": [
{
- "$id": "66",
+ "$id": "86",
"statusCodes": [
204
],
@@ -565,16 +727,16 @@
},
"parameters": [
{
- "$id": "67",
+ "$id": "87",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "68",
+ "$id": "88",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc7231",
"wireType": {
- "$id": "69",
+ "$id": "89",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -595,7 +757,7 @@
}
],
"response": {
- "$id": "70"
+ "$id": "90"
},
"isOverride": false,
"generateConvenient": true,
@@ -603,28 +765,28 @@
"crossLanguageDefinitionId": "Encode.Datetime.Query.rfc7231"
},
{
- "$id": "71",
+ "$id": "91",
"kind": "basic",
"name": "unixTimestamp",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "72",
+ "$id": "92",
"name": "unixTimestamp",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "73",
+ "$id": "93",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "74",
+ "$id": "94",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "unixTimestamp",
"wireType": {
- "$id": "75",
+ "$id": "95",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -646,7 +808,7 @@
],
"responses": [
{
- "$id": "76",
+ "$id": "96",
"statusCodes": [
204
],
@@ -665,16 +827,16 @@
},
"parameters": [
{
- "$id": "77",
+ "$id": "97",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "78",
+ "$id": "98",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "unixTimestamp",
"wireType": {
- "$id": "79",
+ "$id": "99",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -695,7 +857,7 @@
}
],
"response": {
- "$id": "80"
+ "$id": "100"
},
"isOverride": false,
"generateConvenient": true,
@@ -703,32 +865,32 @@
"crossLanguageDefinitionId": "Encode.Datetime.Query.unixTimestamp"
},
{
- "$id": "81",
+ "$id": "101",
"kind": "basic",
"name": "unixTimestampArray",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "82",
+ "$id": "102",
"name": "unixTimestampArray",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "83",
+ "$id": "103",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "84",
+ "$id": "104",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "85",
+ "$id": "105",
"kind": "utcDateTime",
"name": "unixTimestampDatetime",
"encode": "unixTimestamp",
"wireType": {
- "$id": "86",
+ "$id": "106",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -736,12 +898,12 @@
},
"crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime",
"baseType": {
- "$id": "87",
+ "$id": "107",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "88",
+ "$id": "108",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -769,7 +931,7 @@
],
"responses": [
{
- "$id": "89",
+ "$id": "109",
"statusCodes": [
204
],
@@ -788,20 +950,20 @@
},
"parameters": [
{
- "$id": "90",
+ "$id": "110",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "91",
+ "$id": "111",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "92",
+ "$id": "112",
"kind": "utcDateTime",
"name": "unixTimestampDatetime",
"encode": "unixTimestamp",
"wireType": {
- "$id": "93",
+ "$id": "113",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -809,12 +971,12 @@
},
"crossLanguageDefinitionId": "Encode.Datetime.unixTimestampDatetime",
"baseType": {
- "$id": "94",
+ "$id": "114",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "95",
+ "$id": "115",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -840,7 +1002,7 @@
}
],
"response": {
- "$id": "96"
+ "$id": "116"
},
"isOverride": false,
"generateConvenient": true,
@@ -850,12 +1012,12 @@
],
"parameters": [
{
- "$id": "97",
+ "$id": "117",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "98",
+ "$id": "118",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -869,9 +1031,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "99",
+ "$id": "119",
"type": {
- "$id": "100",
+ "$id": "120",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -884,44 +1046,34 @@
"crossLanguageDefinitionId": "Encode.Datetime.Query",
"apiVersions": [],
"parent": {
- "$ref": "35"
+ "$ref": "55"
}
},
{
- "$id": "101",
+ "$id": "121",
"kind": "client",
"name": "Property",
"namespace": "Encode.Datetime.Property",
"methods": [
{
- "$id": "102",
+ "$id": "122",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "103",
+ "$id": "123",
"name": "default",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "104",
+ "$id": "124",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "105",
- "kind": "constant",
- "valueType": {
- "$id": "106",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -934,21 +1086,11 @@
"skipUrlEncoding": false
},
{
- "$id": "107",
+ "$id": "125",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "108",
- "kind": "constant",
- "valueType": {
- "$id": "109",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -961,11 +1103,11 @@
"skipUrlEncoding": false
},
{
- "$id": "110",
+ "$id": "126",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "22"
},
"location": "Body",
"isApiVersion": false,
@@ -980,12 +1122,12 @@
],
"responses": [
{
- "$id": "111",
+ "$id": "127",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "22"
},
"headers": [],
"isErrorResponse": false,
@@ -1008,11 +1150,11 @@
},
"parameters": [
{
- "$id": "112",
+ "$id": "128",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "22"
},
"location": "Body",
"isApiVersion": false,
@@ -1025,12 +1167,12 @@
"skipUrlEncoding": false
},
{
- "$id": "113",
+ "$id": "129",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "105"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -1043,11 +1185,11 @@
"skipUrlEncoding": false
},
{
- "$id": "114",
+ "$id": "130",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "108"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -1061,9 +1203,9 @@
}
],
"response": {
- "$id": "115",
+ "$id": "131",
"type": {
- "$ref": "2"
+ "$ref": "22"
}
},
"isOverride": false,
@@ -1072,34 +1214,24 @@
"crossLanguageDefinitionId": "Encode.Datetime.Property.default"
},
{
- "$id": "116",
+ "$id": "132",
"kind": "basic",
"name": "rfc3339",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "117",
+ "$id": "133",
"name": "rfc3339",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "118",
+ "$id": "134",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "119",
- "kind": "constant",
- "valueType": {
- "$id": "120",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -1112,21 +1244,11 @@
"skipUrlEncoding": false
},
{
- "$id": "121",
+ "$id": "135",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "122",
- "kind": "constant",
- "valueType": {
- "$id": "123",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1139,11 +1261,11 @@
"skipUrlEncoding": false
},
{
- "$id": "124",
+ "$id": "136",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "8"
+ "$ref": "28"
},
"location": "Body",
"isApiVersion": false,
@@ -1158,12 +1280,12 @@
],
"responses": [
{
- "$id": "125",
+ "$id": "137",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "8"
+ "$ref": "28"
},
"headers": [],
"isErrorResponse": false,
@@ -1186,11 +1308,11 @@
},
"parameters": [
{
- "$id": "126",
+ "$id": "138",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "8"
+ "$ref": "28"
},
"location": "Body",
"isApiVersion": false,
@@ -1203,12 +1325,12 @@
"skipUrlEncoding": false
},
{
- "$id": "127",
+ "$id": "139",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "119"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -1221,11 +1343,11 @@
"skipUrlEncoding": false
},
{
- "$id": "128",
+ "$id": "140",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "122"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1239,9 +1361,9 @@
}
],
"response": {
- "$id": "129",
+ "$id": "141",
"type": {
- "$ref": "8"
+ "$ref": "28"
}
},
"isOverride": false,
@@ -1250,34 +1372,24 @@
"crossLanguageDefinitionId": "Encode.Datetime.Property.rfc3339"
},
{
- "$id": "130",
+ "$id": "142",
"kind": "basic",
"name": "rfc7231",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "131",
+ "$id": "143",
"name": "rfc7231",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "132",
+ "$id": "144",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "133",
- "kind": "constant",
- "valueType": {
- "$id": "134",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1290,21 +1402,11 @@
"skipUrlEncoding": false
},
{
- "$id": "135",
+ "$id": "145",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "136",
- "kind": "constant",
- "valueType": {
- "$id": "137",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1317,11 +1419,11 @@
"skipUrlEncoding": false
},
{
- "$id": "138",
+ "$id": "146",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "14"
+ "$ref": "34"
},
"location": "Body",
"isApiVersion": false,
@@ -1336,12 +1438,12 @@
],
"responses": [
{
- "$id": "139",
+ "$id": "147",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "14"
+ "$ref": "34"
},
"headers": [],
"isErrorResponse": false,
@@ -1364,11 +1466,11 @@
},
"parameters": [
{
- "$id": "140",
+ "$id": "148",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "14"
+ "$ref": "34"
},
"location": "Body",
"isApiVersion": false,
@@ -1381,12 +1483,12 @@
"skipUrlEncoding": false
},
{
- "$id": "141",
+ "$id": "149",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "133"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1399,11 +1501,11 @@
"skipUrlEncoding": false
},
{
- "$id": "142",
+ "$id": "150",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "136"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1417,9 +1519,9 @@
}
],
"response": {
- "$id": "143",
+ "$id": "151",
"type": {
- "$ref": "14"
+ "$ref": "34"
}
},
"isOverride": false,
@@ -1428,34 +1530,24 @@
"crossLanguageDefinitionId": "Encode.Datetime.Property.rfc7231"
},
{
- "$id": "144",
+ "$id": "152",
"kind": "basic",
"name": "unixTimestamp",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "145",
+ "$id": "153",
"name": "unixTimestamp",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "146",
+ "$id": "154",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "147",
- "kind": "constant",
- "valueType": {
- "$id": "148",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1468,21 +1560,11 @@
"skipUrlEncoding": false
},
{
- "$id": "149",
+ "$id": "155",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "150",
- "kind": "constant",
- "valueType": {
- "$id": "151",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1495,11 +1577,11 @@
"skipUrlEncoding": false
},
{
- "$id": "152",
+ "$id": "156",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "20"
+ "$ref": "40"
},
"location": "Body",
"isApiVersion": false,
@@ -1514,12 +1596,12 @@
],
"responses": [
{
- "$id": "153",
+ "$id": "157",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "20"
+ "$ref": "40"
},
"headers": [],
"isErrorResponse": false,
@@ -1542,11 +1624,11 @@
},
"parameters": [
{
- "$id": "154",
+ "$id": "158",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "20"
+ "$ref": "40"
},
"location": "Body",
"isApiVersion": false,
@@ -1559,12 +1641,12 @@
"skipUrlEncoding": false
},
{
- "$id": "155",
+ "$id": "159",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "147"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1577,11 +1659,11 @@
"skipUrlEncoding": false
},
{
- "$id": "156",
+ "$id": "160",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "150"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1595,9 +1677,9 @@
}
],
"response": {
- "$id": "157",
+ "$id": "161",
"type": {
- "$ref": "20"
+ "$ref": "40"
}
},
"isOverride": false,
@@ -1606,34 +1688,24 @@
"crossLanguageDefinitionId": "Encode.Datetime.Property.unixTimestamp"
},
{
- "$id": "158",
+ "$id": "162",
"kind": "basic",
"name": "unixTimestampArray",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "159",
+ "$id": "163",
"name": "unixTimestampArray",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "160",
+ "$id": "164",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "161",
- "kind": "constant",
- "valueType": {
- "$id": "162",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1646,21 +1718,11 @@
"skipUrlEncoding": false
},
{
- "$id": "163",
+ "$id": "165",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "164",
- "kind": "constant",
- "valueType": {
- "$id": "165",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1677,7 +1739,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "26"
+ "$ref": "46"
},
"location": "Body",
"isApiVersion": false,
@@ -1697,7 +1759,7 @@
200
],
"bodyType": {
- "$ref": "26"
+ "$ref": "46"
},
"headers": [],
"isErrorResponse": false,
@@ -1724,7 +1786,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "26"
+ "$ref": "46"
},
"location": "Body",
"isApiVersion": false,
@@ -1742,7 +1804,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "161"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1759,7 +1821,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "164"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1775,7 +1837,7 @@
"response": {
"$id": "171",
"type": {
- "$ref": "26"
+ "$ref": "46"
}
},
"isOverride": false,
@@ -1820,7 +1882,7 @@
"crossLanguageDefinitionId": "Encode.Datetime.Property",
"apiVersions": [],
"parent": {
- "$ref": "35"
+ "$ref": "55"
}
},
{
@@ -2411,7 +2473,7 @@
"crossLanguageDefinitionId": "Encode.Datetime.Header",
"apiVersions": [],
"parent": {
- "$ref": "35"
+ "$ref": "55"
}
},
{
@@ -2701,7 +2763,7 @@
"crossLanguageDefinitionId": "Encode.Datetime.ResponseHeader",
"apiVersions": [],
"parent": {
- "$ref": "35"
+ "$ref": "55"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/src/Encode.Duration.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/src/Encode.Duration.csproj
index c713f22897d3..0d9dfa38bd4e 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/src/Encode.Duration.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/duration/src/Encode.Duration.csproj
@@ -17,6 +17,7 @@
+
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 a50a680bbc3e..ef1ed847bda0 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
@@ -3,9 +3,203 @@
"name": "Encode.Duration",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "defaultContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "defaultContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "iso8601ContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "iso8601ContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "int32SecondsContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "int32SecondsContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "floatSecondsContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "floatSecondsContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "float64SecondsContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "float64SecondsContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "floatSecondsArrayContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "floatSecondsArrayContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "26",
"kind": "model",
"name": "DefaultDurationProperty",
"namespace": "Encode.Duration.Property",
@@ -14,17 +208,17 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "27",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "4",
+ "$id": "28",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "5",
+ "$id": "29",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -40,9 +234,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Property.DefaultDurationProperty.value",
"serializationOptions": {
- "$id": "6",
+ "$id": "30",
"json": {
- "$id": "7",
+ "$id": "31",
"name": "value"
}
}
@@ -50,7 +244,7 @@
]
},
{
- "$id": "8",
+ "$id": "32",
"kind": "model",
"name": "ISO8601DurationProperty",
"namespace": "Encode.Duration.Property",
@@ -59,17 +253,17 @@
"decorators": [],
"properties": [
{
- "$id": "9",
+ "$id": "33",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "10",
+ "$id": "34",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "11",
+ "$id": "35",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -85,9 +279,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Property.ISO8601DurationProperty.value",
"serializationOptions": {
- "$id": "12",
+ "$id": "36",
"json": {
- "$id": "13",
+ "$id": "37",
"name": "value"
}
}
@@ -95,7 +289,7 @@
]
},
{
- "$id": "14",
+ "$id": "38",
"kind": "model",
"name": "Int32SecondsDurationProperty",
"namespace": "Encode.Duration.Property",
@@ -104,17 +298,17 @@
"decorators": [],
"properties": [
{
- "$id": "15",
+ "$id": "39",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "16",
+ "$id": "40",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "17",
+ "$id": "41",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -130,9 +324,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Property.Int32SecondsDurationProperty.value",
"serializationOptions": {
- "$id": "18",
+ "$id": "42",
"json": {
- "$id": "19",
+ "$id": "43",
"name": "value"
}
}
@@ -140,7 +334,7 @@
]
},
{
- "$id": "20",
+ "$id": "44",
"kind": "model",
"name": "FloatSecondsDurationProperty",
"namespace": "Encode.Duration.Property",
@@ -149,17 +343,17 @@
"decorators": [],
"properties": [
{
- "$id": "21",
+ "$id": "45",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "22",
+ "$id": "46",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "23",
+ "$id": "47",
"kind": "float",
"name": "float",
"crossLanguageDefinitionId": "TypeSpec.float",
@@ -175,9 +369,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationProperty.value",
"serializationOptions": {
- "$id": "24",
+ "$id": "48",
"json": {
- "$id": "25",
+ "$id": "49",
"name": "value"
}
}
@@ -185,7 +379,7 @@
]
},
{
- "$id": "26",
+ "$id": "50",
"kind": "model",
"name": "Float64SecondsDurationProperty",
"namespace": "Encode.Duration.Property",
@@ -194,17 +388,17 @@
"decorators": [],
"properties": [
{
- "$id": "27",
+ "$id": "51",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "28",
+ "$id": "52",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "29",
+ "$id": "53",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -220,9 +414,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Property.Float64SecondsDurationProperty.value",
"serializationOptions": {
- "$id": "30",
+ "$id": "54",
"json": {
- "$id": "31",
+ "$id": "55",
"name": "value"
}
}
@@ -230,7 +424,7 @@
]
},
{
- "$id": "32",
+ "$id": "56",
"kind": "model",
"name": "FloatSecondsDurationArrayProperty",
"namespace": "Encode.Duration.Property",
@@ -239,21 +433,21 @@
"decorators": [],
"properties": [
{
- "$id": "33",
+ "$id": "57",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "34",
+ "$id": "58",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "35",
+ "$id": "59",
"kind": "duration",
"name": "Float32Duration",
"encode": "seconds",
"wireType": {
- "$id": "36",
+ "$id": "60",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -261,12 +455,12 @@
},
"crossLanguageDefinitionId": "Encode.Duration.Property.Float32Duration",
"baseType": {
- "$id": "37",
+ "$id": "61",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "38",
+ "$id": "62",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -287,9 +481,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Duration.Property.FloatSecondsDurationArrayProperty.value",
"serializationOptions": {
- "$id": "39",
+ "$id": "63",
"json": {
- "$id": "40",
+ "$id": "64",
"name": "value"
}
}
@@ -299,7 +493,7 @@
],
"clients": [
{
- "$id": "41",
+ "$id": "65",
"kind": "client",
"name": "DurationClient",
"namespace": "Encode.Duration",
@@ -307,12 +501,12 @@
"methods": [],
"parameters": [
{
- "$id": "42",
+ "$id": "66",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "43",
+ "$id": "67",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -326,9 +520,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "44",
+ "$id": "68",
"type": {
- "$id": "45",
+ "$id": "69",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -342,34 +536,34 @@
"apiVersions": [],
"children": [
{
- "$id": "46",
+ "$id": "70",
"kind": "client",
"name": "Query",
"namespace": "Encode.Duration.Query",
"methods": [
{
- "$id": "47",
+ "$id": "71",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "48",
+ "$id": "72",
"name": "default",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "49",
+ "$id": "73",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "50",
+ "$id": "74",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "51",
+ "$id": "75",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -391,7 +585,7 @@
],
"responses": [
{
- "$id": "52",
+ "$id": "76",
"statusCodes": [
204
],
@@ -410,16 +604,16 @@
},
"parameters": [
{
- "$id": "53",
+ "$id": "77",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "54",
+ "$id": "78",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "55",
+ "$id": "79",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -440,7 +634,7 @@
}
],
"response": {
- "$id": "56"
+ "$id": "80"
},
"isOverride": false,
"generateConvenient": true,
@@ -448,28 +642,28 @@
"crossLanguageDefinitionId": "Encode.Duration.Query.default"
},
{
- "$id": "57",
+ "$id": "81",
"kind": "basic",
"name": "iso8601",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "58",
+ "$id": "82",
"name": "iso8601",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "59",
+ "$id": "83",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "60",
+ "$id": "84",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "61",
+ "$id": "85",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -491,7 +685,7 @@
],
"responses": [
{
- "$id": "62",
+ "$id": "86",
"statusCodes": [
204
],
@@ -510,16 +704,16 @@
},
"parameters": [
{
- "$id": "63",
+ "$id": "87",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "64",
+ "$id": "88",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "65",
+ "$id": "89",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -540,7 +734,7 @@
}
],
"response": {
- "$id": "66"
+ "$id": "90"
},
"isOverride": false,
"generateConvenient": true,
@@ -548,28 +742,28 @@
"crossLanguageDefinitionId": "Encode.Duration.Query.iso8601"
},
{
- "$id": "67",
+ "$id": "91",
"kind": "basic",
"name": "int32Seconds",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "68",
+ "$id": "92",
"name": "int32Seconds",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "69",
+ "$id": "93",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "70",
+ "$id": "94",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "71",
+ "$id": "95",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -591,7 +785,7 @@
],
"responses": [
{
- "$id": "72",
+ "$id": "96",
"statusCodes": [
204
],
@@ -610,16 +804,16 @@
},
"parameters": [
{
- "$id": "73",
+ "$id": "97",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "74",
+ "$id": "98",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "75",
+ "$id": "99",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -640,7 +834,7 @@
}
],
"response": {
- "$id": "76"
+ "$id": "100"
},
"isOverride": false,
"generateConvenient": true,
@@ -648,28 +842,28 @@
"crossLanguageDefinitionId": "Encode.Duration.Query.int32Seconds"
},
{
- "$id": "77",
+ "$id": "101",
"kind": "basic",
"name": "floatSeconds",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "78",
+ "$id": "102",
"name": "floatSeconds",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "79",
+ "$id": "103",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "80",
+ "$id": "104",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "81",
+ "$id": "105",
"kind": "float",
"name": "float",
"crossLanguageDefinitionId": "TypeSpec.float",
@@ -691,7 +885,7 @@
],
"responses": [
{
- "$id": "82",
+ "$id": "106",
"statusCodes": [
204
],
@@ -710,16 +904,16 @@
},
"parameters": [
{
- "$id": "83",
+ "$id": "107",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "84",
+ "$id": "108",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "85",
+ "$id": "109",
"kind": "float",
"name": "float",
"crossLanguageDefinitionId": "TypeSpec.float",
@@ -740,7 +934,7 @@
}
],
"response": {
- "$id": "86"
+ "$id": "110"
},
"isOverride": false,
"generateConvenient": true,
@@ -748,28 +942,28 @@
"crossLanguageDefinitionId": "Encode.Duration.Query.floatSeconds"
},
{
- "$id": "87",
+ "$id": "111",
"kind": "basic",
"name": "float64Seconds",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "88",
+ "$id": "112",
"name": "float64Seconds",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "89",
+ "$id": "113",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "90",
+ "$id": "114",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "91",
+ "$id": "115",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -791,7 +985,7 @@
],
"responses": [
{
- "$id": "92",
+ "$id": "116",
"statusCodes": [
204
],
@@ -810,16 +1004,16 @@
},
"parameters": [
{
- "$id": "93",
+ "$id": "117",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "94",
+ "$id": "118",
"kind": "duration",
"name": "duration",
"encode": "seconds",
"wireType": {
- "$id": "95",
+ "$id": "119",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -840,7 +1034,7 @@
}
],
"response": {
- "$id": "96"
+ "$id": "120"
},
"isOverride": false,
"generateConvenient": true,
@@ -848,32 +1042,32 @@
"crossLanguageDefinitionId": "Encode.Duration.Query.float64Seconds"
},
{
- "$id": "97",
+ "$id": "121",
"kind": "basic",
"name": "int32SecondsArray",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "98",
+ "$id": "122",
"name": "int32SecondsArray",
"resourceName": "Query",
"accessibility": "public",
"parameters": [
{
- "$id": "99",
+ "$id": "123",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "100",
+ "$id": "124",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "101",
+ "$id": "125",
"kind": "duration",
"name": "Int32Duration",
"encode": "seconds",
"wireType": {
- "$id": "102",
+ "$id": "126",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -881,12 +1075,12 @@
},
"crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration",
"baseType": {
- "$id": "103",
+ "$id": "127",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "104",
+ "$id": "128",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -914,7 +1108,7 @@
],
"responses": [
{
- "$id": "105",
+ "$id": "129",
"statusCodes": [
204
],
@@ -933,20 +1127,20 @@
},
"parameters": [
{
- "$id": "106",
+ "$id": "130",
"name": "input",
"nameInRequest": "input",
"type": {
- "$id": "107",
+ "$id": "131",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "108",
+ "$id": "132",
"kind": "duration",
"name": "Int32Duration",
"encode": "seconds",
"wireType": {
- "$id": "109",
+ "$id": "133",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -954,12 +1148,12 @@
},
"crossLanguageDefinitionId": "Encode.Duration.Query.Int32Duration",
"baseType": {
- "$id": "110",
+ "$id": "134",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "111",
+ "$id": "135",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -985,7 +1179,7 @@
}
],
"response": {
- "$id": "112"
+ "$id": "136"
},
"isOverride": false,
"generateConvenient": true,
@@ -995,12 +1189,12 @@
],
"parameters": [
{
- "$id": "113",
+ "$id": "137",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "114",
+ "$id": "138",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1014,9 +1208,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "115",
+ "$id": "139",
"type": {
- "$id": "116",
+ "$id": "140",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1029,44 +1223,34 @@
"crossLanguageDefinitionId": "Encode.Duration.Query",
"apiVersions": [],
"parent": {
- "$ref": "41"
+ "$ref": "65"
}
},
{
- "$id": "117",
+ "$id": "141",
"kind": "client",
"name": "Property",
"namespace": "Encode.Duration.Property",
"methods": [
{
- "$id": "118",
+ "$id": "142",
"kind": "basic",
"name": "default",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "119",
+ "$id": "143",
"name": "default",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "120",
+ "$id": "144",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "121",
- "kind": "constant",
- "valueType": {
- "$id": "122",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -1079,21 +1263,11 @@
"skipUrlEncoding": false
},
{
- "$id": "123",
+ "$id": "145",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "124",
- "kind": "constant",
- "valueType": {
- "$id": "125",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -1106,11 +1280,11 @@
"skipUrlEncoding": false
},
{
- "$id": "126",
+ "$id": "146",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "26"
},
"location": "Body",
"isApiVersion": false,
@@ -1125,12 +1299,12 @@
],
"responses": [
{
- "$id": "127",
+ "$id": "147",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "26"
},
"headers": [],
"isErrorResponse": false,
@@ -1153,11 +1327,11 @@
},
"parameters": [
{
- "$id": "128",
+ "$id": "148",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "26"
},
"location": "Body",
"isApiVersion": false,
@@ -1170,12 +1344,12 @@
"skipUrlEncoding": false
},
{
- "$id": "129",
+ "$id": "149",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "121"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -1188,11 +1362,11 @@
"skipUrlEncoding": false
},
{
- "$id": "130",
+ "$id": "150",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "124"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -1206,9 +1380,9 @@
}
],
"response": {
- "$id": "131",
+ "$id": "151",
"type": {
- "$ref": "2"
+ "$ref": "26"
}
},
"isOverride": false,
@@ -1217,34 +1391,24 @@
"crossLanguageDefinitionId": "Encode.Duration.Property.default"
},
{
- "$id": "132",
+ "$id": "152",
"kind": "basic",
"name": "iso8601",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "133",
+ "$id": "153",
"name": "iso8601",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "134",
+ "$id": "154",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "135",
- "kind": "constant",
- "valueType": {
- "$id": "136",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -1257,21 +1421,11 @@
"skipUrlEncoding": false
},
{
- "$id": "137",
+ "$id": "155",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "138",
- "kind": "constant",
- "valueType": {
- "$id": "139",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1284,11 +1438,11 @@
"skipUrlEncoding": false
},
{
- "$id": "140",
+ "$id": "156",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "8"
+ "$ref": "32"
},
"location": "Body",
"isApiVersion": false,
@@ -1303,12 +1457,12 @@
],
"responses": [
{
- "$id": "141",
+ "$id": "157",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "8"
+ "$ref": "32"
},
"headers": [],
"isErrorResponse": false,
@@ -1331,11 +1485,11 @@
},
"parameters": [
{
- "$id": "142",
+ "$id": "158",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "8"
+ "$ref": "32"
},
"location": "Body",
"isApiVersion": false,
@@ -1348,12 +1502,12 @@
"skipUrlEncoding": false
},
{
- "$id": "143",
+ "$id": "159",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "135"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -1366,11 +1520,11 @@
"skipUrlEncoding": false
},
{
- "$id": "144",
+ "$id": "160",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "138"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1384,9 +1538,9 @@
}
],
"response": {
- "$id": "145",
+ "$id": "161",
"type": {
- "$ref": "8"
+ "$ref": "32"
}
},
"isOverride": false,
@@ -1395,34 +1549,24 @@
"crossLanguageDefinitionId": "Encode.Duration.Property.iso8601"
},
{
- "$id": "146",
+ "$id": "162",
"kind": "basic",
"name": "int32Seconds",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "147",
+ "$id": "163",
"name": "int32Seconds",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "148",
+ "$id": "164",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "149",
- "kind": "constant",
- "valueType": {
- "$id": "150",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1435,21 +1579,11 @@
"skipUrlEncoding": false
},
{
- "$id": "151",
+ "$id": "165",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "152",
- "kind": "constant",
- "valueType": {
- "$id": "153",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1462,11 +1596,11 @@
"skipUrlEncoding": false
},
{
- "$id": "154",
+ "$id": "166",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "14"
+ "$ref": "38"
},
"location": "Body",
"isApiVersion": false,
@@ -1481,12 +1615,12 @@
],
"responses": [
{
- "$id": "155",
+ "$id": "167",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "14"
+ "$ref": "38"
},
"headers": [],
"isErrorResponse": false,
@@ -1509,11 +1643,11 @@
},
"parameters": [
{
- "$id": "156",
+ "$id": "168",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "14"
+ "$ref": "38"
},
"location": "Body",
"isApiVersion": false,
@@ -1526,12 +1660,12 @@
"skipUrlEncoding": false
},
{
- "$id": "157",
+ "$id": "169",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "149"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1544,11 +1678,11 @@
"skipUrlEncoding": false
},
{
- "$id": "158",
+ "$id": "170",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "152"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1562,9 +1696,9 @@
}
],
"response": {
- "$id": "159",
+ "$id": "171",
"type": {
- "$ref": "14"
+ "$ref": "38"
}
},
"isOverride": false,
@@ -1573,34 +1707,24 @@
"crossLanguageDefinitionId": "Encode.Duration.Property.int32Seconds"
},
{
- "$id": "160",
+ "$id": "172",
"kind": "basic",
"name": "floatSeconds",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "161",
+ "$id": "173",
"name": "floatSeconds",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "162",
+ "$id": "174",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "163",
- "kind": "constant",
- "valueType": {
- "$id": "164",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1613,21 +1737,11 @@
"skipUrlEncoding": false
},
{
- "$id": "165",
+ "$id": "175",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "166",
- "kind": "constant",
- "valueType": {
- "$id": "167",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1640,11 +1754,11 @@
"skipUrlEncoding": false
},
{
- "$id": "168",
+ "$id": "176",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "20"
+ "$ref": "44"
},
"location": "Body",
"isApiVersion": false,
@@ -1659,12 +1773,12 @@
],
"responses": [
{
- "$id": "169",
+ "$id": "177",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "20"
+ "$ref": "44"
},
"headers": [],
"isErrorResponse": false,
@@ -1687,11 +1801,11 @@
},
"parameters": [
{
- "$id": "170",
+ "$id": "178",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "20"
+ "$ref": "44"
},
"location": "Body",
"isApiVersion": false,
@@ -1704,12 +1818,12 @@
"skipUrlEncoding": false
},
{
- "$id": "171",
+ "$id": "179",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "163"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1722,11 +1836,11 @@
"skipUrlEncoding": false
},
{
- "$id": "172",
+ "$id": "180",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "166"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1740,9 +1854,9 @@
}
],
"response": {
- "$id": "173",
+ "$id": "181",
"type": {
- "$ref": "20"
+ "$ref": "44"
}
},
"isOverride": false,
@@ -1751,34 +1865,24 @@
"crossLanguageDefinitionId": "Encode.Duration.Property.floatSeconds"
},
{
- "$id": "174",
+ "$id": "182",
"kind": "basic",
"name": "float64Seconds",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "175",
+ "$id": "183",
"name": "float64Seconds",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "176",
+ "$id": "184",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "177",
- "kind": "constant",
- "valueType": {
- "$id": "178",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1791,21 +1895,11 @@
"skipUrlEncoding": false
},
{
- "$id": "179",
+ "$id": "185",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "180",
- "kind": "constant",
- "valueType": {
- "$id": "181",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1818,11 +1912,11 @@
"skipUrlEncoding": false
},
{
- "$id": "182",
+ "$id": "186",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "26"
+ "$ref": "50"
},
"location": "Body",
"isApiVersion": false,
@@ -1837,12 +1931,12 @@
],
"responses": [
{
- "$id": "183",
+ "$id": "187",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "26"
+ "$ref": "50"
},
"headers": [],
"isErrorResponse": false,
@@ -1865,11 +1959,11 @@
},
"parameters": [
{
- "$id": "184",
+ "$id": "188",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "26"
+ "$ref": "50"
},
"location": "Body",
"isApiVersion": false,
@@ -1882,12 +1976,12 @@
"skipUrlEncoding": false
},
{
- "$id": "185",
+ "$id": "189",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "177"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1900,11 +1994,11 @@
"skipUrlEncoding": false
},
{
- "$id": "186",
+ "$id": "190",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "180"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1918,9 +2012,9 @@
}
],
"response": {
- "$id": "187",
+ "$id": "191",
"type": {
- "$ref": "26"
+ "$ref": "50"
}
},
"isOverride": false,
@@ -1929,34 +2023,24 @@
"crossLanguageDefinitionId": "Encode.Duration.Property.float64Seconds"
},
{
- "$id": "188",
+ "$id": "192",
"kind": "basic",
"name": "floatSecondsArray",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "189",
+ "$id": "193",
"name": "floatSecondsArray",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "190",
+ "$id": "194",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "191",
- "kind": "constant",
- "valueType": {
- "$id": "192",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1969,21 +2053,11 @@
"skipUrlEncoding": false
},
{
- "$id": "193",
+ "$id": "195",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "194",
- "kind": "constant",
- "valueType": {
- "$id": "195",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -2000,7 +2074,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "32"
+ "$ref": "56"
},
"location": "Body",
"isApiVersion": false,
@@ -2020,7 +2094,7 @@
200
],
"bodyType": {
- "$ref": "32"
+ "$ref": "56"
},
"headers": [],
"isErrorResponse": false,
@@ -2047,7 +2121,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "32"
+ "$ref": "56"
},
"location": "Body",
"isApiVersion": false,
@@ -2065,7 +2139,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "191"
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -2082,7 +2156,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "194"
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -2098,7 +2172,7 @@
"response": {
"$id": "201",
"type": {
- "$ref": "32"
+ "$ref": "56"
}
},
"isOverride": false,
@@ -2143,7 +2217,7 @@
"crossLanguageDefinitionId": "Encode.Duration.Property",
"apiVersions": [],
"parent": {
- "$ref": "41"
+ "$ref": "65"
}
},
{
@@ -2834,7 +2908,7 @@
"crossLanguageDefinitionId": "Encode.Duration.Header",
"apiVersions": [],
"parent": {
- "$ref": "41"
+ "$ref": "65"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/src/Encode.Numeric.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/src/Encode.Numeric.csproj
index 25ea805fa0dc..4bc332cf25e4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/src/Encode.Numeric.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/encode/numeric/src/Encode.Numeric.csproj
@@ -17,6 +17,7 @@
+
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 b4b60c2ce173..8fb79bb7ac71 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
@@ -3,9 +3,107 @@
"name": "Encode.Numeric",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "safeintAsStringContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "safeintAsStringContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "uint32AsStringOptionalContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "uint32AsStringOptionalContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "uint8AsStringContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "uint8AsStringContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "14",
"kind": "model",
"name": "SafeintAsStringProperty",
"namespace": "Encode.Numeric.Property",
@@ -14,12 +112,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "15",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "4",
+ "$id": "16",
"kind": "safeint",
"name": "safeint",
"encode": "string",
@@ -33,9 +131,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Numeric.Property.SafeintAsStringProperty.value",
"serializationOptions": {
- "$id": "5",
+ "$id": "17",
"json": {
- "$id": "6",
+ "$id": "18",
"name": "value"
}
}
@@ -43,7 +141,7 @@
]
},
{
- "$id": "7",
+ "$id": "19",
"kind": "model",
"name": "Uint32AsStringProperty",
"namespace": "Encode.Numeric.Property",
@@ -52,12 +150,12 @@
"decorators": [],
"properties": [
{
- "$id": "8",
+ "$id": "20",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "9",
+ "$id": "21",
"kind": "uint32",
"name": "uint32",
"encode": "string",
@@ -71,9 +169,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Numeric.Property.Uint32AsStringProperty.value",
"serializationOptions": {
- "$id": "10",
+ "$id": "22",
"json": {
- "$id": "11",
+ "$id": "23",
"name": "value"
}
}
@@ -81,7 +179,7 @@
]
},
{
- "$id": "12",
+ "$id": "24",
"kind": "model",
"name": "Uint8AsStringProperty",
"namespace": "Encode.Numeric.Property",
@@ -90,12 +188,12 @@
"decorators": [],
"properties": [
{
- "$id": "13",
+ "$id": "25",
"kind": "property",
"name": "value",
"serializedName": "value",
"type": {
- "$id": "14",
+ "$id": "26",
"kind": "uint8",
"name": "uint8",
"encode": "string",
@@ -109,9 +207,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Encode.Numeric.Property.Uint8AsStringProperty.value",
"serializationOptions": {
- "$id": "15",
+ "$id": "27",
"json": {
- "$id": "16",
+ "$id": "28",
"name": "value"
}
}
@@ -121,7 +219,7 @@
],
"clients": [
{
- "$id": "17",
+ "$id": "29",
"kind": "client",
"name": "NumericClient",
"namespace": "Encode.Numeric",
@@ -129,12 +227,12 @@
"methods": [],
"parameters": [
{
- "$id": "18",
+ "$id": "30",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "19",
+ "$id": "31",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -148,9 +246,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "20",
+ "$id": "32",
"type": {
- "$id": "21",
+ "$id": "33",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -164,40 +262,30 @@
"apiVersions": [],
"children": [
{
- "$id": "22",
+ "$id": "34",
"kind": "client",
"name": "Property",
"namespace": "Encode.Numeric.Property",
"methods": [
{
- "$id": "23",
+ "$id": "35",
"kind": "basic",
"name": "safeintAsString",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "24",
+ "$id": "36",
"name": "safeintAsString",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "25",
+ "$id": "37",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "26",
- "kind": "constant",
- "valueType": {
- "$id": "27",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -210,21 +298,11 @@
"skipUrlEncoding": false
},
{
- "$id": "28",
+ "$id": "38",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "29",
- "kind": "constant",
- "valueType": {
- "$id": "30",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -237,11 +315,11 @@
"skipUrlEncoding": false
},
{
- "$id": "31",
+ "$id": "39",
"name": "value",
"nameInRequest": "value",
"type": {
- "$ref": "2"
+ "$ref": "14"
},
"location": "Body",
"isApiVersion": false,
@@ -256,12 +334,12 @@
],
"responses": [
{
- "$id": "32",
+ "$id": "40",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "14"
},
"headers": [],
"isErrorResponse": false,
@@ -284,11 +362,11 @@
},
"parameters": [
{
- "$id": "33",
+ "$id": "41",
"name": "value",
"nameInRequest": "value",
"type": {
- "$ref": "2"
+ "$ref": "14"
},
"location": "Body",
"isApiVersion": false,
@@ -301,12 +379,12 @@
"skipUrlEncoding": false
},
{
- "$id": "34",
+ "$id": "42",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "26"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -319,11 +397,11 @@
"skipUrlEncoding": false
},
{
- "$id": "35",
+ "$id": "43",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "29"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -337,9 +415,9 @@
}
],
"response": {
- "$id": "36",
+ "$id": "44",
"type": {
- "$ref": "2"
+ "$ref": "14"
}
},
"isOverride": false,
@@ -348,34 +426,24 @@
"crossLanguageDefinitionId": "Encode.Numeric.Property.safeintAsString"
},
{
- "$id": "37",
+ "$id": "45",
"kind": "basic",
"name": "uint32AsStringOptional",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "38",
+ "$id": "46",
"name": "uint32AsStringOptional",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "39",
+ "$id": "47",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "40",
- "kind": "constant",
- "valueType": {
- "$id": "41",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -388,21 +456,11 @@
"skipUrlEncoding": false
},
{
- "$id": "42",
+ "$id": "48",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "43",
- "kind": "constant",
- "valueType": {
- "$id": "44",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -415,11 +473,11 @@
"skipUrlEncoding": false
},
{
- "$id": "45",
+ "$id": "49",
"name": "value",
"nameInRequest": "value",
"type": {
- "$ref": "7"
+ "$ref": "19"
},
"location": "Body",
"isApiVersion": false,
@@ -434,12 +492,12 @@
],
"responses": [
{
- "$id": "46",
+ "$id": "50",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "7"
+ "$ref": "19"
},
"headers": [],
"isErrorResponse": false,
@@ -462,11 +520,11 @@
},
"parameters": [
{
- "$id": "47",
+ "$id": "51",
"name": "value",
"nameInRequest": "value",
"type": {
- "$ref": "7"
+ "$ref": "19"
},
"location": "Body",
"isApiVersion": false,
@@ -479,12 +537,12 @@
"skipUrlEncoding": false
},
{
- "$id": "48",
+ "$id": "52",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "40"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -497,11 +555,11 @@
"skipUrlEncoding": false
},
{
- "$id": "49",
+ "$id": "53",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "43"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -515,9 +573,9 @@
}
],
"response": {
- "$id": "50",
+ "$id": "54",
"type": {
- "$ref": "7"
+ "$ref": "19"
}
},
"isOverride": false,
@@ -526,34 +584,24 @@
"crossLanguageDefinitionId": "Encode.Numeric.Property.uint32AsStringOptional"
},
{
- "$id": "51",
+ "$id": "55",
"kind": "basic",
"name": "uint8AsString",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "52",
+ "$id": "56",
"name": "uint8AsString",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "53",
+ "$id": "57",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "54",
- "kind": "constant",
- "valueType": {
- "$id": "55",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -566,21 +614,11 @@
"skipUrlEncoding": false
},
{
- "$id": "56",
+ "$id": "58",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "57",
- "kind": "constant",
- "valueType": {
- "$id": "58",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -597,7 +635,7 @@
"name": "value",
"nameInRequest": "value",
"type": {
- "$ref": "12"
+ "$ref": "24"
},
"location": "Body",
"isApiVersion": false,
@@ -617,7 +655,7 @@
200
],
"bodyType": {
- "$ref": "12"
+ "$ref": "24"
},
"headers": [],
"isErrorResponse": false,
@@ -644,7 +682,7 @@
"name": "value",
"nameInRequest": "value",
"type": {
- "$ref": "12"
+ "$ref": "24"
},
"location": "Body",
"isApiVersion": false,
@@ -662,7 +700,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "54"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -679,7 +717,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "57"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -695,7 +733,7 @@
"response": {
"$id": "64",
"type": {
- "$ref": "12"
+ "$ref": "24"
}
},
"isOverride": false,
@@ -740,7 +778,7 @@
"crossLanguageDefinitionId": "Encode.Numeric.Property",
"apiVersions": [],
"parent": {
- "$ref": "17"
+ "$ref": "29"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/src/Parameters.Basic.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/src/Parameters.Basic.csproj
index 04c3cb1d7b88..0aad98e42703 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/src/Parameters.Basic.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/basic/src/Parameters.Basic.csproj
@@ -17,6 +17,7 @@
+
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 8424661c8545..1b35728153e3 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
@@ -3,9 +3,43 @@
"name": "Parameters.Basic",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "simpleContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "simpleContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "6",
"kind": "model",
"name": "User",
"namespace": "Parameters.Basic",
@@ -15,12 +49,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "7",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "4",
+ "$id": "8",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -33,9 +67,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody.User.name",
"serializationOptions": {
- "$id": "5",
+ "$id": "9",
"json": {
- "$id": "6",
+ "$id": "10",
"name": "name"
}
}
@@ -43,7 +77,7 @@
]
},
{
- "$id": "7",
+ "$id": "11",
"kind": "model",
"name": "SimpleRequest",
"namespace": "Parameters.Basic",
@@ -52,12 +86,12 @@
"decorators": [],
"properties": [
{
- "$id": "8",
+ "$id": "12",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "9",
+ "$id": "13",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -70,9 +104,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody.simple.name",
"serializationOptions": {
- "$id": "10",
+ "$id": "14",
"json": {
- "$id": "11",
+ "$id": "15",
"name": "name"
}
}
@@ -82,7 +116,7 @@
],
"clients": [
{
- "$id": "12",
+ "$id": "16",
"kind": "client",
"name": "BasicClient",
"namespace": "Parameters.Basic",
@@ -90,12 +124,12 @@
"methods": [],
"parameters": [
{
- "$id": "13",
+ "$id": "17",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "14",
+ "$id": "18",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -109,9 +143,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "15",
+ "$id": "19",
"type": {
- "$id": "16",
+ "$id": "20",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -125,40 +159,30 @@
"apiVersions": [],
"children": [
{
- "$id": "17",
+ "$id": "21",
"kind": "client",
"name": "ExplicitBody",
"namespace": "Parameters.Basic",
"methods": [
{
- "$id": "18",
+ "$id": "22",
"kind": "basic",
"name": "simple",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "19",
+ "$id": "23",
"name": "simple",
"resourceName": "ExplicitBody",
"accessibility": "public",
"parameters": [
{
- "$id": "20",
+ "$id": "24",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "21",
- "kind": "constant",
- "valueType": {
- "$id": "22",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -171,11 +195,11 @@
"skipUrlEncoding": false
},
{
- "$id": "23",
+ "$id": "25",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "6"
},
"location": "Body",
"isApiVersion": false,
@@ -190,7 +214,7 @@
],
"responses": [
{
- "$id": "24",
+ "$id": "26",
"statusCodes": [
204
],
@@ -212,11 +236,11 @@
},
"parameters": [
{
- "$id": "25",
+ "$id": "27",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "6"
},
"location": "Body",
"isApiVersion": false,
@@ -229,12 +253,12 @@
"skipUrlEncoding": false
},
{
- "$id": "26",
+ "$id": "28",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "21"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -248,7 +272,7 @@
}
],
"response": {
- "$id": "27"
+ "$id": "29"
},
"isOverride": false,
"generateConvenient": true,
@@ -258,12 +282,12 @@
],
"parameters": [
{
- "$id": "28",
+ "$id": "30",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "29",
+ "$id": "31",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -277,9 +301,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "30",
+ "$id": "32",
"type": {
- "$id": "31",
+ "$id": "33",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -292,44 +316,34 @@
"crossLanguageDefinitionId": "Parameters.Basic.ExplicitBody",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "16"
}
},
{
- "$id": "32",
+ "$id": "34",
"kind": "client",
"name": "ImplicitBody",
"namespace": "Parameters.Basic",
"methods": [
{
- "$id": "33",
+ "$id": "35",
"kind": "basic",
"name": "simple",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "34",
+ "$id": "36",
"name": "simple",
"resourceName": "ImplicitBody",
"accessibility": "public",
"parameters": [
{
- "$id": "35",
+ "$id": "37",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "36",
- "kind": "constant",
- "valueType": {
- "$id": "37",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -346,7 +360,7 @@
"name": "simpleRequest",
"nameInRequest": "simpleRequest",
"type": {
- "$ref": "7"
+ "$ref": "11"
},
"location": "Body",
"isApiVersion": false,
@@ -387,7 +401,7 @@
"name": "name",
"nameInRequest": "name",
"type": {
- "$ref": "9"
+ "$ref": "13"
},
"location": "Body",
"isApiVersion": false,
@@ -405,7 +419,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "36"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -463,7 +477,7 @@
"crossLanguageDefinitionId": "Parameters.Basic.ImplicitBody",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "16"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/src/Parameters.BodyOptionality.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/src/Parameters.BodyOptionality.csproj
index 4ee515ff2cc9..a6e2700d2f41 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/src/Parameters.BodyOptionality.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/body-optionality/src/Parameters.BodyOptionality.csproj
@@ -17,6 +17,7 @@
+
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 4e39ded1399d..e098ca9f18dc 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
@@ -3,9 +3,75 @@
"name": "Parameters.BodyOptionality",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "requiredExplicitContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "requiredImplicitContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "setContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "omitContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "10",
"kind": "model",
"name": "BodyModel",
"namespace": "Parameters.BodyOptionality",
@@ -14,12 +80,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "11",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "4",
+ "$id": "12",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -32,9 +98,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Parameters.BodyOptionality.BodyModel.name",
"serializationOptions": {
- "$id": "5",
+ "$id": "13",
"json": {
- "$id": "6",
+ "$id": "14",
"name": "name"
}
}
@@ -44,41 +110,31 @@
],
"clients": [
{
- "$id": "7",
+ "$id": "15",
"kind": "client",
"name": "BodyOptionalityClient",
"namespace": "Parameters.BodyOptionality",
"doc": "Test describing optionality of the request body.",
"methods": [
{
- "$id": "8",
+ "$id": "16",
"kind": "basic",
"name": "requiredExplicit",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "9",
+ "$id": "17",
"name": "requiredExplicit",
"resourceName": "BodyOptionality",
"accessibility": "public",
"parameters": [
{
- "$id": "10",
+ "$id": "18",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "11",
- "kind": "constant",
- "valueType": {
- "$id": "12",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -91,11 +147,11 @@
"skipUrlEncoding": false
},
{
- "$id": "13",
+ "$id": "19",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -110,7 +166,7 @@
],
"responses": [
{
- "$id": "14",
+ "$id": "20",
"statusCodes": [
204
],
@@ -132,11 +188,11 @@
},
"parameters": [
{
- "$id": "15",
+ "$id": "21",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -149,12 +205,12 @@
"skipUrlEncoding": false
},
{
- "$id": "16",
+ "$id": "22",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "11"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -168,7 +224,7 @@
}
],
"response": {
- "$id": "17"
+ "$id": "23"
},
"isOverride": false,
"generateConvenient": true,
@@ -176,34 +232,24 @@
"crossLanguageDefinitionId": "Parameters.BodyOptionality.requiredExplicit"
},
{
- "$id": "18",
+ "$id": "24",
"kind": "basic",
"name": "requiredImplicit",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "19",
+ "$id": "25",
"name": "requiredImplicit",
"resourceName": "BodyOptionality",
"accessibility": "public",
"parameters": [
{
- "$id": "20",
+ "$id": "26",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "21",
- "kind": "constant",
- "valueType": {
- "$id": "22",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -216,11 +262,11 @@
"skipUrlEncoding": false
},
{
- "$id": "23",
+ "$id": "27",
"name": "bodyModel",
"nameInRequest": "bodyModel",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -235,7 +281,7 @@
],
"responses": [
{
- "$id": "24",
+ "$id": "28",
"statusCodes": [
204
],
@@ -257,11 +303,11 @@
},
"parameters": [
{
- "$id": "25",
+ "$id": "29",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "26",
+ "$id": "30",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -278,12 +324,12 @@
"skipUrlEncoding": false
},
{
- "$id": "27",
+ "$id": "31",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "21"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -297,7 +343,7 @@
}
],
"response": {
- "$id": "28"
+ "$id": "32"
},
"isOverride": false,
"generateConvenient": true,
@@ -307,12 +353,12 @@
],
"parameters": [
{
- "$id": "29",
+ "$id": "33",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "30",
+ "$id": "34",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -326,9 +372,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "31",
+ "$id": "35",
"type": {
- "$id": "32",
+ "$id": "36",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -342,40 +388,30 @@
"apiVersions": [],
"children": [
{
- "$id": "33",
+ "$id": "37",
"kind": "client",
"name": "OptionalExplicit",
"namespace": "Parameters.BodyOptionality.OptionalExplicit",
"methods": [
{
- "$id": "34",
+ "$id": "38",
"kind": "basic",
"name": "set",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "35",
+ "$id": "39",
"name": "set",
"resourceName": "OptionalExplicit",
"accessibility": "public",
"parameters": [
{
- "$id": "36",
+ "$id": "40",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "37",
- "kind": "constant",
- "valueType": {
- "$id": "38",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -388,11 +424,11 @@
"skipUrlEncoding": false
},
{
- "$id": "39",
+ "$id": "41",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -407,7 +443,7 @@
],
"responses": [
{
- "$id": "40",
+ "$id": "42",
"statusCodes": [
204
],
@@ -429,11 +465,11 @@
},
"parameters": [
{
- "$id": "41",
+ "$id": "43",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -446,12 +482,12 @@
"skipUrlEncoding": false
},
{
- "$id": "42",
+ "$id": "44",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "37"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -465,7 +501,7 @@
}
],
"response": {
- "$id": "43"
+ "$id": "45"
},
"isOverride": false,
"generateConvenient": true,
@@ -473,34 +509,24 @@
"crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit.set"
},
{
- "$id": "44",
+ "$id": "46",
"kind": "basic",
"name": "omit",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "45",
+ "$id": "47",
"name": "omit",
"resourceName": "OptionalExplicit",
"accessibility": "public",
"parameters": [
{
- "$id": "46",
+ "$id": "48",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "47",
- "kind": "constant",
- "valueType": {
- "$id": "48",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -517,7 +543,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -558,7 +584,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -576,7 +602,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "47"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -634,7 +660,7 @@
"crossLanguageDefinitionId": "Parameters.BodyOptionality.OptionalExplicit",
"apiVersions": [],
"parent": {
- "$ref": "7"
+ "$ref": "15"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/src/Parameters.CollectionFormat.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/src/Parameters.CollectionFormat.csproj
index 2541107eac37..d99b865cf4d1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/src/Parameters.CollectionFormat.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/collection-format/src/Parameters.CollectionFormat.csproj
@@ -17,6 +17,7 @@
+
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 79c99f01707a..59a5830e94e7 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
@@ -3,6 +3,7 @@
"name": "Parameters.CollectionFormat",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/src/Parameters.Path.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/src/Parameters.Path.csproj
index 22cd077f688f..f64be2e184e2 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/src/Parameters.Path.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/path/src/Parameters.Path.csproj
@@ -17,6 +17,7 @@
+
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 f49b49d482cf..37f66722a03e 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
@@ -3,6 +3,7 @@
"name": "Parameters.Path",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/src/Parameters.Spread.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/src/Parameters.Spread.csproj
index 3c9ddc1fb374..c664fb161527 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/src/Parameters.Spread.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/parameters/spread/src/Parameters.Spread.csproj
@@ -17,6 +17,7 @@
+
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 a306166a8995..7c9a22f3a254 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
@@ -3,9 +3,155 @@
"name": "Parameters.Spread",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "spreadAsRequestBodyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "spreadCompositeRequestOnlyWithBodyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "spreadCompositeRequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "spreadCompositeRequestMixContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "spreadAsRequestBodyContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "spreadParameterWithInnerModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "spreadAsRequestParameterContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "spreadWithMultipleParametersContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "spreadParameterWithInnerAliasContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "20",
"kind": "model",
"name": "BodyParameter",
"namespace": "Parameters.Spread",
@@ -15,12 +161,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "21",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "4",
+ "$id": "22",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -33,9 +179,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Spread.Model.BodyParameter.name",
"serializationOptions": {
- "$id": "5",
+ "$id": "23",
"json": {
- "$id": "6",
+ "$id": "24",
"name": "name"
}
}
@@ -43,7 +189,7 @@
]
},
{
- "$id": "7",
+ "$id": "25",
"kind": "model",
"name": "SpreadCompositeRequestMixRequest",
"namespace": "",
@@ -52,12 +198,12 @@
"decorators": [],
"properties": [
{
- "$id": "8",
+ "$id": "26",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$id": "9",
+ "$id": "27",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -70,9 +216,9 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadCompositeRequestMix.Request.anonymous.prop",
"serializationOptions": {
- "$id": "10",
+ "$id": "28",
"json": {
- "$id": "11",
+ "$id": "29",
"name": "prop"
}
}
@@ -80,7 +226,7 @@
]
},
{
- "$id": "12",
+ "$id": "30",
"kind": "model",
"name": "SpreadAsRequestBodyRequest",
"namespace": "Parameters.Spread",
@@ -89,12 +235,12 @@
"decorators": [],
"properties": [
{
- "$id": "13",
+ "$id": "31",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "14",
+ "$id": "32",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -107,9 +253,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody.name",
"serializationOptions": {
- "$id": "15",
+ "$id": "33",
"json": {
- "$id": "16",
+ "$id": "34",
"name": "name"
}
}
@@ -117,7 +263,7 @@
]
},
{
- "$id": "17",
+ "$id": "35",
"kind": "model",
"name": "SpreadParameterWithInnerModelRequest",
"namespace": "",
@@ -126,12 +272,12 @@
"decorators": [],
"properties": [
{
- "$id": "18",
+ "$id": "36",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "19",
+ "$id": "37",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -144,9 +290,9 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadParameterWithInnerModel.Request.anonymous.name",
"serializationOptions": {
- "$id": "20",
+ "$id": "38",
"json": {
- "$id": "21",
+ "$id": "39",
"name": "name"
}
}
@@ -154,7 +300,7 @@
]
},
{
- "$id": "22",
+ "$id": "40",
"kind": "model",
"name": "SpreadAsRequestParameterRequest",
"namespace": "",
@@ -163,12 +309,12 @@
"decorators": [],
"properties": [
{
- "$id": "23",
+ "$id": "41",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "24",
+ "$id": "42",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -181,9 +327,9 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadAsRequestParameter.Request.anonymous.name",
"serializationOptions": {
- "$id": "25",
+ "$id": "43",
"json": {
- "$id": "26",
+ "$id": "44",
"name": "name"
}
}
@@ -191,7 +337,7 @@
]
},
{
- "$id": "27",
+ "$id": "45",
"kind": "model",
"name": "SpreadWithMultipleParametersRequest",
"namespace": "",
@@ -200,13 +346,13 @@
"decorators": [],
"properties": [
{
- "$id": "28",
+ "$id": "46",
"kind": "property",
"name": "requiredString",
"serializedName": "requiredString",
"doc": "required string",
"type": {
- "$id": "29",
+ "$id": "47",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -219,21 +365,21 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.requiredString",
"serializationOptions": {
- "$id": "30",
+ "$id": "48",
"json": {
- "$id": "31",
+ "$id": "49",
"name": "requiredString"
}
}
},
{
- "$id": "32",
+ "$id": "50",
"kind": "property",
"name": "optionalInt",
"serializedName": "optionalInt",
"doc": "optional int",
"type": {
- "$id": "33",
+ "$id": "51",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -246,25 +392,25 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.optionalInt",
"serializationOptions": {
- "$id": "34",
+ "$id": "52",
"json": {
- "$id": "35",
+ "$id": "53",
"name": "optionalInt"
}
}
},
{
- "$id": "36",
+ "$id": "54",
"kind": "property",
"name": "requiredIntList",
"serializedName": "requiredIntList",
"doc": "required int",
"type": {
- "$id": "37",
+ "$id": "55",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "38",
+ "$id": "56",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -280,25 +426,25 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.requiredIntList",
"serializationOptions": {
- "$id": "39",
+ "$id": "57",
"json": {
- "$id": "40",
+ "$id": "58",
"name": "requiredIntList"
}
}
},
{
- "$id": "41",
+ "$id": "59",
"kind": "property",
"name": "optionalStringList",
"serializedName": "optionalStringList",
"doc": "optional string",
"type": {
- "$id": "42",
+ "$id": "60",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "43",
+ "$id": "61",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -314,9 +460,9 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadWithMultipleParameters.Request.anonymous.optionalStringList",
"serializationOptions": {
- "$id": "44",
+ "$id": "62",
"json": {
- "$id": "45",
+ "$id": "63",
"name": "optionalStringList"
}
}
@@ -324,7 +470,7 @@
]
},
{
- "$id": "46",
+ "$id": "64",
"kind": "model",
"name": "SpreadParameterWithInnerAliasRequest",
"namespace": "",
@@ -333,13 +479,13 @@
"decorators": [],
"properties": [
{
- "$id": "47",
+ "$id": "65",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "name of the Thing",
"type": {
- "$id": "48",
+ "$id": "66",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -352,21 +498,21 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadParameterWithInnerAlias.Request.anonymous.name",
"serializationOptions": {
- "$id": "49",
+ "$id": "67",
"json": {
- "$id": "50",
+ "$id": "68",
"name": "name"
}
}
},
{
- "$id": "51",
+ "$id": "69",
"kind": "property",
"name": "age",
"serializedName": "age",
"doc": "age of the Thing",
"type": {
- "$id": "52",
+ "$id": "70",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -379,9 +525,9 @@
"decorators": [],
"crossLanguageDefinitionId": "spreadParameterWithInnerAlias.Request.anonymous.age",
"serializationOptions": {
- "$id": "53",
+ "$id": "71",
"json": {
- "$id": "54",
+ "$id": "72",
"name": "age"
}
}
@@ -391,7 +537,7 @@
],
"clients": [
{
- "$id": "55",
+ "$id": "73",
"kind": "client",
"name": "SpreadClient",
"namespace": "Parameters.Spread",
@@ -399,12 +545,12 @@
"methods": [],
"parameters": [
{
- "$id": "56",
+ "$id": "74",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "57",
+ "$id": "75",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -418,9 +564,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "58",
+ "$id": "76",
"type": {
- "$id": "59",
+ "$id": "77",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -434,40 +580,30 @@
"apiVersions": [],
"children": [
{
- "$id": "60",
+ "$id": "78",
"kind": "client",
"name": "Model",
"namespace": "Parameters.Spread",
"methods": [
{
- "$id": "61",
+ "$id": "79",
"kind": "basic",
"name": "spreadAsRequestBody",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "62",
+ "$id": "80",
"name": "spreadAsRequestBody",
"resourceName": "Model",
"accessibility": "public",
"parameters": [
{
- "$id": "63",
+ "$id": "81",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "64",
- "kind": "constant",
- "valueType": {
- "$id": "65",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -480,11 +616,11 @@
"skipUrlEncoding": false
},
{
- "$id": "66",
+ "$id": "82",
"name": "bodyParameter",
"nameInRequest": "bodyParameter",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -499,7 +635,7 @@
],
"responses": [
{
- "$id": "67",
+ "$id": "83",
"statusCodes": [
204
],
@@ -521,11 +657,11 @@
},
"parameters": [
{
- "$id": "68",
+ "$id": "84",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "69",
+ "$id": "85",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -542,12 +678,12 @@
"skipUrlEncoding": false
},
{
- "$id": "70",
+ "$id": "86",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "64"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -561,7 +697,7 @@
}
],
"response": {
- "$id": "71"
+ "$id": "87"
},
"isOverride": false,
"generateConvenient": true,
@@ -569,34 +705,24 @@
"crossLanguageDefinitionId": "Parameters.Spread.Model.spreadAsRequestBody"
},
{
- "$id": "72",
+ "$id": "88",
"kind": "basic",
"name": "spreadCompositeRequestOnlyWithBody",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "73",
+ "$id": "89",
"name": "spreadCompositeRequestOnlyWithBody",
"resourceName": "Model",
"accessibility": "public",
"parameters": [
{
- "$id": "74",
+ "$id": "90",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "75",
- "kind": "constant",
- "valueType": {
- "$id": "76",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -609,11 +735,11 @@
"skipUrlEncoding": false
},
{
- "$id": "77",
+ "$id": "91",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -628,7 +754,7 @@
],
"responses": [
{
- "$id": "78",
+ "$id": "92",
"statusCodes": [
204
],
@@ -650,11 +776,11 @@
},
"parameters": [
{
- "$id": "79",
+ "$id": "93",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -667,12 +793,12 @@
"skipUrlEncoding": false
},
{
- "$id": "80",
+ "$id": "94",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "75"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -686,7 +812,7 @@
}
],
"response": {
- "$id": "81"
+ "$id": "95"
},
"isOverride": false,
"generateConvenient": true,
@@ -694,23 +820,23 @@
"crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestOnlyWithBody"
},
{
- "$id": "82",
+ "$id": "96",
"kind": "basic",
"name": "spreadCompositeRequestWithoutBody",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "83",
+ "$id": "97",
"name": "spreadCompositeRequestWithoutBody",
"resourceName": "Model",
"accessibility": "public",
"parameters": [
{
- "$id": "84",
+ "$id": "98",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "85",
+ "$id": "99",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -727,11 +853,11 @@
"skipUrlEncoding": false
},
{
- "$id": "86",
+ "$id": "100",
"name": "testHeader",
"nameInRequest": "test-header",
"type": {
- "$id": "87",
+ "$id": "101",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -750,7 +876,7 @@
],
"responses": [
{
- "$id": "88",
+ "$id": "102",
"statusCodes": [
204
],
@@ -769,11 +895,11 @@
},
"parameters": [
{
- "$id": "89",
+ "$id": "103",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "90",
+ "$id": "104",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -790,11 +916,11 @@
"skipUrlEncoding": false
},
{
- "$id": "91",
+ "$id": "105",
"name": "testHeader",
"nameInRequest": "test-header",
"type": {
- "$id": "92",
+ "$id": "106",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -812,7 +938,7 @@
}
],
"response": {
- "$id": "93"
+ "$id": "107"
},
"isOverride": false,
"generateConvenient": true,
@@ -820,23 +946,23 @@
"crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequestWithoutBody"
},
{
- "$id": "94",
+ "$id": "108",
"kind": "basic",
"name": "spreadCompositeRequest",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "95",
+ "$id": "109",
"name": "spreadCompositeRequest",
"resourceName": "Model",
"accessibility": "public",
"parameters": [
{
- "$id": "96",
+ "$id": "110",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "97",
+ "$id": "111",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -853,11 +979,11 @@
"skipUrlEncoding": false
},
{
- "$id": "98",
+ "$id": "112",
"name": "testHeader",
"nameInRequest": "test-header",
"type": {
- "$id": "99",
+ "$id": "113",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -874,22 +1000,12 @@
"skipUrlEncoding": false
},
{
- "$id": "100",
+ "$id": "114",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "101",
- "kind": "constant",
- "valueType": {
- "$id": "102",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -902,11 +1018,11 @@
"skipUrlEncoding": false
},
{
- "$id": "103",
+ "$id": "115",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -921,7 +1037,7 @@
],
"responses": [
{
- "$id": "104",
+ "$id": "116",
"statusCodes": [
204
],
@@ -943,11 +1059,11 @@
},
"parameters": [
{
- "$id": "105",
+ "$id": "117",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "106",
+ "$id": "118",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -964,11 +1080,11 @@
"skipUrlEncoding": false
},
{
- "$id": "107",
+ "$id": "119",
"name": "testHeader",
"nameInRequest": "test-header",
"type": {
- "$id": "108",
+ "$id": "120",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -985,11 +1101,11 @@
"skipUrlEncoding": false
},
{
- "$id": "109",
+ "$id": "121",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -1002,12 +1118,12 @@
"skipUrlEncoding": false
},
{
- "$id": "110",
+ "$id": "122",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "101"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -1021,7 +1137,7 @@
}
],
"response": {
- "$id": "111"
+ "$id": "123"
},
"isOverride": false,
"generateConvenient": true,
@@ -1029,23 +1145,23 @@
"crossLanguageDefinitionId": "Parameters.Spread.Model.spreadCompositeRequest"
},
{
- "$id": "112",
+ "$id": "124",
"kind": "basic",
"name": "spreadCompositeRequestMix",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "113",
+ "$id": "125",
"name": "spreadCompositeRequestMix",
"resourceName": "Model",
"accessibility": "public",
"parameters": [
{
- "$id": "114",
+ "$id": "126",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "115",
+ "$id": "127",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1062,11 +1178,11 @@
"skipUrlEncoding": false
},
{
- "$id": "116",
+ "$id": "128",
"name": "testHeader",
"nameInRequest": "test-header",
"type": {
- "$id": "117",
+ "$id": "129",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1083,22 +1199,12 @@
"skipUrlEncoding": false
},
{
- "$id": "118",
+ "$id": "130",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "119",
- "kind": "constant",
- "valueType": {
- "$id": "120",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1111,11 +1217,11 @@
"skipUrlEncoding": false
},
{
- "$id": "121",
+ "$id": "131",
"name": "spreadCompositeRequestMixRequest",
"nameInRequest": "spreadCompositeRequestMixRequest",
"type": {
- "$ref": "7"
+ "$ref": "25"
},
"location": "Body",
"isApiVersion": false,
@@ -1130,7 +1236,7 @@
],
"responses": [
{
- "$id": "122",
+ "$id": "132",
"statusCodes": [
204
],
@@ -1152,11 +1258,11 @@
},
"parameters": [
{
- "$id": "123",
+ "$id": "133",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "124",
+ "$id": "134",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1173,11 +1279,11 @@
"skipUrlEncoding": false
},
{
- "$id": "125",
+ "$id": "135",
"name": "testHeader",
"nameInRequest": "test-header",
"type": {
- "$id": "126",
+ "$id": "136",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1194,11 +1300,11 @@
"skipUrlEncoding": false
},
{
- "$id": "127",
+ "$id": "137",
"name": "prop",
"nameInRequest": "prop",
"type": {
- "$id": "128",
+ "$id": "138",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1215,12 +1321,12 @@
"skipUrlEncoding": false
},
{
- "$id": "129",
+ "$id": "139",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "119"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1234,7 +1340,7 @@
}
],
"response": {
- "$id": "130"
+ "$id": "140"
},
"isOverride": false,
"generateConvenient": true,
@@ -1244,12 +1350,12 @@
],
"parameters": [
{
- "$id": "131",
+ "$id": "141",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "132",
+ "$id": "142",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1263,9 +1369,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "133",
+ "$id": "143",
"type": {
- "$id": "134",
+ "$id": "144",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1278,44 +1384,34 @@
"crossLanguageDefinitionId": "Parameters.Spread.Model",
"apiVersions": [],
"parent": {
- "$ref": "55"
+ "$ref": "73"
}
},
{
- "$id": "135",
+ "$id": "145",
"kind": "client",
"name": "Alias",
"namespace": "Parameters.Spread",
"methods": [
{
- "$id": "136",
+ "$id": "146",
"kind": "basic",
"name": "spreadAsRequestBody",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "137",
+ "$id": "147",
"name": "spreadAsRequestBody",
"resourceName": "Alias",
"accessibility": "public",
"parameters": [
{
- "$id": "138",
+ "$id": "148",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "139",
- "kind": "constant",
- "valueType": {
- "$id": "140",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1328,11 +1424,11 @@
"skipUrlEncoding": false
},
{
- "$id": "141",
+ "$id": "149",
"name": "spreadAsRequestBodyRequest",
"nameInRequest": "spreadAsRequestBodyRequest",
"type": {
- "$ref": "12"
+ "$ref": "30"
},
"location": "Body",
"isApiVersion": false,
@@ -1347,7 +1443,7 @@
],
"responses": [
{
- "$id": "142",
+ "$id": "150",
"statusCodes": [
204
],
@@ -1369,11 +1465,11 @@
},
"parameters": [
{
- "$id": "143",
+ "$id": "151",
"name": "name",
"nameInRequest": "name",
"type": {
- "$ref": "14"
+ "$ref": "32"
},
"location": "Body",
"isApiVersion": false,
@@ -1386,12 +1482,12 @@
"skipUrlEncoding": false
},
{
- "$id": "144",
+ "$id": "152",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "139"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1405,7 +1501,7 @@
}
],
"response": {
- "$id": "145"
+ "$id": "153"
},
"isOverride": false,
"generateConvenient": true,
@@ -1413,23 +1509,23 @@
"crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestBody"
},
{
- "$id": "146",
+ "$id": "154",
"kind": "basic",
"name": "spreadParameterWithInnerModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "147",
+ "$id": "155",
"name": "spreadParameterWithInnerModel",
"resourceName": "Alias",
"accessibility": "public",
"parameters": [
{
- "$id": "148",
+ "$id": "156",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "149",
+ "$id": "157",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1446,11 +1542,11 @@
"skipUrlEncoding": false
},
{
- "$id": "150",
+ "$id": "158",
"name": "x-ms-test-header",
"nameInRequest": "x-ms-test-header",
"type": {
- "$id": "151",
+ "$id": "159",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1467,22 +1563,12 @@
"skipUrlEncoding": false
},
{
- "$id": "152",
+ "$id": "160",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "153",
- "kind": "constant",
- "valueType": {
- "$id": "154",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1495,11 +1581,11 @@
"skipUrlEncoding": false
},
{
- "$id": "155",
+ "$id": "161",
"name": "spreadParameterWithInnerModelRequest",
"nameInRequest": "spreadParameterWithInnerModelRequest",
"type": {
- "$ref": "17"
+ "$ref": "35"
},
"location": "Body",
"isApiVersion": false,
@@ -1514,7 +1600,7 @@
],
"responses": [
{
- "$id": "156",
+ "$id": "162",
"statusCodes": [
204
],
@@ -1536,11 +1622,11 @@
},
"parameters": [
{
- "$id": "157",
+ "$id": "163",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "158",
+ "$id": "164",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1557,11 +1643,11 @@
"skipUrlEncoding": false
},
{
- "$id": "159",
+ "$id": "165",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "160",
+ "$id": "166",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1578,11 +1664,11 @@
"skipUrlEncoding": false
},
{
- "$id": "161",
+ "$id": "167",
"name": "x-ms-test-header",
"nameInRequest": "x-ms-test-header",
"type": {
- "$id": "162",
+ "$id": "168",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1599,12 +1685,12 @@
"skipUrlEncoding": false
},
{
- "$id": "163",
+ "$id": "169",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "153"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1618,7 +1704,7 @@
}
],
"response": {
- "$id": "164"
+ "$id": "170"
},
"isOverride": false,
"generateConvenient": true,
@@ -1626,23 +1712,23 @@
"crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadParameterWithInnerModel"
},
{
- "$id": "165",
+ "$id": "171",
"kind": "basic",
"name": "spreadAsRequestParameter",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "166",
+ "$id": "172",
"name": "spreadAsRequestParameter",
"resourceName": "Alias",
"accessibility": "public",
"parameters": [
{
- "$id": "167",
+ "$id": "173",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "168",
+ "$id": "174",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1659,11 +1745,11 @@
"skipUrlEncoding": false
},
{
- "$id": "169",
+ "$id": "175",
"name": "x-ms-test-header",
"nameInRequest": "x-ms-test-header",
"type": {
- "$id": "170",
+ "$id": "176",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1680,22 +1766,12 @@
"skipUrlEncoding": false
},
{
- "$id": "171",
+ "$id": "177",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "172",
- "kind": "constant",
- "valueType": {
- "$id": "173",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1708,11 +1784,11 @@
"skipUrlEncoding": false
},
{
- "$id": "174",
+ "$id": "178",
"name": "spreadAsRequestParameterRequest",
"nameInRequest": "spreadAsRequestParameterRequest",
"type": {
- "$ref": "22"
+ "$ref": "40"
},
"location": "Body",
"isApiVersion": false,
@@ -1727,7 +1803,7 @@
],
"responses": [
{
- "$id": "175",
+ "$id": "179",
"statusCodes": [
204
],
@@ -1749,11 +1825,11 @@
},
"parameters": [
{
- "$id": "176",
+ "$id": "180",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "177",
+ "$id": "181",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1770,11 +1846,11 @@
"skipUrlEncoding": false
},
{
- "$id": "178",
+ "$id": "182",
"name": "x-ms-test-header",
"nameInRequest": "x-ms-test-header",
"type": {
- "$id": "179",
+ "$id": "183",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1791,11 +1867,11 @@
"skipUrlEncoding": false
},
{
- "$id": "180",
+ "$id": "184",
"name": "name",
"nameInRequest": "name",
"type": {
- "$id": "181",
+ "$id": "185",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1812,12 +1888,12 @@
"skipUrlEncoding": false
},
{
- "$id": "182",
+ "$id": "186",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "172"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1831,7 +1907,7 @@
}
],
"response": {
- "$id": "183"
+ "$id": "187"
},
"isOverride": false,
"generateConvenient": true,
@@ -1839,23 +1915,23 @@
"crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadAsRequestParameter"
},
{
- "$id": "184",
+ "$id": "188",
"kind": "basic",
"name": "spreadWithMultipleParameters",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "185",
+ "$id": "189",
"name": "spreadWithMultipleParameters",
"resourceName": "Alias",
"accessibility": "public",
"parameters": [
{
- "$id": "186",
+ "$id": "190",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "187",
+ "$id": "191",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1872,11 +1948,11 @@
"skipUrlEncoding": false
},
{
- "$id": "188",
+ "$id": "192",
"name": "x-ms-test-header",
"nameInRequest": "x-ms-test-header",
"type": {
- "$id": "189",
+ "$id": "193",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1893,22 +1969,12 @@
"skipUrlEncoding": false
},
{
- "$id": "190",
+ "$id": "194",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "191",
- "kind": "constant",
- "valueType": {
- "$id": "192",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1921,11 +1987,11 @@
"skipUrlEncoding": false
},
{
- "$id": "193",
+ "$id": "195",
"name": "spreadWithMultipleParametersRequest",
"nameInRequest": "spreadWithMultipleParametersRequest",
"type": {
- "$ref": "27"
+ "$ref": "45"
},
"location": "Body",
"isApiVersion": false,
@@ -1940,7 +2006,7 @@
],
"responses": [
{
- "$id": "194",
+ "$id": "196",
"statusCodes": [
204
],
@@ -1962,11 +2028,11 @@
},
"parameters": [
{
- "$id": "195",
+ "$id": "197",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "196",
+ "$id": "198",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1983,11 +2049,11 @@
"skipUrlEncoding": false
},
{
- "$id": "197",
+ "$id": "199",
"name": "x-ms-test-header",
"nameInRequest": "x-ms-test-header",
"type": {
- "$id": "198",
+ "$id": "200",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2004,12 +2070,12 @@
"skipUrlEncoding": false
},
{
- "$id": "199",
+ "$id": "201",
"name": "requiredString",
"nameInRequest": "requiredString",
"doc": "required string",
"type": {
- "$id": "200",
+ "$id": "202",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2026,12 +2092,12 @@
"skipUrlEncoding": false
},
{
- "$id": "201",
+ "$id": "203",
"name": "optionalInt",
"nameInRequest": "optionalInt",
"doc": "optional int",
"type": {
- "$id": "202",
+ "$id": "204",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -2048,16 +2114,16 @@
"skipUrlEncoding": false
},
{
- "$id": "203",
+ "$id": "205",
"name": "requiredIntList",
"nameInRequest": "requiredIntList",
"doc": "required int",
"type": {
- "$id": "204",
+ "$id": "206",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "205",
+ "$id": "207",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -2077,16 +2143,16 @@
"skipUrlEncoding": false
},
{
- "$id": "206",
+ "$id": "208",
"name": "optionalStringList",
"nameInRequest": "optionalStringList",
"doc": "optional string",
"type": {
- "$id": "207",
+ "$id": "209",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "208",
+ "$id": "210",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2106,12 +2172,12 @@
"skipUrlEncoding": false
},
{
- "$id": "209",
+ "$id": "211",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "191"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -2125,7 +2191,7 @@
}
],
"response": {
- "$id": "210"
+ "$id": "212"
},
"isOverride": false,
"generateConvenient": true,
@@ -2133,25 +2199,25 @@
"crossLanguageDefinitionId": "Parameters.Spread.Alias.spreadWithMultipleParameters"
},
{
- "$id": "211",
+ "$id": "213",
"kind": "basic",
"name": "spreadParameterWithInnerAlias",
"accessibility": "public",
"apiVersions": [],
"doc": "spread an alias with contains another alias property as body.",
"operation": {
- "$id": "212",
+ "$id": "214",
"name": "spreadParameterWithInnerAlias",
"resourceName": "Alias",
"doc": "spread an alias with contains another alias property as body.",
"accessibility": "public",
"parameters": [
{
- "$id": "213",
+ "$id": "215",
"name": "id",
"nameInRequest": "id",
"type": {
- "$id": "214",
+ "$id": "216",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2168,11 +2234,11 @@
"skipUrlEncoding": false
},
{
- "$id": "215",
+ "$id": "217",
"name": "x-ms-test-header",
"nameInRequest": "x-ms-test-header",
"type": {
- "$id": "216",
+ "$id": "218",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2189,22 +2255,12 @@
"skipUrlEncoding": false
},
{
- "$id": "217",
+ "$id": "219",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "218",
- "kind": "constant",
- "valueType": {
- "$id": "219",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -2221,7 +2277,7 @@
"name": "spreadParameterWithInnerAliasRequest",
"nameInRequest": "spreadParameterWithInnerAliasRequest",
"type": {
- "$ref": "46"
+ "$ref": "64"
},
"location": "Body",
"isApiVersion": false,
@@ -2349,7 +2405,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "218"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -2407,7 +2463,7 @@
"crossLanguageDefinitionId": "Parameters.Spread.Alias",
"apiVersions": [],
"parent": {
- "$ref": "55"
+ "$ref": "73"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/Models/PngImageAsJson.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/Models/PngImageAsJson.cs
index d4bb0f35cb35..a14faabb6e7f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/Models/PngImageAsJson.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/Models/PngImageAsJson.cs
@@ -11,7 +11,7 @@ namespace Payload.ContentNegotiation._DifferentBody
{
public partial class PngImageAsJson
{
- public PngImageAsJsonContentType ContentType => throw null;
+ public string ContentType => throw null;
public BinaryData Content => throw null;
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/Models/PngImageAsJsonContentType.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/Models/PngImageAsJsonContentType.cs
deleted file mode 100644
index cd5d3027ec7d..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/Models/PngImageAsJsonContentType.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace Payload.ContentNegotiation._DifferentBody
-{
- public readonly partial struct PngImageAsJsonContentType : IEquatable
- {
- public PngImageAsJsonContentType(string value) => throw null;
-
- public static PngImageAsJsonContentType ApplicationJson => throw null;
-
- public static bool operator ==(PngImageAsJsonContentType left, PngImageAsJsonContentType right) => throw null;
-
- public static bool operator !=(PngImageAsJsonContentType left, PngImageAsJsonContentType right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator PngImageAsJsonContentType(string value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(PngImageAsJsonContentType other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/PayloadContentNegotiationModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/PayloadContentNegotiationModelFactory.cs
index b3dc0a521f95..2814b61f9579 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/PayloadContentNegotiationModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Generated/PayloadContentNegotiationModelFactory.cs
@@ -12,6 +12,6 @@ namespace Payload.ContentNegotiation
{
public static partial class PayloadContentNegotiationModelFactory
{
- public static PngImageAsJson PngImageAsJson(PngImageAsJsonContentType contentType = default, BinaryData content = default) => throw null;
+ public static PngImageAsJson PngImageAsJson(string contentType = default, BinaryData content = default) => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Payload.ContentNegotiation.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Payload.ContentNegotiation.csproj
index c644c4891a04..4949def38e20 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Payload.ContentNegotiation.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/content-negotiation/src/Payload.ContentNegotiation.csproj
@@ -17,6 +17,7 @@
+
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 0064745e5f0f..08ee18779fcf 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
@@ -2,11 +2,14 @@
"$id": "1",
"name": "Payload.ContentNegotiation",
"apiVersions": [],
- "enums": [
+ "enums": [],
+ "constants": [
{
"$id": "2",
- "kind": "enum",
- "name": "PngImageAsJson_content-type",
+ "kind": "constant",
+ "name": "PngImageAsJsonContentType",
+ "namespace": "Payload.ContentNegotiation.DifferentBody",
+ "usage": "Output,Json",
"valueType": {
"$id": "3",
"kind": "string",
@@ -14,33 +17,205 @@
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "4",
- "kind": "enumvalue",
- "name": "application/json",
- "value": "application/json",
- "doc": "application/json",
- "valueType": {
- "$ref": "3"
- },
- "enumType": {
- "$ref": "2"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Payload.ContentNegotiation.DifferentBody",
- "doc": "The PngImageAsJson_content-type",
- "isFixed": false,
- "isFlags": false,
- "usage": "Output,Json",
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "PngImageContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "PngImageContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "PngImageContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "JpegImageContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/jpeg",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "JpegImageContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/jpeg",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "JpegImageContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/jpeg",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "PngImageContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "PngImageContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "PngImageContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "image/png",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "PngImageAsJsonContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "PngImageAsJsonContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "PngImageAsJsonContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
"decorators": []
}
],
"models": [
{
- "$id": "5",
+ "$id": "28",
"kind": "model",
"name": "PngImageAsJson",
"namespace": "Payload.ContentNegotiation.DifferentBody",
@@ -49,33 +224,26 @@
"decorators": [],
"properties": [
{
- "$id": "6",
+ "$id": "29",
"kind": "header",
"name": "contentType",
"serializedName": "content-type",
"type": {
- "$id": "7",
- "kind": "constant",
- "valueType": {
- "$ref": "2"
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"optional": false,
"readOnly": false,
"decorators": [],
"crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.PngImageAsJson.contentType",
- "discriminator": false,
- "flatten": false
+ "correspondingMethodParams": []
},
{
- "$id": "8",
+ "$id": "30",
"kind": "property",
"name": "content",
"serializedName": "content",
"type": {
- "$id": "9",
+ "$id": "31",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -89,9 +257,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.PngImageAsJson.content",
"serializationOptions": {
- "$id": "10",
+ "$id": "32",
"json": {
- "$id": "11",
+ "$id": "33",
"name": "content"
}
}
@@ -101,7 +269,7 @@
],
"clients": [
{
- "$id": "12",
+ "$id": "34",
"kind": "client",
"name": "ContentNegotiationClient",
"namespace": "Payload.ContentNegotiation",
@@ -109,12 +277,12 @@
"methods": [],
"parameters": [
{
- "$id": "13",
+ "$id": "35",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "14",
+ "$id": "36",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -128,9 +296,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "15",
+ "$id": "37",
"type": {
- "$id": "16",
+ "$id": "38",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -144,39 +312,29 @@
"apiVersions": [],
"children": [
{
- "$id": "17",
+ "$id": "39",
"kind": "client",
"name": "SameBody",
"namespace": "Payload.ContentNegotiation.SameBody",
"methods": [
{
- "$id": "18",
+ "$id": "40",
"kind": "basic",
"name": "getAvatarAsPng",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "19",
+ "$id": "41",
"name": "getAvatarAsPng",
"resourceName": "SameBody",
"accessibility": "public",
"parameters": [
{
- "$id": "20",
+ "$id": "42",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "21",
- "kind": "constant",
- "valueType": {
- "$id": "22",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -191,12 +349,12 @@
],
"responses": [
{
- "$id": "23",
+ "$id": "43",
"statusCodes": [
200
],
"bodyType": {
- "$id": "24",
+ "$id": "44",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -204,21 +362,11 @@
},
"headers": [
{
- "$id": "25",
+ "$id": "45",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "26",
- "kind": "constant",
- "valueType": {
- "$id": "27",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "6"
}
}
],
@@ -239,21 +387,11 @@
},
"parameters": [
{
- "$id": "28",
+ "$id": "46",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$id": "29",
- "kind": "constant",
- "valueType": {
- "$id": "30",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -267,9 +405,9 @@
}
],
"response": {
- "$id": "31",
+ "$id": "47",
"type": {
- "$ref": "24"
+ "$ref": "44"
}
},
"isOverride": false,
@@ -278,33 +416,23 @@
"crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody.getAvatarAsPng"
},
{
- "$id": "32",
+ "$id": "48",
"kind": "basic",
"name": "getAvatarAsJpeg",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "33",
+ "$id": "49",
"name": "getAvatarAsJpeg",
"resourceName": "SameBody",
"accessibility": "public",
"parameters": [
{
- "$id": "34",
+ "$id": "50",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "35",
- "kind": "constant",
- "valueType": {
- "$id": "36",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/jpeg",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -319,12 +447,12 @@
],
"responses": [
{
- "$id": "37",
+ "$id": "51",
"statusCodes": [
200
],
"bodyType": {
- "$id": "38",
+ "$id": "52",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -332,21 +460,11 @@
},
"headers": [
{
- "$id": "39",
+ "$id": "53",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "40",
- "kind": "constant",
- "valueType": {
- "$id": "41",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/jpeg",
- "decorators": []
+ "$ref": "12"
}
}
],
@@ -367,21 +485,11 @@
},
"parameters": [
{
- "$id": "42",
+ "$id": "54",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$id": "43",
- "kind": "constant",
- "valueType": {
- "$id": "44",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/jpeg",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -395,9 +503,9 @@
}
],
"response": {
- "$id": "45",
+ "$id": "55",
"type": {
- "$ref": "38"
+ "$ref": "52"
}
},
"isOverride": false,
@@ -408,12 +516,12 @@
],
"parameters": [
{
- "$id": "46",
+ "$id": "56",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "47",
+ "$id": "57",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -427,9 +535,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "48",
+ "$id": "58",
"type": {
- "$id": "49",
+ "$id": "59",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -442,43 +550,33 @@
"crossLanguageDefinitionId": "Payload.ContentNegotiation.SameBody",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "34"
}
},
{
- "$id": "50",
+ "$id": "60",
"kind": "client",
"name": "DifferentBody",
"namespace": "Payload.ContentNegotiation.DifferentBody",
"methods": [
{
- "$id": "51",
+ "$id": "61",
"kind": "basic",
"name": "getAvatarAsPng",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "52",
+ "$id": "62",
"name": "getAvatarAsPng",
"resourceName": "DifferentBody",
"accessibility": "public",
"parameters": [
{
- "$id": "53",
+ "$id": "63",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "54",
- "kind": "constant",
- "valueType": {
- "$id": "55",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -493,12 +591,12 @@
],
"responses": [
{
- "$id": "56",
+ "$id": "64",
"statusCodes": [
200
],
"bodyType": {
- "$id": "57",
+ "$id": "65",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "TypeSpec.bytes",
@@ -506,21 +604,11 @@
},
"headers": [
{
- "$id": "58",
+ "$id": "66",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "59",
- "kind": "constant",
- "valueType": {
- "$id": "60",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "18"
}
}
],
@@ -541,21 +629,11 @@
},
"parameters": [
{
- "$id": "61",
+ "$id": "67",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$id": "62",
- "kind": "constant",
- "valueType": {
- "$id": "63",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "image/png",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -569,9 +647,9 @@
}
],
"response": {
- "$id": "64",
+ "$id": "68",
"type": {
- "$ref": "57"
+ "$ref": "65"
}
},
"isOverride": false,
@@ -580,33 +658,23 @@
"crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody.getAvatarAsPng"
},
{
- "$id": "65",
+ "$id": "69",
"kind": "basic",
"name": "getAvatarAsJson",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "66",
+ "$id": "70",
"name": "getAvatarAsJson",
"resourceName": "DifferentBody",
"accessibility": "public",
"parameters": [
{
- "$id": "67",
+ "$id": "71",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "68",
- "kind": "constant",
- "valueType": {
- "$id": "69",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -621,30 +689,20 @@
],
"responses": [
{
- "$id": "70",
+ "$id": "72",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "5"
+ "$ref": "28"
},
"headers": [
{
- "$id": "71",
+ "$id": "73",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "72",
- "kind": "constant",
- "valueType": {
- "$id": "73",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
}
}
],
@@ -669,17 +727,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$id": "75",
- "kind": "constant",
- "valueType": {
- "$id": "76",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -693,9 +741,9 @@
}
],
"response": {
- "$id": "77",
+ "$id": "75",
"type": {
- "$ref": "5"
+ "$ref": "28"
}
},
"isOverride": false,
@@ -706,12 +754,12 @@
],
"parameters": [
{
- "$id": "78",
+ "$id": "76",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "79",
+ "$id": "77",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -725,9 +773,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "80",
+ "$id": "78",
"type": {
- "$id": "81",
+ "$id": "79",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -740,7 +788,7 @@
"crossLanguageDefinitionId": "Payload.ContentNegotiation.DifferentBody",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "34"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/src/Payload.JsonMergePatch.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/src/Payload.JsonMergePatch.csproj
index 3ef41acc03d7..1e6865f5805a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/src/Payload.JsonMergePatch.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/json-merge-patch/src/Payload.JsonMergePatch.csproj
@@ -17,6 +17,7 @@
+
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 edc8e5fcca86..b2f8eac47b6d 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
@@ -3,9 +3,139 @@
"name": "Payload.JsonMergePatch",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "createResourceContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "createResourceContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "UpdateResourceRequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "updateResourceContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "UpdateResourceRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "UpdateResourceRequestContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "updateOptionalResourceContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "UpdateResourceRequestContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "18",
"kind": "model",
"name": "Resource",
"namespace": "Payload.JsonMergePatch",
@@ -15,12 +145,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "19",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "4",
+ "$id": "20",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -33,20 +163,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.name",
"serializationOptions": {
- "$id": "5",
+ "$id": "21",
"json": {
- "$id": "6",
+ "$id": "22",
"name": "name"
}
}
},
{
- "$id": "7",
+ "$id": "23",
"kind": "property",
"name": "description",
"serializedName": "description",
"type": {
- "$id": "8",
+ "$id": "24",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -59,30 +189,30 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.description",
"serializationOptions": {
- "$id": "9",
+ "$id": "25",
"json": {
- "$id": "10",
+ "$id": "26",
"name": "description"
}
}
},
{
- "$id": "11",
+ "$id": "27",
"kind": "property",
"name": "map",
"serializedName": "map",
"type": {
- "$id": "12",
+ "$id": "28",
"kind": "dict",
"keyType": {
- "$id": "13",
+ "$id": "29",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "14",
+ "$id": "30",
"kind": "model",
"name": "InnerModel",
"namespace": "Payload.JsonMergePatch",
@@ -92,12 +222,12 @@
"decorators": [],
"properties": [
{
- "$id": "15",
+ "$id": "31",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "16",
+ "$id": "32",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -110,20 +240,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.InnerModel.name",
"serializationOptions": {
- "$id": "17",
+ "$id": "33",
"json": {
- "$id": "18",
+ "$id": "34",
"name": "name"
}
}
},
{
- "$id": "19",
+ "$id": "35",
"kind": "property",
"name": "description",
"serializedName": "description",
"type": {
- "$id": "20",
+ "$id": "36",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -136,9 +266,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.InnerModel.description",
"serializationOptions": {
- "$id": "21",
+ "$id": "37",
"json": {
- "$id": "22",
+ "$id": "38",
"name": "description"
}
}
@@ -154,24 +284,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.map",
"serializationOptions": {
- "$id": "23",
+ "$id": "39",
"json": {
- "$id": "24",
+ "$id": "40",
"name": "map"
}
}
},
{
- "$id": "25",
+ "$id": "41",
"kind": "property",
"name": "array",
"serializedName": "array",
"type": {
- "$id": "26",
+ "$id": "42",
"kind": "array",
"name": "ArrayInnerModel",
"valueType": {
- "$ref": "14"
+ "$ref": "30"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -183,20 +313,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.array",
"serializationOptions": {
- "$id": "27",
+ "$id": "43",
"json": {
- "$id": "28",
+ "$id": "44",
"name": "array"
}
}
},
{
- "$id": "29",
+ "$id": "45",
"kind": "property",
"name": "intValue",
"serializedName": "intValue",
"type": {
- "$id": "30",
+ "$id": "46",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -209,20 +339,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.intValue",
"serializationOptions": {
- "$id": "31",
+ "$id": "47",
"json": {
- "$id": "32",
+ "$id": "48",
"name": "intValue"
}
}
},
{
- "$id": "33",
+ "$id": "49",
"kind": "property",
"name": "floatValue",
"serializedName": "floatValue",
"type": {
- "$id": "34",
+ "$id": "50",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -235,20 +365,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.floatValue",
"serializationOptions": {
- "$id": "35",
+ "$id": "51",
"json": {
- "$id": "36",
+ "$id": "52",
"name": "floatValue"
}
}
},
{
- "$id": "37",
+ "$id": "53",
"kind": "property",
"name": "innerModel",
"serializedName": "innerModel",
"type": {
- "$ref": "14"
+ "$ref": "30"
},
"optional": true,
"readOnly": false,
@@ -257,24 +387,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.innerModel",
"serializationOptions": {
- "$id": "38",
+ "$id": "54",
"json": {
- "$id": "39",
+ "$id": "55",
"name": "innerModel"
}
}
},
{
- "$id": "40",
+ "$id": "56",
"kind": "property",
"name": "intArray",
"serializedName": "intArray",
"type": {
- "$id": "41",
+ "$id": "57",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "42",
+ "$id": "58",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -290,9 +420,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.Resource.intArray",
"serializationOptions": {
- "$id": "43",
+ "$id": "59",
"json": {
- "$id": "44",
+ "$id": "60",
"name": "intArray"
}
}
@@ -300,10 +430,10 @@
]
},
{
- "$ref": "14"
+ "$ref": "30"
},
{
- "$id": "45",
+ "$id": "61",
"kind": "model",
"name": "ResourcePatch",
"namespace": "Payload.JsonMergePatch",
@@ -313,12 +443,12 @@
"decorators": [],
"properties": [
{
- "$id": "46",
+ "$id": "62",
"kind": "property",
"name": "description",
"serializedName": "description",
"type": {
- "$id": "47",
+ "$id": "63",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -331,30 +461,30 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.description",
"serializationOptions": {
- "$id": "48",
+ "$id": "64",
"json": {
- "$id": "49",
+ "$id": "65",
"name": "description"
}
}
},
{
- "$id": "50",
+ "$id": "66",
"kind": "property",
"name": "map",
"serializedName": "map",
"type": {
- "$id": "51",
+ "$id": "67",
"kind": "dict",
"keyType": {
- "$id": "52",
+ "$id": "68",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "14"
+ "$ref": "30"
},
"decorators": []
},
@@ -365,24 +495,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.map",
"serializationOptions": {
- "$id": "53",
+ "$id": "69",
"json": {
- "$id": "54",
+ "$id": "70",
"name": "map"
}
}
},
{
- "$id": "55",
+ "$id": "71",
"kind": "property",
"name": "array",
"serializedName": "array",
"type": {
- "$id": "56",
+ "$id": "72",
"kind": "array",
"name": "ArrayInnerModel",
"valueType": {
- "$ref": "14"
+ "$ref": "30"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -394,20 +524,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.array",
"serializationOptions": {
- "$id": "57",
+ "$id": "73",
"json": {
- "$id": "58",
+ "$id": "74",
"name": "array"
}
}
},
{
- "$id": "59",
+ "$id": "75",
"kind": "property",
"name": "intValue",
"serializedName": "intValue",
"type": {
- "$id": "60",
+ "$id": "76",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -420,20 +550,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.intValue",
"serializationOptions": {
- "$id": "61",
+ "$id": "77",
"json": {
- "$id": "62",
+ "$id": "78",
"name": "intValue"
}
}
},
{
- "$id": "63",
+ "$id": "79",
"kind": "property",
"name": "floatValue",
"serializedName": "floatValue",
"type": {
- "$id": "64",
+ "$id": "80",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -446,20 +576,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.floatValue",
"serializationOptions": {
- "$id": "65",
+ "$id": "81",
"json": {
- "$id": "66",
+ "$id": "82",
"name": "floatValue"
}
}
},
{
- "$id": "67",
+ "$id": "83",
"kind": "property",
"name": "innerModel",
"serializedName": "innerModel",
"type": {
- "$ref": "14"
+ "$ref": "30"
},
"optional": true,
"readOnly": false,
@@ -468,24 +598,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.innerModel",
"serializationOptions": {
- "$id": "68",
+ "$id": "84",
"json": {
- "$id": "69",
+ "$id": "85",
"name": "innerModel"
}
}
},
{
- "$id": "70",
+ "$id": "86",
"kind": "property",
"name": "intArray",
"serializedName": "intArray",
"type": {
- "$id": "71",
+ "$id": "87",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "72",
+ "$id": "88",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -501,9 +631,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.JsonMergePatch.ResourcePatch.intArray",
"serializationOptions": {
- "$id": "73",
+ "$id": "89",
"json": {
- "$id": "74",
+ "$id": "90",
"name": "intArray"
}
}
@@ -513,43 +643,33 @@
],
"clients": [
{
- "$id": "75",
+ "$id": "91",
"kind": "client",
"name": "JsonMergePatchClient",
"namespace": "Payload.JsonMergePatch",
"doc": "Test for merge-patch+json content-type",
"methods": [
{
- "$id": "76",
+ "$id": "92",
"kind": "basic",
"name": "createResource",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: application/merge-patch+json with required body",
"operation": {
- "$id": "77",
+ "$id": "93",
"name": "createResource",
"resourceName": "JsonMergePatch",
"doc": "Test content-type: application/merge-patch+json with required body",
"accessibility": "public",
"parameters": [
{
- "$id": "78",
+ "$id": "94",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "79",
- "kind": "constant",
- "valueType": {
- "$id": "80",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -562,21 +682,11 @@
"skipUrlEncoding": false
},
{
- "$id": "81",
+ "$id": "95",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "82",
- "kind": "constant",
- "valueType": {
- "$id": "83",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -589,11 +699,11 @@
"skipUrlEncoding": false
},
{
- "$id": "84",
+ "$id": "96",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "18"
},
"location": "Body",
"isApiVersion": false,
@@ -608,12 +718,12 @@
],
"responses": [
{
- "$id": "85",
+ "$id": "97",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "18"
},
"headers": [],
"isErrorResponse": false,
@@ -636,11 +746,11 @@
},
"parameters": [
{
- "$id": "86",
+ "$id": "98",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "18"
},
"location": "Body",
"isApiVersion": false,
@@ -653,12 +763,12 @@
"skipUrlEncoding": false
},
{
- "$id": "87",
+ "$id": "99",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "79"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -671,11 +781,11 @@
"skipUrlEncoding": false
},
{
- "$id": "88",
+ "$id": "100",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "82"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -689,9 +799,9 @@
}
],
"response": {
- "$id": "89",
+ "$id": "101",
"type": {
- "$ref": "2"
+ "$ref": "18"
}
},
"isOverride": false,
@@ -700,35 +810,25 @@
"crossLanguageDefinitionId": "Payload.JsonMergePatch.createResource"
},
{
- "$id": "90",
+ "$id": "102",
"kind": "basic",
"name": "updateResource",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: application/merge-patch+json with required body",
"operation": {
- "$id": "91",
+ "$id": "103",
"name": "updateResource",
"resourceName": "JsonMergePatch",
"doc": "Test content-type: application/merge-patch+json with required body",
"accessibility": "public",
"parameters": [
{
- "$id": "92",
+ "$id": "104",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "93",
- "kind": "constant",
- "valueType": {
- "$id": "94",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -741,21 +841,11 @@
"skipUrlEncoding": false
},
{
- "$id": "95",
+ "$id": "105",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "96",
- "kind": "constant",
- "valueType": {
- "$id": "97",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -768,11 +858,11 @@
"skipUrlEncoding": false
},
{
- "$id": "98",
+ "$id": "106",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "45"
+ "$ref": "61"
},
"location": "Body",
"isApiVersion": false,
@@ -787,12 +877,12 @@
],
"responses": [
{
- "$id": "99",
+ "$id": "107",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "18"
},
"headers": [],
"isErrorResponse": false,
@@ -815,21 +905,11 @@
},
"parameters": [
{
- "$id": "100",
+ "$id": "108",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "101",
- "kind": "constant",
- "valueType": {
- "$id": "102",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -842,11 +922,11 @@
"skipUrlEncoding": false
},
{
- "$id": "103",
+ "$id": "109",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "45"
+ "$ref": "61"
},
"location": "Body",
"isApiVersion": false,
@@ -859,11 +939,11 @@
"skipUrlEncoding": false
},
{
- "$id": "104",
+ "$id": "110",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "96"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -877,9 +957,9 @@
}
],
"response": {
- "$id": "105",
+ "$id": "111",
"type": {
- "$ref": "2"
+ "$ref": "18"
}
},
"isOverride": false,
@@ -888,35 +968,25 @@
"crossLanguageDefinitionId": "Payload.JsonMergePatch.updateResource"
},
{
- "$id": "106",
+ "$id": "112",
"kind": "basic",
"name": "updateOptionalResource",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: application/merge-patch+json with optional body",
"operation": {
- "$id": "107",
+ "$id": "113",
"name": "updateOptionalResource",
"resourceName": "JsonMergePatch",
"doc": "Test content-type: application/merge-patch+json with optional body",
"accessibility": "public",
"parameters": [
{
- "$id": "108",
+ "$id": "114",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "109",
- "kind": "constant",
- "valueType": {
- "$id": "110",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -929,21 +999,11 @@
"skipUrlEncoding": false
},
{
- "$id": "111",
+ "$id": "115",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "112",
- "kind": "constant",
- "valueType": {
- "$id": "113",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -956,11 +1016,11 @@
"skipUrlEncoding": false
},
{
- "$id": "114",
+ "$id": "116",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "45"
+ "$ref": "61"
},
"location": "Body",
"isApiVersion": false,
@@ -975,12 +1035,12 @@
],
"responses": [
{
- "$id": "115",
+ "$id": "117",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "18"
},
"headers": [],
"isErrorResponse": false,
@@ -1003,21 +1063,11 @@
},
"parameters": [
{
- "$id": "116",
+ "$id": "118",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "117",
- "kind": "constant",
- "valueType": {
- "$id": "118",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1034,7 +1084,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "45"
+ "$ref": "61"
},
"location": "Body",
"isApiVersion": false,
@@ -1051,7 +1101,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "112"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1067,7 +1117,7 @@
"response": {
"$id": "121",
"type": {
- "$ref": "2"
+ "$ref": "18"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/src/Payload.MediaType.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/src/Payload.MediaType.csproj
index 7377ef3df6e8..4ae897dd3903 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/src/Payload.MediaType.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/media-type/src/Payload.MediaType.csproj
@@ -17,6 +17,7 @@
+
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 cc8fb01498e8..92a29b8d4880 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
@@ -3,10 +3,140 @@
"name": "Payload.MediaType",
"apiVersions": [],
"enums": [],
+ "constants": [
+ {
+ "$id": "2",
+ "kind": "constant",
+ "name": "SendAsTextRequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "text/plain",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "SendAsTextRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "text/plain",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "getAsTextContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "text/plain",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "SendAsTextRequestContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "text/plain",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "SendAsJsonRequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "SendAsJsonRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "getAsJsonContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "SendAsJsonRequestContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
"models": [],
"clients": [
{
- "$id": "2",
+ "$id": "18",
"kind": "client",
"name": "MediaTypeClient",
"namespace": "Payload.MediaType",
@@ -14,12 +144,12 @@
"methods": [],
"parameters": [
{
- "$id": "3",
+ "$id": "19",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "4",
+ "$id": "20",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -33,9 +163,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "5",
+ "$id": "21",
"type": {
- "$id": "6",
+ "$id": "22",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -49,39 +179,29 @@
"apiVersions": [],
"children": [
{
- "$id": "7",
+ "$id": "23",
"kind": "client",
"name": "StringBody",
"namespace": "Payload.MediaType.StringBody",
"methods": [
{
- "$id": "8",
+ "$id": "24",
"kind": "basic",
"name": "sendAsText",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "9",
+ "$id": "25",
"name": "sendAsText",
"resourceName": "StringBody",
"accessibility": "public",
"parameters": [
{
- "$id": "10",
+ "$id": "26",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "11",
- "kind": "constant",
- "valueType": {
- "$id": "12",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "text/plain",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -94,11 +214,11 @@
"skipUrlEncoding": false
},
{
- "$id": "13",
+ "$id": "27",
"name": "text",
"nameInRequest": "text",
"type": {
- "$id": "14",
+ "$id": "28",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -117,7 +237,7 @@
],
"responses": [
{
- "$id": "15",
+ "$id": "29",
"statusCodes": [
200
],
@@ -139,21 +259,11 @@
},
"parameters": [
{
- "$id": "16",
+ "$id": "30",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "17",
- "kind": "constant",
- "valueType": {
- "$id": "18",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "text/plain",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -166,11 +276,11 @@
"skipUrlEncoding": false
},
{
- "$id": "19",
+ "$id": "31",
"name": "text",
"nameInRequest": "text",
"type": {
- "$id": "20",
+ "$id": "32",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -188,7 +298,7 @@
}
],
"response": {
- "$id": "21"
+ "$id": "33"
},
"isOverride": false,
"generateConvenient": true,
@@ -196,33 +306,23 @@
"crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsText"
},
{
- "$id": "22",
+ "$id": "34",
"kind": "basic",
"name": "getAsText",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "23",
+ "$id": "35",
"name": "getAsText",
"resourceName": "StringBody",
"accessibility": "public",
"parameters": [
{
- "$id": "24",
+ "$id": "36",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "25",
- "kind": "constant",
- "valueType": {
- "$id": "26",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "text/plain",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -237,12 +337,12 @@
],
"responses": [
{
- "$id": "27",
+ "$id": "37",
"statusCodes": [
200
],
"bodyType": {
- "$id": "28",
+ "$id": "38",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -250,21 +350,11 @@
},
"headers": [
{
- "$id": "29",
+ "$id": "39",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "30",
- "kind": "constant",
- "valueType": {
- "$id": "31",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "text/plain",
- "decorators": []
+ "$ref": "8"
}
}
],
@@ -285,11 +375,11 @@
},
"parameters": [
{
- "$id": "32",
+ "$id": "40",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "25"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -303,9 +393,9 @@
}
],
"response": {
- "$id": "33",
+ "$id": "41",
"type": {
- "$ref": "28"
+ "$ref": "38"
}
},
"isOverride": false,
@@ -314,33 +404,23 @@
"crossLanguageDefinitionId": "Payload.MediaType.StringBody.getAsText"
},
{
- "$id": "34",
+ "$id": "42",
"kind": "basic",
"name": "sendAsJson",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "35",
+ "$id": "43",
"name": "sendAsJson",
"resourceName": "StringBody",
"accessibility": "public",
"parameters": [
{
- "$id": "36",
+ "$id": "44",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "37",
- "kind": "constant",
- "valueType": {
- "$id": "38",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -353,11 +433,11 @@
"skipUrlEncoding": false
},
{
- "$id": "39",
+ "$id": "45",
"name": "text",
"nameInRequest": "text",
"type": {
- "$id": "40",
+ "$id": "46",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -376,7 +456,7 @@
],
"responses": [
{
- "$id": "41",
+ "$id": "47",
"statusCodes": [
200
],
@@ -398,21 +478,11 @@
},
"parameters": [
{
- "$id": "42",
+ "$id": "48",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "43",
- "kind": "constant",
- "valueType": {
- "$id": "44",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -425,11 +495,11 @@
"skipUrlEncoding": false
},
{
- "$id": "45",
+ "$id": "49",
"name": "text",
"nameInRequest": "text",
"type": {
- "$id": "46",
+ "$id": "50",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -447,7 +517,7 @@
}
],
"response": {
- "$id": "47"
+ "$id": "51"
},
"isOverride": false,
"generateConvenient": true,
@@ -455,33 +525,23 @@
"crossLanguageDefinitionId": "Payload.MediaType.StringBody.sendAsJson"
},
{
- "$id": "48",
+ "$id": "52",
"kind": "basic",
"name": "getAsJson",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "49",
+ "$id": "53",
"name": "getAsJson",
"resourceName": "StringBody",
"accessibility": "public",
"parameters": [
{
- "$id": "50",
+ "$id": "54",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "51",
- "kind": "constant",
- "valueType": {
- "$id": "52",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -496,12 +556,12 @@
],
"responses": [
{
- "$id": "53",
+ "$id": "55",
"statusCodes": [
200
],
"bodyType": {
- "$id": "54",
+ "$id": "56",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -509,21 +569,11 @@
},
"headers": [
{
- "$id": "55",
+ "$id": "57",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "56",
- "kind": "constant",
- "valueType": {
- "$id": "57",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
}
}
],
@@ -548,7 +598,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "51"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -564,7 +614,7 @@
"response": {
"$id": "59",
"type": {
- "$ref": "54"
+ "$ref": "56"
}
},
"isOverride": false,
@@ -609,7 +659,7 @@
"crossLanguageDefinitionId": "Payload.MediaType.StringBody",
"apiVersions": [],
"parent": {
- "$ref": "2"
+ "$ref": "18"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Payload.MultiPart.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Payload.MultiPart.csproj
index ff54d119cba7..74e6cee11657 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Payload.MultiPart.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/payload/multipart/src/Payload.MultiPart.csproj
@@ -17,6 +17,7 @@
+
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 09ba3deb9fef..8e0fa0c3ca52 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
@@ -2,11 +2,14 @@
"$id": "1",
"name": "Payload.MultiPart",
"apiVersions": [],
- "enums": [
+ "enums": [],
+ "constants": [
{
"$id": "2",
- "kind": "enum",
- "name": "FileSpecificContentType_contentType",
+ "kind": "constant",
+ "name": "FileSpecificContentTypeContentType",
+ "namespace": "Payload.MultiPart",
+ "usage": "Input",
"valueType": {
"$id": "3",
"kind": "string",
@@ -14,67 +17,413 @@
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "4",
- "kind": "enumvalue",
- "name": "image/jpg",
- "value": "image/jpg",
- "doc": "image/jpg",
- "valueType": {
- "$ref": "3"
- },
- "enumType": {
- "$ref": "2"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Payload.MultiPart",
- "doc": "The FileSpecificContentType_contentType",
- "isFixed": false,
- "isFlags": false,
+ "value": "image/jpg",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "FloatRequestTemperatureContentType",
+ "namespace": "Payload.MultiPart.FormData.HttpParts.NonString",
"usage": "Input",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "text/plain",
"decorators": []
},
{
- "$id": "5",
- "kind": "enum",
- "name": "FloatRequestTemperature_content-type",
+ "$id": "6",
+ "kind": "constant",
+ "name": "BasicRequestContentType",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "6",
+ "$id": "7",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "7",
- "kind": "enumvalue",
- "name": "text/plain",
- "value": "text/plain",
- "doc": "text/plain",
- "valueType": {
- "$ref": "6"
- },
- "enumType": {
- "$ref": "5"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Payload.MultiPart.FormData.HttpParts.NonString",
- "doc": "The FloatRequestTemperature_content-type",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input",
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "BasicRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "BasicRequestContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "BasicRequestContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "BasicRequestContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "BasicRequestContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "BasicRequestContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "BasicRequestContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "BasicRequestContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "BasicRequestContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "BasicRequestContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "BasicRequestContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "BasicRequestContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "BasicRequestContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "BasicRequestContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "BasicRequestContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "BasicRequestContentType16",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "BasicRequestContentType17",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "BasicRequestContentType18",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "BasicRequestContentType19",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "BasicRequestContentType20",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "BasicRequestContentType21",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "BasicRequestContentType22",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "BasicRequestContentType23",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "multipart/form-data",
"decorators": []
}
],
"models": [
{
- "$id": "8",
+ "$id": "54",
"kind": "model",
"name": "MultiPartRequest",
"namespace": "Payload.MultiPart",
@@ -83,12 +432,12 @@
"decorators": [],
"properties": [
{
- "$id": "9",
+ "$id": "55",
"kind": "property",
"name": "id",
"serializedName": "id",
"type": {
- "$id": "10",
+ "$id": "56",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -101,9 +450,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.MultiPartRequest.id",
"serializationOptions": {
- "$id": "11",
+ "$id": "57",
"multipart": {
- "$id": "12",
+ "$id": "58",
"isFilePart": false,
"isMulti": false,
"defaultContentTypes": [
@@ -114,12 +463,12 @@
}
},
{
- "$id": "13",
+ "$id": "59",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$id": "14",
+ "$id": "60",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -133,9 +482,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.MultiPartRequest.profileImage",
"serializationOptions": {
- "$id": "15",
+ "$id": "61",
"multipart": {
- "$id": "16",
+ "$id": "62",
"isFilePart": true,
"isMulti": false,
"defaultContentTypes": [
@@ -148,7 +497,7 @@
]
},
{
- "$id": "17",
+ "$id": "63",
"kind": "model",
"name": "ComplexPartsRequest",
"namespace": "Payload.MultiPart",
@@ -157,12 +506,12 @@
"decorators": [],
"properties": [
{
- "$id": "18",
+ "$id": "64",
"kind": "property",
"name": "id",
"serializedName": "id",
"type": {
- "$id": "19",
+ "$id": "65",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -175,9 +524,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.id",
"serializationOptions": {
- "$id": "20",
+ "$id": "66",
"multipart": {
- "$id": "21",
+ "$id": "67",
"isFilePart": false,
"isMulti": false,
"defaultContentTypes": [
@@ -188,12 +537,12 @@
}
},
{
- "$id": "22",
+ "$id": "68",
"kind": "property",
"name": "address",
"serializedName": "address",
"type": {
- "$id": "23",
+ "$id": "69",
"kind": "model",
"name": "Address",
"namespace": "Payload.MultiPart",
@@ -202,12 +551,12 @@
"decorators": [],
"properties": [
{
- "$id": "24",
+ "$id": "70",
"kind": "property",
"name": "city",
"serializedName": "city",
"type": {
- "$id": "25",
+ "$id": "71",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -220,9 +569,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.Address.city",
"serializationOptions": {
- "$id": "26",
+ "$id": "72",
"json": {
- "$id": "27",
+ "$id": "73",
"name": "city"
}
}
@@ -236,9 +585,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.address",
"serializationOptions": {
- "$id": "28",
+ "$id": "74",
"multipart": {
- "$id": "29",
+ "$id": "75",
"isFilePart": false,
"isMulti": false,
"defaultContentTypes": [
@@ -249,12 +598,12 @@
}
},
{
- "$id": "30",
+ "$id": "76",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$id": "31",
+ "$id": "77",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -268,9 +617,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.profileImage",
"serializationOptions": {
- "$id": "32",
+ "$id": "78",
"multipart": {
- "$id": "33",
+ "$id": "79",
"isFilePart": true,
"isMulti": false,
"defaultContentTypes": [
@@ -281,16 +630,16 @@
}
},
{
- "$id": "34",
+ "$id": "80",
"kind": "property",
"name": "pictures",
"serializedName": "pictures",
"type": {
- "$id": "35",
+ "$id": "81",
"kind": "array",
"name": "ArrayHttpPart",
"valueType": {
- "$id": "36",
+ "$id": "82",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -307,9 +656,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexPartsRequest.pictures",
"serializationOptions": {
- "$id": "37",
+ "$id": "83",
"multipart": {
- "$id": "38",
+ "$id": "84",
"isFilePart": true,
"isMulti": true,
"defaultContentTypes": [
@@ -322,10 +671,10 @@
]
},
{
- "$ref": "23"
+ "$ref": "69"
},
{
- "$id": "39",
+ "$id": "85",
"kind": "model",
"name": "JsonPartRequest",
"namespace": "Payload.MultiPart",
@@ -334,12 +683,12 @@
"decorators": [],
"properties": [
{
- "$id": "40",
+ "$id": "86",
"kind": "property",
"name": "address",
"serializedName": "address",
"type": {
- "$ref": "23"
+ "$ref": "69"
},
"optional": false,
"readOnly": false,
@@ -348,9 +697,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.JsonPartRequest.address",
"serializationOptions": {
- "$id": "41",
+ "$id": "87",
"multipart": {
- "$id": "42",
+ "$id": "88",
"isFilePart": false,
"isMulti": false,
"defaultContentTypes": [
@@ -361,12 +710,12 @@
}
},
{
- "$id": "43",
+ "$id": "89",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$id": "44",
+ "$id": "90",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -380,9 +729,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.JsonPartRequest.profileImage",
"serializationOptions": {
- "$id": "45",
+ "$id": "91",
"multipart": {
- "$id": "46",
+ "$id": "92",
"isFilePart": true,
"isMulti": false,
"defaultContentTypes": [
@@ -395,7 +744,7 @@
]
},
{
- "$id": "47",
+ "$id": "93",
"kind": "model",
"name": "BinaryArrayPartsRequest",
"namespace": "Payload.MultiPart",
@@ -404,12 +753,12 @@
"decorators": [],
"properties": [
{
- "$id": "48",
+ "$id": "94",
"kind": "property",
"name": "id",
"serializedName": "id",
"type": {
- "$id": "49",
+ "$id": "95",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -422,9 +771,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.BinaryArrayPartsRequest.id",
"serializationOptions": {
- "$id": "50",
+ "$id": "96",
"multipart": {
- "$id": "51",
+ "$id": "97",
"isFilePart": false,
"isMulti": false,
"defaultContentTypes": [
@@ -435,16 +784,16 @@
}
},
{
- "$id": "52",
+ "$id": "98",
"kind": "property",
"name": "pictures",
"serializedName": "pictures",
"type": {
- "$id": "53",
+ "$id": "99",
"kind": "array",
"name": "ArrayHttpPart1",
"valueType": {
- "$id": "54",
+ "$id": "100",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -461,9 +810,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.BinaryArrayPartsRequest.pictures",
"serializationOptions": {
- "$id": "55",
+ "$id": "101",
"multipart": {
- "$id": "56",
+ "$id": "102",
"isFilePart": true,
"isMulti": true,
"defaultContentTypes": [
@@ -476,7 +825,7 @@
]
},
{
- "$id": "57",
+ "$id": "103",
"kind": "model",
"name": "MultiBinaryPartsRequest",
"namespace": "Payload.MultiPart",
@@ -485,12 +834,12 @@
"decorators": [],
"properties": [
{
- "$id": "58",
+ "$id": "104",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$id": "59",
+ "$id": "105",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -504,9 +853,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.MultiBinaryPartsRequest.profileImage",
"serializationOptions": {
- "$id": "60",
+ "$id": "106",
"multipart": {
- "$id": "61",
+ "$id": "107",
"isFilePart": true,
"isMulti": false,
"defaultContentTypes": [
@@ -517,12 +866,12 @@
}
},
{
- "$id": "62",
+ "$id": "108",
"kind": "property",
"name": "picture",
"serializedName": "picture",
"type": {
- "$id": "63",
+ "$id": "109",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -536,9 +885,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.MultiBinaryPartsRequest.picture",
"serializationOptions": {
- "$id": "64",
+ "$id": "110",
"multipart": {
- "$id": "65",
+ "$id": "111",
"isFilePart": true,
"isMulti": false,
"defaultContentTypes": [
@@ -551,7 +900,7 @@
]
},
{
- "$id": "66",
+ "$id": "112",
"kind": "model",
"name": "AnonymousModelRequest",
"namespace": "Payload.MultiPart.FormData",
@@ -560,12 +909,12 @@
"decorators": [],
"properties": [
{
- "$id": "67",
+ "$id": "113",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$id": "68",
+ "$id": "114",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -579,9 +928,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.anonymousModel.Request.anonymous.profileImage",
"serializationOptions": {
- "$id": "69",
+ "$id": "115",
"multipart": {
- "$id": "70",
+ "$id": "116",
"isFilePart": true,
"isMulti": false,
"defaultContentTypes": [
@@ -594,7 +943,7 @@
]
},
{
- "$id": "71",
+ "$id": "117",
"kind": "model",
"name": "ComplexHttpPartsModelRequest",
"namespace": "Payload.MultiPart",
@@ -603,12 +952,12 @@
"decorators": [],
"properties": [
{
- "$id": "72",
+ "$id": "118",
"kind": "property",
"name": "id",
"serializedName": "id",
"type": {
- "$id": "73",
+ "$id": "119",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -621,9 +970,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.id",
"serializationOptions": {
- "$id": "74",
+ "$id": "120",
"multipart": {
- "$id": "75",
+ "$id": "121",
"isFilePart": false,
"isMulti": false,
"defaultContentTypes": [
@@ -634,12 +983,12 @@
}
},
{
- "$id": "76",
+ "$id": "122",
"kind": "property",
"name": "address",
"serializedName": "address",
"type": {
- "$ref": "23"
+ "$ref": "69"
},
"optional": false,
"readOnly": false,
@@ -648,9 +997,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.address",
"serializationOptions": {
- "$id": "77",
+ "$id": "123",
"multipart": {
- "$id": "78",
+ "$id": "124",
"isFilePart": false,
"isMulti": false,
"defaultContentTypes": [
@@ -661,12 +1010,12 @@
}
},
{
- "$id": "79",
+ "$id": "125",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$id": "80",
+ "$id": "126",
"kind": "model",
"name": "FileRequiredMetaData",
"namespace": "Payload.MultiPart",
@@ -674,7 +1023,7 @@
"usage": "Input",
"decorators": [],
"baseModel": {
- "$id": "81",
+ "$id": "127",
"kind": "model",
"name": "File",
"namespace": "TypeSpec.Http",
@@ -685,14 +1034,14 @@
"decorators": [],
"properties": [
{
- "$id": "82",
+ "$id": "128",
"kind": "property",
"name": "contentType",
"serializedName": "contentType",
"summary": "The allowed media (MIME) types of the file contents.",
"doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.",
"type": {
- "$id": "83",
+ "$id": "129",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -705,18 +1054,18 @@
"decorators": [],
"crossLanguageDefinitionId": "TypeSpec.Http.File.contentType",
"serializationOptions": {
- "$id": "84"
+ "$id": "130"
}
},
{
- "$id": "85",
+ "$id": "131",
"kind": "property",
"name": "filename",
"serializedName": "filename",
"summary": "The name of the file, if any.",
"doc": "The name of the file, if any.\n\nIn file bodies, this value comes from the `filename` parameter of the `Content-Disposition` header of the response\nor multipart payload. In JSON bodies, this value is serialized as a field in the response.\n\nNOTE: By default, `filename` cannot be sent in request payloads and can only be sent in responses and multipart\npayloads, as the `Content-Disposition` header is not valid in requests. If you want to send the `filename` in a request,\nyou must extend the `File` model and override the `filename` property with a different location defined by HTTP metadata\ndecorators.",
"type": {
- "$id": "86",
+ "$id": "132",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -729,18 +1078,18 @@
"decorators": [],
"crossLanguageDefinitionId": "TypeSpec.Http.File.filename",
"serializationOptions": {
- "$id": "87"
+ "$id": "133"
}
},
{
- "$id": "88",
+ "$id": "134",
"kind": "property",
"name": "contents",
"serializedName": "contents",
"summary": "The contents of the file.",
"doc": "The contents of the file.\n\nIn file bodies, this value comes from the body of the request, response, or multipart payload. In JSON bodies,\nthis value is serialized as a field in the response.",
"type": {
- "$id": "89",
+ "$id": "135",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -754,19 +1103,19 @@
"decorators": [],
"crossLanguageDefinitionId": "TypeSpec.Http.File.contents",
"serializationOptions": {
- "$id": "90"
+ "$id": "136"
}
}
]
},
"properties": [
{
- "$id": "91",
+ "$id": "137",
"kind": "property",
"name": "filename",
"serializedName": "filename",
"type": {
- "$id": "92",
+ "$id": "138",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -779,16 +1128,16 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.filename",
"serializationOptions": {
- "$id": "93"
+ "$id": "139"
}
},
{
- "$id": "94",
+ "$id": "140",
"kind": "property",
"name": "contentType",
"serializedName": "contentType",
"type": {
- "$id": "95",
+ "$id": "141",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -801,7 +1150,7 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FileRequiredMetaData.contentType",
"serializationOptions": {
- "$id": "96"
+ "$id": "142"
}
}
]
@@ -813,16 +1162,16 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.profileImage",
"serializationOptions": {
- "$id": "97",
+ "$id": "143",
"multipart": {
- "$id": "98",
+ "$id": "144",
"isFilePart": true,
"isMulti": false,
"filename": {
- "$id": "99",
+ "$id": "145",
"apiVersions": [],
"type": {
- "$id": "5244",
+ "$id": "5290",
"kind": "string",
"decorators": [],
"name": "string",
@@ -850,14 +1199,14 @@
"isMultipartFileInput": false,
"flatten": false,
"serializationOptions": {
- "$ref": "93"
+ "$ref": "139"
}
},
"contentType": {
- "$id": "5245",
+ "$id": "5291",
"apiVersions": [],
"type": {
- "$id": "5247",
+ "$id": "5293",
"kind": "string",
"decorators": [],
"name": "string",
@@ -885,7 +1234,7 @@
"isMultipartFileInput": false,
"flatten": false,
"serializationOptions": {
- "$ref": "96"
+ "$ref": "142"
}
},
"defaultContentTypes": [
@@ -896,16 +1245,16 @@
}
},
{
- "$id": "5248",
+ "$id": "5294",
"kind": "property",
"name": "previousAddresses",
"serializedName": "previousAddresses",
"type": {
- "$id": "5249",
+ "$id": "5295",
"kind": "array",
"name": "ArrayAddress",
"valueType": {
- "$ref": "23"
+ "$ref": "69"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -917,9 +1266,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.previousAddresses",
"serializationOptions": {
- "$id": "5250",
+ "$id": "5296",
"multipart": {
- "$id": "5251",
+ "$id": "5297",
"isFilePart": false,
"isMulti": false,
"defaultContentTypes": [
@@ -930,16 +1279,16 @@
}
},
{
- "$id": "5252",
+ "$id": "5298",
"kind": "property",
"name": "pictures",
"serializedName": "pictures",
"type": {
- "$id": "5253",
+ "$id": "5299",
"kind": "array",
"name": "ArrayHttpPart2",
"valueType": {
- "$ref": "80"
+ "$ref": "126"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -951,16 +1300,16 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.ComplexHttpPartsModelRequest.pictures",
"serializationOptions": {
- "$id": "5254",
+ "$id": "5300",
"multipart": {
- "$id": "5255",
+ "$id": "5301",
"isFilePart": true,
"isMulti": true,
"filename": {
- "$ref": "99"
+ "$ref": "145"
},
"contentType": {
- "$ref": "5245"
+ "$ref": "5291"
},
"defaultContentTypes": [
"*/*"
@@ -972,13 +1321,13 @@
]
},
{
- "$ref": "80"
+ "$ref": "126"
},
{
- "$ref": "81"
+ "$ref": "127"
},
{
- "$id": "5256",
+ "$id": "5302",
"kind": "model",
"name": "FileWithHttpPartSpecificContentTypeRequest",
"namespace": "Payload.MultiPart",
@@ -987,12 +1336,12 @@
"decorators": [],
"properties": [
{
- "$id": "5257",
+ "$id": "5303",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$id": "5258",
+ "$id": "5304",
"kind": "model",
"name": "FileSpecificContentType",
"namespace": "Payload.MultiPart",
@@ -1000,16 +1349,16 @@
"usage": "Input",
"decorators": [],
"baseModel": {
- "$ref": "81"
+ "$ref": "127"
},
"properties": [
{
- "$id": "5259",
+ "$id": "5305",
"kind": "property",
"name": "filename",
"serializedName": "filename",
"type": {
- "$id": "5260",
+ "$id": "5306",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1022,22 +1371,16 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.filename",
"serializationOptions": {
- "$id": "5261"
+ "$id": "5307"
}
},
{
- "$id": "5262",
+ "$id": "5308",
"kind": "property",
"name": "contentType",
"serializedName": "contentType",
"type": {
- "$id": "5263",
- "kind": "constant",
- "valueType": {
- "$ref": "2"
- },
- "value": "image/jpg",
- "decorators": []
+ "$ref": "2"
},
"optional": false,
"readOnly": false,
@@ -1046,7 +1389,7 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FileSpecificContentType.contentType",
"serializationOptions": {
- "$id": "5264"
+ "$id": "5309"
}
}
]
@@ -1058,16 +1401,16 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartSpecificContentTypeRequest.profileImage",
"serializationOptions": {
- "$id": "5265",
+ "$id": "5310",
"multipart": {
- "$id": "5266",
+ "$id": "5311",
"isFilePart": true,
"isMulti": false,
"filename": {
- "$id": "5267",
+ "$id": "5312",
"apiVersions": [],
"type": {
- "$id": "5269",
+ "$id": "5314",
"kind": "string",
"decorators": [],
"name": "string",
@@ -1095,19 +1438,19 @@
"isMultipartFileInput": false,
"flatten": false,
"serializationOptions": {
- "$ref": "5261"
+ "$ref": "5307"
}
},
"contentType": {
- "$id": "5270",
+ "$id": "5315",
"apiVersions": [],
"type": {
- "$id": "5273",
+ "$id": "5318",
"kind": "constant",
"decorators": [],
"value": "image/jpg",
"valueType": {
- "$id": "5274",
+ "$id": "5319",
"kind": "string",
"decorators": [],
"name": "string",
@@ -1138,7 +1481,7 @@
"isMultipartFileInput": false,
"flatten": false,
"serializationOptions": {
- "$ref": "5264"
+ "$ref": "5309"
}
},
"defaultContentTypes": [
@@ -1151,10 +1494,10 @@
]
},
{
- "$ref": "5258"
+ "$ref": "5304"
},
{
- "$id": "5275",
+ "$id": "5320",
"kind": "model",
"name": "FileWithHttpPartRequiredContentTypeRequest",
"namespace": "Payload.MultiPart",
@@ -1163,12 +1506,12 @@
"decorators": [],
"properties": [
{
- "$id": "5276",
+ "$id": "5321",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$ref": "80"
+ "$ref": "126"
},
"optional": false,
"readOnly": false,
@@ -1177,16 +1520,16 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartRequiredContentTypeRequest.profileImage",
"serializationOptions": {
- "$id": "5277",
+ "$id": "5322",
"multipart": {
- "$id": "5278",
+ "$id": "5323",
"isFilePart": true,
"isMulti": false,
"filename": {
- "$ref": "99"
+ "$ref": "145"
},
"contentType": {
- "$ref": "5245"
+ "$ref": "5291"
},
"defaultContentTypes": [
"*/*"
@@ -1198,7 +1541,7 @@
]
},
{
- "$id": "5279",
+ "$id": "5324",
"kind": "model",
"name": "FileWithHttpPartOptionalContentTypeRequest",
"namespace": "Payload.MultiPart",
@@ -1207,12 +1550,12 @@
"decorators": [],
"properties": [
{
- "$id": "5280",
+ "$id": "5325",
"kind": "property",
"name": "profileImage",
"serializedName": "profileImage",
"type": {
- "$id": "5281",
+ "$id": "5326",
"kind": "model",
"name": "FileOptionalContentType",
"namespace": "Payload.MultiPart",
@@ -1220,16 +1563,16 @@
"usage": "Input",
"decorators": [],
"baseModel": {
- "$ref": "81"
+ "$ref": "127"
},
"properties": [
{
- "$id": "5282",
+ "$id": "5327",
"kind": "property",
"name": "filename",
"serializedName": "filename",
"type": {
- "$id": "5283",
+ "$id": "5328",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1242,7 +1585,7 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FileOptionalContentType.filename",
"serializationOptions": {
- "$id": "5284"
+ "$id": "5329"
}
}
]
@@ -1254,16 +1597,16 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FileWithHttpPartOptionalContentTypeRequest.profileImage",
"serializationOptions": {
- "$id": "5285",
+ "$id": "5330",
"multipart": {
- "$id": "5286",
+ "$id": "5331",
"isFilePart": true,
"isMulti": false,
"filename": {
- "$id": "5287",
+ "$id": "5332",
"apiVersions": [],
"type": {
- "$id": "5289",
+ "$id": "5334",
"kind": "string",
"decorators": [],
"name": "string",
@@ -1291,16 +1634,16 @@
"isMultipartFileInput": false,
"flatten": false,
"serializationOptions": {
- "$ref": "5284"
+ "$ref": "5329"
}
},
"contentType": {
- "$id": "5290",
+ "$id": "5335",
"doc": "The allowed media (MIME) types of the file contents.\n\nIn file bodies, this value comes from the `Content-Type` header of the request or response. In JSON bodies,\nthis value is serialized as a field in the response.\n\nNOTE: this is not _necessarily_ the same as the `Content-Type` header of the request or response, but\nit will be for file bodies. It may be different if the file is serialized as a JSON object. It always refers to the\n_contents_ of the file, and not necessarily the way the file itself is transmitted or serialized.",
"summary": "The allowed media (MIME) types of the file contents.",
"apiVersions": [],
"type": {
- "$id": "5299",
+ "$id": "5344",
"kind": "string",
"decorators": [],
"name": "string",
@@ -1328,7 +1671,7 @@
"isMultipartFileInput": false,
"flatten": false,
"serializationOptions": {
- "$ref": "84"
+ "$ref": "130"
}
},
"defaultContentTypes": [
@@ -1341,10 +1684,10 @@
]
},
{
- "$ref": "5281"
+ "$ref": "5326"
},
{
- "$id": "5300",
+ "$id": "5345",
"kind": "model",
"name": "FloatRequest",
"namespace": "Payload.MultiPart.FormData.HttpParts.NonString",
@@ -1353,12 +1696,12 @@
"decorators": [],
"properties": [
{
- "$id": "5301",
+ "$id": "5346",
"kind": "property",
"name": "temperature",
"serializedName": "temperature",
"type": {
- "$id": "5302",
+ "$id": "5347",
"kind": "float64",
"name": "float64",
"crossLanguageDefinitionId": "TypeSpec.float64",
@@ -1371,21 +1714,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.anonymous.temperature",
"serializationOptions": {
- "$id": "5303",
+ "$id": "5348",
"multipart": {
- "$id": "5304",
+ "$id": "5349",
"isFilePart": false,
"isMulti": false,
"contentType": {
- "$id": "5305",
+ "$id": "5350",
"apiVersions": [],
"type": {
- "$id": "6101",
+ "$id": "6146",
"kind": "constant",
"decorators": [],
"value": "text/plain",
"valueType": {
- "$id": "6102",
+ "$id": "6147",
"kind": "string",
"decorators": [],
"name": "string",
@@ -1424,7 +1767,7 @@
]
},
{
- "$id": "6103",
+ "$id": "6148",
"kind": "model",
"name": "FloatRequestTemperature",
"namespace": "Payload.MultiPart.FormData.HttpParts.NonString",
@@ -1433,32 +1776,25 @@
"decorators": [],
"properties": [
{
- "$id": "6104",
+ "$id": "6149",
"kind": "header",
"name": "contentType",
"serializedName": "content-type",
"type": {
- "$id": "6105",
- "kind": "constant",
- "valueType": {
- "$ref": "5"
- },
- "value": "text/plain",
- "decorators": []
+ "$ref": "4"
},
"optional": false,
"readOnly": false,
"decorators": [],
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString.float.Request.temperature.anonymous.contentType",
- "discriminator": false,
- "flatten": false
+ "correspondingMethodParams": []
}
]
}
],
"clients": [
{
- "$id": "6106",
+ "$id": "6150",
"kind": "client",
"name": "MultiPartClient",
"namespace": "Payload.MultiPart",
@@ -1466,12 +1802,12 @@
"methods": [],
"parameters": [
{
- "$id": "6107",
+ "$id": "6151",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "6108",
+ "$id": "6152",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1485,9 +1821,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "6109",
+ "$id": "6153",
"type": {
- "$id": "6110",
+ "$id": "6154",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1501,41 +1837,31 @@
"apiVersions": [],
"children": [
{
- "$id": "6111",
+ "$id": "6155",
"kind": "client",
"name": "FormData",
"namespace": "Payload.MultiPart.FormData",
"methods": [
{
- "$id": "6112",
+ "$id": "6156",
"kind": "basic",
"name": "basic",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data",
"operation": {
- "$id": "6113",
+ "$id": "6157",
"name": "basic",
"resourceName": "FormData",
"doc": "Test content-type: multipart/form-data",
"accessibility": "public",
"parameters": [
{
- "$id": "6114",
+ "$id": "6158",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6115",
- "kind": "constant",
- "valueType": {
- "$id": "6116",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -1548,11 +1874,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6117",
+ "$id": "6159",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "8"
+ "$ref": "54"
},
"location": "Body",
"isApiVersion": false,
@@ -1567,7 +1893,7 @@
],
"responses": [
{
- "$id": "6118",
+ "$id": "6160",
"statusCodes": [
204
],
@@ -1589,21 +1915,11 @@
},
"parameters": [
{
- "$id": "6119",
+ "$id": "6161",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6120",
- "kind": "constant",
- "valueType": {
- "$id": "6121",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1616,11 +1932,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6122",
+ "$id": "6162",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "8"
+ "$ref": "54"
},
"location": "Body",
"isApiVersion": false,
@@ -1634,7 +1950,7 @@
}
],
"response": {
- "$id": "6123"
+ "$id": "6163"
},
"isOverride": false,
"generateConvenient": true,
@@ -1642,35 +1958,25 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.basic"
},
{
- "$id": "6124",
+ "$id": "6164",
"kind": "basic",
"name": "fileArrayAndBasic",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data for mixed scenarios",
"operation": {
- "$id": "6125",
+ "$id": "6165",
"name": "fileArrayAndBasic",
"resourceName": "FormData",
"doc": "Test content-type: multipart/form-data for mixed scenarios",
"accessibility": "public",
"parameters": [
{
- "$id": "6126",
+ "$id": "6166",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6127",
- "kind": "constant",
- "valueType": {
- "$id": "6128",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1683,11 +1989,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6129",
+ "$id": "6167",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "17"
+ "$ref": "63"
},
"location": "Body",
"isApiVersion": false,
@@ -1702,7 +2008,7 @@
],
"responses": [
{
- "$id": "6130",
+ "$id": "6168",
"statusCodes": [
204
],
@@ -1724,21 +2030,11 @@
},
"parameters": [
{
- "$id": "6131",
+ "$id": "6169",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6132",
- "kind": "constant",
- "valueType": {
- "$id": "6133",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1751,11 +2047,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6134",
+ "$id": "6170",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "17"
+ "$ref": "63"
},
"location": "Body",
"isApiVersion": false,
@@ -1769,7 +2065,7 @@
}
],
"response": {
- "$id": "6135"
+ "$id": "6171"
},
"isOverride": false,
"generateConvenient": true,
@@ -1777,35 +2073,25 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.fileArrayAndBasic"
},
{
- "$id": "6136",
+ "$id": "6172",
"kind": "basic",
"name": "jsonPart",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ",
"operation": {
- "$id": "6137",
+ "$id": "6173",
"name": "jsonPart",
"resourceName": "FormData",
"doc": "Test content-type: multipart/form-data for scenario contains json part and binary part ",
"accessibility": "public",
"parameters": [
{
- "$id": "6138",
+ "$id": "6174",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6139",
- "kind": "constant",
- "valueType": {
- "$id": "6140",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1818,11 +2104,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6141",
+ "$id": "6175",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "39"
+ "$ref": "85"
},
"location": "Body",
"isApiVersion": false,
@@ -1837,7 +2123,7 @@
],
"responses": [
{
- "$id": "6142",
+ "$id": "6176",
"statusCodes": [
204
],
@@ -1859,21 +2145,11 @@
},
"parameters": [
{
- "$id": "6143",
+ "$id": "6177",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6144",
- "kind": "constant",
- "valueType": {
- "$id": "6145",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1886,11 +2162,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6146",
+ "$id": "6178",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "39"
+ "$ref": "85"
},
"location": "Body",
"isApiVersion": false,
@@ -1904,7 +2180,7 @@
}
],
"response": {
- "$id": "6147"
+ "$id": "6179"
},
"isOverride": false,
"generateConvenient": true,
@@ -1912,35 +2188,25 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.jsonPart"
},
{
- "$id": "6148",
+ "$id": "6180",
"kind": "basic",
"name": "binaryArrayParts",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data for scenario contains multi binary parts",
"operation": {
- "$id": "6149",
+ "$id": "6181",
"name": "binaryArrayParts",
"resourceName": "FormData",
"doc": "Test content-type: multipart/form-data for scenario contains multi binary parts",
"accessibility": "public",
"parameters": [
{
- "$id": "6150",
+ "$id": "6182",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6151",
- "kind": "constant",
- "valueType": {
- "$id": "6152",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1953,11 +2219,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6153",
+ "$id": "6183",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "47"
+ "$ref": "93"
},
"location": "Body",
"isApiVersion": false,
@@ -1972,7 +2238,7 @@
],
"responses": [
{
- "$id": "6154",
+ "$id": "6184",
"statusCodes": [
204
],
@@ -1994,21 +2260,11 @@
},
"parameters": [
{
- "$id": "6155",
+ "$id": "6185",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6156",
- "kind": "constant",
- "valueType": {
- "$id": "6157",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -2021,11 +2277,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6158",
+ "$id": "6186",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "47"
+ "$ref": "93"
},
"location": "Body",
"isApiVersion": false,
@@ -2039,7 +2295,7 @@
}
],
"response": {
- "$id": "6159"
+ "$id": "6187"
},
"isOverride": false,
"generateConvenient": true,
@@ -2047,35 +2303,25 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.binaryArrayParts"
},
{
- "$id": "6160",
+ "$id": "6188",
"kind": "basic",
"name": "multiBinaryParts",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data for scenario contains multi binary parts",
"operation": {
- "$id": "6161",
+ "$id": "6189",
"name": "multiBinaryParts",
"resourceName": "FormData",
"doc": "Test content-type: multipart/form-data for scenario contains multi binary parts",
"accessibility": "public",
"parameters": [
{
- "$id": "6162",
+ "$id": "6190",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6163",
- "kind": "constant",
- "valueType": {
- "$id": "6164",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -2088,11 +2334,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6165",
+ "$id": "6191",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "57"
+ "$ref": "103"
},
"location": "Body",
"isApiVersion": false,
@@ -2107,7 +2353,7 @@
],
"responses": [
{
- "$id": "6166",
+ "$id": "6192",
"statusCodes": [
204
],
@@ -2129,21 +2375,11 @@
},
"parameters": [
{
- "$id": "6167",
+ "$id": "6193",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6168",
- "kind": "constant",
- "valueType": {
- "$id": "6169",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -2156,11 +2392,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6170",
+ "$id": "6194",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "57"
+ "$ref": "103"
},
"location": "Body",
"isApiVersion": false,
@@ -2174,7 +2410,7 @@
}
],
"response": {
- "$id": "6171"
+ "$id": "6195"
},
"isOverride": false,
"generateConvenient": true,
@@ -2182,35 +2418,25 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.multiBinaryParts"
},
{
- "$id": "6172",
+ "$id": "6196",
"kind": "basic",
"name": "checkFileNameAndContentType",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data",
"operation": {
- "$id": "6173",
+ "$id": "6197",
"name": "checkFileNameAndContentType",
"resourceName": "FormData",
"doc": "Test content-type: multipart/form-data",
"accessibility": "public",
"parameters": [
{
- "$id": "6174",
+ "$id": "6198",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6175",
- "kind": "constant",
- "valueType": {
- "$id": "6176",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -2223,11 +2449,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6177",
+ "$id": "6199",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "8"
+ "$ref": "54"
},
"location": "Body",
"isApiVersion": false,
@@ -2242,7 +2468,7 @@
],
"responses": [
{
- "$id": "6178",
+ "$id": "6200",
"statusCodes": [
204
],
@@ -2264,21 +2490,11 @@
},
"parameters": [
{
- "$id": "6179",
+ "$id": "6201",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6180",
- "kind": "constant",
- "valueType": {
- "$id": "6181",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -2291,11 +2507,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6182",
+ "$id": "6202",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "8"
+ "$ref": "54"
},
"location": "Body",
"isApiVersion": false,
@@ -2309,7 +2525,7 @@
}
],
"response": {
- "$id": "6183"
+ "$id": "6203"
},
"isOverride": false,
"generateConvenient": true,
@@ -2317,35 +2533,25 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.checkFileNameAndContentType"
},
{
- "$id": "6184",
+ "$id": "6204",
"kind": "basic",
"name": "anonymousModel",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data",
"operation": {
- "$id": "6185",
+ "$id": "6205",
"name": "anonymousModel",
"resourceName": "FormData",
"doc": "Test content-type: multipart/form-data",
"accessibility": "public",
"parameters": [
{
- "$id": "6186",
+ "$id": "6206",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6187",
- "kind": "constant",
- "valueType": {
- "$id": "6188",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -2358,11 +2564,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6189",
+ "$id": "6207",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "66"
+ "$ref": "112"
},
"location": "Body",
"isApiVersion": false,
@@ -2377,7 +2583,7 @@
],
"responses": [
{
- "$id": "6190",
+ "$id": "6208",
"statusCodes": [
204
],
@@ -2399,21 +2605,11 @@
},
"parameters": [
{
- "$id": "6191",
+ "$id": "6209",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6192",
- "kind": "constant",
- "valueType": {
- "$id": "6193",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -2426,11 +2622,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6194",
+ "$id": "6210",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "66"
+ "$ref": "112"
},
"location": "Body",
"isApiVersion": false,
@@ -2444,7 +2640,7 @@
}
],
"response": {
- "$id": "6195"
+ "$id": "6211"
},
"isOverride": false,
"generateConvenient": true,
@@ -2454,12 +2650,12 @@
],
"parameters": [
{
- "$id": "6196",
+ "$id": "6212",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "6197",
+ "$id": "6213",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2473,9 +2669,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "6198",
+ "$id": "6214",
"type": {
- "$id": "6199",
+ "$id": "6215",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2488,45 +2684,35 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData",
"apiVersions": [],
"parent": {
- "$ref": "6106"
+ "$ref": "6150"
},
"children": [
{
- "$id": "6200",
+ "$id": "6216",
"kind": "client",
"name": "HttpParts",
"namespace": "Payload.MultiPart.FormData.HttpParts",
"methods": [
{
- "$id": "6201",
+ "$id": "6217",
"kind": "basic",
"name": "jsonArrayAndFileArray",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data for mixed scenarios",
"operation": {
- "$id": "6202",
+ "$id": "6218",
"name": "jsonArrayAndFileArray",
"resourceName": "HttpParts",
"doc": "Test content-type: multipart/form-data for mixed scenarios",
"accessibility": "public",
"parameters": [
{
- "$id": "6203",
+ "$id": "6219",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6204",
- "kind": "constant",
- "valueType": {
- "$id": "6205",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -2539,11 +2725,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6206",
+ "$id": "6220",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "71"
+ "$ref": "117"
},
"location": "Body",
"isApiVersion": false,
@@ -2558,7 +2744,7 @@
],
"responses": [
{
- "$id": "6207",
+ "$id": "6221",
"statusCodes": [
204
],
@@ -2580,21 +2766,11 @@
},
"parameters": [
{
- "$id": "6208",
+ "$id": "6222",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6209",
- "kind": "constant",
- "valueType": {
- "$id": "6210",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -2607,11 +2783,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6211",
+ "$id": "6223",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "71"
+ "$ref": "117"
},
"location": "Body",
"isApiVersion": false,
@@ -2625,7 +2801,7 @@
}
],
"response": {
- "$id": "6212"
+ "$id": "6224"
},
"isOverride": false,
"generateConvenient": true,
@@ -2635,12 +2811,12 @@
],
"parameters": [
{
- "$id": "6213",
+ "$id": "6225",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "6214",
+ "$id": "6226",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2654,9 +2830,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "6215",
+ "$id": "6227",
"type": {
- "$id": "6216",
+ "$id": "6228",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2669,45 +2845,35 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts",
"apiVersions": [],
"parent": {
- "$ref": "6111"
+ "$ref": "6155"
},
"children": [
{
- "$id": "6217",
+ "$id": "6229",
"kind": "client",
"name": "ContentType",
"namespace": "Payload.MultiPart.FormData.HttpParts.ContentType",
"methods": [
{
- "$id": "6218",
+ "$id": "6230",
"kind": "basic",
"name": "imageJpegContentType",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data",
"operation": {
- "$id": "6219",
+ "$id": "6231",
"name": "imageJpegContentType",
"resourceName": "ContentType",
"doc": "Test content-type: multipart/form-data",
"accessibility": "public",
"parameters": [
{
- "$id": "6220",
+ "$id": "6232",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6221",
- "kind": "constant",
- "valueType": {
- "$id": "6222",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -2720,11 +2886,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6223",
+ "$id": "6233",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "5256"
+ "$ref": "5302"
},
"location": "Body",
"isApiVersion": false,
@@ -2739,7 +2905,7 @@
],
"responses": [
{
- "$id": "6224",
+ "$id": "6234",
"statusCodes": [
204
],
@@ -2761,21 +2927,11 @@
},
"parameters": [
{
- "$id": "6225",
+ "$id": "6235",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6226",
- "kind": "constant",
- "valueType": {
- "$id": "6227",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -2788,11 +2944,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6228",
+ "$id": "6236",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "5256"
+ "$ref": "5302"
},
"location": "Body",
"isApiVersion": false,
@@ -2806,7 +2962,7 @@
}
],
"response": {
- "$id": "6229"
+ "$id": "6237"
},
"isOverride": false,
"generateConvenient": true,
@@ -2814,35 +2970,25 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.imageJpegContentType"
},
{
- "$id": "6230",
+ "$id": "6238",
"kind": "basic",
"name": "requiredContentType",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data",
"operation": {
- "$id": "6231",
+ "$id": "6239",
"name": "requiredContentType",
"resourceName": "ContentType",
"doc": "Test content-type: multipart/form-data",
"accessibility": "public",
"parameters": [
{
- "$id": "6232",
+ "$id": "6240",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6233",
- "kind": "constant",
- "valueType": {
- "$id": "6234",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -2855,11 +3001,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6235",
+ "$id": "6241",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "5275"
+ "$ref": "5320"
},
"location": "Body",
"isApiVersion": false,
@@ -2874,7 +3020,7 @@
],
"responses": [
{
- "$id": "6236",
+ "$id": "6242",
"statusCodes": [
204
],
@@ -2896,21 +3042,11 @@
},
"parameters": [
{
- "$id": "6237",
+ "$id": "6243",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6238",
- "kind": "constant",
- "valueType": {
- "$id": "6239",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -2923,11 +3059,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6240",
+ "$id": "6244",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "5275"
+ "$ref": "5320"
},
"location": "Body",
"isApiVersion": false,
@@ -2941,7 +3077,7 @@
}
],
"response": {
- "$id": "6241"
+ "$id": "6245"
},
"isOverride": false,
"generateConvenient": true,
@@ -2949,35 +3085,25 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType.requiredContentType"
},
{
- "$id": "6242",
+ "$id": "6246",
"kind": "basic",
"name": "optionalContentType",
"accessibility": "public",
"apiVersions": [],
"doc": "Test content-type: multipart/form-data for optional content type",
"operation": {
- "$id": "6243",
+ "$id": "6247",
"name": "optionalContentType",
"resourceName": "ContentType",
"doc": "Test content-type: multipart/form-data for optional content type",
"accessibility": "public",
"parameters": [
{
- "$id": "6244",
+ "$id": "6248",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6245",
- "kind": "constant",
- "valueType": {
- "$id": "6246",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -2990,11 +3116,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6247",
+ "$id": "6249",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "5279"
+ "$ref": "5324"
},
"location": "Body",
"isApiVersion": false,
@@ -3009,7 +3135,7 @@
],
"responses": [
{
- "$id": "6248",
+ "$id": "6250",
"statusCodes": [
204
],
@@ -3031,21 +3157,11 @@
},
"parameters": [
{
- "$id": "6249",
+ "$id": "6251",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6250",
- "kind": "constant",
- "valueType": {
- "$id": "6251",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -3062,7 +3178,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "5279"
+ "$ref": "5324"
},
"location": "Body",
"isApiVersion": false,
@@ -3120,7 +3236,7 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.ContentType",
"apiVersions": [],
"parent": {
- "$ref": "6200"
+ "$ref": "6216"
}
},
{
@@ -3148,17 +3264,7 @@
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "6262",
- "kind": "constant",
- "valueType": {
- "$id": "6263",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -3171,11 +3277,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6264",
+ "$id": "6262",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "5300"
+ "$ref": "5345"
},
"location": "Body",
"isApiVersion": false,
@@ -3190,7 +3296,7 @@
],
"responses": [
{
- "$id": "6265",
+ "$id": "6263",
"statusCodes": [
204
],
@@ -3212,21 +3318,11 @@
},
"parameters": [
{
- "$id": "6266",
+ "$id": "6264",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "6267",
- "kind": "constant",
- "valueType": {
- "$id": "6268",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "multipart/form-data",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -3239,11 +3335,11 @@
"skipUrlEncoding": false
},
{
- "$id": "6269",
+ "$id": "6265",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "5300"
+ "$ref": "5345"
},
"location": "Body",
"isApiVersion": false,
@@ -3257,7 +3353,7 @@
}
],
"response": {
- "$id": "6270"
+ "$id": "6266"
},
"isOverride": false,
"generateConvenient": true,
@@ -3267,12 +3363,12 @@
],
"parameters": [
{
- "$id": "6271",
+ "$id": "6267",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "6272",
+ "$id": "6268",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3286,9 +3382,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "6273",
+ "$id": "6269",
"type": {
- "$id": "6274",
+ "$id": "6270",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3301,7 +3397,7 @@
"crossLanguageDefinitionId": "Payload.MultiPart.FormData.HttpParts.NonString",
"apiVersions": [],
"parent": {
- "$ref": "6200"
+ "$ref": "6216"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Routes.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Routes.csproj
index a224da1a05d5..e585657e1db3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Routes.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/routes/src/Routes.csproj
@@ -17,6 +17,7 @@
+
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 a6bf25c207e4..8ec47b42fd74 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
@@ -3,6 +3,7 @@
"name": "Routes",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/src/Serialization.EncodedName.Json.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/src/Serialization.EncodedName.Json.csproj
index 15f93b953ddd..ca576dd59fa6 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/src/Serialization.EncodedName.Json.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/serialization/encoded-name/json/src/Serialization.EncodedName.Json.csproj
@@ -17,6 +17,7 @@
+
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 e2777134e590..d3c8fadb2ca0 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
@@ -3,9 +3,43 @@
"name": "Serialization.EncodedName.Json",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "sendContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "6",
"kind": "model",
"name": "JsonEncodedNameModel",
"namespace": "Serialization.EncodedName.Json.Property",
@@ -14,13 +48,13 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "7",
"kind": "property",
"name": "defaultName",
"serializedName": "wireName",
"doc": "Pass in true",
"type": {
- "$id": "4",
+ "$id": "8",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -33,9 +67,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.JsonEncodedNameModel.defaultName",
"serializationOptions": {
- "$id": "5",
+ "$id": "9",
"json": {
- "$id": "6",
+ "$id": "10",
"name": "wireName"
}
}
@@ -45,7 +79,7 @@
],
"clients": [
{
- "$id": "7",
+ "$id": "11",
"kind": "client",
"name": "JsonClient",
"namespace": "Serialization.EncodedName.Json",
@@ -53,12 +87,12 @@
"methods": [],
"parameters": [
{
- "$id": "8",
+ "$id": "12",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "9",
+ "$id": "13",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -72,9 +106,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "10",
+ "$id": "14",
"type": {
- "$id": "11",
+ "$id": "15",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -88,40 +122,30 @@
"apiVersions": [],
"children": [
{
- "$id": "12",
+ "$id": "16",
"kind": "client",
"name": "Property",
"namespace": "Serialization.EncodedName.Json.Property",
"methods": [
{
- "$id": "13",
+ "$id": "17",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "14",
+ "$id": "18",
"name": "send",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "15",
+ "$id": "19",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "16",
- "kind": "constant",
- "valueType": {
- "$id": "17",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -134,11 +158,11 @@
"skipUrlEncoding": false
},
{
- "$id": "18",
+ "$id": "20",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "6"
},
"location": "Body",
"isApiVersion": false,
@@ -153,7 +177,7 @@
],
"responses": [
{
- "$id": "19",
+ "$id": "21",
"statusCodes": [
204
],
@@ -175,11 +199,11 @@
},
"parameters": [
{
- "$id": "20",
+ "$id": "22",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "6"
},
"location": "Body",
"isApiVersion": false,
@@ -192,12 +216,12 @@
"skipUrlEncoding": false
},
{
- "$id": "21",
+ "$id": "23",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "16"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -211,7 +235,7 @@
}
],
"response": {
- "$id": "22"
+ "$id": "24"
},
"isOverride": false,
"generateConvenient": true,
@@ -219,33 +243,23 @@
"crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property.send"
},
{
- "$id": "23",
+ "$id": "25",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "24",
+ "$id": "26",
"name": "get",
"resourceName": "Property",
"accessibility": "public",
"parameters": [
{
- "$id": "25",
+ "$id": "27",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "26",
- "kind": "constant",
- "valueType": {
- "$id": "27",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -265,7 +279,7 @@
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "6"
},
"headers": [],
"isErrorResponse": false,
@@ -289,7 +303,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "26"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -305,7 +319,7 @@
"response": {
"$id": "30",
"type": {
- "$ref": "2"
+ "$ref": "6"
}
},
"isOverride": false,
@@ -350,7 +364,7 @@
"crossLanguageDefinitionId": "Serialization.EncodedName.Json.Property",
"apiVersions": [],
"parent": {
- "$ref": "7"
+ "$ref": "11"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/src/Server.Endpoint.NotDefined.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/src/Server.Endpoint.NotDefined.csproj
index cb5a88a1406f..23aac72f03df 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/src/Server.Endpoint.NotDefined.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/endpoint/not-defined/src/Server.Endpoint.NotDefined.csproj
@@ -17,6 +17,7 @@
+
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 1501b35f23f2..a449e20b6d25 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
@@ -3,6 +3,7 @@
"name": "Server.Endpoint.NotDefined",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/src/Server.Path.Single.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/src/Server.Path.Single.csproj
index 9c4ca9003c4d..e57c1d8e493c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/src/Server.Path.Single.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/path/single/src/Server.Path.Single.csproj
@@ -17,6 +17,7 @@
+
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 cec4ece0ed55..6d2c845ede7c 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
@@ -3,6 +3,7 @@
"name": "Server.Path.Single",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/src/Server.Versions.NotVersioned.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/src/Server.Versions.NotVersioned.csproj
index 34a9b1ed450b..94f367f3b8c2 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/src/Server.Versions.NotVersioned.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/server/versions/not-versioned/src/Server.Versions.NotVersioned.csproj
@@ -17,6 +17,7 @@
+
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 1e559c0c3d0c..a769583bafa6 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
@@ -3,6 +3,7 @@
"name": "Server.Versions.NotVersioned",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/src/SpecialHeaders.ConditionalRequest.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/src/SpecialHeaders.ConditionalRequest.csproj
index 407df16f85e8..0b8fbbd27bcd 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/src/SpecialHeaders.ConditionalRequest.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/conditional-request/src/SpecialHeaders.ConditionalRequest.csproj
@@ -17,6 +17,7 @@
+
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 749ff820616a..5b98c1b15c2a 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
@@ -3,6 +3,7 @@
"name": "SpecialHeaders.ConditionalRequest",
"apiVersions": [],
"enums": [],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/src/SpecialHeaders.Repeatability.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/src/SpecialHeaders.Repeatability.csproj
index 9427ccd4fce1..d3b14bc84779 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/src/SpecialHeaders.Repeatability.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-headers/repeatability/src/SpecialHeaders.Repeatability.csproj
@@ -17,6 +17,7 @@
+
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 92eb86e983e1..03de2eb27202 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
@@ -58,6 +58,7 @@
"decorators": []
}
],
+ "constants": [],
"models": [],
"clients": [
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/SpecialWords.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/SpecialWords.csproj
index d68c7d6ed547..61a9ebaa2e71 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/SpecialWords.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/special-words/src/SpecialWords.csproj
@@ -17,6 +17,7 @@
+
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 2ad5e63ddcb8..c0ec2fe6126b 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
@@ -3,9 +3,555 @@
"name": "SpecialWords",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "withAndContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "withAsContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "withAssertContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "withAsyncContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "withAwaitContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "withBreakContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "withClassContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "withConstructorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "withContinueContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "withDefContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "withDelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "withElifContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "withElseContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "withExceptContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "withExecContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "withFinallyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "withForContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "withFromContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "withGlobalContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "withIfContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "withImportContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "withInContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "withIsContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "withLambdaContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "withNotContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "withOrContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "54",
+ "kind": "constant",
+ "name": "withPassContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "constant",
+ "name": "withRaiseContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "57",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "58",
+ "kind": "constant",
+ "name": "withReturnContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "59",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "60",
+ "kind": "constant",
+ "name": "withTryContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "61",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "62",
+ "kind": "constant",
+ "name": "withWhileContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "63",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "64",
+ "kind": "constant",
+ "name": "withWithContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "65",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "66",
+ "kind": "constant",
+ "name": "withYieldContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "68",
+ "kind": "constant",
+ "name": "sameAsModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "69",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "70",
"kind": "model",
"name": "and",
"namespace": "SpecialWords.Models",
@@ -14,12 +560,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "71",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "4",
+ "$id": "72",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -32,9 +578,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.and.name",
"serializationOptions": {
- "$id": "5",
+ "$id": "73",
"json": {
- "$id": "6",
+ "$id": "74",
"name": "name"
}
}
@@ -42,7 +588,7 @@
]
},
{
- "$id": "7",
+ "$id": "75",
"kind": "model",
"name": "as",
"namespace": "SpecialWords.Models",
@@ -51,12 +597,12 @@
"decorators": [],
"properties": [
{
- "$id": "8",
+ "$id": "76",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "9",
+ "$id": "77",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -69,9 +615,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.as.name",
"serializationOptions": {
- "$id": "10",
+ "$id": "78",
"json": {
- "$id": "11",
+ "$id": "79",
"name": "name"
}
}
@@ -79,7 +625,7 @@
]
},
{
- "$id": "12",
+ "$id": "80",
"kind": "model",
"name": "assert",
"namespace": "SpecialWords.Models",
@@ -88,12 +634,12 @@
"decorators": [],
"properties": [
{
- "$id": "13",
+ "$id": "81",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "14",
+ "$id": "82",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -106,9 +652,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.assert.name",
"serializationOptions": {
- "$id": "15",
+ "$id": "83",
"json": {
- "$id": "16",
+ "$id": "84",
"name": "name"
}
}
@@ -116,7 +662,7 @@
]
},
{
- "$id": "17",
+ "$id": "85",
"kind": "model",
"name": "async",
"namespace": "SpecialWords.Models",
@@ -125,12 +671,12 @@
"decorators": [],
"properties": [
{
- "$id": "18",
+ "$id": "86",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "19",
+ "$id": "87",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -143,9 +689,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.async.name",
"serializationOptions": {
- "$id": "20",
+ "$id": "88",
"json": {
- "$id": "21",
+ "$id": "89",
"name": "name"
}
}
@@ -153,7 +699,7 @@
]
},
{
- "$id": "22",
+ "$id": "90",
"kind": "model",
"name": "await",
"namespace": "SpecialWords.Models",
@@ -162,12 +708,12 @@
"decorators": [],
"properties": [
{
- "$id": "23",
+ "$id": "91",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "24",
+ "$id": "92",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -180,9 +726,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.await.name",
"serializationOptions": {
- "$id": "25",
+ "$id": "93",
"json": {
- "$id": "26",
+ "$id": "94",
"name": "name"
}
}
@@ -190,7 +736,7 @@
]
},
{
- "$id": "27",
+ "$id": "95",
"kind": "model",
"name": "break",
"namespace": "SpecialWords.Models",
@@ -199,12 +745,12 @@
"decorators": [],
"properties": [
{
- "$id": "28",
+ "$id": "96",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "29",
+ "$id": "97",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -217,9 +763,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.break.name",
"serializationOptions": {
- "$id": "30",
+ "$id": "98",
"json": {
- "$id": "31",
+ "$id": "99",
"name": "name"
}
}
@@ -227,7 +773,7 @@
]
},
{
- "$id": "32",
+ "$id": "100",
"kind": "model",
"name": "class",
"namespace": "SpecialWords.Models",
@@ -236,12 +782,12 @@
"decorators": [],
"properties": [
{
- "$id": "33",
+ "$id": "101",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "34",
+ "$id": "102",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -254,9 +800,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.class.name",
"serializationOptions": {
- "$id": "35",
+ "$id": "103",
"json": {
- "$id": "36",
+ "$id": "104",
"name": "name"
}
}
@@ -264,7 +810,7 @@
]
},
{
- "$id": "37",
+ "$id": "105",
"kind": "model",
"name": "constructor",
"namespace": "SpecialWords.Models",
@@ -273,12 +819,12 @@
"decorators": [],
"properties": [
{
- "$id": "38",
+ "$id": "106",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "39",
+ "$id": "107",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -291,9 +837,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.constructor.name",
"serializationOptions": {
- "$id": "40",
+ "$id": "108",
"json": {
- "$id": "41",
+ "$id": "109",
"name": "name"
}
}
@@ -301,7 +847,7 @@
]
},
{
- "$id": "42",
+ "$id": "110",
"kind": "model",
"name": "continue",
"namespace": "SpecialWords.Models",
@@ -310,12 +856,12 @@
"decorators": [],
"properties": [
{
- "$id": "43",
+ "$id": "111",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "44",
+ "$id": "112",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -328,9 +874,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.continue.name",
"serializationOptions": {
- "$id": "45",
+ "$id": "113",
"json": {
- "$id": "46",
+ "$id": "114",
"name": "name"
}
}
@@ -338,7 +884,7 @@
]
},
{
- "$id": "47",
+ "$id": "115",
"kind": "model",
"name": "def",
"namespace": "SpecialWords.Models",
@@ -347,12 +893,12 @@
"decorators": [],
"properties": [
{
- "$id": "48",
+ "$id": "116",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "49",
+ "$id": "117",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -365,9 +911,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.def.name",
"serializationOptions": {
- "$id": "50",
+ "$id": "118",
"json": {
- "$id": "51",
+ "$id": "119",
"name": "name"
}
}
@@ -375,7 +921,7 @@
]
},
{
- "$id": "52",
+ "$id": "120",
"kind": "model",
"name": "del",
"namespace": "SpecialWords.Models",
@@ -384,12 +930,12 @@
"decorators": [],
"properties": [
{
- "$id": "53",
+ "$id": "121",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "54",
+ "$id": "122",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -402,9 +948,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.del.name",
"serializationOptions": {
- "$id": "55",
+ "$id": "123",
"json": {
- "$id": "56",
+ "$id": "124",
"name": "name"
}
}
@@ -412,7 +958,7 @@
]
},
{
- "$id": "57",
+ "$id": "125",
"kind": "model",
"name": "elif",
"namespace": "SpecialWords.Models",
@@ -421,12 +967,12 @@
"decorators": [],
"properties": [
{
- "$id": "58",
+ "$id": "126",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "59",
+ "$id": "127",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -439,9 +985,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.elif.name",
"serializationOptions": {
- "$id": "60",
+ "$id": "128",
"json": {
- "$id": "61",
+ "$id": "129",
"name": "name"
}
}
@@ -449,7 +995,7 @@
]
},
{
- "$id": "62",
+ "$id": "130",
"kind": "model",
"name": "else",
"namespace": "SpecialWords.Models",
@@ -458,12 +1004,12 @@
"decorators": [],
"properties": [
{
- "$id": "63",
+ "$id": "131",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "64",
+ "$id": "132",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -476,9 +1022,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.else.name",
"serializationOptions": {
- "$id": "65",
+ "$id": "133",
"json": {
- "$id": "66",
+ "$id": "134",
"name": "name"
}
}
@@ -486,7 +1032,7 @@
]
},
{
- "$id": "67",
+ "$id": "135",
"kind": "model",
"name": "except",
"namespace": "SpecialWords.Models",
@@ -495,12 +1041,12 @@
"decorators": [],
"properties": [
{
- "$id": "68",
+ "$id": "136",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "69",
+ "$id": "137",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -513,9 +1059,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.except.name",
"serializationOptions": {
- "$id": "70",
+ "$id": "138",
"json": {
- "$id": "71",
+ "$id": "139",
"name": "name"
}
}
@@ -523,7 +1069,7 @@
]
},
{
- "$id": "72",
+ "$id": "140",
"kind": "model",
"name": "exec",
"namespace": "SpecialWords.Models",
@@ -532,12 +1078,12 @@
"decorators": [],
"properties": [
{
- "$id": "73",
+ "$id": "141",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "74",
+ "$id": "142",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -550,9 +1096,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.exec.name",
"serializationOptions": {
- "$id": "75",
+ "$id": "143",
"json": {
- "$id": "76",
+ "$id": "144",
"name": "name"
}
}
@@ -560,7 +1106,7 @@
]
},
{
- "$id": "77",
+ "$id": "145",
"kind": "model",
"name": "finally",
"namespace": "SpecialWords.Models",
@@ -569,12 +1115,12 @@
"decorators": [],
"properties": [
{
- "$id": "78",
+ "$id": "146",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "79",
+ "$id": "147",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -587,9 +1133,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.finally.name",
"serializationOptions": {
- "$id": "80",
+ "$id": "148",
"json": {
- "$id": "81",
+ "$id": "149",
"name": "name"
}
}
@@ -597,7 +1143,7 @@
]
},
{
- "$id": "82",
+ "$id": "150",
"kind": "model",
"name": "for",
"namespace": "SpecialWords.Models",
@@ -606,12 +1152,12 @@
"decorators": [],
"properties": [
{
- "$id": "83",
+ "$id": "151",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "84",
+ "$id": "152",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -624,9 +1170,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.for.name",
"serializationOptions": {
- "$id": "85",
+ "$id": "153",
"json": {
- "$id": "86",
+ "$id": "154",
"name": "name"
}
}
@@ -634,7 +1180,7 @@
]
},
{
- "$id": "87",
+ "$id": "155",
"kind": "model",
"name": "from",
"namespace": "SpecialWords.Models",
@@ -643,12 +1189,12 @@
"decorators": [],
"properties": [
{
- "$id": "88",
+ "$id": "156",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "89",
+ "$id": "157",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -661,9 +1207,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.from.name",
"serializationOptions": {
- "$id": "90",
+ "$id": "158",
"json": {
- "$id": "91",
+ "$id": "159",
"name": "name"
}
}
@@ -671,7 +1217,7 @@
]
},
{
- "$id": "92",
+ "$id": "160",
"kind": "model",
"name": "global",
"namespace": "SpecialWords.Models",
@@ -680,12 +1226,12 @@
"decorators": [],
"properties": [
{
- "$id": "93",
+ "$id": "161",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "94",
+ "$id": "162",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -698,9 +1244,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.global.name",
"serializationOptions": {
- "$id": "95",
+ "$id": "163",
"json": {
- "$id": "96",
+ "$id": "164",
"name": "name"
}
}
@@ -708,7 +1254,7 @@
]
},
{
- "$id": "97",
+ "$id": "165",
"kind": "model",
"name": "if",
"namespace": "SpecialWords.Models",
@@ -717,12 +1263,12 @@
"decorators": [],
"properties": [
{
- "$id": "98",
+ "$id": "166",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "99",
+ "$id": "167",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -735,9 +1281,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.if.name",
"serializationOptions": {
- "$id": "100",
+ "$id": "168",
"json": {
- "$id": "101",
+ "$id": "169",
"name": "name"
}
}
@@ -745,7 +1291,7 @@
]
},
{
- "$id": "102",
+ "$id": "170",
"kind": "model",
"name": "import",
"namespace": "SpecialWords.Models",
@@ -754,12 +1300,12 @@
"decorators": [],
"properties": [
{
- "$id": "103",
+ "$id": "171",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "104",
+ "$id": "172",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -772,9 +1318,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.import.name",
"serializationOptions": {
- "$id": "105",
+ "$id": "173",
"json": {
- "$id": "106",
+ "$id": "174",
"name": "name"
}
}
@@ -782,7 +1328,7 @@
]
},
{
- "$id": "107",
+ "$id": "175",
"kind": "model",
"name": "in",
"namespace": "SpecialWords.Models",
@@ -791,12 +1337,12 @@
"decorators": [],
"properties": [
{
- "$id": "108",
+ "$id": "176",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "109",
+ "$id": "177",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -809,9 +1355,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.in.name",
"serializationOptions": {
- "$id": "110",
+ "$id": "178",
"json": {
- "$id": "111",
+ "$id": "179",
"name": "name"
}
}
@@ -819,7 +1365,7 @@
]
},
{
- "$id": "112",
+ "$id": "180",
"kind": "model",
"name": "is",
"namespace": "SpecialWords.Models",
@@ -828,12 +1374,12 @@
"decorators": [],
"properties": [
{
- "$id": "113",
+ "$id": "181",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "114",
+ "$id": "182",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -846,9 +1392,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.is.name",
"serializationOptions": {
- "$id": "115",
+ "$id": "183",
"json": {
- "$id": "116",
+ "$id": "184",
"name": "name"
}
}
@@ -856,7 +1402,7 @@
]
},
{
- "$id": "117",
+ "$id": "185",
"kind": "model",
"name": "lambda",
"namespace": "SpecialWords.Models",
@@ -865,12 +1411,12 @@
"decorators": [],
"properties": [
{
- "$id": "118",
+ "$id": "186",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "119",
+ "$id": "187",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -883,9 +1429,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.lambda.name",
"serializationOptions": {
- "$id": "120",
+ "$id": "188",
"json": {
- "$id": "121",
+ "$id": "189",
"name": "name"
}
}
@@ -893,7 +1439,7 @@
]
},
{
- "$id": "122",
+ "$id": "190",
"kind": "model",
"name": "not",
"namespace": "SpecialWords.Models",
@@ -902,12 +1448,12 @@
"decorators": [],
"properties": [
{
- "$id": "123",
+ "$id": "191",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "124",
+ "$id": "192",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -920,9 +1466,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.not.name",
"serializationOptions": {
- "$id": "125",
+ "$id": "193",
"json": {
- "$id": "126",
+ "$id": "194",
"name": "name"
}
}
@@ -930,7 +1476,7 @@
]
},
{
- "$id": "127",
+ "$id": "195",
"kind": "model",
"name": "or",
"namespace": "SpecialWords.Models",
@@ -939,12 +1485,12 @@
"decorators": [],
"properties": [
{
- "$id": "128",
+ "$id": "196",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "129",
+ "$id": "197",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -957,9 +1503,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.or.name",
"serializationOptions": {
- "$id": "130",
+ "$id": "198",
"json": {
- "$id": "131",
+ "$id": "199",
"name": "name"
}
}
@@ -967,7 +1513,7 @@
]
},
{
- "$id": "132",
+ "$id": "200",
"kind": "model",
"name": "pass",
"namespace": "SpecialWords.Models",
@@ -976,12 +1522,12 @@
"decorators": [],
"properties": [
{
- "$id": "133",
+ "$id": "201",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "134",
+ "$id": "202",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -994,9 +1540,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.pass.name",
"serializationOptions": {
- "$id": "135",
+ "$id": "203",
"json": {
- "$id": "136",
+ "$id": "204",
"name": "name"
}
}
@@ -1004,7 +1550,7 @@
]
},
{
- "$id": "137",
+ "$id": "205",
"kind": "model",
"name": "raise",
"namespace": "SpecialWords.Models",
@@ -1013,12 +1559,12 @@
"decorators": [],
"properties": [
{
- "$id": "138",
+ "$id": "206",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "139",
+ "$id": "207",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1031,9 +1577,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.raise.name",
"serializationOptions": {
- "$id": "140",
+ "$id": "208",
"json": {
- "$id": "141",
+ "$id": "209",
"name": "name"
}
}
@@ -1041,7 +1587,7 @@
]
},
{
- "$id": "142",
+ "$id": "210",
"kind": "model",
"name": "return",
"namespace": "SpecialWords.Models",
@@ -1050,12 +1596,12 @@
"decorators": [],
"properties": [
{
- "$id": "143",
+ "$id": "211",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "144",
+ "$id": "212",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1068,9 +1614,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.return.name",
"serializationOptions": {
- "$id": "145",
+ "$id": "213",
"json": {
- "$id": "146",
+ "$id": "214",
"name": "name"
}
}
@@ -1078,7 +1624,7 @@
]
},
{
- "$id": "147",
+ "$id": "215",
"kind": "model",
"name": "try",
"namespace": "SpecialWords.Models",
@@ -1087,12 +1633,12 @@
"decorators": [],
"properties": [
{
- "$id": "148",
+ "$id": "216",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "149",
+ "$id": "217",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1105,9 +1651,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.try.name",
"serializationOptions": {
- "$id": "150",
+ "$id": "218",
"json": {
- "$id": "151",
+ "$id": "219",
"name": "name"
}
}
@@ -1115,7 +1661,7 @@
]
},
{
- "$id": "152",
+ "$id": "220",
"kind": "model",
"name": "while",
"namespace": "SpecialWords.Models",
@@ -1124,12 +1670,12 @@
"decorators": [],
"properties": [
{
- "$id": "153",
+ "$id": "221",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "154",
+ "$id": "222",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1142,9 +1688,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.while.name",
"serializationOptions": {
- "$id": "155",
+ "$id": "223",
"json": {
- "$id": "156",
+ "$id": "224",
"name": "name"
}
}
@@ -1152,7 +1698,7 @@
]
},
{
- "$id": "157",
+ "$id": "225",
"kind": "model",
"name": "with",
"namespace": "SpecialWords.Models",
@@ -1161,12 +1707,12 @@
"decorators": [],
"properties": [
{
- "$id": "158",
+ "$id": "226",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "159",
+ "$id": "227",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1179,9 +1725,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.with.name",
"serializationOptions": {
- "$id": "160",
+ "$id": "228",
"json": {
- "$id": "161",
+ "$id": "229",
"name": "name"
}
}
@@ -1189,7 +1735,7 @@
]
},
{
- "$id": "162",
+ "$id": "230",
"kind": "model",
"name": "yield",
"namespace": "SpecialWords.Models",
@@ -1198,12 +1744,12 @@
"decorators": [],
"properties": [
{
- "$id": "163",
+ "$id": "231",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "164",
+ "$id": "232",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1216,9 +1762,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.Models.yield.name",
"serializationOptions": {
- "$id": "165",
+ "$id": "233",
"json": {
- "$id": "166",
+ "$id": "234",
"name": "name"
}
}
@@ -1226,7 +1772,7 @@
]
},
{
- "$id": "167",
+ "$id": "235",
"kind": "model",
"name": "SameAsModel",
"namespace": "SpecialWords.ModelProperties",
@@ -1235,12 +1781,12 @@
"decorators": [],
"properties": [
{
- "$id": "168",
+ "$id": "236",
"kind": "property",
"name": "SameAsModel",
"serializedName": "SameAsModel",
"type": {
- "$id": "169",
+ "$id": "237",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1253,9 +1799,9 @@
"decorators": [],
"crossLanguageDefinitionId": "SpecialWords.ModelProperties.SameAsModel.SameAsModel",
"serializationOptions": {
- "$id": "170",
+ "$id": "238",
"json": {
- "$id": "171",
+ "$id": "239",
"name": "SameAsModel"
}
}
@@ -1265,7 +1811,7 @@
],
"clients": [
{
- "$id": "172",
+ "$id": "240",
"kind": "client",
"name": "SpecialWordsClient",
"namespace": "SpecialWords",
@@ -1273,12 +1819,12 @@
"methods": [],
"parameters": [
{
- "$id": "173",
+ "$id": "241",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "174",
+ "$id": "242",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1292,9 +1838,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "175",
+ "$id": "243",
"type": {
- "$id": "176",
+ "$id": "244",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1308,41 +1854,31 @@
"apiVersions": [],
"children": [
{
- "$id": "177",
+ "$id": "245",
"kind": "client",
"name": "Models",
"namespace": "SpecialWords.Models",
"doc": "Verify model names",
"methods": [
{
- "$id": "178",
+ "$id": "246",
"kind": "basic",
"name": "withAnd",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "179",
+ "$id": "247",
"name": "withAnd",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "180",
+ "$id": "248",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "181",
- "kind": "constant",
- "valueType": {
- "$id": "182",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -1355,11 +1891,11 @@
"skipUrlEncoding": false
},
{
- "$id": "183",
+ "$id": "249",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "70"
},
"location": "Body",
"isApiVersion": false,
@@ -1374,7 +1910,7 @@
],
"responses": [
{
- "$id": "184",
+ "$id": "250",
"statusCodes": [
204
],
@@ -1396,11 +1932,11 @@
},
"parameters": [
{
- "$id": "185",
+ "$id": "251",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "70"
},
"location": "Body",
"isApiVersion": false,
@@ -1413,12 +1949,12 @@
"skipUrlEncoding": false
},
{
- "$id": "186",
+ "$id": "252",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "181"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -1432,7 +1968,7 @@
}
],
"response": {
- "$id": "187"
+ "$id": "253"
},
"isOverride": false,
"generateConvenient": true,
@@ -1440,34 +1976,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withAnd"
},
{
- "$id": "188",
+ "$id": "254",
"kind": "basic",
"name": "withAs",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "189",
+ "$id": "255",
"name": "withAs",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "190",
+ "$id": "256",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "191",
- "kind": "constant",
- "valueType": {
- "$id": "192",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -1480,11 +2006,11 @@
"skipUrlEncoding": false
},
{
- "$id": "193",
+ "$id": "257",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "7"
+ "$ref": "75"
},
"location": "Body",
"isApiVersion": false,
@@ -1499,7 +2025,7 @@
],
"responses": [
{
- "$id": "194",
+ "$id": "258",
"statusCodes": [
204
],
@@ -1521,11 +2047,11 @@
},
"parameters": [
{
- "$id": "195",
+ "$id": "259",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "7"
+ "$ref": "75"
},
"location": "Body",
"isApiVersion": false,
@@ -1538,12 +2064,12 @@
"skipUrlEncoding": false
},
{
- "$id": "196",
+ "$id": "260",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "191"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -1557,7 +2083,7 @@
}
],
"response": {
- "$id": "197"
+ "$id": "261"
},
"isOverride": false,
"generateConvenient": true,
@@ -1565,34 +2091,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withAs"
},
{
- "$id": "198",
+ "$id": "262",
"kind": "basic",
"name": "withAssert",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "199",
+ "$id": "263",
"name": "withAssert",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "200",
+ "$id": "264",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "201",
- "kind": "constant",
- "valueType": {
- "$id": "202",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -1605,11 +2121,11 @@
"skipUrlEncoding": false
},
{
- "$id": "203",
+ "$id": "265",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "80"
},
"location": "Body",
"isApiVersion": false,
@@ -1624,7 +2140,7 @@
],
"responses": [
{
- "$id": "204",
+ "$id": "266",
"statusCodes": [
204
],
@@ -1646,11 +2162,11 @@
},
"parameters": [
{
- "$id": "205",
+ "$id": "267",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "80"
},
"location": "Body",
"isApiVersion": false,
@@ -1663,12 +2179,12 @@
"skipUrlEncoding": false
},
{
- "$id": "206",
+ "$id": "268",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "201"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -1682,7 +2198,7 @@
}
],
"response": {
- "$id": "207"
+ "$id": "269"
},
"isOverride": false,
"generateConvenient": true,
@@ -1690,34 +2206,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withAssert"
},
{
- "$id": "208",
+ "$id": "270",
"kind": "basic",
"name": "withAsync",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "209",
+ "$id": "271",
"name": "withAsync",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "210",
+ "$id": "272",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "211",
- "kind": "constant",
- "valueType": {
- "$id": "212",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1730,11 +2236,11 @@
"skipUrlEncoding": false
},
{
- "$id": "213",
+ "$id": "273",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "17"
+ "$ref": "85"
},
"location": "Body",
"isApiVersion": false,
@@ -1749,7 +2255,7 @@
],
"responses": [
{
- "$id": "214",
+ "$id": "274",
"statusCodes": [
204
],
@@ -1771,11 +2277,11 @@
},
"parameters": [
{
- "$id": "215",
+ "$id": "275",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "17"
+ "$ref": "85"
},
"location": "Body",
"isApiVersion": false,
@@ -1788,12 +2294,12 @@
"skipUrlEncoding": false
},
{
- "$id": "216",
+ "$id": "276",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "211"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -1807,7 +2313,7 @@
}
],
"response": {
- "$id": "217"
+ "$id": "277"
},
"isOverride": false,
"generateConvenient": true,
@@ -1815,34 +2321,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withAsync"
},
{
- "$id": "218",
+ "$id": "278",
"kind": "basic",
"name": "withAwait",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "219",
+ "$id": "279",
"name": "withAwait",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "220",
+ "$id": "280",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "221",
- "kind": "constant",
- "valueType": {
- "$id": "222",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1855,11 +2351,11 @@
"skipUrlEncoding": false
},
{
- "$id": "223",
+ "$id": "281",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "22"
+ "$ref": "90"
},
"location": "Body",
"isApiVersion": false,
@@ -1874,7 +2370,7 @@
],
"responses": [
{
- "$id": "224",
+ "$id": "282",
"statusCodes": [
204
],
@@ -1896,11 +2392,11 @@
},
"parameters": [
{
- "$id": "225",
+ "$id": "283",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "22"
+ "$ref": "90"
},
"location": "Body",
"isApiVersion": false,
@@ -1913,12 +2409,12 @@
"skipUrlEncoding": false
},
{
- "$id": "226",
+ "$id": "284",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "221"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1932,7 +2428,7 @@
}
],
"response": {
- "$id": "227"
+ "$id": "285"
},
"isOverride": false,
"generateConvenient": true,
@@ -1940,34 +2436,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withAwait"
},
{
- "$id": "228",
+ "$id": "286",
"kind": "basic",
"name": "withBreak",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "229",
+ "$id": "287",
"name": "withBreak",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "230",
+ "$id": "288",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "231",
- "kind": "constant",
- "valueType": {
- "$id": "232",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1980,11 +2466,11 @@
"skipUrlEncoding": false
},
{
- "$id": "233",
+ "$id": "289",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "27"
+ "$ref": "95"
},
"location": "Body",
"isApiVersion": false,
@@ -1999,7 +2485,7 @@
],
"responses": [
{
- "$id": "234",
+ "$id": "290",
"statusCodes": [
204
],
@@ -2021,11 +2507,11 @@
},
"parameters": [
{
- "$id": "235",
+ "$id": "291",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "27"
+ "$ref": "95"
},
"location": "Body",
"isApiVersion": false,
@@ -2038,12 +2524,12 @@
"skipUrlEncoding": false
},
{
- "$id": "236",
+ "$id": "292",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "231"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -2057,7 +2543,7 @@
}
],
"response": {
- "$id": "237"
+ "$id": "293"
},
"isOverride": false,
"generateConvenient": true,
@@ -2065,34 +2551,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withBreak"
},
{
- "$id": "238",
+ "$id": "294",
"kind": "basic",
"name": "withClass",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "239",
+ "$id": "295",
"name": "withClass",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "240",
+ "$id": "296",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "241",
- "kind": "constant",
- "valueType": {
- "$id": "242",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -2105,11 +2581,11 @@
"skipUrlEncoding": false
},
{
- "$id": "243",
+ "$id": "297",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "32"
+ "$ref": "100"
},
"location": "Body",
"isApiVersion": false,
@@ -2124,7 +2600,7 @@
],
"responses": [
{
- "$id": "244",
+ "$id": "298",
"statusCodes": [
204
],
@@ -2146,11 +2622,11 @@
},
"parameters": [
{
- "$id": "245",
+ "$id": "299",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "32"
+ "$ref": "100"
},
"location": "Body",
"isApiVersion": false,
@@ -2163,12 +2639,12 @@
"skipUrlEncoding": false
},
{
- "$id": "246",
+ "$id": "300",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "241"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -2182,7 +2658,7 @@
}
],
"response": {
- "$id": "247"
+ "$id": "301"
},
"isOverride": false,
"generateConvenient": true,
@@ -2190,34 +2666,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withClass"
},
{
- "$id": "248",
+ "$id": "302",
"kind": "basic",
"name": "withConstructor",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "249",
+ "$id": "303",
"name": "withConstructor",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "250",
+ "$id": "304",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "251",
- "kind": "constant",
- "valueType": {
- "$id": "252",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -2230,11 +2696,11 @@
"skipUrlEncoding": false
},
{
- "$id": "253",
+ "$id": "305",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "37"
+ "$ref": "105"
},
"location": "Body",
"isApiVersion": false,
@@ -2249,7 +2715,7 @@
],
"responses": [
{
- "$id": "254",
+ "$id": "306",
"statusCodes": [
204
],
@@ -2271,11 +2737,11 @@
},
"parameters": [
{
- "$id": "255",
+ "$id": "307",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "37"
+ "$ref": "105"
},
"location": "Body",
"isApiVersion": false,
@@ -2288,12 +2754,12 @@
"skipUrlEncoding": false
},
{
- "$id": "256",
+ "$id": "308",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "251"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -2307,7 +2773,7 @@
}
],
"response": {
- "$id": "257"
+ "$id": "309"
},
"isOverride": false,
"generateConvenient": true,
@@ -2315,34 +2781,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withConstructor"
},
{
- "$id": "258",
+ "$id": "310",
"kind": "basic",
"name": "withContinue",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "259",
+ "$id": "311",
"name": "withContinue",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "260",
+ "$id": "312",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "261",
- "kind": "constant",
- "valueType": {
- "$id": "262",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -2355,11 +2811,11 @@
"skipUrlEncoding": false
},
{
- "$id": "263",
+ "$id": "313",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "42"
+ "$ref": "110"
},
"location": "Body",
"isApiVersion": false,
@@ -2374,7 +2830,7 @@
],
"responses": [
{
- "$id": "264",
+ "$id": "314",
"statusCodes": [
204
],
@@ -2396,11 +2852,11 @@
},
"parameters": [
{
- "$id": "265",
+ "$id": "315",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "42"
+ "$ref": "110"
},
"location": "Body",
"isApiVersion": false,
@@ -2413,12 +2869,12 @@
"skipUrlEncoding": false
},
{
- "$id": "266",
+ "$id": "316",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "261"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -2432,7 +2888,7 @@
}
],
"response": {
- "$id": "267"
+ "$id": "317"
},
"isOverride": false,
"generateConvenient": true,
@@ -2440,34 +2896,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withContinue"
},
{
- "$id": "268",
+ "$id": "318",
"kind": "basic",
"name": "withDef",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "269",
+ "$id": "319",
"name": "withDef",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "270",
+ "$id": "320",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "271",
- "kind": "constant",
- "valueType": {
- "$id": "272",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -2480,11 +2926,11 @@
"skipUrlEncoding": false
},
{
- "$id": "273",
+ "$id": "321",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "47"
+ "$ref": "115"
},
"location": "Body",
"isApiVersion": false,
@@ -2499,7 +2945,7 @@
],
"responses": [
{
- "$id": "274",
+ "$id": "322",
"statusCodes": [
204
],
@@ -2521,11 +2967,11 @@
},
"parameters": [
{
- "$id": "275",
+ "$id": "323",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "47"
+ "$ref": "115"
},
"location": "Body",
"isApiVersion": false,
@@ -2538,12 +2984,12 @@
"skipUrlEncoding": false
},
{
- "$id": "276",
+ "$id": "324",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "271"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -2557,7 +3003,7 @@
}
],
"response": {
- "$id": "277"
+ "$id": "325"
},
"isOverride": false,
"generateConvenient": true,
@@ -2565,34 +3011,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withDef"
},
{
- "$id": "278",
+ "$id": "326",
"kind": "basic",
"name": "withDel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "279",
+ "$id": "327",
"name": "withDel",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "280",
+ "$id": "328",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "281",
- "kind": "constant",
- "valueType": {
- "$id": "282",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -2605,11 +3041,11 @@
"skipUrlEncoding": false
},
{
- "$id": "283",
+ "$id": "329",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "52"
+ "$ref": "120"
},
"location": "Body",
"isApiVersion": false,
@@ -2624,7 +3060,7 @@
],
"responses": [
{
- "$id": "284",
+ "$id": "330",
"statusCodes": [
204
],
@@ -2646,11 +3082,11 @@
},
"parameters": [
{
- "$id": "285",
+ "$id": "331",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "52"
+ "$ref": "120"
},
"location": "Body",
"isApiVersion": false,
@@ -2663,12 +3099,12 @@
"skipUrlEncoding": false
},
{
- "$id": "286",
+ "$id": "332",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "281"
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -2682,7 +3118,7 @@
}
],
"response": {
- "$id": "287"
+ "$id": "333"
},
"isOverride": false,
"generateConvenient": true,
@@ -2690,34 +3126,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withDel"
},
{
- "$id": "288",
+ "$id": "334",
"kind": "basic",
"name": "withElif",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "289",
+ "$id": "335",
"name": "withElif",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "290",
+ "$id": "336",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "291",
- "kind": "constant",
- "valueType": {
- "$id": "292",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -2730,11 +3156,11 @@
"skipUrlEncoding": false
},
{
- "$id": "293",
+ "$id": "337",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "57"
+ "$ref": "125"
},
"location": "Body",
"isApiVersion": false,
@@ -2749,7 +3175,7 @@
],
"responses": [
{
- "$id": "294",
+ "$id": "338",
"statusCodes": [
204
],
@@ -2771,11 +3197,11 @@
},
"parameters": [
{
- "$id": "295",
+ "$id": "339",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "57"
+ "$ref": "125"
},
"location": "Body",
"isApiVersion": false,
@@ -2788,12 +3214,12 @@
"skipUrlEncoding": false
},
{
- "$id": "296",
+ "$id": "340",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "291"
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -2807,7 +3233,7 @@
}
],
"response": {
- "$id": "297"
+ "$id": "341"
},
"isOverride": false,
"generateConvenient": true,
@@ -2815,34 +3241,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withElif"
},
{
- "$id": "298",
+ "$id": "342",
"kind": "basic",
"name": "withElse",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "299",
+ "$id": "343",
"name": "withElse",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "300",
+ "$id": "344",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "301",
- "kind": "constant",
- "valueType": {
- "$id": "302",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -2855,11 +3271,11 @@
"skipUrlEncoding": false
},
{
- "$id": "303",
+ "$id": "345",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "62"
+ "$ref": "130"
},
"location": "Body",
"isApiVersion": false,
@@ -2874,7 +3290,7 @@
],
"responses": [
{
- "$id": "304",
+ "$id": "346",
"statusCodes": [
204
],
@@ -2896,11 +3312,11 @@
},
"parameters": [
{
- "$id": "305",
+ "$id": "347",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "62"
+ "$ref": "130"
},
"location": "Body",
"isApiVersion": false,
@@ -2913,12 +3329,12 @@
"skipUrlEncoding": false
},
{
- "$id": "306",
+ "$id": "348",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "301"
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -2932,7 +3348,7 @@
}
],
"response": {
- "$id": "307"
+ "$id": "349"
},
"isOverride": false,
"generateConvenient": true,
@@ -2940,34 +3356,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withElse"
},
{
- "$id": "308",
+ "$id": "350",
"kind": "basic",
"name": "withExcept",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "309",
+ "$id": "351",
"name": "withExcept",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "310",
+ "$id": "352",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "311",
- "kind": "constant",
- "valueType": {
- "$id": "312",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -2980,11 +3386,11 @@
"skipUrlEncoding": false
},
{
- "$id": "313",
+ "$id": "353",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "67"
+ "$ref": "135"
},
"location": "Body",
"isApiVersion": false,
@@ -2999,7 +3405,7 @@
],
"responses": [
{
- "$id": "314",
+ "$id": "354",
"statusCodes": [
204
],
@@ -3021,11 +3427,11 @@
},
"parameters": [
{
- "$id": "315",
+ "$id": "355",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "67"
+ "$ref": "135"
},
"location": "Body",
"isApiVersion": false,
@@ -3038,12 +3444,12 @@
"skipUrlEncoding": false
},
{
- "$id": "316",
+ "$id": "356",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "311"
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -3057,7 +3463,7 @@
}
],
"response": {
- "$id": "317"
+ "$id": "357"
},
"isOverride": false,
"generateConvenient": true,
@@ -3065,34 +3471,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withExcept"
},
{
- "$id": "318",
+ "$id": "358",
"kind": "basic",
"name": "withExec",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "319",
+ "$id": "359",
"name": "withExec",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "320",
+ "$id": "360",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "321",
- "kind": "constant",
- "valueType": {
- "$id": "322",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -3105,11 +3501,11 @@
"skipUrlEncoding": false
},
{
- "$id": "323",
+ "$id": "361",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "72"
+ "$ref": "140"
},
"location": "Body",
"isApiVersion": false,
@@ -3124,7 +3520,7 @@
],
"responses": [
{
- "$id": "324",
+ "$id": "362",
"statusCodes": [
204
],
@@ -3146,11 +3542,11 @@
},
"parameters": [
{
- "$id": "325",
+ "$id": "363",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "72"
+ "$ref": "140"
},
"location": "Body",
"isApiVersion": false,
@@ -3163,12 +3559,12 @@
"skipUrlEncoding": false
},
{
- "$id": "326",
+ "$id": "364",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "321"
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -3182,7 +3578,7 @@
}
],
"response": {
- "$id": "327"
+ "$id": "365"
},
"isOverride": false,
"generateConvenient": true,
@@ -3190,34 +3586,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withExec"
},
{
- "$id": "328",
+ "$id": "366",
"kind": "basic",
"name": "withFinally",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "329",
+ "$id": "367",
"name": "withFinally",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "330",
+ "$id": "368",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "331",
- "kind": "constant",
- "valueType": {
- "$id": "332",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -3230,11 +3616,11 @@
"skipUrlEncoding": false
},
{
- "$id": "333",
+ "$id": "369",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "77"
+ "$ref": "145"
},
"location": "Body",
"isApiVersion": false,
@@ -3249,7 +3635,7 @@
],
"responses": [
{
- "$id": "334",
+ "$id": "370",
"statusCodes": [
204
],
@@ -3271,11 +3657,11 @@
},
"parameters": [
{
- "$id": "335",
+ "$id": "371",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "77"
+ "$ref": "145"
},
"location": "Body",
"isApiVersion": false,
@@ -3288,12 +3674,12 @@
"skipUrlEncoding": false
},
{
- "$id": "336",
+ "$id": "372",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "331"
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -3307,7 +3693,7 @@
}
],
"response": {
- "$id": "337"
+ "$id": "373"
},
"isOverride": false,
"generateConvenient": true,
@@ -3315,34 +3701,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withFinally"
},
{
- "$id": "338",
+ "$id": "374",
"kind": "basic",
"name": "withFor",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "339",
+ "$id": "375",
"name": "withFor",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "340",
+ "$id": "376",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "341",
- "kind": "constant",
- "valueType": {
- "$id": "342",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -3355,11 +3731,11 @@
"skipUrlEncoding": false
},
{
- "$id": "343",
+ "$id": "377",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "82"
+ "$ref": "150"
},
"location": "Body",
"isApiVersion": false,
@@ -3374,7 +3750,7 @@
],
"responses": [
{
- "$id": "344",
+ "$id": "378",
"statusCodes": [
204
],
@@ -3396,11 +3772,11 @@
},
"parameters": [
{
- "$id": "345",
+ "$id": "379",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "82"
+ "$ref": "150"
},
"location": "Body",
"isApiVersion": false,
@@ -3413,12 +3789,12 @@
"skipUrlEncoding": false
},
{
- "$id": "346",
+ "$id": "380",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "341"
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -3432,7 +3808,7 @@
}
],
"response": {
- "$id": "347"
+ "$id": "381"
},
"isOverride": false,
"generateConvenient": true,
@@ -3440,34 +3816,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withFor"
},
{
- "$id": "348",
+ "$id": "382",
"kind": "basic",
"name": "withFrom",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "349",
+ "$id": "383",
"name": "withFrom",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "350",
+ "$id": "384",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "351",
- "kind": "constant",
- "valueType": {
- "$id": "352",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -3480,11 +3846,11 @@
"skipUrlEncoding": false
},
{
- "$id": "353",
+ "$id": "385",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "87"
+ "$ref": "155"
},
"location": "Body",
"isApiVersion": false,
@@ -3499,7 +3865,7 @@
],
"responses": [
{
- "$id": "354",
+ "$id": "386",
"statusCodes": [
204
],
@@ -3521,11 +3887,11 @@
},
"parameters": [
{
- "$id": "355",
+ "$id": "387",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "87"
+ "$ref": "155"
},
"location": "Body",
"isApiVersion": false,
@@ -3538,12 +3904,12 @@
"skipUrlEncoding": false
},
{
- "$id": "356",
+ "$id": "388",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "351"
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -3557,7 +3923,7 @@
}
],
"response": {
- "$id": "357"
+ "$id": "389"
},
"isOverride": false,
"generateConvenient": true,
@@ -3565,34 +3931,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withFrom"
},
{
- "$id": "358",
+ "$id": "390",
"kind": "basic",
"name": "withGlobal",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "359",
+ "$id": "391",
"name": "withGlobal",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "360",
+ "$id": "392",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "361",
- "kind": "constant",
- "valueType": {
- "$id": "362",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -3605,11 +3961,11 @@
"skipUrlEncoding": false
},
{
- "$id": "363",
+ "$id": "393",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "92"
+ "$ref": "160"
},
"location": "Body",
"isApiVersion": false,
@@ -3624,7 +3980,7 @@
],
"responses": [
{
- "$id": "364",
+ "$id": "394",
"statusCodes": [
204
],
@@ -3646,11 +4002,11 @@
},
"parameters": [
{
- "$id": "365",
+ "$id": "395",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "92"
+ "$ref": "160"
},
"location": "Body",
"isApiVersion": false,
@@ -3663,12 +4019,12 @@
"skipUrlEncoding": false
},
{
- "$id": "366",
+ "$id": "396",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "361"
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -3682,7 +4038,7 @@
}
],
"response": {
- "$id": "367"
+ "$id": "397"
},
"isOverride": false,
"generateConvenient": true,
@@ -3690,34 +4046,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withGlobal"
},
{
- "$id": "368",
+ "$id": "398",
"kind": "basic",
"name": "withIf",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "369",
+ "$id": "399",
"name": "withIf",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "370",
+ "$id": "400",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "371",
- "kind": "constant",
- "valueType": {
- "$id": "372",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -3730,11 +4076,11 @@
"skipUrlEncoding": false
},
{
- "$id": "373",
+ "$id": "401",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "97"
+ "$ref": "165"
},
"location": "Body",
"isApiVersion": false,
@@ -3749,7 +4095,7 @@
],
"responses": [
{
- "$id": "374",
+ "$id": "402",
"statusCodes": [
204
],
@@ -3771,11 +4117,11 @@
},
"parameters": [
{
- "$id": "375",
+ "$id": "403",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "97"
+ "$ref": "165"
},
"location": "Body",
"isApiVersion": false,
@@ -3788,12 +4134,12 @@
"skipUrlEncoding": false
},
{
- "$id": "376",
+ "$id": "404",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "371"
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -3807,7 +4153,7 @@
}
],
"response": {
- "$id": "377"
+ "$id": "405"
},
"isOverride": false,
"generateConvenient": true,
@@ -3815,34 +4161,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withIf"
},
{
- "$id": "378",
+ "$id": "406",
"kind": "basic",
"name": "withImport",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "379",
+ "$id": "407",
"name": "withImport",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "380",
+ "$id": "408",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "381",
- "kind": "constant",
- "valueType": {
- "$id": "382",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -3855,11 +4191,11 @@
"skipUrlEncoding": false
},
{
- "$id": "383",
+ "$id": "409",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "102"
+ "$ref": "170"
},
"location": "Body",
"isApiVersion": false,
@@ -3874,7 +4210,7 @@
],
"responses": [
{
- "$id": "384",
+ "$id": "410",
"statusCodes": [
204
],
@@ -3896,11 +4232,11 @@
},
"parameters": [
{
- "$id": "385",
+ "$id": "411",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "102"
+ "$ref": "170"
},
"location": "Body",
"isApiVersion": false,
@@ -3913,12 +4249,12 @@
"skipUrlEncoding": false
},
{
- "$id": "386",
+ "$id": "412",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "381"
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -3932,7 +4268,7 @@
}
],
"response": {
- "$id": "387"
+ "$id": "413"
},
"isOverride": false,
"generateConvenient": true,
@@ -3940,34 +4276,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withImport"
},
{
- "$id": "388",
+ "$id": "414",
"kind": "basic",
"name": "withIn",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "389",
+ "$id": "415",
"name": "withIn",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "390",
+ "$id": "416",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "391",
- "kind": "constant",
- "valueType": {
- "$id": "392",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -3980,11 +4306,11 @@
"skipUrlEncoding": false
},
{
- "$id": "393",
+ "$id": "417",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "107"
+ "$ref": "175"
},
"location": "Body",
"isApiVersion": false,
@@ -3999,7 +4325,7 @@
],
"responses": [
{
- "$id": "394",
+ "$id": "418",
"statusCodes": [
204
],
@@ -4021,11 +4347,11 @@
},
"parameters": [
{
- "$id": "395",
+ "$id": "419",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "107"
+ "$ref": "175"
},
"location": "Body",
"isApiVersion": false,
@@ -4038,12 +4364,12 @@
"skipUrlEncoding": false
},
{
- "$id": "396",
+ "$id": "420",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "391"
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -4057,7 +4383,7 @@
}
],
"response": {
- "$id": "397"
+ "$id": "421"
},
"isOverride": false,
"generateConvenient": true,
@@ -4065,34 +4391,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withIn"
},
{
- "$id": "398",
+ "$id": "422",
"kind": "basic",
"name": "withIs",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "399",
+ "$id": "423",
"name": "withIs",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "400",
+ "$id": "424",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "401",
- "kind": "constant",
- "valueType": {
- "$id": "402",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -4105,11 +4421,11 @@
"skipUrlEncoding": false
},
{
- "$id": "403",
+ "$id": "425",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "112"
+ "$ref": "180"
},
"location": "Body",
"isApiVersion": false,
@@ -4124,7 +4440,7 @@
],
"responses": [
{
- "$id": "404",
+ "$id": "426",
"statusCodes": [
204
],
@@ -4146,11 +4462,11 @@
},
"parameters": [
{
- "$id": "405",
+ "$id": "427",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "112"
+ "$ref": "180"
},
"location": "Body",
"isApiVersion": false,
@@ -4163,12 +4479,12 @@
"skipUrlEncoding": false
},
{
- "$id": "406",
+ "$id": "428",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "401"
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -4182,7 +4498,7 @@
}
],
"response": {
- "$id": "407"
+ "$id": "429"
},
"isOverride": false,
"generateConvenient": true,
@@ -4190,34 +4506,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withIs"
},
{
- "$id": "408",
+ "$id": "430",
"kind": "basic",
"name": "withLambda",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "409",
+ "$id": "431",
"name": "withLambda",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "410",
+ "$id": "432",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "411",
- "kind": "constant",
- "valueType": {
- "$id": "412",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -4230,11 +4536,11 @@
"skipUrlEncoding": false
},
{
- "$id": "413",
+ "$id": "433",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "117"
+ "$ref": "185"
},
"location": "Body",
"isApiVersion": false,
@@ -4249,7 +4555,7 @@
],
"responses": [
{
- "$id": "414",
+ "$id": "434",
"statusCodes": [
204
],
@@ -4271,11 +4577,11 @@
},
"parameters": [
{
- "$id": "415",
+ "$id": "435",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "117"
+ "$ref": "185"
},
"location": "Body",
"isApiVersion": false,
@@ -4288,12 +4594,12 @@
"skipUrlEncoding": false
},
{
- "$id": "416",
+ "$id": "436",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "411"
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -4307,7 +4613,7 @@
}
],
"response": {
- "$id": "417"
+ "$id": "437"
},
"isOverride": false,
"generateConvenient": true,
@@ -4315,34 +4621,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withLambda"
},
{
- "$id": "418",
+ "$id": "438",
"kind": "basic",
"name": "withNot",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "419",
+ "$id": "439",
"name": "withNot",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "420",
+ "$id": "440",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "421",
- "kind": "constant",
- "valueType": {
- "$id": "422",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -4355,11 +4651,11 @@
"skipUrlEncoding": false
},
{
- "$id": "423",
+ "$id": "441",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "122"
+ "$ref": "190"
},
"location": "Body",
"isApiVersion": false,
@@ -4374,7 +4670,7 @@
],
"responses": [
{
- "$id": "424",
+ "$id": "442",
"statusCodes": [
204
],
@@ -4396,11 +4692,11 @@
},
"parameters": [
{
- "$id": "425",
+ "$id": "443",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "122"
+ "$ref": "190"
},
"location": "Body",
"isApiVersion": false,
@@ -4413,12 +4709,12 @@
"skipUrlEncoding": false
},
{
- "$id": "426",
+ "$id": "444",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "421"
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -4432,7 +4728,7 @@
}
],
"response": {
- "$id": "427"
+ "$id": "445"
},
"isOverride": false,
"generateConvenient": true,
@@ -4440,34 +4736,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withNot"
},
{
- "$id": "428",
+ "$id": "446",
"kind": "basic",
"name": "withOr",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "429",
+ "$id": "447",
"name": "withOr",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "430",
+ "$id": "448",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "431",
- "kind": "constant",
- "valueType": {
- "$id": "432",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -4480,11 +4766,11 @@
"skipUrlEncoding": false
},
{
- "$id": "433",
+ "$id": "449",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "127"
+ "$ref": "195"
},
"location": "Body",
"isApiVersion": false,
@@ -4499,7 +4785,7 @@
],
"responses": [
{
- "$id": "434",
+ "$id": "450",
"statusCodes": [
204
],
@@ -4521,11 +4807,11 @@
},
"parameters": [
{
- "$id": "435",
+ "$id": "451",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "127"
+ "$ref": "195"
},
"location": "Body",
"isApiVersion": false,
@@ -4538,12 +4824,12 @@
"skipUrlEncoding": false
},
{
- "$id": "436",
+ "$id": "452",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "431"
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -4557,7 +4843,7 @@
}
],
"response": {
- "$id": "437"
+ "$id": "453"
},
"isOverride": false,
"generateConvenient": true,
@@ -4565,34 +4851,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withOr"
},
{
- "$id": "438",
+ "$id": "454",
"kind": "basic",
"name": "withPass",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "439",
+ "$id": "455",
"name": "withPass",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "440",
+ "$id": "456",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "441",
- "kind": "constant",
- "valueType": {
- "$id": "442",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -4605,11 +4881,11 @@
"skipUrlEncoding": false
},
{
- "$id": "443",
+ "$id": "457",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "132"
+ "$ref": "200"
},
"location": "Body",
"isApiVersion": false,
@@ -4624,7 +4900,7 @@
],
"responses": [
{
- "$id": "444",
+ "$id": "458",
"statusCodes": [
204
],
@@ -4646,11 +4922,11 @@
},
"parameters": [
{
- "$id": "445",
+ "$id": "459",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "132"
+ "$ref": "200"
},
"location": "Body",
"isApiVersion": false,
@@ -4663,12 +4939,12 @@
"skipUrlEncoding": false
},
{
- "$id": "446",
+ "$id": "460",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "441"
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -4682,7 +4958,7 @@
}
],
"response": {
- "$id": "447"
+ "$id": "461"
},
"isOverride": false,
"generateConvenient": true,
@@ -4690,34 +4966,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withPass"
},
{
- "$id": "448",
+ "$id": "462",
"kind": "basic",
"name": "withRaise",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "449",
+ "$id": "463",
"name": "withRaise",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "450",
+ "$id": "464",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "451",
- "kind": "constant",
- "valueType": {
- "$id": "452",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -4730,11 +4996,11 @@
"skipUrlEncoding": false
},
{
- "$id": "453",
+ "$id": "465",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "137"
+ "$ref": "205"
},
"location": "Body",
"isApiVersion": false,
@@ -4749,7 +5015,7 @@
],
"responses": [
{
- "$id": "454",
+ "$id": "466",
"statusCodes": [
204
],
@@ -4771,11 +5037,11 @@
},
"parameters": [
{
- "$id": "455",
+ "$id": "467",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "137"
+ "$ref": "205"
},
"location": "Body",
"isApiVersion": false,
@@ -4788,12 +5054,12 @@
"skipUrlEncoding": false
},
{
- "$id": "456",
+ "$id": "468",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "451"
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -4807,7 +5073,7 @@
}
],
"response": {
- "$id": "457"
+ "$id": "469"
},
"isOverride": false,
"generateConvenient": true,
@@ -4815,34 +5081,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withRaise"
},
{
- "$id": "458",
+ "$id": "470",
"kind": "basic",
"name": "withReturn",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "459",
+ "$id": "471",
"name": "withReturn",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "460",
+ "$id": "472",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "461",
- "kind": "constant",
- "valueType": {
- "$id": "462",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -4855,11 +5111,11 @@
"skipUrlEncoding": false
},
{
- "$id": "463",
+ "$id": "473",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "142"
+ "$ref": "210"
},
"location": "Body",
"isApiVersion": false,
@@ -4874,7 +5130,7 @@
],
"responses": [
{
- "$id": "464",
+ "$id": "474",
"statusCodes": [
204
],
@@ -4896,11 +5152,11 @@
},
"parameters": [
{
- "$id": "465",
+ "$id": "475",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "142"
+ "$ref": "210"
},
"location": "Body",
"isApiVersion": false,
@@ -4913,12 +5169,12 @@
"skipUrlEncoding": false
},
{
- "$id": "466",
+ "$id": "476",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "461"
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -4932,7 +5188,7 @@
}
],
"response": {
- "$id": "467"
+ "$id": "477"
},
"isOverride": false,
"generateConvenient": true,
@@ -4940,34 +5196,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withReturn"
},
{
- "$id": "468",
+ "$id": "478",
"kind": "basic",
"name": "withTry",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "469",
+ "$id": "479",
"name": "withTry",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "470",
+ "$id": "480",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "471",
- "kind": "constant",
- "valueType": {
- "$id": "472",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -4980,11 +5226,11 @@
"skipUrlEncoding": false
},
{
- "$id": "473",
+ "$id": "481",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "147"
+ "$ref": "215"
},
"location": "Body",
"isApiVersion": false,
@@ -4999,7 +5245,7 @@
],
"responses": [
{
- "$id": "474",
+ "$id": "482",
"statusCodes": [
204
],
@@ -5021,11 +5267,11 @@
},
"parameters": [
{
- "$id": "475",
+ "$id": "483",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "147"
+ "$ref": "215"
},
"location": "Body",
"isApiVersion": false,
@@ -5038,12 +5284,12 @@
"skipUrlEncoding": false
},
{
- "$id": "476",
+ "$id": "484",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "471"
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -5057,7 +5303,7 @@
}
],
"response": {
- "$id": "477"
+ "$id": "485"
},
"isOverride": false,
"generateConvenient": true,
@@ -5065,34 +5311,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withTry"
},
{
- "$id": "478",
+ "$id": "486",
"kind": "basic",
"name": "withWhile",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "479",
+ "$id": "487",
"name": "withWhile",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "480",
+ "$id": "488",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "481",
- "kind": "constant",
- "valueType": {
- "$id": "482",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -5105,11 +5341,11 @@
"skipUrlEncoding": false
},
{
- "$id": "483",
+ "$id": "489",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "152"
+ "$ref": "220"
},
"location": "Body",
"isApiVersion": false,
@@ -5124,7 +5360,7 @@
],
"responses": [
{
- "$id": "484",
+ "$id": "490",
"statusCodes": [
204
],
@@ -5146,11 +5382,11 @@
},
"parameters": [
{
- "$id": "485",
+ "$id": "491",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "152"
+ "$ref": "220"
},
"location": "Body",
"isApiVersion": false,
@@ -5163,12 +5399,12 @@
"skipUrlEncoding": false
},
{
- "$id": "486",
+ "$id": "492",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "481"
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -5182,7 +5418,7 @@
}
],
"response": {
- "$id": "487"
+ "$id": "493"
},
"isOverride": false,
"generateConvenient": true,
@@ -5190,34 +5426,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withWhile"
},
{
- "$id": "488",
+ "$id": "494",
"kind": "basic",
"name": "withWith",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "489",
+ "$id": "495",
"name": "withWith",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "490",
+ "$id": "496",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "491",
- "kind": "constant",
- "valueType": {
- "$id": "492",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -5230,11 +5456,11 @@
"skipUrlEncoding": false
},
{
- "$id": "493",
+ "$id": "497",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "157"
+ "$ref": "225"
},
"location": "Body",
"isApiVersion": false,
@@ -5249,7 +5475,7 @@
],
"responses": [
{
- "$id": "494",
+ "$id": "498",
"statusCodes": [
204
],
@@ -5271,11 +5497,11 @@
},
"parameters": [
{
- "$id": "495",
+ "$id": "499",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "157"
+ "$ref": "225"
},
"location": "Body",
"isApiVersion": false,
@@ -5288,12 +5514,12 @@
"skipUrlEncoding": false
},
{
- "$id": "496",
+ "$id": "500",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "491"
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -5307,7 +5533,7 @@
}
],
"response": {
- "$id": "497"
+ "$id": "501"
},
"isOverride": false,
"generateConvenient": true,
@@ -5315,34 +5541,24 @@
"crossLanguageDefinitionId": "SpecialWords.Models.withWith"
},
{
- "$id": "498",
+ "$id": "502",
"kind": "basic",
"name": "withYield",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "499",
+ "$id": "503",
"name": "withYield",
"resourceName": "Models",
"accessibility": "public",
"parameters": [
{
- "$id": "500",
+ "$id": "504",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "501",
- "kind": "constant",
- "valueType": {
- "$id": "502",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -5355,11 +5571,11 @@
"skipUrlEncoding": false
},
{
- "$id": "503",
+ "$id": "505",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "162"
+ "$ref": "230"
},
"location": "Body",
"isApiVersion": false,
@@ -5374,7 +5590,7 @@
],
"responses": [
{
- "$id": "504",
+ "$id": "506",
"statusCodes": [
204
],
@@ -5396,11 +5612,11 @@
},
"parameters": [
{
- "$id": "505",
+ "$id": "507",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "162"
+ "$ref": "230"
},
"location": "Body",
"isApiVersion": false,
@@ -5413,12 +5629,12 @@
"skipUrlEncoding": false
},
{
- "$id": "506",
+ "$id": "508",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "501"
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -5432,7 +5648,7 @@
}
],
"response": {
- "$id": "507"
+ "$id": "509"
},
"isOverride": false,
"generateConvenient": true,
@@ -5442,12 +5658,12 @@
],
"parameters": [
{
- "$id": "508",
+ "$id": "510",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "509",
+ "$id": "511",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5461,9 +5677,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "510",
+ "$id": "512",
"type": {
- "$id": "511",
+ "$id": "513",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5476,45 +5692,35 @@
"crossLanguageDefinitionId": "SpecialWords.Models",
"apiVersions": [],
"parent": {
- "$ref": "172"
+ "$ref": "240"
}
},
{
- "$id": "512",
+ "$id": "514",
"kind": "client",
"name": "ModelProperties",
"namespace": "SpecialWords.ModelProperties",
"doc": "Verify model names",
"methods": [
{
- "$id": "513",
+ "$id": "515",
"kind": "basic",
"name": "sameAsModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "514",
+ "$id": "516",
"name": "sameAsModel",
"resourceName": "ModelProperties",
"accessibility": "public",
"parameters": [
{
- "$id": "515",
+ "$id": "517",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "516",
- "kind": "constant",
- "valueType": {
- "$id": "517",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -5531,7 +5737,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "167"
+ "$ref": "235"
},
"location": "Body",
"isApiVersion": false,
@@ -5572,7 +5778,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "167"
+ "$ref": "235"
},
"location": "Body",
"isApiVersion": false,
@@ -5590,7 +5796,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "516"
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -5648,7 +5854,7 @@
"crossLanguageDefinitionId": "SpecialWords.ModelProperties",
"apiVersions": [],
"parent": {
- "$ref": "172"
+ "$ref": "240"
}
},
{
@@ -7015,7 +7221,7 @@
"crossLanguageDefinitionId": "SpecialWords.Operations",
"apiVersions": [],
"parent": {
- "$ref": "172"
+ "$ref": "240"
}
},
{
@@ -9918,7 +10124,7 @@
"crossLanguageDefinitionId": "SpecialWords.Parameters",
"apiVersions": [],
"parent": {
- "$ref": "172"
+ "$ref": "240"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfo.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfo.Serialization.cs
deleted file mode 100644
index 10c485d7f757..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfo.Serialization.cs
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ClientModel.Primitives;
-using System.Text.Json;
-using Azure;
-using Azure.Core;
-
-namespace TypeSpec.Http.Streams
-{
- public partial class JsonlStreamInfo : IJsonModel
- {
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
-
- protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) => throw null;
-
- JsonlStreamInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
-
- protected virtual JsonlStreamInfo JsonModelCreateCore(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => throw null;
-
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => throw null;
-
- protected virtual BinaryData PersistableModelWriteCore(ModelReaderWriterOptions options) => throw null;
-
- JsonlStreamInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => throw null;
-
- protected virtual JsonlStreamInfo PersistableModelCreateCore(BinaryData data, ModelReaderWriterOptions options) => throw null;
-
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => throw null;
-
- /// The to serialize into .
- public static implicit operator RequestContent(JsonlStreamInfo jsonlStreamInfo) => throw null;
-
- public static explicit operator JsonlStreamInfo(Response result) => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfo.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfo.cs
index fc0b5bd0eed1..ff7c2f07f5a3 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfo.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfo.cs
@@ -9,6 +9,6 @@ namespace TypeSpec.Http.Streams
{
public partial class JsonlStreamInfo
{
- public JsonlStreamInfoContentType ContentType => throw null;
+ public string ContentType => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfoContentType.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfoContentType.cs
deleted file mode 100644
index b977cc4aa41d..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/Models/JsonlStreamInfoContentType.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace TypeSpec.Http.Streams
-{
- public readonly partial struct JsonlStreamInfoContentType : IEquatable
- {
- public JsonlStreamInfoContentType(string value) => throw null;
-
- public static JsonlStreamInfoContentType ApplicationJsonl => throw null;
-
- public static bool operator ==(JsonlStreamInfoContentType left, JsonlStreamInfoContentType right) => throw null;
-
- public static bool operator !=(JsonlStreamInfoContentType left, JsonlStreamInfoContentType right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator JsonlStreamInfoContentType(string value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(JsonlStreamInfoContentType other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/StreamingJsonlModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/StreamingJsonlModelFactory.cs
index 5134f3a8dd61..fc0cb0b04783 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/StreamingJsonlModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Generated/StreamingJsonlModelFactory.cs
@@ -11,6 +11,6 @@ namespace Streaming.Jsonl
{
public static partial class StreamingJsonlModelFactory
{
- public static JsonlStreamInfo JsonlStreamInfo(JsonlStreamInfoContentType contentType = default) => throw null;
+ public static JsonlStreamInfo JsonlStreamInfo(string contentType = default) => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Streaming.Jsonl.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Streaming.Jsonl.csproj
index 3a5dad3ca1b6..89ee8566535c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Streaming.Jsonl.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/src/Streaming.Jsonl.csproj
@@ -17,6 +17,7 @@
+
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/tspCodeModel.json b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/tspCodeModel.json
index e369aab31b33..ab7530e2cf28 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/tspCodeModel.json
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/streaming/jsonl/tspCodeModel.json
@@ -2,11 +2,14 @@
"$id": "1",
"name": "Streaming.Jsonl",
"apiVersions": [],
- "enums": [
+ "enums": [],
+ "constants": [
{
"$id": "2",
- "kind": "enum",
- "name": "JsonlStreamInfo_content-type",
+ "kind": "constant",
+ "name": "SendRequestContentType",
+ "namespace": "",
+ "usage": "None",
"valueType": {
"$id": "3",
"kind": "string",
@@ -14,33 +17,61 @@
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "4",
- "kind": "enumvalue",
- "name": "application/jsonl",
- "value": "application/jsonl",
- "doc": "application/jsonl",
- "valueType": {
- "$ref": "3"
- },
- "enumType": {
- "$ref": "2"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
+ "value": "application/jsonl",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "JsonlStreamInfoContentType",
"namespace": "TypeSpec.Http.Streams",
- "doc": "The JsonlStreamInfo_content-type",
- "isFixed": false,
- "isFlags": false,
"usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/jsonl",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "receiveContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/jsonl",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "SendRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/jsonl",
"decorators": []
}
],
"models": [
{
- "$id": "5",
+ "$id": "10",
"kind": "model",
"name": "JsonlStreamInfo",
"namespace": "TypeSpec.Http.Streams",
@@ -50,32 +81,25 @@
"decorators": [],
"properties": [
{
- "$id": "6",
+ "$id": "11",
"kind": "header",
"name": "contentType",
"serializedName": "content-type",
"type": {
- "$id": "7",
- "kind": "constant",
- "valueType": {
- "$ref": "2"
- },
- "value": "application/jsonl",
- "decorators": []
+ "$ref": "4"
},
"optional": false,
"readOnly": false,
"decorators": [],
"crossLanguageDefinitionId": "TypeSpec.Http.Streams.JsonlStream.contentType",
- "discriminator": false,
- "flatten": false
+ "correspondingMethodParams": []
}
]
}
],
"clients": [
{
- "$id": "8",
+ "$id": "12",
"kind": "client",
"name": "JsonlClient",
"namespace": "Streaming.Jsonl",
@@ -83,12 +107,12 @@
"methods": [],
"parameters": [
{
- "$id": "9",
+ "$id": "13",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "10",
+ "$id": "14",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -102,9 +126,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "11",
+ "$id": "15",
"type": {
- "$id": "12",
+ "$id": "16",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -118,39 +142,29 @@
"apiVersions": [],
"children": [
{
- "$id": "13",
+ "$id": "17",
"kind": "client",
"name": "Basic",
"namespace": "Streaming.Jsonl.Basic",
"methods": [
{
- "$id": "14",
+ "$id": "18",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "15",
+ "$id": "19",
"name": "send",
"resourceName": "Basic",
"accessibility": "public",
"parameters": [
{
- "$id": "16",
+ "$id": "20",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "17",
- "kind": "constant",
- "valueType": {
- "$id": "18",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/jsonl",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -163,11 +177,11 @@
"skipUrlEncoding": false
},
{
- "$id": "19",
+ "$id": "21",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "20",
+ "$id": "22",
"kind": "bytes",
"name": "bytes",
"crossLanguageDefinitionId": "",
@@ -186,7 +200,7 @@
],
"responses": [
{
- "$id": "21",
+ "$id": "23",
"statusCodes": [
204
],
@@ -208,11 +222,11 @@
},
"parameters": [
{
- "$id": "22",
+ "$id": "24",
"name": "stream",
"nameInRequest": "stream",
"type": {
- "$ref": "5"
+ "$ref": "10"
},
"location": "",
"isApiVersion": false,
@@ -226,7 +240,7 @@
}
],
"response": {
- "$id": "23"
+ "$id": "25"
},
"isOverride": false,
"generateConvenient": true,
@@ -234,33 +248,23 @@
"crossLanguageDefinitionId": "Streaming.Jsonl.Basic.send"
},
{
- "$id": "24",
+ "$id": "26",
"kind": "basic",
"name": "receive",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "25",
+ "$id": "27",
"name": "receive",
"resourceName": "Basic",
"accessibility": "public",
"parameters": [
{
- "$id": "26",
+ "$id": "28",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "27",
- "kind": "constant",
- "valueType": {
- "$id": "28",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/jsonl",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -292,17 +296,7 @@
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "32",
- "kind": "constant",
- "valueType": {
- "$id": "33",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/jsonl",
- "decorators": []
+ "$ref": "8"
}
}
],
@@ -323,11 +317,11 @@
},
"parameters": [
{
- "$id": "34",
+ "$id": "32",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "27"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -341,7 +335,7 @@
}
],
"response": {
- "$id": "35",
+ "$id": "33",
"type": {
"$ref": "30"
}
@@ -354,12 +348,12 @@
],
"parameters": [
{
- "$id": "36",
+ "$id": "34",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "37",
+ "$id": "35",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -373,9 +367,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "38",
+ "$id": "36",
"type": {
- "$id": "39",
+ "$id": "37",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -388,7 +382,7 @@
"crossLanguageDefinitionId": "Streaming.Jsonl.Basic",
"apiVersions": [],
"parent": {
- "$ref": "8"
+ "$ref": "12"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/src/Type.Array.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/src/Type.Array.csproj
index 7279fbf892a0..7c2c5464ffcd 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/src/Type.Array.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/array/src/Type.Array.csproj
@@ -17,6 +17,7 @@
+
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 b47c8a36431e..00194c9bd37e 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
@@ -3,9 +3,459 @@
"name": "Type.Array",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "putContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "getContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "putContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "getContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "putContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "getContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "putContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "getContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "putContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "getContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "putContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "getContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "putContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "getContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "putContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "getContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "putContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "getContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "putContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "getContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "putContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "getContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "putContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "getContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "putContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "54",
+ "kind": "constant",
+ "name": "getContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "constant",
+ "name": "putContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "57",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "58",
"kind": "model",
"name": "InnerModel",
"namespace": "Type.Array",
@@ -15,13 +465,13 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "59",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Required string property",
"type": {
- "$id": "4",
+ "$id": "60",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -34,24 +484,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.InnerModel.property",
"serializationOptions": {
- "$id": "5",
+ "$id": "61",
"json": {
- "$id": "6",
+ "$id": "62",
"name": "property"
}
}
},
{
- "$id": "7",
+ "$id": "63",
"kind": "property",
"name": "children",
"serializedName": "children",
"type": {
- "$id": "8",
+ "$id": "64",
"kind": "array",
"name": "ArrayInnerModel",
"valueType": {
- "$ref": "2"
+ "$ref": "58"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -63,9 +513,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Array.InnerModel.children",
"serializationOptions": {
- "$id": "9",
+ "$id": "65",
"json": {
- "$id": "10",
+ "$id": "66",
"name": "children"
}
}
@@ -75,7 +525,7 @@
],
"clients": [
{
- "$id": "11",
+ "$id": "67",
"kind": "client",
"name": "ArrayClient",
"namespace": "Type.Array",
@@ -83,12 +533,12 @@
"methods": [],
"parameters": [
{
- "$id": "12",
+ "$id": "68",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "13",
+ "$id": "69",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -102,9 +552,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "14",
+ "$id": "70",
"type": {
- "$id": "15",
+ "$id": "71",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -118,40 +568,30 @@
"apiVersions": [],
"children": [
{
- "$id": "16",
+ "$id": "72",
"kind": "client",
"name": "Int32Value",
"namespace": "Type.Array",
"doc": "Array of int32 values",
"methods": [
{
- "$id": "17",
+ "$id": "73",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "18",
+ "$id": "74",
"name": "get",
"resourceName": "Int32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "19",
+ "$id": "75",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "20",
- "kind": "constant",
- "valueType": {
- "$id": "21",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -166,16 +606,16 @@
],
"responses": [
{
- "$id": "22",
+ "$id": "76",
"statusCodes": [
200
],
"bodyType": {
- "$id": "23",
+ "$id": "77",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "24",
+ "$id": "78",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -202,11 +642,11 @@
},
"parameters": [
{
- "$id": "25",
+ "$id": "79",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "20"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -220,9 +660,9 @@
}
],
"response": {
- "$id": "26",
+ "$id": "80",
"type": {
- "$ref": "23"
+ "$ref": "77"
}
},
"isOverride": false,
@@ -231,34 +671,24 @@
"crossLanguageDefinitionId": "Type.Array.Int32Value.get"
},
{
- "$id": "27",
+ "$id": "81",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "28",
+ "$id": "82",
"name": "put",
"resourceName": "Int32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "29",
+ "$id": "83",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "30",
- "kind": "constant",
- "valueType": {
- "$id": "31",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -271,15 +701,15 @@
"skipUrlEncoding": false
},
{
- "$id": "32",
+ "$id": "84",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "33",
+ "$id": "85",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "34",
+ "$id": "86",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -301,7 +731,7 @@
],
"responses": [
{
- "$id": "35",
+ "$id": "87",
"statusCodes": [
204
],
@@ -323,15 +753,15 @@
},
"parameters": [
{
- "$id": "36",
+ "$id": "88",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "37",
+ "$id": "89",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "38",
+ "$id": "90",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -351,12 +781,12 @@
"skipUrlEncoding": false
},
{
- "$id": "39",
+ "$id": "91",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "30"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -370,7 +800,7 @@
}
],
"response": {
- "$id": "40"
+ "$id": "92"
},
"isOverride": false,
"generateConvenient": true,
@@ -380,12 +810,12 @@
],
"parameters": [
{
- "$id": "41",
+ "$id": "93",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "42",
+ "$id": "94",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -399,9 +829,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "43",
+ "$id": "95",
"type": {
- "$id": "44",
+ "$id": "96",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -414,44 +844,34 @@
"crossLanguageDefinitionId": "Type.Array.Int32Value",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "45",
+ "$id": "97",
"kind": "client",
"name": "Int64Value",
"namespace": "Type.Array",
"doc": "Array of int64 values",
"methods": [
{
- "$id": "46",
+ "$id": "98",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "47",
+ "$id": "99",
"name": "get",
"resourceName": "Int64Value",
"accessibility": "public",
"parameters": [
{
- "$id": "48",
+ "$id": "100",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "49",
- "kind": "constant",
- "valueType": {
- "$id": "50",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -466,16 +886,16 @@
],
"responses": [
{
- "$id": "51",
+ "$id": "101",
"statusCodes": [
200
],
"bodyType": {
- "$id": "52",
+ "$id": "102",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "53",
+ "$id": "103",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -502,11 +922,11 @@
},
"parameters": [
{
- "$id": "54",
+ "$id": "104",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "49"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -520,9 +940,9 @@
}
],
"response": {
- "$id": "55",
+ "$id": "105",
"type": {
- "$ref": "52"
+ "$ref": "102"
}
},
"isOverride": false,
@@ -531,34 +951,24 @@
"crossLanguageDefinitionId": "Type.Array.Int64Value.get"
},
{
- "$id": "56",
+ "$id": "106",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "57",
+ "$id": "107",
"name": "put",
"resourceName": "Int64Value",
"accessibility": "public",
"parameters": [
{
- "$id": "58",
+ "$id": "108",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "59",
- "kind": "constant",
- "valueType": {
- "$id": "60",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -571,15 +981,15 @@
"skipUrlEncoding": false
},
{
- "$id": "61",
+ "$id": "109",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "62",
+ "$id": "110",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "63",
+ "$id": "111",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -601,7 +1011,7 @@
],
"responses": [
{
- "$id": "64",
+ "$id": "112",
"statusCodes": [
204
],
@@ -623,15 +1033,15 @@
},
"parameters": [
{
- "$id": "65",
+ "$id": "113",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "66",
+ "$id": "114",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "67",
+ "$id": "115",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -651,12 +1061,12 @@
"skipUrlEncoding": false
},
{
- "$id": "68",
+ "$id": "116",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "59"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -670,7 +1080,7 @@
}
],
"response": {
- "$id": "69"
+ "$id": "117"
},
"isOverride": false,
"generateConvenient": true,
@@ -680,12 +1090,12 @@
],
"parameters": [
{
- "$id": "70",
+ "$id": "118",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "71",
+ "$id": "119",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -699,9 +1109,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "72",
+ "$id": "120",
"type": {
- "$id": "73",
+ "$id": "121",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -714,44 +1124,34 @@
"crossLanguageDefinitionId": "Type.Array.Int64Value",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "74",
+ "$id": "122",
"kind": "client",
"name": "BooleanValue",
"namespace": "Type.Array",
"doc": "Array of boolean values",
"methods": [
{
- "$id": "75",
+ "$id": "123",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "76",
+ "$id": "124",
"name": "get",
"resourceName": "BooleanValue",
"accessibility": "public",
"parameters": [
{
- "$id": "77",
+ "$id": "125",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "78",
- "kind": "constant",
- "valueType": {
- "$id": "79",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -766,16 +1166,16 @@
],
"responses": [
{
- "$id": "80",
+ "$id": "126",
"statusCodes": [
200
],
"bodyType": {
- "$id": "81",
+ "$id": "127",
"kind": "array",
"name": "Array2",
"valueType": {
- "$id": "82",
+ "$id": "128",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -802,11 +1202,11 @@
},
"parameters": [
{
- "$id": "83",
+ "$id": "129",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "78"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -820,9 +1220,9 @@
}
],
"response": {
- "$id": "84",
+ "$id": "130",
"type": {
- "$ref": "81"
+ "$ref": "127"
}
},
"isOverride": false,
@@ -831,34 +1231,24 @@
"crossLanguageDefinitionId": "Type.Array.BooleanValue.get"
},
{
- "$id": "85",
+ "$id": "131",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "86",
+ "$id": "132",
"name": "put",
"resourceName": "BooleanValue",
"accessibility": "public",
"parameters": [
{
- "$id": "87",
+ "$id": "133",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "88",
- "kind": "constant",
- "valueType": {
- "$id": "89",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -871,15 +1261,15 @@
"skipUrlEncoding": false
},
{
- "$id": "90",
+ "$id": "134",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "91",
+ "$id": "135",
"kind": "array",
"name": "Array2",
"valueType": {
- "$id": "92",
+ "$id": "136",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -901,7 +1291,7 @@
],
"responses": [
{
- "$id": "93",
+ "$id": "137",
"statusCodes": [
204
],
@@ -923,15 +1313,15 @@
},
"parameters": [
{
- "$id": "94",
+ "$id": "138",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "95",
+ "$id": "139",
"kind": "array",
"name": "Array2",
"valueType": {
- "$id": "96",
+ "$id": "140",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -951,12 +1341,12 @@
"skipUrlEncoding": false
},
{
- "$id": "97",
+ "$id": "141",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "88"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -970,7 +1360,7 @@
}
],
"response": {
- "$id": "98"
+ "$id": "142"
},
"isOverride": false,
"generateConvenient": true,
@@ -980,12 +1370,12 @@
],
"parameters": [
{
- "$id": "99",
+ "$id": "143",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "100",
+ "$id": "144",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -999,9 +1389,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "101",
+ "$id": "145",
"type": {
- "$id": "102",
+ "$id": "146",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1014,44 +1404,34 @@
"crossLanguageDefinitionId": "Type.Array.BooleanValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "103",
+ "$id": "147",
"kind": "client",
"name": "StringValue",
"namespace": "Type.Array",
"doc": "Array of string values",
"methods": [
{
- "$id": "104",
+ "$id": "148",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "105",
+ "$id": "149",
"name": "get",
"resourceName": "StringValue",
"accessibility": "public",
"parameters": [
{
- "$id": "106",
+ "$id": "150",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "107",
- "kind": "constant",
- "valueType": {
- "$id": "108",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1066,16 +1446,16 @@
],
"responses": [
{
- "$id": "109",
+ "$id": "151",
"statusCodes": [
200
],
"bodyType": {
- "$id": "110",
+ "$id": "152",
"kind": "array",
"name": "Array3",
"valueType": {
- "$id": "111",
+ "$id": "153",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1102,11 +1482,11 @@
},
"parameters": [
{
- "$id": "112",
+ "$id": "154",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "107"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1120,9 +1500,9 @@
}
],
"response": {
- "$id": "113",
+ "$id": "155",
"type": {
- "$ref": "110"
+ "$ref": "152"
}
},
"isOverride": false,
@@ -1131,34 +1511,24 @@
"crossLanguageDefinitionId": "Type.Array.StringValue.get"
},
{
- "$id": "114",
+ "$id": "156",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "115",
+ "$id": "157",
"name": "put",
"resourceName": "StringValue",
"accessibility": "public",
"parameters": [
{
- "$id": "116",
+ "$id": "158",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "117",
- "kind": "constant",
- "valueType": {
- "$id": "118",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1171,15 +1541,15 @@
"skipUrlEncoding": false
},
{
- "$id": "119",
+ "$id": "159",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "120",
+ "$id": "160",
"kind": "array",
"name": "Array3",
"valueType": {
- "$id": "121",
+ "$id": "161",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1201,7 +1571,7 @@
],
"responses": [
{
- "$id": "122",
+ "$id": "162",
"statusCodes": [
204
],
@@ -1223,15 +1593,15 @@
},
"parameters": [
{
- "$id": "123",
+ "$id": "163",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "124",
+ "$id": "164",
"kind": "array",
"name": "Array3",
"valueType": {
- "$id": "125",
+ "$id": "165",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1251,12 +1621,12 @@
"skipUrlEncoding": false
},
{
- "$id": "126",
+ "$id": "166",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "117"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1270,7 +1640,7 @@
}
],
"response": {
- "$id": "127"
+ "$id": "167"
},
"isOverride": false,
"generateConvenient": true,
@@ -1280,12 +1650,12 @@
],
"parameters": [
{
- "$id": "128",
+ "$id": "168",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "129",
+ "$id": "169",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1299,9 +1669,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "130",
+ "$id": "170",
"type": {
- "$id": "131",
+ "$id": "171",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1314,44 +1684,34 @@
"crossLanguageDefinitionId": "Type.Array.StringValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "132",
+ "$id": "172",
"kind": "client",
"name": "Float32Value",
"namespace": "Type.Array",
"doc": "Array of float values",
"methods": [
{
- "$id": "133",
+ "$id": "173",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "134",
+ "$id": "174",
"name": "get",
"resourceName": "Float32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "135",
+ "$id": "175",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "136",
- "kind": "constant",
- "valueType": {
- "$id": "137",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1366,16 +1726,16 @@
],
"responses": [
{
- "$id": "138",
+ "$id": "176",
"statusCodes": [
200
],
"bodyType": {
- "$id": "139",
+ "$id": "177",
"kind": "array",
"name": "Array4",
"valueType": {
- "$id": "140",
+ "$id": "178",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1402,11 +1762,11 @@
},
"parameters": [
{
- "$id": "141",
+ "$id": "179",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "136"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1420,9 +1780,9 @@
}
],
"response": {
- "$id": "142",
+ "$id": "180",
"type": {
- "$ref": "139"
+ "$ref": "177"
}
},
"isOverride": false,
@@ -1431,34 +1791,24 @@
"crossLanguageDefinitionId": "Type.Array.Float32Value.get"
},
{
- "$id": "143",
+ "$id": "181",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "144",
+ "$id": "182",
"name": "put",
"resourceName": "Float32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "145",
+ "$id": "183",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "146",
- "kind": "constant",
- "valueType": {
- "$id": "147",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1471,15 +1821,15 @@
"skipUrlEncoding": false
},
{
- "$id": "148",
+ "$id": "184",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "149",
+ "$id": "185",
"kind": "array",
"name": "Array4",
"valueType": {
- "$id": "150",
+ "$id": "186",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1501,7 +1851,7 @@
],
"responses": [
{
- "$id": "151",
+ "$id": "187",
"statusCodes": [
204
],
@@ -1523,15 +1873,15 @@
},
"parameters": [
{
- "$id": "152",
+ "$id": "188",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "153",
+ "$id": "189",
"kind": "array",
"name": "Array4",
"valueType": {
- "$id": "154",
+ "$id": "190",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1551,12 +1901,12 @@
"skipUrlEncoding": false
},
{
- "$id": "155",
+ "$id": "191",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "146"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1570,7 +1920,7 @@
}
],
"response": {
- "$id": "156"
+ "$id": "192"
},
"isOverride": false,
"generateConvenient": true,
@@ -1580,12 +1930,12 @@
],
"parameters": [
{
- "$id": "157",
+ "$id": "193",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "158",
+ "$id": "194",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1599,9 +1949,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "159",
+ "$id": "195",
"type": {
- "$id": "160",
+ "$id": "196",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1614,44 +1964,34 @@
"crossLanguageDefinitionId": "Type.Array.Float32Value",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "161",
+ "$id": "197",
"kind": "client",
"name": "DatetimeValue",
"namespace": "Type.Array",
"doc": "Array of datetime values",
"methods": [
{
- "$id": "162",
+ "$id": "198",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "163",
+ "$id": "199",
"name": "get",
"resourceName": "DatetimeValue",
"accessibility": "public",
"parameters": [
{
- "$id": "164",
+ "$id": "200",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "165",
- "kind": "constant",
- "valueType": {
- "$id": "166",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1666,21 +2006,21 @@
],
"responses": [
{
- "$id": "167",
+ "$id": "201",
"statusCodes": [
200
],
"bodyType": {
- "$id": "168",
+ "$id": "202",
"kind": "array",
"name": "Array5",
"valueType": {
- "$id": "169",
+ "$id": "203",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "170",
+ "$id": "204",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1710,11 +2050,11 @@
},
"parameters": [
{
- "$id": "171",
+ "$id": "205",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "165"
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1728,9 +2068,9 @@
}
],
"response": {
- "$id": "172",
+ "$id": "206",
"type": {
- "$ref": "168"
+ "$ref": "202"
}
},
"isOverride": false,
@@ -1739,34 +2079,24 @@
"crossLanguageDefinitionId": "Type.Array.DatetimeValue.get"
},
{
- "$id": "173",
+ "$id": "207",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "174",
+ "$id": "208",
"name": "put",
"resourceName": "DatetimeValue",
"accessibility": "public",
"parameters": [
{
- "$id": "175",
+ "$id": "209",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "176",
- "kind": "constant",
- "valueType": {
- "$id": "177",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1779,20 +2109,20 @@
"skipUrlEncoding": false
},
{
- "$id": "178",
+ "$id": "210",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "179",
+ "$id": "211",
"kind": "array",
"name": "Array5",
"valueType": {
- "$id": "180",
+ "$id": "212",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "181",
+ "$id": "213",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1817,7 +2147,7 @@
],
"responses": [
{
- "$id": "182",
+ "$id": "214",
"statusCodes": [
204
],
@@ -1839,20 +2169,20 @@
},
"parameters": [
{
- "$id": "183",
+ "$id": "215",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "184",
+ "$id": "216",
"kind": "array",
"name": "Array5",
"valueType": {
- "$id": "185",
+ "$id": "217",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "186",
+ "$id": "218",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1875,12 +2205,12 @@
"skipUrlEncoding": false
},
{
- "$id": "187",
+ "$id": "219",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "176"
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1894,7 +2224,7 @@
}
],
"response": {
- "$id": "188"
+ "$id": "220"
},
"isOverride": false,
"generateConvenient": true,
@@ -1904,12 +2234,12 @@
],
"parameters": [
{
- "$id": "189",
+ "$id": "221",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "190",
+ "$id": "222",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1923,9 +2253,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "191",
+ "$id": "223",
"type": {
- "$id": "192",
+ "$id": "224",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1938,44 +2268,34 @@
"crossLanguageDefinitionId": "Type.Array.DatetimeValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "193",
+ "$id": "225",
"kind": "client",
"name": "DurationValue",
"namespace": "Type.Array",
"doc": "Array of duration values",
"methods": [
{
- "$id": "194",
+ "$id": "226",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "195",
+ "$id": "227",
"name": "get",
"resourceName": "DurationValue",
"accessibility": "public",
"parameters": [
{
- "$id": "196",
+ "$id": "228",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "197",
- "kind": "constant",
- "valueType": {
- "$id": "198",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -1990,21 +2310,21 @@
],
"responses": [
{
- "$id": "199",
+ "$id": "229",
"statusCodes": [
200
],
"bodyType": {
- "$id": "200",
+ "$id": "230",
"kind": "array",
"name": "Array6",
"valueType": {
- "$id": "201",
+ "$id": "231",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "202",
+ "$id": "232",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2034,11 +2354,11 @@
},
"parameters": [
{
- "$id": "203",
+ "$id": "233",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "197"
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -2052,9 +2372,9 @@
}
],
"response": {
- "$id": "204",
+ "$id": "234",
"type": {
- "$ref": "200"
+ "$ref": "230"
}
},
"isOverride": false,
@@ -2063,34 +2383,24 @@
"crossLanguageDefinitionId": "Type.Array.DurationValue.get"
},
{
- "$id": "205",
+ "$id": "235",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "206",
+ "$id": "236",
"name": "put",
"resourceName": "DurationValue",
"accessibility": "public",
"parameters": [
{
- "$id": "207",
+ "$id": "237",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "208",
- "kind": "constant",
- "valueType": {
- "$id": "209",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -2103,20 +2413,20 @@
"skipUrlEncoding": false
},
{
- "$id": "210",
+ "$id": "238",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "211",
+ "$id": "239",
"kind": "array",
"name": "Array6",
"valueType": {
- "$id": "212",
+ "$id": "240",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "213",
+ "$id": "241",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2141,7 +2451,7 @@
],
"responses": [
{
- "$id": "214",
+ "$id": "242",
"statusCodes": [
204
],
@@ -2163,20 +2473,20 @@
},
"parameters": [
{
- "$id": "215",
+ "$id": "243",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "216",
+ "$id": "244",
"kind": "array",
"name": "Array6",
"valueType": {
- "$id": "217",
+ "$id": "245",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "218",
+ "$id": "246",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2199,12 +2509,12 @@
"skipUrlEncoding": false
},
{
- "$id": "219",
+ "$id": "247",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "208"
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -2218,7 +2528,7 @@
}
],
"response": {
- "$id": "220"
+ "$id": "248"
},
"isOverride": false,
"generateConvenient": true,
@@ -2228,12 +2538,12 @@
],
"parameters": [
{
- "$id": "221",
+ "$id": "249",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "222",
+ "$id": "250",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2247,9 +2557,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "223",
+ "$id": "251",
"type": {
- "$id": "224",
+ "$id": "252",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2262,44 +2572,34 @@
"crossLanguageDefinitionId": "Type.Array.DurationValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "225",
+ "$id": "253",
"kind": "client",
"name": "UnknownValue",
"namespace": "Type.Array",
"doc": "Array of unknown values",
"methods": [
{
- "$id": "226",
+ "$id": "254",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "227",
+ "$id": "255",
"name": "get",
"resourceName": "UnknownValue",
"accessibility": "public",
"parameters": [
{
- "$id": "228",
+ "$id": "256",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "229",
- "kind": "constant",
- "valueType": {
- "$id": "230",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -2314,16 +2614,16 @@
],
"responses": [
{
- "$id": "231",
+ "$id": "257",
"statusCodes": [
200
],
"bodyType": {
- "$id": "232",
+ "$id": "258",
"kind": "array",
"name": "Array7",
"valueType": {
- "$id": "233",
+ "$id": "259",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -2350,11 +2650,11 @@
},
"parameters": [
{
- "$id": "234",
+ "$id": "260",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "229"
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -2368,9 +2668,9 @@
}
],
"response": {
- "$id": "235",
+ "$id": "261",
"type": {
- "$ref": "232"
+ "$ref": "258"
}
},
"isOverride": false,
@@ -2379,34 +2679,24 @@
"crossLanguageDefinitionId": "Type.Array.UnknownValue.get"
},
{
- "$id": "236",
+ "$id": "262",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "237",
+ "$id": "263",
"name": "put",
"resourceName": "UnknownValue",
"accessibility": "public",
"parameters": [
{
- "$id": "238",
+ "$id": "264",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "239",
- "kind": "constant",
- "valueType": {
- "$id": "240",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -2419,15 +2709,15 @@
"skipUrlEncoding": false
},
{
- "$id": "241",
+ "$id": "265",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "242",
+ "$id": "266",
"kind": "array",
"name": "Array7",
"valueType": {
- "$id": "243",
+ "$id": "267",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -2449,7 +2739,7 @@
],
"responses": [
{
- "$id": "244",
+ "$id": "268",
"statusCodes": [
204
],
@@ -2471,15 +2761,15 @@
},
"parameters": [
{
- "$id": "245",
+ "$id": "269",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "246",
+ "$id": "270",
"kind": "array",
"name": "Array7",
"valueType": {
- "$id": "247",
+ "$id": "271",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -2499,12 +2789,12 @@
"skipUrlEncoding": false
},
{
- "$id": "248",
+ "$id": "272",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "239"
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -2518,7 +2808,7 @@
}
],
"response": {
- "$id": "249"
+ "$id": "273"
},
"isOverride": false,
"generateConvenient": true,
@@ -2528,12 +2818,12 @@
],
"parameters": [
{
- "$id": "250",
+ "$id": "274",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "251",
+ "$id": "275",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2547,9 +2837,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "252",
+ "$id": "276",
"type": {
- "$id": "253",
+ "$id": "277",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2562,44 +2852,34 @@
"crossLanguageDefinitionId": "Type.Array.UnknownValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "254",
+ "$id": "278",
"kind": "client",
"name": "ModelValue",
"namespace": "Type.Array",
"doc": "Array of model values",
"methods": [
{
- "$id": "255",
+ "$id": "279",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "256",
+ "$id": "280",
"name": "get",
"resourceName": "ModelValue",
"accessibility": "public",
"parameters": [
{
- "$id": "257",
+ "$id": "281",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "258",
- "kind": "constant",
- "valueType": {
- "$id": "259",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -2614,16 +2894,16 @@
],
"responses": [
{
- "$id": "260",
+ "$id": "282",
"statusCodes": [
200
],
"bodyType": {
- "$id": "261",
+ "$id": "283",
"kind": "array",
"name": "ArrayInnerModel",
"valueType": {
- "$ref": "2"
+ "$ref": "58"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -2646,11 +2926,11 @@
},
"parameters": [
{
- "$id": "262",
+ "$id": "284",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "258"
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -2664,9 +2944,9 @@
}
],
"response": {
- "$id": "263",
+ "$id": "285",
"type": {
- "$ref": "261"
+ "$ref": "283"
}
},
"isOverride": false,
@@ -2675,34 +2955,24 @@
"crossLanguageDefinitionId": "Type.Array.ModelValue.get"
},
{
- "$id": "264",
+ "$id": "286",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "265",
+ "$id": "287",
"name": "put",
"resourceName": "ModelValue",
"accessibility": "public",
"parameters": [
{
- "$id": "266",
+ "$id": "288",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "267",
- "kind": "constant",
- "valueType": {
- "$id": "268",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -2715,15 +2985,15 @@
"skipUrlEncoding": false
},
{
- "$id": "269",
+ "$id": "289",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "270",
+ "$id": "290",
"kind": "array",
"name": "ArrayInnerModel",
"valueType": {
- "$ref": "2"
+ "$ref": "58"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -2741,7 +3011,7 @@
],
"responses": [
{
- "$id": "271",
+ "$id": "291",
"statusCodes": [
204
],
@@ -2763,15 +3033,15 @@
},
"parameters": [
{
- "$id": "272",
+ "$id": "292",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "273",
+ "$id": "293",
"kind": "array",
"name": "ArrayInnerModel",
"valueType": {
- "$ref": "2"
+ "$ref": "58"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -2787,12 +3057,12 @@
"skipUrlEncoding": false
},
{
- "$id": "274",
+ "$id": "294",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "267"
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -2806,7 +3076,7 @@
}
],
"response": {
- "$id": "275"
+ "$id": "295"
},
"isOverride": false,
"generateConvenient": true,
@@ -2816,12 +3086,12 @@
],
"parameters": [
{
- "$id": "276",
+ "$id": "296",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "277",
+ "$id": "297",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2835,9 +3105,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "278",
+ "$id": "298",
"type": {
- "$id": "279",
+ "$id": "299",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2850,44 +3120,34 @@
"crossLanguageDefinitionId": "Type.Array.ModelValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "280",
+ "$id": "300",
"kind": "client",
"name": "NullableFloatValue",
"namespace": "Type.Array",
"doc": "Array of nullable float values",
"methods": [
{
- "$id": "281",
+ "$id": "301",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "282",
+ "$id": "302",
"name": "get",
"resourceName": "NullableFloatValue",
"accessibility": "public",
"parameters": [
{
- "$id": "283",
+ "$id": "303",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "284",
- "kind": "constant",
- "valueType": {
- "$id": "285",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -2902,19 +3162,19 @@
],
"responses": [
{
- "$id": "286",
+ "$id": "304",
"statusCodes": [
200
],
"bodyType": {
- "$id": "287",
+ "$id": "305",
"kind": "array",
"name": "Array8",
"valueType": {
- "$id": "288",
+ "$id": "306",
"kind": "nullable",
"type": {
- "$id": "289",
+ "$id": "307",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -2943,11 +3203,11 @@
},
"parameters": [
{
- "$id": "290",
+ "$id": "308",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "284"
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -2961,9 +3221,9 @@
}
],
"response": {
- "$id": "291",
+ "$id": "309",
"type": {
- "$ref": "287"
+ "$ref": "305"
}
},
"isOverride": false,
@@ -2972,34 +3232,24 @@
"crossLanguageDefinitionId": "Type.Array.NullableFloatValue.get"
},
{
- "$id": "292",
+ "$id": "310",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "293",
+ "$id": "311",
"name": "put",
"resourceName": "NullableFloatValue",
"accessibility": "public",
"parameters": [
{
- "$id": "294",
+ "$id": "312",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "295",
- "kind": "constant",
- "valueType": {
- "$id": "296",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -3012,15 +3262,15 @@
"skipUrlEncoding": false
},
{
- "$id": "297",
+ "$id": "313",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "298",
+ "$id": "314",
"kind": "array",
"name": "Array8",
"valueType": {
- "$ref": "288"
+ "$ref": "306"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3038,7 +3288,7 @@
],
"responses": [
{
- "$id": "299",
+ "$id": "315",
"statusCodes": [
204
],
@@ -3060,15 +3310,15 @@
},
"parameters": [
{
- "$id": "300",
+ "$id": "316",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "301",
+ "$id": "317",
"kind": "array",
"name": "Array8",
"valueType": {
- "$ref": "288"
+ "$ref": "306"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3084,12 +3334,12 @@
"skipUrlEncoding": false
},
{
- "$id": "302",
+ "$id": "318",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "295"
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -3103,7 +3353,7 @@
}
],
"response": {
- "$id": "303"
+ "$id": "319"
},
"isOverride": false,
"generateConvenient": true,
@@ -3113,12 +3363,12 @@
],
"parameters": [
{
- "$id": "304",
+ "$id": "320",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "305",
+ "$id": "321",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3132,9 +3382,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "306",
+ "$id": "322",
"type": {
- "$id": "307",
+ "$id": "323",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3147,44 +3397,34 @@
"crossLanguageDefinitionId": "Type.Array.NullableFloatValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "308",
+ "$id": "324",
"kind": "client",
"name": "NullableInt32Value",
"namespace": "Type.Array",
"doc": "Array of nullable int32 values",
"methods": [
{
- "$id": "309",
+ "$id": "325",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "310",
+ "$id": "326",
"name": "get",
"resourceName": "NullableInt32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "311",
+ "$id": "327",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "312",
- "kind": "constant",
- "valueType": {
- "$id": "313",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -3199,19 +3439,19 @@
],
"responses": [
{
- "$id": "314",
+ "$id": "328",
"statusCodes": [
200
],
"bodyType": {
- "$id": "315",
+ "$id": "329",
"kind": "array",
"name": "Array9",
"valueType": {
- "$id": "316",
+ "$id": "330",
"kind": "nullable",
"type": {
- "$id": "317",
+ "$id": "331",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -3240,11 +3480,11 @@
},
"parameters": [
{
- "$id": "318",
+ "$id": "332",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "312"
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -3258,9 +3498,9 @@
}
],
"response": {
- "$id": "319",
+ "$id": "333",
"type": {
- "$ref": "315"
+ "$ref": "329"
}
},
"isOverride": false,
@@ -3269,34 +3509,24 @@
"crossLanguageDefinitionId": "Type.Array.NullableInt32Value.get"
},
{
- "$id": "320",
+ "$id": "334",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "321",
+ "$id": "335",
"name": "put",
"resourceName": "NullableInt32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "322",
+ "$id": "336",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "323",
- "kind": "constant",
- "valueType": {
- "$id": "324",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -3309,15 +3539,15 @@
"skipUrlEncoding": false
},
{
- "$id": "325",
+ "$id": "337",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "326",
+ "$id": "338",
"kind": "array",
"name": "Array9",
"valueType": {
- "$ref": "316"
+ "$ref": "330"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3335,7 +3565,7 @@
],
"responses": [
{
- "$id": "327",
+ "$id": "339",
"statusCodes": [
204
],
@@ -3357,15 +3587,15 @@
},
"parameters": [
{
- "$id": "328",
+ "$id": "340",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "329",
+ "$id": "341",
"kind": "array",
"name": "Array9",
"valueType": {
- "$ref": "316"
+ "$ref": "330"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3381,12 +3611,12 @@
"skipUrlEncoding": false
},
{
- "$id": "330",
+ "$id": "342",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "323"
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -3400,7 +3630,7 @@
}
],
"response": {
- "$id": "331"
+ "$id": "343"
},
"isOverride": false,
"generateConvenient": true,
@@ -3410,12 +3640,12 @@
],
"parameters": [
{
- "$id": "332",
+ "$id": "344",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "333",
+ "$id": "345",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3429,9 +3659,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "334",
+ "$id": "346",
"type": {
- "$id": "335",
+ "$id": "347",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3444,44 +3674,34 @@
"crossLanguageDefinitionId": "Type.Array.NullableInt32Value",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "336",
+ "$id": "348",
"kind": "client",
"name": "NullableBooleanValue",
"namespace": "Type.Array",
"doc": "Array of nullable boolean values",
"methods": [
{
- "$id": "337",
+ "$id": "349",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "338",
+ "$id": "350",
"name": "get",
"resourceName": "NullableBooleanValue",
"accessibility": "public",
"parameters": [
{
- "$id": "339",
+ "$id": "351",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "340",
- "kind": "constant",
- "valueType": {
- "$id": "341",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -3496,19 +3716,19 @@
],
"responses": [
{
- "$id": "342",
+ "$id": "352",
"statusCodes": [
200
],
"bodyType": {
- "$id": "343",
+ "$id": "353",
"kind": "array",
"name": "Array10",
"valueType": {
- "$id": "344",
+ "$id": "354",
"kind": "nullable",
"type": {
- "$id": "345",
+ "$id": "355",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -3537,11 +3757,11 @@
},
"parameters": [
{
- "$id": "346",
+ "$id": "356",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "340"
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -3555,9 +3775,9 @@
}
],
"response": {
- "$id": "347",
+ "$id": "357",
"type": {
- "$ref": "343"
+ "$ref": "353"
}
},
"isOverride": false,
@@ -3566,34 +3786,24 @@
"crossLanguageDefinitionId": "Type.Array.NullableBooleanValue.get"
},
{
- "$id": "348",
+ "$id": "358",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "349",
+ "$id": "359",
"name": "put",
"resourceName": "NullableBooleanValue",
"accessibility": "public",
"parameters": [
{
- "$id": "350",
+ "$id": "360",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "351",
- "kind": "constant",
- "valueType": {
- "$id": "352",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -3606,15 +3816,15 @@
"skipUrlEncoding": false
},
{
- "$id": "353",
+ "$id": "361",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "354",
+ "$id": "362",
"kind": "array",
"name": "Array10",
"valueType": {
- "$ref": "344"
+ "$ref": "354"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3632,7 +3842,7 @@
],
"responses": [
{
- "$id": "355",
+ "$id": "363",
"statusCodes": [
204
],
@@ -3654,15 +3864,15 @@
},
"parameters": [
{
- "$id": "356",
+ "$id": "364",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "357",
+ "$id": "365",
"kind": "array",
"name": "Array10",
"valueType": {
- "$ref": "344"
+ "$ref": "354"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3678,12 +3888,12 @@
"skipUrlEncoding": false
},
{
- "$id": "358",
+ "$id": "366",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "351"
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -3697,7 +3907,7 @@
}
],
"response": {
- "$id": "359"
+ "$id": "367"
},
"isOverride": false,
"generateConvenient": true,
@@ -3707,12 +3917,12 @@
],
"parameters": [
{
- "$id": "360",
+ "$id": "368",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "361",
+ "$id": "369",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3726,9 +3936,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "362",
+ "$id": "370",
"type": {
- "$id": "363",
+ "$id": "371",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3741,44 +3951,34 @@
"crossLanguageDefinitionId": "Type.Array.NullableBooleanValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "364",
+ "$id": "372",
"kind": "client",
"name": "NullableStringValue",
"namespace": "Type.Array",
"doc": "Array of nullable string values",
"methods": [
{
- "$id": "365",
+ "$id": "373",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "366",
+ "$id": "374",
"name": "get",
"resourceName": "NullableStringValue",
"accessibility": "public",
"parameters": [
{
- "$id": "367",
+ "$id": "375",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "368",
- "kind": "constant",
- "valueType": {
- "$id": "369",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -3793,19 +3993,19 @@
],
"responses": [
{
- "$id": "370",
+ "$id": "376",
"statusCodes": [
200
],
"bodyType": {
- "$id": "371",
+ "$id": "377",
"kind": "array",
"name": "Array11",
"valueType": {
- "$id": "372",
+ "$id": "378",
"kind": "nullable",
"type": {
- "$id": "373",
+ "$id": "379",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -3834,11 +4034,11 @@
},
"parameters": [
{
- "$id": "374",
+ "$id": "380",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "368"
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -3852,9 +4052,9 @@
}
],
"response": {
- "$id": "375",
+ "$id": "381",
"type": {
- "$ref": "371"
+ "$ref": "377"
}
},
"isOverride": false,
@@ -3863,34 +4063,24 @@
"crossLanguageDefinitionId": "Type.Array.NullableStringValue.get"
},
{
- "$id": "376",
+ "$id": "382",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "377",
+ "$id": "383",
"name": "put",
"resourceName": "NullableStringValue",
"accessibility": "public",
"parameters": [
{
- "$id": "378",
+ "$id": "384",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "379",
- "kind": "constant",
- "valueType": {
- "$id": "380",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -3903,15 +4093,15 @@
"skipUrlEncoding": false
},
{
- "$id": "381",
+ "$id": "385",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "382",
+ "$id": "386",
"kind": "array",
"name": "Array11",
"valueType": {
- "$ref": "372"
+ "$ref": "378"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3929,7 +4119,7 @@
],
"responses": [
{
- "$id": "383",
+ "$id": "387",
"statusCodes": [
204
],
@@ -3951,15 +4141,15 @@
},
"parameters": [
{
- "$id": "384",
+ "$id": "388",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "385",
+ "$id": "389",
"kind": "array",
"name": "Array11",
"valueType": {
- "$ref": "372"
+ "$ref": "378"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -3975,12 +4165,12 @@
"skipUrlEncoding": false
},
{
- "$id": "386",
+ "$id": "390",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "379"
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -3994,7 +4184,7 @@
}
],
"response": {
- "$id": "387"
+ "$id": "391"
},
"isOverride": false,
"generateConvenient": true,
@@ -4004,12 +4194,12 @@
],
"parameters": [
{
- "$id": "388",
+ "$id": "392",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "389",
+ "$id": "393",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4023,9 +4213,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "390",
+ "$id": "394",
"type": {
- "$id": "391",
+ "$id": "395",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4038,44 +4228,34 @@
"crossLanguageDefinitionId": "Type.Array.NullableStringValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
},
{
- "$id": "392",
+ "$id": "396",
"kind": "client",
"name": "NullableModelValue",
"namespace": "Type.Array",
"doc": "Array of nullable model values",
"methods": [
{
- "$id": "393",
+ "$id": "397",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "394",
+ "$id": "398",
"name": "get",
"resourceName": "NullableModelValue",
"accessibility": "public",
"parameters": [
{
- "$id": "395",
+ "$id": "399",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "396",
- "kind": "constant",
- "valueType": {
- "$id": "397",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -4090,19 +4270,19 @@
],
"responses": [
{
- "$id": "398",
+ "$id": "400",
"statusCodes": [
200
],
"bodyType": {
- "$id": "399",
+ "$id": "401",
"kind": "array",
"name": "Array12",
"valueType": {
- "$id": "400",
+ "$id": "402",
"kind": "nullable",
"type": {
- "$ref": "2"
+ "$ref": "58"
},
"namespace": ""
},
@@ -4127,11 +4307,11 @@
},
"parameters": [
{
- "$id": "401",
+ "$id": "403",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "396"
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -4145,9 +4325,9 @@
}
],
"response": {
- "$id": "402",
+ "$id": "404",
"type": {
- "$ref": "399"
+ "$ref": "401"
}
},
"isOverride": false,
@@ -4156,34 +4336,24 @@
"crossLanguageDefinitionId": "Type.Array.NullableModelValue.get"
},
{
- "$id": "403",
+ "$id": "405",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "404",
+ "$id": "406",
"name": "put",
"resourceName": "NullableModelValue",
"accessibility": "public",
"parameters": [
{
- "$id": "405",
+ "$id": "407",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "406",
- "kind": "constant",
- "valueType": {
- "$id": "407",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -4204,7 +4374,7 @@
"kind": "array",
"name": "Array12",
"valueType": {
- "$ref": "400"
+ "$ref": "402"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -4252,7 +4422,7 @@
"kind": "array",
"name": "Array12",
"valueType": {
- "$ref": "400"
+ "$ref": "402"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -4273,7 +4443,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "406"
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -4331,7 +4501,7 @@
"crossLanguageDefinitionId": "Type.Array.NullableModelValue",
"apiVersions": [],
"parent": {
- "$ref": "11"
+ "$ref": "67"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/src/Type.Dictionary.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/src/Type.Dictionary.csproj
index 108516b5908c..3e979d203920 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/src/Type.Dictionary.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/dictionary/src/Type.Dictionary.csproj
@@ -17,6 +17,7 @@
+
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 433b1c831b77..10de09189edf 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
@@ -3,9 +3,363 @@
"name": "Type.Dictionary",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "putContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "getContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "putContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "getContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "putContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "getContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "putContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "getContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "putContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "getContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "putContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "getContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "putContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "getContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "putContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "getContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "putContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "getContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "putContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "getContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "putContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "46",
"kind": "model",
"name": "InnerModel",
"namespace": "Type.Dictionary",
@@ -15,13 +369,13 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "47",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Required string property",
"type": {
- "$id": "4",
+ "$id": "48",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -34,30 +388,30 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.InnerModel.property",
"serializationOptions": {
- "$id": "5",
+ "$id": "49",
"json": {
- "$id": "6",
+ "$id": "50",
"name": "property"
}
}
},
{
- "$id": "7",
+ "$id": "51",
"kind": "property",
"name": "children",
"serializedName": "children",
"type": {
- "$id": "8",
+ "$id": "52",
"kind": "dict",
"keyType": {
- "$id": "9",
+ "$id": "53",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "46"
},
"decorators": []
},
@@ -68,9 +422,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Dictionary.InnerModel.children",
"serializationOptions": {
- "$id": "10",
+ "$id": "54",
"json": {
- "$id": "11",
+ "$id": "55",
"name": "children"
}
}
@@ -80,7 +434,7 @@
],
"clients": [
{
- "$id": "12",
+ "$id": "56",
"kind": "client",
"name": "DictionaryClient",
"namespace": "Type.Dictionary",
@@ -88,12 +442,12 @@
"methods": [],
"parameters": [
{
- "$id": "13",
+ "$id": "57",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "14",
+ "$id": "58",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -107,9 +461,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "15",
+ "$id": "59",
"type": {
- "$id": "16",
+ "$id": "60",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -123,40 +477,30 @@
"apiVersions": [],
"children": [
{
- "$id": "17",
+ "$id": "61",
"kind": "client",
"name": "Int32Value",
"namespace": "Type.Dictionary",
"doc": "Dictionary of int32 values",
"methods": [
{
- "$id": "18",
+ "$id": "62",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "19",
+ "$id": "63",
"name": "get",
"resourceName": "Int32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "20",
+ "$id": "64",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "21",
- "kind": "constant",
- "valueType": {
- "$id": "22",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -171,22 +515,22 @@
],
"responses": [
{
- "$id": "23",
+ "$id": "65",
"statusCodes": [
200
],
"bodyType": {
- "$id": "24",
+ "$id": "66",
"kind": "dict",
"keyType": {
- "$id": "25",
+ "$id": "67",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "26",
+ "$id": "68",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -212,11 +556,11 @@
},
"parameters": [
{
- "$id": "27",
+ "$id": "69",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "21"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -230,9 +574,9 @@
}
],
"response": {
- "$id": "28",
+ "$id": "70",
"type": {
- "$ref": "24"
+ "$ref": "66"
}
},
"isOverride": false,
@@ -241,34 +585,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.Int32Value.get"
},
{
- "$id": "29",
+ "$id": "71",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "30",
+ "$id": "72",
"name": "put",
"resourceName": "Int32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "31",
+ "$id": "73",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "32",
- "kind": "constant",
- "valueType": {
- "$id": "33",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -281,21 +615,21 @@
"skipUrlEncoding": false
},
{
- "$id": "34",
+ "$id": "74",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "35",
+ "$id": "75",
"kind": "dict",
"keyType": {
- "$id": "36",
+ "$id": "76",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "37",
+ "$id": "77",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -316,7 +650,7 @@
],
"responses": [
{
- "$id": "38",
+ "$id": "78",
"statusCodes": [
204
],
@@ -338,21 +672,21 @@
},
"parameters": [
{
- "$id": "39",
+ "$id": "79",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "40",
+ "$id": "80",
"kind": "dict",
"keyType": {
- "$id": "41",
+ "$id": "81",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "42",
+ "$id": "82",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -371,12 +705,12 @@
"skipUrlEncoding": false
},
{
- "$id": "43",
+ "$id": "83",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "32"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -390,7 +724,7 @@
}
],
"response": {
- "$id": "44"
+ "$id": "84"
},
"isOverride": false,
"generateConvenient": true,
@@ -400,12 +734,12 @@
],
"parameters": [
{
- "$id": "45",
+ "$id": "85",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "46",
+ "$id": "86",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -419,9 +753,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "47",
+ "$id": "87",
"type": {
- "$id": "48",
+ "$id": "88",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -434,44 +768,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.Int32Value",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "49",
+ "$id": "89",
"kind": "client",
"name": "Int64Value",
"namespace": "Type.Dictionary",
"doc": "Dictionary of int64 values",
"methods": [
{
- "$id": "50",
+ "$id": "90",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "51",
+ "$id": "91",
"name": "get",
"resourceName": "Int64Value",
"accessibility": "public",
"parameters": [
{
- "$id": "52",
+ "$id": "92",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "53",
- "kind": "constant",
- "valueType": {
- "$id": "54",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -486,22 +810,22 @@
],
"responses": [
{
- "$id": "55",
+ "$id": "93",
"statusCodes": [
200
],
"bodyType": {
- "$id": "56",
+ "$id": "94",
"kind": "dict",
"keyType": {
- "$id": "57",
+ "$id": "95",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "58",
+ "$id": "96",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -527,11 +851,11 @@
},
"parameters": [
{
- "$id": "59",
+ "$id": "97",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "53"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -545,9 +869,9 @@
}
],
"response": {
- "$id": "60",
+ "$id": "98",
"type": {
- "$ref": "56"
+ "$ref": "94"
}
},
"isOverride": false,
@@ -556,34 +880,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.Int64Value.get"
},
{
- "$id": "61",
+ "$id": "99",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "62",
+ "$id": "100",
"name": "put",
"resourceName": "Int64Value",
"accessibility": "public",
"parameters": [
{
- "$id": "63",
+ "$id": "101",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "64",
- "kind": "constant",
- "valueType": {
- "$id": "65",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -596,21 +910,21 @@
"skipUrlEncoding": false
},
{
- "$id": "66",
+ "$id": "102",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "67",
+ "$id": "103",
"kind": "dict",
"keyType": {
- "$id": "68",
+ "$id": "104",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "69",
+ "$id": "105",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -631,7 +945,7 @@
],
"responses": [
{
- "$id": "70",
+ "$id": "106",
"statusCodes": [
204
],
@@ -653,21 +967,21 @@
},
"parameters": [
{
- "$id": "71",
+ "$id": "107",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "72",
+ "$id": "108",
"kind": "dict",
"keyType": {
- "$id": "73",
+ "$id": "109",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "74",
+ "$id": "110",
"kind": "int64",
"name": "int64",
"crossLanguageDefinitionId": "TypeSpec.int64",
@@ -686,12 +1000,12 @@
"skipUrlEncoding": false
},
{
- "$id": "75",
+ "$id": "111",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "64"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -705,7 +1019,7 @@
}
],
"response": {
- "$id": "76"
+ "$id": "112"
},
"isOverride": false,
"generateConvenient": true,
@@ -715,12 +1029,12 @@
],
"parameters": [
{
- "$id": "77",
+ "$id": "113",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "78",
+ "$id": "114",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -734,9 +1048,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "79",
+ "$id": "115",
"type": {
- "$id": "80",
+ "$id": "116",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -749,44 +1063,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.Int64Value",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "81",
+ "$id": "117",
"kind": "client",
"name": "BooleanValue",
"namespace": "Type.Dictionary",
"doc": "Dictionary of boolean values",
"methods": [
{
- "$id": "82",
+ "$id": "118",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "83",
+ "$id": "119",
"name": "get",
"resourceName": "BooleanValue",
"accessibility": "public",
"parameters": [
{
- "$id": "84",
+ "$id": "120",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "85",
- "kind": "constant",
- "valueType": {
- "$id": "86",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -801,22 +1105,22 @@
],
"responses": [
{
- "$id": "87",
+ "$id": "121",
"statusCodes": [
200
],
"bodyType": {
- "$id": "88",
+ "$id": "122",
"kind": "dict",
"keyType": {
- "$id": "89",
+ "$id": "123",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "90",
+ "$id": "124",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -842,11 +1146,11 @@
},
"parameters": [
{
- "$id": "91",
+ "$id": "125",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "85"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -860,9 +1164,9 @@
}
],
"response": {
- "$id": "92",
+ "$id": "126",
"type": {
- "$ref": "88"
+ "$ref": "122"
}
},
"isOverride": false,
@@ -871,34 +1175,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.BooleanValue.get"
},
{
- "$id": "93",
+ "$id": "127",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "94",
+ "$id": "128",
"name": "put",
"resourceName": "BooleanValue",
"accessibility": "public",
"parameters": [
{
- "$id": "95",
+ "$id": "129",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "96",
- "kind": "constant",
- "valueType": {
- "$id": "97",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -911,21 +1205,21 @@
"skipUrlEncoding": false
},
{
- "$id": "98",
+ "$id": "130",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "99",
+ "$id": "131",
"kind": "dict",
"keyType": {
- "$id": "100",
+ "$id": "132",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "101",
+ "$id": "133",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -946,7 +1240,7 @@
],
"responses": [
{
- "$id": "102",
+ "$id": "134",
"statusCodes": [
204
],
@@ -968,21 +1262,21 @@
},
"parameters": [
{
- "$id": "103",
+ "$id": "135",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "104",
+ "$id": "136",
"kind": "dict",
"keyType": {
- "$id": "105",
+ "$id": "137",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "106",
+ "$id": "138",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -1001,12 +1295,12 @@
"skipUrlEncoding": false
},
{
- "$id": "107",
+ "$id": "139",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "96"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1020,7 +1314,7 @@
}
],
"response": {
- "$id": "108"
+ "$id": "140"
},
"isOverride": false,
"generateConvenient": true,
@@ -1030,12 +1324,12 @@
],
"parameters": [
{
- "$id": "109",
+ "$id": "141",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "110",
+ "$id": "142",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1049,9 +1343,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "111",
+ "$id": "143",
"type": {
- "$id": "112",
+ "$id": "144",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1064,44 +1358,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.BooleanValue",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "113",
+ "$id": "145",
"kind": "client",
"name": "StringValue",
"namespace": "Type.Dictionary",
"doc": "Dictionary of string values",
"methods": [
{
- "$id": "114",
+ "$id": "146",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "115",
+ "$id": "147",
"name": "get",
"resourceName": "StringValue",
"accessibility": "public",
"parameters": [
{
- "$id": "116",
+ "$id": "148",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "117",
- "kind": "constant",
- "valueType": {
- "$id": "118",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1116,22 +1400,22 @@
],
"responses": [
{
- "$id": "119",
+ "$id": "149",
"statusCodes": [
200
],
"bodyType": {
- "$id": "120",
+ "$id": "150",
"kind": "dict",
"keyType": {
- "$id": "121",
+ "$id": "151",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "122",
+ "$id": "152",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1157,11 +1441,11 @@
},
"parameters": [
{
- "$id": "123",
+ "$id": "153",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "117"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1175,9 +1459,9 @@
}
],
"response": {
- "$id": "124",
+ "$id": "154",
"type": {
- "$ref": "120"
+ "$ref": "150"
}
},
"isOverride": false,
@@ -1186,34 +1470,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.StringValue.get"
},
{
- "$id": "125",
+ "$id": "155",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "126",
+ "$id": "156",
"name": "put",
"resourceName": "StringValue",
"accessibility": "public",
"parameters": [
{
- "$id": "127",
+ "$id": "157",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "128",
- "kind": "constant",
- "valueType": {
- "$id": "129",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1226,21 +1500,21 @@
"skipUrlEncoding": false
},
{
- "$id": "130",
+ "$id": "158",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "131",
+ "$id": "159",
"kind": "dict",
"keyType": {
- "$id": "132",
+ "$id": "160",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "133",
+ "$id": "161",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1261,7 +1535,7 @@
],
"responses": [
{
- "$id": "134",
+ "$id": "162",
"statusCodes": [
204
],
@@ -1283,21 +1557,21 @@
},
"parameters": [
{
- "$id": "135",
+ "$id": "163",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "136",
+ "$id": "164",
"kind": "dict",
"keyType": {
- "$id": "137",
+ "$id": "165",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "138",
+ "$id": "166",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1316,12 +1590,12 @@
"skipUrlEncoding": false
},
{
- "$id": "139",
+ "$id": "167",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "128"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1335,7 +1609,7 @@
}
],
"response": {
- "$id": "140"
+ "$id": "168"
},
"isOverride": false,
"generateConvenient": true,
@@ -1345,12 +1619,12 @@
],
"parameters": [
{
- "$id": "141",
+ "$id": "169",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "142",
+ "$id": "170",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1364,9 +1638,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "143",
+ "$id": "171",
"type": {
- "$id": "144",
+ "$id": "172",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1379,44 +1653,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.StringValue",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "145",
+ "$id": "173",
"kind": "client",
"name": "Float32Value",
"namespace": "Type.Dictionary",
"doc": "Dictionary of float values",
"methods": [
{
- "$id": "146",
+ "$id": "174",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "147",
+ "$id": "175",
"name": "get",
"resourceName": "Float32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "148",
+ "$id": "176",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "149",
- "kind": "constant",
- "valueType": {
- "$id": "150",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1431,22 +1695,22 @@
],
"responses": [
{
- "$id": "151",
+ "$id": "177",
"statusCodes": [
200
],
"bodyType": {
- "$id": "152",
+ "$id": "178",
"kind": "dict",
"keyType": {
- "$id": "153",
+ "$id": "179",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "154",
+ "$id": "180",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1472,11 +1736,11 @@
},
"parameters": [
{
- "$id": "155",
+ "$id": "181",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "149"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1490,9 +1754,9 @@
}
],
"response": {
- "$id": "156",
+ "$id": "182",
"type": {
- "$ref": "152"
+ "$ref": "178"
}
},
"isOverride": false,
@@ -1501,34 +1765,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.Float32Value.get"
},
{
- "$id": "157",
+ "$id": "183",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "158",
+ "$id": "184",
"name": "put",
"resourceName": "Float32Value",
"accessibility": "public",
"parameters": [
{
- "$id": "159",
+ "$id": "185",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "160",
- "kind": "constant",
- "valueType": {
- "$id": "161",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1541,21 +1795,21 @@
"skipUrlEncoding": false
},
{
- "$id": "162",
+ "$id": "186",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "163",
+ "$id": "187",
"kind": "dict",
"keyType": {
- "$id": "164",
+ "$id": "188",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "165",
+ "$id": "189",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1576,7 +1830,7 @@
],
"responses": [
{
- "$id": "166",
+ "$id": "190",
"statusCodes": [
204
],
@@ -1598,21 +1852,21 @@
},
"parameters": [
{
- "$id": "167",
+ "$id": "191",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "168",
+ "$id": "192",
"kind": "dict",
"keyType": {
- "$id": "169",
+ "$id": "193",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "170",
+ "$id": "194",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1631,12 +1885,12 @@
"skipUrlEncoding": false
},
{
- "$id": "171",
+ "$id": "195",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "160"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1650,7 +1904,7 @@
}
],
"response": {
- "$id": "172"
+ "$id": "196"
},
"isOverride": false,
"generateConvenient": true,
@@ -1660,12 +1914,12 @@
],
"parameters": [
{
- "$id": "173",
+ "$id": "197",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "174",
+ "$id": "198",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1679,9 +1933,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "175",
+ "$id": "199",
"type": {
- "$id": "176",
+ "$id": "200",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1694,44 +1948,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.Float32Value",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "177",
+ "$id": "201",
"kind": "client",
"name": "DatetimeValue",
"namespace": "Type.Dictionary",
"doc": "Dictionary of datetime values",
"methods": [
{
- "$id": "178",
+ "$id": "202",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "179",
+ "$id": "203",
"name": "get",
"resourceName": "DatetimeValue",
"accessibility": "public",
"parameters": [
{
- "$id": "180",
+ "$id": "204",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "181",
- "kind": "constant",
- "valueType": {
- "$id": "182",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1746,27 +1990,27 @@
],
"responses": [
{
- "$id": "183",
+ "$id": "205",
"statusCodes": [
200
],
"bodyType": {
- "$id": "184",
+ "$id": "206",
"kind": "dict",
"keyType": {
- "$id": "185",
+ "$id": "207",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "186",
+ "$id": "208",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "187",
+ "$id": "209",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1795,11 +2039,11 @@
},
"parameters": [
{
- "$id": "188",
+ "$id": "210",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "181"
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1813,9 +2057,9 @@
}
],
"response": {
- "$id": "189",
+ "$id": "211",
"type": {
- "$ref": "184"
+ "$ref": "206"
}
},
"isOverride": false,
@@ -1824,34 +2068,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue.get"
},
{
- "$id": "190",
+ "$id": "212",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "191",
+ "$id": "213",
"name": "put",
"resourceName": "DatetimeValue",
"accessibility": "public",
"parameters": [
{
- "$id": "192",
+ "$id": "214",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "193",
- "kind": "constant",
- "valueType": {
- "$id": "194",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1864,26 +2098,26 @@
"skipUrlEncoding": false
},
{
- "$id": "195",
+ "$id": "215",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "196",
+ "$id": "216",
"kind": "dict",
"keyType": {
- "$id": "197",
+ "$id": "217",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "198",
+ "$id": "218",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "199",
+ "$id": "219",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1907,7 +2141,7 @@
],
"responses": [
{
- "$id": "200",
+ "$id": "220",
"statusCodes": [
204
],
@@ -1929,26 +2163,26 @@
},
"parameters": [
{
- "$id": "201",
+ "$id": "221",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "202",
+ "$id": "222",
"kind": "dict",
"keyType": {
- "$id": "203",
+ "$id": "223",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "204",
+ "$id": "224",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "205",
+ "$id": "225",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1970,12 +2204,12 @@
"skipUrlEncoding": false
},
{
- "$id": "206",
+ "$id": "226",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "193"
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1989,7 +2223,7 @@
}
],
"response": {
- "$id": "207"
+ "$id": "227"
},
"isOverride": false,
"generateConvenient": true,
@@ -1999,12 +2233,12 @@
],
"parameters": [
{
- "$id": "208",
+ "$id": "228",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "209",
+ "$id": "229",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2018,9 +2252,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "210",
+ "$id": "230",
"type": {
- "$id": "211",
+ "$id": "231",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2033,44 +2267,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.DatetimeValue",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "212",
+ "$id": "232",
"kind": "client",
"name": "DurationValue",
"namespace": "Type.Dictionary",
"doc": "Dictionary of duration values",
"methods": [
{
- "$id": "213",
+ "$id": "233",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "214",
+ "$id": "234",
"name": "get",
"resourceName": "DurationValue",
"accessibility": "public",
"parameters": [
{
- "$id": "215",
+ "$id": "235",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "216",
- "kind": "constant",
- "valueType": {
- "$id": "217",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -2085,27 +2309,27 @@
],
"responses": [
{
- "$id": "218",
+ "$id": "236",
"statusCodes": [
200
],
"bodyType": {
- "$id": "219",
+ "$id": "237",
"kind": "dict",
"keyType": {
- "$id": "220",
+ "$id": "238",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "221",
+ "$id": "239",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "222",
+ "$id": "240",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2134,11 +2358,11 @@
},
"parameters": [
{
- "$id": "223",
+ "$id": "241",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "216"
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -2152,9 +2376,9 @@
}
],
"response": {
- "$id": "224",
+ "$id": "242",
"type": {
- "$ref": "219"
+ "$ref": "237"
}
},
"isOverride": false,
@@ -2163,34 +2387,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.DurationValue.get"
},
{
- "$id": "225",
+ "$id": "243",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "226",
+ "$id": "244",
"name": "put",
"resourceName": "DurationValue",
"accessibility": "public",
"parameters": [
{
- "$id": "227",
+ "$id": "245",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "228",
- "kind": "constant",
- "valueType": {
- "$id": "229",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -2203,26 +2417,26 @@
"skipUrlEncoding": false
},
{
- "$id": "230",
+ "$id": "246",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "231",
+ "$id": "247",
"kind": "dict",
"keyType": {
- "$id": "232",
+ "$id": "248",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "233",
+ "$id": "249",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "234",
+ "$id": "250",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2246,7 +2460,7 @@
],
"responses": [
{
- "$id": "235",
+ "$id": "251",
"statusCodes": [
204
],
@@ -2268,26 +2482,26 @@
},
"parameters": [
{
- "$id": "236",
+ "$id": "252",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "237",
+ "$id": "253",
"kind": "dict",
"keyType": {
- "$id": "238",
+ "$id": "254",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "239",
+ "$id": "255",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "240",
+ "$id": "256",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2309,12 +2523,12 @@
"skipUrlEncoding": false
},
{
- "$id": "241",
+ "$id": "257",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "228"
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -2328,7 +2542,7 @@
}
],
"response": {
- "$id": "242"
+ "$id": "258"
},
"isOverride": false,
"generateConvenient": true,
@@ -2338,12 +2552,12 @@
],
"parameters": [
{
- "$id": "243",
+ "$id": "259",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "244",
+ "$id": "260",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2357,9 +2571,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "245",
+ "$id": "261",
"type": {
- "$id": "246",
+ "$id": "262",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2372,44 +2586,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.DurationValue",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "247",
+ "$id": "263",
"kind": "client",
"name": "UnknownValue",
"namespace": "Type.Dictionary",
"doc": "Dictionary of unknown values",
"methods": [
{
- "$id": "248",
+ "$id": "264",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "249",
+ "$id": "265",
"name": "get",
"resourceName": "UnknownValue",
"accessibility": "public",
"parameters": [
{
- "$id": "250",
+ "$id": "266",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "251",
- "kind": "constant",
- "valueType": {
- "$id": "252",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -2424,22 +2628,22 @@
],
"responses": [
{
- "$id": "253",
+ "$id": "267",
"statusCodes": [
200
],
"bodyType": {
- "$id": "254",
+ "$id": "268",
"kind": "dict",
"keyType": {
- "$id": "255",
+ "$id": "269",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "256",
+ "$id": "270",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -2465,11 +2669,11 @@
},
"parameters": [
{
- "$id": "257",
+ "$id": "271",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "251"
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -2483,9 +2687,9 @@
}
],
"response": {
- "$id": "258",
+ "$id": "272",
"type": {
- "$ref": "254"
+ "$ref": "268"
}
},
"isOverride": false,
@@ -2494,34 +2698,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.UnknownValue.get"
},
{
- "$id": "259",
+ "$id": "273",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "260",
+ "$id": "274",
"name": "put",
"resourceName": "UnknownValue",
"accessibility": "public",
"parameters": [
{
- "$id": "261",
+ "$id": "275",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "262",
- "kind": "constant",
- "valueType": {
- "$id": "263",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -2534,21 +2728,21 @@
"skipUrlEncoding": false
},
{
- "$id": "264",
+ "$id": "276",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "265",
+ "$id": "277",
"kind": "dict",
"keyType": {
- "$id": "266",
+ "$id": "278",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "267",
+ "$id": "279",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -2569,7 +2763,7 @@
],
"responses": [
{
- "$id": "268",
+ "$id": "280",
"statusCodes": [
204
],
@@ -2591,21 +2785,21 @@
},
"parameters": [
{
- "$id": "269",
+ "$id": "281",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "270",
+ "$id": "282",
"kind": "dict",
"keyType": {
- "$id": "271",
+ "$id": "283",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "272",
+ "$id": "284",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -2624,12 +2818,12 @@
"skipUrlEncoding": false
},
{
- "$id": "273",
+ "$id": "285",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "262"
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -2643,7 +2837,7 @@
}
],
"response": {
- "$id": "274"
+ "$id": "286"
},
"isOverride": false,
"generateConvenient": true,
@@ -2653,12 +2847,12 @@
],
"parameters": [
{
- "$id": "275",
+ "$id": "287",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "276",
+ "$id": "288",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2672,9 +2866,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "277",
+ "$id": "289",
"type": {
- "$id": "278",
+ "$id": "290",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2687,44 +2881,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.UnknownValue",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "279",
+ "$id": "291",
"kind": "client",
"name": "ModelValue",
"namespace": "Type.Dictionary",
"doc": "Dictionary of model values",
"methods": [
{
- "$id": "280",
+ "$id": "292",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "281",
+ "$id": "293",
"name": "get",
"resourceName": "ModelValue",
"accessibility": "public",
"parameters": [
{
- "$id": "282",
+ "$id": "294",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "283",
- "kind": "constant",
- "valueType": {
- "$id": "284",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -2739,22 +2923,22 @@
],
"responses": [
{
- "$id": "285",
+ "$id": "295",
"statusCodes": [
200
],
"bodyType": {
- "$id": "286",
+ "$id": "296",
"kind": "dict",
"keyType": {
- "$id": "287",
+ "$id": "297",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "46"
},
"decorators": []
},
@@ -2776,11 +2960,11 @@
},
"parameters": [
{
- "$id": "288",
+ "$id": "298",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "283"
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -2794,9 +2978,9 @@
}
],
"response": {
- "$id": "289",
+ "$id": "299",
"type": {
- "$ref": "286"
+ "$ref": "296"
}
},
"isOverride": false,
@@ -2805,34 +2989,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.ModelValue.get"
},
{
- "$id": "290",
+ "$id": "300",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "291",
+ "$id": "301",
"name": "put",
"resourceName": "ModelValue",
"accessibility": "public",
"parameters": [
{
- "$id": "292",
+ "$id": "302",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "293",
- "kind": "constant",
- "valueType": {
- "$id": "294",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -2845,21 +3019,21 @@
"skipUrlEncoding": false
},
{
- "$id": "295",
+ "$id": "303",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "296",
+ "$id": "304",
"kind": "dict",
"keyType": {
- "$id": "297",
+ "$id": "305",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "46"
},
"decorators": []
},
@@ -2876,7 +3050,7 @@
],
"responses": [
{
- "$id": "298",
+ "$id": "306",
"statusCodes": [
204
],
@@ -2898,21 +3072,21 @@
},
"parameters": [
{
- "$id": "299",
+ "$id": "307",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "300",
+ "$id": "308",
"kind": "dict",
"keyType": {
- "$id": "301",
+ "$id": "309",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "46"
},
"decorators": []
},
@@ -2927,12 +3101,12 @@
"skipUrlEncoding": false
},
{
- "$id": "302",
+ "$id": "310",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "293"
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -2946,7 +3120,7 @@
}
],
"response": {
- "$id": "303"
+ "$id": "311"
},
"isOverride": false,
"generateConvenient": true,
@@ -2956,12 +3130,12 @@
],
"parameters": [
{
- "$id": "304",
+ "$id": "312",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "305",
+ "$id": "313",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2975,9 +3149,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "306",
+ "$id": "314",
"type": {
- "$id": "307",
+ "$id": "315",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2990,44 +3164,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.ModelValue",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "308",
+ "$id": "316",
"kind": "client",
"name": "RecursiveModelValue",
"namespace": "Type.Dictionary",
"doc": "Dictionary of model values",
"methods": [
{
- "$id": "309",
+ "$id": "317",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "310",
+ "$id": "318",
"name": "get",
"resourceName": "RecursiveModelValue",
"accessibility": "public",
"parameters": [
{
- "$id": "311",
+ "$id": "319",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "312",
- "kind": "constant",
- "valueType": {
- "$id": "313",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -3042,22 +3206,22 @@
],
"responses": [
{
- "$id": "314",
+ "$id": "320",
"statusCodes": [
200
],
"bodyType": {
- "$id": "315",
+ "$id": "321",
"kind": "dict",
"keyType": {
- "$id": "316",
+ "$id": "322",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "46"
},
"decorators": []
},
@@ -3079,11 +3243,11 @@
},
"parameters": [
{
- "$id": "317",
+ "$id": "323",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "312"
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -3097,9 +3261,9 @@
}
],
"response": {
- "$id": "318",
+ "$id": "324",
"type": {
- "$ref": "315"
+ "$ref": "321"
}
},
"isOverride": false,
@@ -3108,34 +3272,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue.get"
},
{
- "$id": "319",
+ "$id": "325",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "320",
+ "$id": "326",
"name": "put",
"resourceName": "RecursiveModelValue",
"accessibility": "public",
"parameters": [
{
- "$id": "321",
+ "$id": "327",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "322",
- "kind": "constant",
- "valueType": {
- "$id": "323",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -3148,21 +3302,21 @@
"skipUrlEncoding": false
},
{
- "$id": "324",
+ "$id": "328",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "325",
+ "$id": "329",
"kind": "dict",
"keyType": {
- "$id": "326",
+ "$id": "330",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "46"
},
"decorators": []
},
@@ -3179,7 +3333,7 @@
],
"responses": [
{
- "$id": "327",
+ "$id": "331",
"statusCodes": [
204
],
@@ -3201,21 +3355,21 @@
},
"parameters": [
{
- "$id": "328",
+ "$id": "332",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "329",
+ "$id": "333",
"kind": "dict",
"keyType": {
- "$id": "330",
+ "$id": "334",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "46"
},
"decorators": []
},
@@ -3230,12 +3384,12 @@
"skipUrlEncoding": false
},
{
- "$id": "331",
+ "$id": "335",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "322"
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -3249,7 +3403,7 @@
}
],
"response": {
- "$id": "332"
+ "$id": "336"
},
"isOverride": false,
"generateConvenient": true,
@@ -3259,12 +3413,12 @@
],
"parameters": [
{
- "$id": "333",
+ "$id": "337",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "334",
+ "$id": "338",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3278,9 +3432,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "335",
+ "$id": "339",
"type": {
- "$id": "336",
+ "$id": "340",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3293,44 +3447,34 @@
"crossLanguageDefinitionId": "Type.Dictionary.RecursiveModelValue",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
},
{
- "$id": "337",
+ "$id": "341",
"kind": "client",
"name": "NullableFloatValue",
"namespace": "Type.Dictionary",
"doc": "Dictionary of nullable float values",
"methods": [
{
- "$id": "338",
+ "$id": "342",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "339",
+ "$id": "343",
"name": "get",
"resourceName": "NullableFloatValue",
"accessibility": "public",
"parameters": [
{
- "$id": "340",
+ "$id": "344",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "341",
- "kind": "constant",
- "valueType": {
- "$id": "342",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -3345,25 +3489,25 @@
],
"responses": [
{
- "$id": "343",
+ "$id": "345",
"statusCodes": [
200
],
"bodyType": {
- "$id": "344",
+ "$id": "346",
"kind": "dict",
"keyType": {
- "$id": "345",
+ "$id": "347",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "346",
+ "$id": "348",
"kind": "nullable",
"type": {
- "$id": "347",
+ "$id": "349",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -3391,11 +3535,11 @@
},
"parameters": [
{
- "$id": "348",
+ "$id": "350",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "341"
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -3409,9 +3553,9 @@
}
],
"response": {
- "$id": "349",
+ "$id": "351",
"type": {
- "$ref": "344"
+ "$ref": "346"
}
},
"isOverride": false,
@@ -3420,34 +3564,24 @@
"crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue.get"
},
{
- "$id": "350",
+ "$id": "352",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "351",
+ "$id": "353",
"name": "put",
"resourceName": "NullableFloatValue",
"accessibility": "public",
"parameters": [
{
- "$id": "352",
+ "$id": "354",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "353",
- "kind": "constant",
- "valueType": {
- "$id": "354",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -3474,7 +3608,7 @@
"decorators": []
},
"valueType": {
- "$ref": "346"
+ "$ref": "348"
},
"decorators": []
},
@@ -3527,7 +3661,7 @@
"decorators": []
},
"valueType": {
- "$ref": "346"
+ "$ref": "348"
},
"decorators": []
},
@@ -3547,7 +3681,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "353"
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -3605,7 +3739,7 @@
"crossLanguageDefinitionId": "Type.Dictionary.NullableFloatValue",
"apiVersions": [],
"parent": {
- "$ref": "12"
+ "$ref": "56"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/src/Type.Enum.Extensible.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/src/Type.Enum.Extensible.csproj
index 6029e8b36bdb..f51e7b586bf1 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/src/Type.Enum.Extensible.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/extensible/src/Type.Enum.Extensible.csproj
@@ -17,6 +17,7 @@
+
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 186541f1529a..2491aed7aaa7 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
@@ -151,22 +151,152 @@
"decorators": []
}
],
+ "constants": [
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "getKnownValueContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "getUnknownValueContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
"models": [],
"clients": [
{
- "$id": "18",
+ "$id": "34",
"kind": "client",
"name": "ExtensibleClient",
"namespace": "Type.Enum.Extensible",
"methods": [],
"parameters": [
{
- "$id": "19",
+ "$id": "35",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "20",
+ "$id": "36",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -180,9 +310,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "21",
+ "$id": "37",
"type": {
- "$id": "22",
+ "$id": "38",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -196,39 +326,29 @@
"apiVersions": [],
"children": [
{
- "$id": "23",
+ "$id": "39",
"kind": "client",
"name": "String",
"namespace": "Type.Enum.Extensible",
"methods": [
{
- "$id": "24",
+ "$id": "40",
"kind": "basic",
"name": "getKnownValue",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "25",
+ "$id": "41",
"name": "getKnownValue",
"resourceName": "String",
"accessibility": "public",
"parameters": [
{
- "$id": "26",
+ "$id": "42",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "27",
- "kind": "constant",
- "valueType": {
- "$id": "28",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -243,7 +363,7 @@
],
"responses": [
{
- "$id": "29",
+ "$id": "43",
"statusCodes": [
200
],
@@ -252,21 +372,11 @@
},
"headers": [
{
- "$id": "30",
+ "$id": "44",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "31",
- "kind": "constant",
- "valueType": {
- "$id": "32",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
}
}
],
@@ -287,11 +397,11 @@
},
"parameters": [
{
- "$id": "33",
+ "$id": "45",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "27"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -305,7 +415,7 @@
}
],
"response": {
- "$id": "34",
+ "$id": "46",
"type": {
"$ref": "2"
}
@@ -316,33 +426,23 @@
"crossLanguageDefinitionId": "Type.Enum.Extensible.String.getKnownValue"
},
{
- "$id": "35",
+ "$id": "47",
"kind": "basic",
"name": "getUnknownValue",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "36",
+ "$id": "48",
"name": "getUnknownValue",
"resourceName": "String",
"accessibility": "public",
"parameters": [
{
- "$id": "37",
+ "$id": "49",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "38",
- "kind": "constant",
- "valueType": {
- "$id": "39",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -357,7 +457,7 @@
],
"responses": [
{
- "$id": "40",
+ "$id": "50",
"statusCodes": [
200
],
@@ -366,21 +466,11 @@
},
"headers": [
{
- "$id": "41",
+ "$id": "51",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "42",
- "kind": "constant",
- "valueType": {
- "$id": "43",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
}
}
],
@@ -401,11 +491,11 @@
},
"parameters": [
{
- "$id": "44",
+ "$id": "52",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "38"
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -419,7 +509,7 @@
}
],
"response": {
- "$id": "45",
+ "$id": "53",
"type": {
"$ref": "2"
}
@@ -430,33 +520,23 @@
"crossLanguageDefinitionId": "Type.Enum.Extensible.String.getUnknownValue"
},
{
- "$id": "46",
+ "$id": "54",
"kind": "basic",
"name": "putKnownValue",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "47",
+ "$id": "55",
"name": "putKnownValue",
"resourceName": "String",
"accessibility": "public",
"parameters": [
{
- "$id": "48",
+ "$id": "56",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "49",
- "kind": "constant",
- "valueType": {
- "$id": "50",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -469,7 +549,7 @@
"skipUrlEncoding": false
},
{
- "$id": "51",
+ "$id": "57",
"name": "body",
"nameInRequest": "body",
"type": {
@@ -488,7 +568,7 @@
],
"responses": [
{
- "$id": "52",
+ "$id": "58",
"statusCodes": [
204
],
@@ -510,21 +590,11 @@
},
"parameters": [
{
- "$id": "53",
+ "$id": "59",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "54",
- "kind": "constant",
- "valueType": {
- "$id": "55",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -537,7 +607,7 @@
"skipUrlEncoding": false
},
{
- "$id": "56",
+ "$id": "60",
"name": "body",
"nameInRequest": "body",
"type": {
@@ -555,7 +625,7 @@
}
],
"response": {
- "$id": "57"
+ "$id": "61"
},
"isOverride": false,
"generateConvenient": true,
@@ -563,33 +633,23 @@
"crossLanguageDefinitionId": "Type.Enum.Extensible.String.putKnownValue"
},
{
- "$id": "58",
+ "$id": "62",
"kind": "basic",
"name": "putUnknownValue",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "59",
+ "$id": "63",
"name": "putUnknownValue",
"resourceName": "String",
"accessibility": "public",
"parameters": [
{
- "$id": "60",
+ "$id": "64",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "61",
- "kind": "constant",
- "valueType": {
- "$id": "62",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -602,7 +662,7 @@
"skipUrlEncoding": false
},
{
- "$id": "63",
+ "$id": "65",
"name": "body",
"nameInRequest": "body",
"type": {
@@ -621,7 +681,7 @@
],
"responses": [
{
- "$id": "64",
+ "$id": "66",
"statusCodes": [
204
],
@@ -643,21 +703,11 @@
},
"parameters": [
{
- "$id": "65",
+ "$id": "67",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "66",
- "kind": "constant",
- "valueType": {
- "$id": "67",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -732,7 +782,7 @@
"crossLanguageDefinitionId": "Type.Enum.Extensible.String",
"apiVersions": [],
"parent": {
- "$ref": "18"
+ "$ref": "34"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/src/Type.Enum.Fixed.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/src/Type.Enum.Fixed.csproj
index 5549883aa7a4..014cc2bf1fa4 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/src/Type.Enum.Fixed.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/enum/fixed/src/Type.Enum.Fixed.csproj
@@ -17,6 +17,7 @@
+
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 f5c2fedd46ea..414cb9626804 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
@@ -151,22 +151,120 @@
"decorators": []
}
],
+ "constants": [
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "getKnownValueContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "GetKnownValueResponseContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
"models": [],
"clients": [
{
- "$id": "18",
+ "$id": "30",
"kind": "client",
"name": "FixedClient",
"namespace": "Type.Enum.Fixed",
"methods": [],
"parameters": [
{
- "$id": "19",
+ "$id": "31",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "20",
+ "$id": "32",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -180,9 +278,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "21",
+ "$id": "33",
"type": {
- "$id": "22",
+ "$id": "34",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -196,41 +294,31 @@
"apiVersions": [],
"children": [
{
- "$id": "23",
+ "$id": "35",
"kind": "client",
"name": "String",
"namespace": "Type.Enum.Fixed",
"methods": [
{
- "$id": "24",
+ "$id": "36",
"kind": "basic",
"name": "getKnownValue",
"accessibility": "public",
"apiVersions": [],
"doc": "getKnownValue",
"operation": {
- "$id": "25",
+ "$id": "37",
"name": "getKnownValue",
"resourceName": "String",
"doc": "getKnownValue",
"accessibility": "public",
"parameters": [
{
- "$id": "26",
+ "$id": "38",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "27",
- "kind": "constant",
- "valueType": {
- "$id": "28",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -245,7 +333,7 @@
],
"responses": [
{
- "$id": "29",
+ "$id": "39",
"statusCodes": [
200
],
@@ -254,21 +342,11 @@
},
"headers": [
{
- "$id": "30",
+ "$id": "40",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "31",
- "kind": "constant",
- "valueType": {
- "$id": "32",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
}
}
],
@@ -289,11 +367,11 @@
},
"parameters": [
{
- "$id": "33",
+ "$id": "41",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "27"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -307,7 +385,7 @@
}
],
"response": {
- "$id": "34",
+ "$id": "42",
"type": {
"$ref": "2"
}
@@ -318,35 +396,25 @@
"crossLanguageDefinitionId": "Type.Enum.Fixed.String.getKnownValue"
},
{
- "$id": "35",
+ "$id": "43",
"kind": "basic",
"name": "putKnownValue",
"accessibility": "public",
"apiVersions": [],
"doc": "putKnownValue",
"operation": {
- "$id": "36",
+ "$id": "44",
"name": "putKnownValue",
"resourceName": "String",
"doc": "putKnownValue",
"accessibility": "public",
"parameters": [
{
- "$id": "37",
+ "$id": "45",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "38",
- "kind": "constant",
- "valueType": {
- "$id": "39",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -359,7 +427,7 @@
"skipUrlEncoding": false
},
{
- "$id": "40",
+ "$id": "46",
"name": "body",
"nameInRequest": "body",
"doc": "_",
@@ -379,7 +447,7 @@
],
"responses": [
{
- "$id": "41",
+ "$id": "47",
"statusCodes": [
204
],
@@ -401,21 +469,11 @@
},
"parameters": [
{
- "$id": "42",
+ "$id": "48",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "43",
- "kind": "constant",
- "valueType": {
- "$id": "44",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -428,7 +486,7 @@
"skipUrlEncoding": false
},
{
- "$id": "45",
+ "$id": "49",
"name": "body",
"nameInRequest": "body",
"doc": "_",
@@ -447,7 +505,7 @@
}
],
"response": {
- "$id": "46"
+ "$id": "50"
},
"isOverride": false,
"generateConvenient": true,
@@ -455,35 +513,25 @@
"crossLanguageDefinitionId": "Type.Enum.Fixed.String.putKnownValue"
},
{
- "$id": "47",
+ "$id": "51",
"kind": "basic",
"name": "putUnknownValue",
"accessibility": "public",
"apiVersions": [],
"doc": "putUnknownValue",
"operation": {
- "$id": "48",
+ "$id": "52",
"name": "putUnknownValue",
"resourceName": "String",
"doc": "putUnknownValue",
"accessibility": "public",
"parameters": [
{
- "$id": "49",
+ "$id": "53",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "50",
- "kind": "constant",
- "valueType": {
- "$id": "51",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -496,7 +544,7 @@
"skipUrlEncoding": false
},
{
- "$id": "52",
+ "$id": "54",
"name": "body",
"nameInRequest": "body",
"doc": "_",
@@ -516,7 +564,7 @@
],
"responses": [
{
- "$id": "53",
+ "$id": "55",
"statusCodes": [
204
],
@@ -538,21 +586,11 @@
},
"parameters": [
{
- "$id": "54",
+ "$id": "56",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "55",
- "kind": "constant",
- "valueType": {
- "$id": "56",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -628,7 +666,7 @@
"crossLanguageDefinitionId": "Type.Enum.Fixed.String",
"apiVersions": [],
"parent": {
- "$ref": "18"
+ "$ref": "30"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/src/Type.Model.Empty.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/src/Type.Model.Empty.csproj
index b44c61cb7625..81f58610e311 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/src/Type.Model.Empty.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/empty/src/Type.Model.Empty.csproj
@@ -17,6 +17,7 @@
+
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 ef04e26566d7..3c5079404a58 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
@@ -3,9 +3,75 @@
"name": "Type.Model.Empty",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "putEmptyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "getEmptyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "postRoundTripEmptyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "postRoundTripEmptyContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "10",
"kind": "model",
"name": "EmptyInput",
"namespace": "Type.Model.Empty",
@@ -16,7 +82,7 @@
"properties": []
},
{
- "$id": "3",
+ "$id": "11",
"kind": "model",
"name": "EmptyOutput",
"namespace": "Type.Model.Empty",
@@ -27,7 +93,7 @@
"properties": []
},
{
- "$id": "4",
+ "$id": "12",
"kind": "model",
"name": "EmptyInputOutput",
"namespace": "Type.Model.Empty",
@@ -40,41 +106,31 @@
],
"clients": [
{
- "$id": "5",
+ "$id": "13",
"kind": "client",
"name": "EmptyClient",
"namespace": "Type.Model.Empty",
"doc": "Illustrates usage of empty model used in operation's parameters and responses.",
"methods": [
{
- "$id": "6",
+ "$id": "14",
"kind": "basic",
"name": "putEmpty",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "7",
+ "$id": "15",
"name": "putEmpty",
"resourceName": "Empty",
"accessibility": "public",
"parameters": [
{
- "$id": "8",
+ "$id": "16",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "9",
- "kind": "constant",
- "valueType": {
- "$id": "10",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -87,11 +143,11 @@
"skipUrlEncoding": false
},
{
- "$id": "11",
+ "$id": "17",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -106,7 +162,7 @@
],
"responses": [
{
- "$id": "12",
+ "$id": "18",
"statusCodes": [
204
],
@@ -128,11 +184,11 @@
},
"parameters": [
{
- "$id": "13",
+ "$id": "19",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -145,12 +201,12 @@
"skipUrlEncoding": false
},
{
- "$id": "14",
+ "$id": "20",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "9"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -164,7 +220,7 @@
}
],
"response": {
- "$id": "15"
+ "$id": "21"
},
"isOverride": false,
"generateConvenient": true,
@@ -172,33 +228,23 @@
"crossLanguageDefinitionId": "Type.Model.Empty.putEmpty"
},
{
- "$id": "16",
+ "$id": "22",
"kind": "basic",
"name": "getEmpty",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "17",
+ "$id": "23",
"name": "getEmpty",
"resourceName": "Empty",
"accessibility": "public",
"parameters": [
{
- "$id": "18",
+ "$id": "24",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "19",
- "kind": "constant",
- "valueType": {
- "$id": "20",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -213,12 +259,12 @@
],
"responses": [
{
- "$id": "21",
+ "$id": "25",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "3"
+ "$ref": "11"
},
"headers": [],
"isErrorResponse": false,
@@ -238,11 +284,11 @@
},
"parameters": [
{
- "$id": "22",
+ "$id": "26",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "19"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -256,9 +302,9 @@
}
],
"response": {
- "$id": "23",
+ "$id": "27",
"type": {
- "$ref": "3"
+ "$ref": "11"
}
},
"isOverride": false,
@@ -267,34 +313,24 @@
"crossLanguageDefinitionId": "Type.Model.Empty.getEmpty"
},
{
- "$id": "24",
+ "$id": "28",
"kind": "basic",
"name": "postRoundTripEmpty",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "25",
+ "$id": "29",
"name": "postRoundTripEmpty",
"resourceName": "Empty",
"accessibility": "public",
"parameters": [
{
- "$id": "26",
+ "$id": "30",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "27",
- "kind": "constant",
- "valueType": {
- "$id": "28",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -307,21 +343,11 @@
"skipUrlEncoding": false
},
{
- "$id": "29",
+ "$id": "31",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "30",
- "kind": "constant",
- "valueType": {
- "$id": "31",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -338,7 +364,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "4"
+ "$ref": "12"
},
"location": "Body",
"isApiVersion": false,
@@ -358,7 +384,7 @@
200
],
"bodyType": {
- "$ref": "4"
+ "$ref": "12"
},
"headers": [],
"isErrorResponse": false,
@@ -385,7 +411,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "4"
+ "$ref": "12"
},
"location": "Body",
"isApiVersion": false,
@@ -403,7 +429,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "27"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -420,7 +446,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "30"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -436,7 +462,7 @@
"response": {
"$id": "37",
"type": {
- "$ref": "4"
+ "$ref": "12"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/src/Type.Model.Inheritance.EnumDiscriminator.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/src/Type.Model.Inheritance.EnumDiscriminator.csproj
index 841fc68da047..c88d0d725347 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/src/Type.Model.Inheritance.EnumDiscriminator.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/enum-discriminator/src/Type.Model.Inheritance.EnumDiscriminator.csproj
@@ -17,6 +17,7 @@
+
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 4e3bc1005062..31c2b5eae900 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
@@ -82,9 +82,139 @@
"decorators": []
}
],
- "models": [
+ "constants": [
{
"$id": "10",
+ "kind": "constant",
+ "name": "getExtensibleModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "putExtensibleModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "getExtensibleModelMissingDiscriminatorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "getExtensibleModelWrongDiscriminatorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "getFixedModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "putFixedModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "getFixedModelMissingDiscriminatorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "getFixedModelWrongDiscriminatorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "26",
"kind": "model",
"name": "Dog",
"namespace": "Type.Model.Inheritance.EnumDiscriminator",
@@ -93,7 +223,7 @@
"doc": "Test extensible enum type for discriminator",
"decorators": [],
"discriminatorProperty": {
- "$id": "11",
+ "$id": "27",
"kind": "property",
"name": "kind",
"serializedName": "kind",
@@ -108,25 +238,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Dog.kind",
"serializationOptions": {
- "$id": "12",
+ "$id": "28",
"json": {
- "$id": "13",
+ "$id": "29",
"name": "kind"
}
}
},
"properties": [
{
- "$ref": "11"
+ "$ref": "27"
},
{
- "$id": "14",
+ "$id": "30",
"kind": "property",
"name": "weight",
"serializedName": "weight",
"doc": "Weight of the dog",
"type": {
- "$id": "15",
+ "$id": "31",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -139,18 +269,18 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Dog.weight",
"serializationOptions": {
- "$id": "16",
+ "$id": "32",
"json": {
- "$id": "17",
+ "$id": "33",
"name": "weight"
}
}
}
],
"discriminatedSubtypes": {
- "$id": "18",
+ "$id": "34",
"golden": {
- "$id": "19",
+ "$id": "35",
"kind": "model",
"name": "Golden",
"namespace": "Type.Model.Inheritance.EnumDiscriminator",
@@ -160,26 +290,31 @@
"discriminatorValue": "golden",
"decorators": [],
"baseModel": {
- "$ref": "10"
+ "$ref": "26"
},
"properties": [
{
- "$id": "20",
+ "$id": "36",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"doc": "discriminator property",
"type": {
- "$id": "21",
- "kind": "constant",
+ "$id": "37",
+ "kind": "enumvalue",
+ "name": "Golden",
+ "value": "golden",
"valueType": {
- "$id": "22",
+ "$id": "38",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "value": "golden",
+ "enumType": {
+ "$ref": "2"
+ },
+ "doc": "Species golden",
"decorators": []
},
"optional": false,
@@ -189,9 +324,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Golden.kind",
"serializationOptions": {
- "$id": "23",
+ "$id": "39",
"json": {
- "$id": "24",
+ "$id": "40",
"name": "kind"
}
}
@@ -201,10 +336,10 @@
}
},
{
- "$ref": "19"
+ "$ref": "35"
},
{
- "$id": "25",
+ "$id": "41",
"kind": "model",
"name": "Snake",
"namespace": "Type.Model.Inheritance.EnumDiscriminator",
@@ -213,7 +348,7 @@
"doc": "Test fixed enum type for discriminator",
"decorators": [],
"discriminatorProperty": {
- "$id": "26",
+ "$id": "42",
"kind": "property",
"name": "kind",
"serializedName": "kind",
@@ -228,25 +363,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Snake.kind",
"serializationOptions": {
- "$id": "27",
+ "$id": "43",
"json": {
- "$id": "28",
+ "$id": "44",
"name": "kind"
}
}
},
"properties": [
{
- "$ref": "26"
+ "$ref": "42"
},
{
- "$id": "29",
+ "$id": "45",
"kind": "property",
"name": "length",
"serializedName": "length",
"doc": "Length of the snake",
"type": {
- "$id": "30",
+ "$id": "46",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -259,18 +394,18 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Snake.length",
"serializationOptions": {
- "$id": "31",
+ "$id": "47",
"json": {
- "$id": "32",
+ "$id": "48",
"name": "length"
}
}
}
],
"discriminatedSubtypes": {
- "$id": "33",
+ "$id": "49",
"cobra": {
- "$id": "34",
+ "$id": "50",
"kind": "model",
"name": "Cobra",
"namespace": "Type.Model.Inheritance.EnumDiscriminator",
@@ -280,26 +415,31 @@
"discriminatorValue": "cobra",
"decorators": [],
"baseModel": {
- "$ref": "25"
+ "$ref": "41"
},
"properties": [
{
- "$id": "35",
+ "$id": "51",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"doc": "discriminator property",
"type": {
- "$id": "36",
- "kind": "constant",
+ "$id": "52",
+ "kind": "enumvalue",
+ "name": "Cobra",
+ "value": "cobra",
"valueType": {
- "$id": "37",
+ "$id": "53",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "value": "cobra",
+ "enumType": {
+ "$ref": "6"
+ },
+ "doc": "Species cobra",
"decorators": []
},
"optional": false,
@@ -309,9 +449,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.Cobra.kind",
"serializationOptions": {
- "$id": "38",
+ "$id": "54",
"json": {
- "$id": "39",
+ "$id": "55",
"name": "kind"
}
}
@@ -321,47 +461,37 @@
}
},
{
- "$ref": "34"
+ "$ref": "50"
}
],
"clients": [
{
- "$id": "40",
+ "$id": "56",
"kind": "client",
"name": "EnumDiscriminatorClient",
"namespace": "Type.Model.Inheritance.EnumDiscriminator",
"doc": "Illustrates inheritance with enum discriminator.",
"methods": [
{
- "$id": "41",
+ "$id": "57",
"kind": "basic",
"name": "getExtensibleModel",
"accessibility": "public",
"apiVersions": [],
"doc": "Receive model with extensible enum discriminator type.",
"operation": {
- "$id": "42",
+ "$id": "58",
"name": "getExtensibleModel",
"resourceName": "EnumDiscriminator",
"doc": "Receive model with extensible enum discriminator type.",
"accessibility": "public",
"parameters": [
{
- "$id": "43",
+ "$id": "59",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "44",
- "kind": "constant",
- "valueType": {
- "$id": "45",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -376,12 +506,12 @@
],
"responses": [
{
- "$id": "46",
+ "$id": "60",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "10"
+ "$ref": "26"
},
"headers": [],
"isErrorResponse": false,
@@ -401,11 +531,11 @@
},
"parameters": [
{
- "$id": "47",
+ "$id": "61",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "44"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -419,9 +549,9 @@
}
],
"response": {
- "$id": "48",
+ "$id": "62",
"type": {
- "$ref": "10"
+ "$ref": "26"
}
},
"isOverride": false,
@@ -430,36 +560,26 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModel"
},
{
- "$id": "49",
+ "$id": "63",
"kind": "basic",
"name": "putExtensibleModel",
"accessibility": "public",
"apiVersions": [],
"doc": "Send model with extensible enum discriminator type.",
"operation": {
- "$id": "50",
+ "$id": "64",
"name": "putExtensibleModel",
"resourceName": "EnumDiscriminator",
"doc": "Send model with extensible enum discriminator type.",
"accessibility": "public",
"parameters": [
{
- "$id": "51",
+ "$id": "65",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "52",
- "kind": "constant",
- "valueType": {
- "$id": "53",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -472,12 +592,12 @@
"skipUrlEncoding": false
},
{
- "$id": "54",
+ "$id": "66",
"name": "input",
"nameInRequest": "input",
"doc": "Dog to create",
"type": {
- "$ref": "10"
+ "$ref": "26"
},
"location": "Body",
"isApiVersion": false,
@@ -492,7 +612,7 @@
],
"responses": [
{
- "$id": "55",
+ "$id": "67",
"statusCodes": [
204
],
@@ -514,12 +634,12 @@
},
"parameters": [
{
- "$id": "56",
+ "$id": "68",
"name": "input",
"nameInRequest": "input",
"doc": "Dog to create",
"type": {
- "$ref": "10"
+ "$ref": "26"
},
"location": "Body",
"isApiVersion": false,
@@ -532,12 +652,12 @@
"skipUrlEncoding": false
},
{
- "$id": "57",
+ "$id": "69",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "52"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -551,7 +671,7 @@
}
],
"response": {
- "$id": "58"
+ "$id": "70"
},
"isOverride": false,
"generateConvenient": true,
@@ -559,35 +679,25 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putExtensibleModel"
},
{
- "$id": "59",
+ "$id": "71",
"kind": "basic",
"name": "getExtensibleModelMissingDiscriminator",
"accessibility": "public",
"apiVersions": [],
"doc": "Get a model omitting the discriminator.",
"operation": {
- "$id": "60",
+ "$id": "72",
"name": "getExtensibleModelMissingDiscriminator",
"resourceName": "EnumDiscriminator",
"doc": "Get a model omitting the discriminator.",
"accessibility": "public",
"parameters": [
{
- "$id": "61",
+ "$id": "73",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "62",
- "kind": "constant",
- "valueType": {
- "$id": "63",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -602,12 +712,12 @@
],
"responses": [
{
- "$id": "64",
+ "$id": "74",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "10"
+ "$ref": "26"
},
"headers": [],
"isErrorResponse": false,
@@ -627,11 +737,11 @@
},
"parameters": [
{
- "$id": "65",
+ "$id": "75",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "62"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -645,9 +755,9 @@
}
],
"response": {
- "$id": "66",
+ "$id": "76",
"type": {
- "$ref": "10"
+ "$ref": "26"
}
},
"isOverride": false,
@@ -656,35 +766,25 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelMissingDiscriminator"
},
{
- "$id": "67",
+ "$id": "77",
"kind": "basic",
"name": "getExtensibleModelWrongDiscriminator",
"accessibility": "public",
"apiVersions": [],
"doc": "Get a model containing discriminator value never defined.",
"operation": {
- "$id": "68",
+ "$id": "78",
"name": "getExtensibleModelWrongDiscriminator",
"resourceName": "EnumDiscriminator",
"doc": "Get a model containing discriminator value never defined.",
"accessibility": "public",
"parameters": [
{
- "$id": "69",
+ "$id": "79",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "70",
- "kind": "constant",
- "valueType": {
- "$id": "71",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -699,12 +799,12 @@
],
"responses": [
{
- "$id": "72",
+ "$id": "80",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "10"
+ "$ref": "26"
},
"headers": [],
"isErrorResponse": false,
@@ -724,11 +824,11 @@
},
"parameters": [
{
- "$id": "73",
+ "$id": "81",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "70"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -742,9 +842,9 @@
}
],
"response": {
- "$id": "74",
+ "$id": "82",
"type": {
- "$ref": "10"
+ "$ref": "26"
}
},
"isOverride": false,
@@ -753,35 +853,25 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getExtensibleModelWrongDiscriminator"
},
{
- "$id": "75",
+ "$id": "83",
"kind": "basic",
"name": "getFixedModel",
"accessibility": "public",
"apiVersions": [],
"doc": "Receive model with fixed enum discriminator type.",
"operation": {
- "$id": "76",
+ "$id": "84",
"name": "getFixedModel",
"resourceName": "EnumDiscriminator",
"doc": "Receive model with fixed enum discriminator type.",
"accessibility": "public",
"parameters": [
{
- "$id": "77",
+ "$id": "85",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "78",
- "kind": "constant",
- "valueType": {
- "$id": "79",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -796,12 +886,12 @@
],
"responses": [
{
- "$id": "80",
+ "$id": "86",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "25"
+ "$ref": "41"
},
"headers": [],
"isErrorResponse": false,
@@ -821,11 +911,11 @@
},
"parameters": [
{
- "$id": "81",
+ "$id": "87",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "78"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -839,9 +929,9 @@
}
],
"response": {
- "$id": "82",
+ "$id": "88",
"type": {
- "$ref": "25"
+ "$ref": "41"
}
},
"isOverride": false,
@@ -850,36 +940,26 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModel"
},
{
- "$id": "83",
+ "$id": "89",
"kind": "basic",
"name": "putFixedModel",
"accessibility": "public",
"apiVersions": [],
"doc": "Send model with fixed enum discriminator type.",
"operation": {
- "$id": "84",
+ "$id": "90",
"name": "putFixedModel",
"resourceName": "EnumDiscriminator",
"doc": "Send model with fixed enum discriminator type.",
"accessibility": "public",
"parameters": [
{
- "$id": "85",
+ "$id": "91",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "86",
- "kind": "constant",
- "valueType": {
- "$id": "87",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -892,12 +972,12 @@
"skipUrlEncoding": false
},
{
- "$id": "88",
+ "$id": "92",
"name": "input",
"nameInRequest": "input",
"doc": "Snake to create",
"type": {
- "$ref": "25"
+ "$ref": "41"
},
"location": "Body",
"isApiVersion": false,
@@ -912,7 +992,7 @@
],
"responses": [
{
- "$id": "89",
+ "$id": "93",
"statusCodes": [
204
],
@@ -934,12 +1014,12 @@
},
"parameters": [
{
- "$id": "90",
+ "$id": "94",
"name": "input",
"nameInRequest": "input",
"doc": "Snake to create",
"type": {
- "$ref": "25"
+ "$ref": "41"
},
"location": "Body",
"isApiVersion": false,
@@ -952,12 +1032,12 @@
"skipUrlEncoding": false
},
{
- "$id": "91",
+ "$id": "95",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "86"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -971,7 +1051,7 @@
}
],
"response": {
- "$id": "92"
+ "$id": "96"
},
"isOverride": false,
"generateConvenient": true,
@@ -979,35 +1059,25 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.putFixedModel"
},
{
- "$id": "93",
+ "$id": "97",
"kind": "basic",
"name": "getFixedModelMissingDiscriminator",
"accessibility": "public",
"apiVersions": [],
"doc": "Get a model omitting the discriminator.",
"operation": {
- "$id": "94",
+ "$id": "98",
"name": "getFixedModelMissingDiscriminator",
"resourceName": "EnumDiscriminator",
"doc": "Get a model omitting the discriminator.",
"accessibility": "public",
"parameters": [
{
- "$id": "95",
+ "$id": "99",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "96",
- "kind": "constant",
- "valueType": {
- "$id": "97",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1022,12 +1092,12 @@
],
"responses": [
{
- "$id": "98",
+ "$id": "100",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "25"
+ "$ref": "41"
},
"headers": [],
"isErrorResponse": false,
@@ -1047,11 +1117,11 @@
},
"parameters": [
{
- "$id": "99",
+ "$id": "101",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "96"
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1065,9 +1135,9 @@
}
],
"response": {
- "$id": "100",
+ "$id": "102",
"type": {
- "$ref": "25"
+ "$ref": "41"
}
},
"isOverride": false,
@@ -1076,35 +1146,25 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.EnumDiscriminator.getFixedModelMissingDiscriminator"
},
{
- "$id": "101",
+ "$id": "103",
"kind": "basic",
"name": "getFixedModelWrongDiscriminator",
"accessibility": "public",
"apiVersions": [],
"doc": "Get a model containing discriminator value never defined.",
"operation": {
- "$id": "102",
+ "$id": "104",
"name": "getFixedModelWrongDiscriminator",
"resourceName": "EnumDiscriminator",
"doc": "Get a model containing discriminator value never defined.",
"accessibility": "public",
"parameters": [
{
- "$id": "103",
+ "$id": "105",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "104",
- "kind": "constant",
- "valueType": {
- "$id": "105",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1124,7 +1184,7 @@
200
],
"bodyType": {
- "$ref": "25"
+ "$ref": "41"
},
"headers": [],
"isErrorResponse": false,
@@ -1148,7 +1208,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "104"
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1164,7 +1224,7 @@
"response": {
"$id": "108",
"type": {
- "$ref": "25"
+ "$ref": "41"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/src/Type.Model.Inheritance.NestedDiscriminator.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/src/Type.Model.Inheritance.NestedDiscriminator.csproj
index b499a9d11b81..76774d5f31db 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/src/Type.Model.Inheritance.NestedDiscriminator.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/nested-discriminator/src/Type.Model.Inheritance.NestedDiscriminator.csproj
@@ -17,6 +17,7 @@
+
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 767a21167415..a9f85f8cb7ee 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
@@ -3,9 +3,171 @@
"name": "Type.Model.Inheritance.NestedDiscriminator",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "SharkKind",
+ "namespace": "Type.Model.Inheritance.NestedDiscriminator",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "shark",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "SawSharkSharktype",
+ "namespace": "Type.Model.Inheritance.NestedDiscriminator",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "saw",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "GoblinSharkSharktype",
+ "namespace": "Type.Model.Inheritance.NestedDiscriminator",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "goblin",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "SalmonKind",
+ "namespace": "Type.Model.Inheritance.NestedDiscriminator",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "salmon",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "getModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "putModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "getRecursiveModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "putRecursiveModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "getMissingDiscriminatorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "getWrongDiscriminatorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "22",
"kind": "model",
"name": "Fish",
"namespace": "Type.Model.Inheritance.NestedDiscriminator",
@@ -14,13 +176,13 @@
"doc": "This is base model for polymorphic multiple levels inheritance with a discriminator.",
"decorators": [],
"discriminatorProperty": {
- "$id": "3",
+ "$id": "23",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"doc": "Discriminator property for Fish.",
"type": {
- "$id": "4",
+ "$id": "24",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -33,24 +195,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Fish.kind",
"serializationOptions": {
- "$id": "5",
+ "$id": "25",
"json": {
- "$id": "6",
+ "$id": "26",
"name": "kind"
}
}
},
"properties": [
{
- "$ref": "3"
+ "$ref": "23"
},
{
- "$id": "7",
+ "$id": "27",
"kind": "property",
"name": "age",
"serializedName": "age",
"type": {
- "$id": "8",
+ "$id": "28",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -63,18 +225,18 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Fish.age",
"serializationOptions": {
- "$id": "9",
+ "$id": "29",
"json": {
- "$id": "10",
+ "$id": "30",
"name": "age"
}
}
}
],
"discriminatedSubtypes": {
- "$id": "11",
+ "$id": "31",
"shark": {
- "$id": "12",
+ "$id": "32",
"kind": "model",
"name": "Shark",
"namespace": "Type.Model.Inheritance.NestedDiscriminator",
@@ -84,12 +246,12 @@
"discriminatorValue": "shark",
"decorators": [],
"discriminatorProperty": {
- "$id": "13",
+ "$id": "33",
"kind": "property",
"name": "sharktype",
"serializedName": "sharktype",
"type": {
- "$id": "14",
+ "$id": "34",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -102,34 +264,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Shark.sharktype",
"serializationOptions": {
- "$id": "15",
+ "$id": "35",
"json": {
- "$id": "16",
+ "$id": "36",
"name": "sharktype"
}
}
},
"baseModel": {
- "$ref": "2"
+ "$ref": "22"
},
"properties": [
{
- "$id": "17",
+ "$id": "37",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "18",
- "kind": "constant",
- "valueType": {
- "$id": "19",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "shark",
- "decorators": []
+ "$ref": "2"
},
"optional": false,
"readOnly": false,
@@ -138,21 +290,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Shark.kind",
"serializationOptions": {
- "$id": "20",
+ "$id": "38",
"json": {
- "$id": "21",
+ "$id": "39",
"name": "kind"
}
}
},
{
- "$ref": "13"
+ "$ref": "33"
}
],
"discriminatedSubtypes": {
- "$id": "22",
+ "$id": "40",
"saw": {
- "$id": "23",
+ "$id": "41",
"kind": "model",
"name": "SawShark",
"namespace": "Type.Model.Inheritance.NestedDiscriminator",
@@ -162,26 +314,16 @@
"discriminatorValue": "saw",
"decorators": [],
"baseModel": {
- "$ref": "12"
+ "$ref": "32"
},
"properties": [
{
- "$id": "24",
+ "$id": "42",
"kind": "property",
"name": "sharktype",
"serializedName": "sharktype",
"type": {
- "$id": "25",
- "kind": "constant",
- "valueType": {
- "$id": "26",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "saw",
- "decorators": []
+ "$ref": "4"
},
"optional": false,
"readOnly": false,
@@ -190,9 +332,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.SawShark.sharktype",
"serializationOptions": {
- "$id": "27",
+ "$id": "43",
"json": {
- "$id": "28",
+ "$id": "44",
"name": "sharktype"
}
}
@@ -200,7 +342,7 @@
]
},
"goblin": {
- "$id": "29",
+ "$id": "45",
"kind": "model",
"name": "GoblinShark",
"namespace": "Type.Model.Inheritance.NestedDiscriminator",
@@ -210,26 +352,16 @@
"discriminatorValue": "goblin",
"decorators": [],
"baseModel": {
- "$ref": "12"
+ "$ref": "32"
},
"properties": [
{
- "$id": "30",
+ "$id": "46",
"kind": "property",
"name": "sharktype",
"serializedName": "sharktype",
"type": {
- "$id": "31",
- "kind": "constant",
- "valueType": {
- "$id": "32",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "goblin",
- "decorators": []
+ "$ref": "6"
},
"optional": false,
"readOnly": false,
@@ -238,9 +370,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.GoblinShark.sharktype",
"serializationOptions": {
- "$id": "33",
+ "$id": "47",
"json": {
- "$id": "34",
+ "$id": "48",
"name": "sharktype"
}
}
@@ -250,7 +382,7 @@
}
},
"salmon": {
- "$id": "35",
+ "$id": "49",
"kind": "model",
"name": "Salmon",
"namespace": "Type.Model.Inheritance.NestedDiscriminator",
@@ -260,26 +392,16 @@
"discriminatorValue": "salmon",
"decorators": [],
"baseModel": {
- "$ref": "2"
+ "$ref": "22"
},
"properties": [
{
- "$id": "36",
+ "$id": "50",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "37",
- "kind": "constant",
- "valueType": {
- "$id": "38",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "salmon",
- "decorators": []
+ "$ref": "8"
},
"optional": false,
"readOnly": false,
@@ -288,24 +410,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.kind",
"serializationOptions": {
- "$id": "39",
+ "$id": "51",
"json": {
- "$id": "40",
+ "$id": "52",
"name": "kind"
}
}
},
{
- "$id": "41",
+ "$id": "53",
"kind": "property",
"name": "friends",
"serializedName": "friends",
"type": {
- "$id": "42",
+ "$id": "54",
"kind": "array",
"name": "ArrayFish",
"valueType": {
- "$ref": "2"
+ "$ref": "22"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -317,30 +439,30 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.friends",
"serializationOptions": {
- "$id": "43",
+ "$id": "55",
"json": {
- "$id": "44",
+ "$id": "56",
"name": "friends"
}
}
},
{
- "$id": "45",
+ "$id": "57",
"kind": "property",
"name": "hate",
"serializedName": "hate",
"type": {
- "$id": "46",
+ "$id": "58",
"kind": "dict",
"keyType": {
- "$id": "47",
+ "$id": "59",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "22"
},
"decorators": []
},
@@ -351,20 +473,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.hate",
"serializationOptions": {
- "$id": "48",
+ "$id": "60",
"json": {
- "$id": "49",
+ "$id": "61",
"name": "hate"
}
}
},
{
- "$id": "50",
+ "$id": "62",
"kind": "property",
"name": "partner",
"serializedName": "partner",
"type": {
- "$ref": "2"
+ "$ref": "22"
},
"optional": true,
"readOnly": false,
@@ -373,9 +495,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.Salmon.partner",
"serializationOptions": {
- "$id": "51",
+ "$id": "63",
"json": {
- "$id": "52",
+ "$id": "64",
"name": "partner"
}
}
@@ -385,54 +507,44 @@
}
},
{
- "$ref": "12"
+ "$ref": "32"
},
{
- "$ref": "23"
+ "$ref": "41"
},
{
- "$ref": "29"
+ "$ref": "45"
},
{
- "$ref": "35"
+ "$ref": "49"
}
],
"clients": [
{
- "$id": "53",
+ "$id": "65",
"kind": "client",
"name": "NestedDiscriminatorClient",
"namespace": "Type.Model.Inheritance.NestedDiscriminator",
"doc": "Illustrates multiple level inheritance with multiple discriminators.",
"methods": [
{
- "$id": "54",
+ "$id": "66",
"kind": "basic",
"name": "getModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "55",
+ "$id": "67",
"name": "getModel",
"resourceName": "NestedDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "56",
+ "$id": "68",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "57",
- "kind": "constant",
- "valueType": {
- "$id": "58",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -447,12 +559,12 @@
],
"responses": [
{
- "$id": "59",
+ "$id": "69",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "22"
},
"headers": [],
"isErrorResponse": false,
@@ -472,11 +584,11 @@
},
"parameters": [
{
- "$id": "60",
+ "$id": "70",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "57"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -490,9 +602,9 @@
}
],
"response": {
- "$id": "61",
+ "$id": "71",
"type": {
- "$ref": "2"
+ "$ref": "22"
}
},
"isOverride": false,
@@ -501,34 +613,24 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getModel"
},
{
- "$id": "62",
+ "$id": "72",
"kind": "basic",
"name": "putModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "63",
+ "$id": "73",
"name": "putModel",
"resourceName": "NestedDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "64",
+ "$id": "74",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "65",
- "kind": "constant",
- "valueType": {
- "$id": "66",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -541,11 +643,11 @@
"skipUrlEncoding": false
},
{
- "$id": "67",
+ "$id": "75",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "22"
},
"location": "Body",
"isApiVersion": false,
@@ -560,7 +662,7 @@
],
"responses": [
{
- "$id": "68",
+ "$id": "76",
"statusCodes": [
204
],
@@ -582,11 +684,11 @@
},
"parameters": [
{
- "$id": "69",
+ "$id": "77",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "22"
},
"location": "Body",
"isApiVersion": false,
@@ -599,12 +701,12 @@
"skipUrlEncoding": false
},
{
- "$id": "70",
+ "$id": "78",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "65"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -618,7 +720,7 @@
}
],
"response": {
- "$id": "71"
+ "$id": "79"
},
"isOverride": false,
"generateConvenient": true,
@@ -626,33 +728,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putModel"
},
{
- "$id": "72",
+ "$id": "80",
"kind": "basic",
"name": "getRecursiveModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "73",
+ "$id": "81",
"name": "getRecursiveModel",
"resourceName": "NestedDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "74",
+ "$id": "82",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "75",
- "kind": "constant",
- "valueType": {
- "$id": "76",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -667,12 +759,12 @@
],
"responses": [
{
- "$id": "77",
+ "$id": "83",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "22"
},
"headers": [],
"isErrorResponse": false,
@@ -692,11 +784,11 @@
},
"parameters": [
{
- "$id": "78",
+ "$id": "84",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "75"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -710,9 +802,9 @@
}
],
"response": {
- "$id": "79",
+ "$id": "85",
"type": {
- "$ref": "2"
+ "$ref": "22"
}
},
"isOverride": false,
@@ -721,34 +813,24 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getRecursiveModel"
},
{
- "$id": "80",
+ "$id": "86",
"kind": "basic",
"name": "putRecursiveModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "81",
+ "$id": "87",
"name": "putRecursiveModel",
"resourceName": "NestedDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "82",
+ "$id": "88",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "83",
- "kind": "constant",
- "valueType": {
- "$id": "84",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -761,11 +843,11 @@
"skipUrlEncoding": false
},
{
- "$id": "85",
+ "$id": "89",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "22"
},
"location": "Body",
"isApiVersion": false,
@@ -780,7 +862,7 @@
],
"responses": [
{
- "$id": "86",
+ "$id": "90",
"statusCodes": [
204
],
@@ -802,11 +884,11 @@
},
"parameters": [
{
- "$id": "87",
+ "$id": "91",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "22"
},
"location": "Body",
"isApiVersion": false,
@@ -819,12 +901,12 @@
"skipUrlEncoding": false
},
{
- "$id": "88",
+ "$id": "92",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "83"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -838,7 +920,7 @@
}
],
"response": {
- "$id": "89"
+ "$id": "93"
},
"isOverride": false,
"generateConvenient": true,
@@ -846,33 +928,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.putRecursiveModel"
},
{
- "$id": "90",
+ "$id": "94",
"kind": "basic",
"name": "getMissingDiscriminator",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "91",
+ "$id": "95",
"name": "getMissingDiscriminator",
"resourceName": "NestedDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "92",
+ "$id": "96",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "93",
- "kind": "constant",
- "valueType": {
- "$id": "94",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -887,12 +959,12 @@
],
"responses": [
{
- "$id": "95",
+ "$id": "97",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "22"
},
"headers": [],
"isErrorResponse": false,
@@ -912,11 +984,11 @@
},
"parameters": [
{
- "$id": "96",
+ "$id": "98",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "93"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -930,9 +1002,9 @@
}
],
"response": {
- "$id": "97",
+ "$id": "99",
"type": {
- "$ref": "2"
+ "$ref": "22"
}
},
"isOverride": false,
@@ -941,33 +1013,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NestedDiscriminator.getMissingDiscriminator"
},
{
- "$id": "98",
+ "$id": "100",
"kind": "basic",
"name": "getWrongDiscriminator",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "99",
+ "$id": "101",
"name": "getWrongDiscriminator",
"resourceName": "NestedDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "100",
+ "$id": "102",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "101",
- "kind": "constant",
- "valueType": {
- "$id": "102",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -987,7 +1049,7 @@
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "22"
},
"headers": [],
"isErrorResponse": false,
@@ -1011,7 +1073,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "101"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1027,7 +1089,7 @@
"response": {
"$id": "105",
"type": {
- "$ref": "2"
+ "$ref": "22"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/src/Type.Model.Inheritance.NotDiscriminated.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/src/Type.Model.Inheritance.NotDiscriminated.csproj
index ba3a209f617e..6612c546c14f 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/src/Type.Model.Inheritance.NotDiscriminated.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/not-discriminated/src/Type.Model.Inheritance.NotDiscriminated.csproj
@@ -17,6 +17,7 @@
+
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 efb013dd1fb0..cee1315b390d 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
@@ -3,9 +3,75 @@
"name": "Type.Model.Inheritance.NotDiscriminated",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "postValidContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "getValidContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "putValidContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "putValidContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "10",
"kind": "model",
"name": "Siamese",
"namespace": "Type.Model.Inheritance.NotDiscriminated",
@@ -14,7 +80,7 @@
"doc": "The third level model in the normal multiple levels inheritance.",
"decorators": [],
"baseModel": {
- "$id": "3",
+ "$id": "11",
"kind": "model",
"name": "Cat",
"namespace": "Type.Model.Inheritance.NotDiscriminated",
@@ -23,7 +89,7 @@
"doc": "The second level model in the normal multiple levels inheritance.",
"decorators": [],
"baseModel": {
- "$id": "4",
+ "$id": "12",
"kind": "model",
"name": "Pet",
"namespace": "Type.Model.Inheritance.NotDiscriminated",
@@ -33,12 +99,12 @@
"decorators": [],
"properties": [
{
- "$id": "5",
+ "$id": "13",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "6",
+ "$id": "14",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -51,9 +117,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Pet.name",
"serializationOptions": {
- "$id": "7",
+ "$id": "15",
"json": {
- "$id": "8",
+ "$id": "16",
"name": "name"
}
}
@@ -62,12 +128,12 @@
},
"properties": [
{
- "$id": "9",
+ "$id": "17",
"kind": "property",
"name": "age",
"serializedName": "age",
"type": {
- "$id": "10",
+ "$id": "18",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -80,9 +146,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Cat.age",
"serializationOptions": {
- "$id": "11",
+ "$id": "19",
"json": {
- "$id": "12",
+ "$id": "20",
"name": "age"
}
}
@@ -91,12 +157,12 @@
},
"properties": [
{
- "$id": "13",
+ "$id": "21",
"kind": "property",
"name": "smart",
"serializedName": "smart",
"type": {
- "$id": "14",
+ "$id": "22",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -109,9 +175,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.Siamese.smart",
"serializationOptions": {
- "$id": "15",
+ "$id": "23",
"json": {
- "$id": "16",
+ "$id": "24",
"name": "smart"
}
}
@@ -119,49 +185,39 @@
]
},
{
- "$ref": "3"
+ "$ref": "11"
},
{
- "$ref": "4"
+ "$ref": "12"
}
],
"clients": [
{
- "$id": "17",
+ "$id": "25",
"kind": "client",
"name": "NotDiscriminatedClient",
"namespace": "Type.Model.Inheritance.NotDiscriminated",
"doc": "Illustrates not-discriminated inheritance model.",
"methods": [
{
- "$id": "18",
+ "$id": "26",
"kind": "basic",
"name": "postValid",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "19",
+ "$id": "27",
"name": "postValid",
"resourceName": "NotDiscriminated",
"accessibility": "public",
"parameters": [
{
- "$id": "20",
+ "$id": "28",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "21",
- "kind": "constant",
- "valueType": {
- "$id": "22",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -174,11 +230,11 @@
"skipUrlEncoding": false
},
{
- "$id": "23",
+ "$id": "29",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -193,7 +249,7 @@
],
"responses": [
{
- "$id": "24",
+ "$id": "30",
"statusCodes": [
204
],
@@ -215,11 +271,11 @@
},
"parameters": [
{
- "$id": "25",
+ "$id": "31",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -232,12 +288,12 @@
"skipUrlEncoding": false
},
{
- "$id": "26",
+ "$id": "32",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "21"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -251,7 +307,7 @@
}
],
"response": {
- "$id": "27"
+ "$id": "33"
},
"isOverride": false,
"generateConvenient": true,
@@ -259,33 +315,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.postValid"
},
{
- "$id": "28",
+ "$id": "34",
"kind": "basic",
"name": "getValid",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "29",
+ "$id": "35",
"name": "getValid",
"resourceName": "NotDiscriminated",
"accessibility": "public",
"parameters": [
{
- "$id": "30",
+ "$id": "36",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "31",
- "kind": "constant",
- "valueType": {
- "$id": "32",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -300,12 +346,12 @@
],
"responses": [
{
- "$id": "33",
+ "$id": "37",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "10"
},
"headers": [],
"isErrorResponse": false,
@@ -325,11 +371,11 @@
},
"parameters": [
{
- "$id": "34",
+ "$id": "38",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "31"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -343,9 +389,9 @@
}
],
"response": {
- "$id": "35",
+ "$id": "39",
"type": {
- "$ref": "2"
+ "$ref": "10"
}
},
"isOverride": false,
@@ -354,34 +400,24 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.NotDiscriminated.getValid"
},
{
- "$id": "36",
+ "$id": "40",
"kind": "basic",
"name": "putValid",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "37",
+ "$id": "41",
"name": "putValid",
"resourceName": "NotDiscriminated",
"accessibility": "public",
"parameters": [
{
- "$id": "38",
+ "$id": "42",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "39",
- "kind": "constant",
- "valueType": {
- "$id": "40",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -394,21 +430,11 @@
"skipUrlEncoding": false
},
{
- "$id": "41",
+ "$id": "43",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "42",
- "kind": "constant",
- "valueType": {
- "$id": "43",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -425,7 +451,7 @@
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -445,7 +471,7 @@
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "10"
},
"headers": [],
"isErrorResponse": false,
@@ -472,7 +498,7 @@
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -490,7 +516,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "39"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -507,7 +533,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "42"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -523,7 +549,7 @@
"response": {
"$id": "49",
"type": {
- "$ref": "2"
+ "$ref": "10"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/src/Type.Model.Inheritance.Recursive.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/src/Type.Model.Inheritance.Recursive.csproj
index cd7239aa6856..506e5a2b29dc 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/src/Type.Model.Inheritance.Recursive.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/recursive/src/Type.Model.Inheritance.Recursive.csproj
@@ -17,6 +17,7 @@
+
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 c6de786c50f5..e80cc520d10b 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
@@ -3,9 +3,43 @@
"name": "Type.Model.Inheritance.Recursive",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "putContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "6",
"kind": "model",
"name": "Extension",
"namespace": "Type.Model.Inheritance.Recursive",
@@ -14,7 +48,7 @@
"doc": "extension",
"decorators": [],
"baseModel": {
- "$id": "3",
+ "$id": "7",
"kind": "model",
"name": "Element",
"namespace": "Type.Model.Inheritance.Recursive",
@@ -24,16 +58,16 @@
"decorators": [],
"properties": [
{
- "$id": "4",
+ "$id": "8",
"kind": "property",
"name": "extension",
"serializedName": "extension",
"type": {
- "$id": "5",
+ "$id": "9",
"kind": "array",
"name": "ArrayExtension",
"valueType": {
- "$ref": "2"
+ "$ref": "6"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -45,9 +79,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Element.extension",
"serializationOptions": {
- "$id": "6",
+ "$id": "10",
"json": {
- "$id": "7",
+ "$id": "11",
"name": "extension"
}
}
@@ -56,12 +90,12 @@
},
"properties": [
{
- "$id": "8",
+ "$id": "12",
"kind": "property",
"name": "level",
"serializedName": "level",
"type": {
- "$id": "9",
+ "$id": "13",
"kind": "int8",
"name": "int8",
"crossLanguageDefinitionId": "TypeSpec.int8",
@@ -74,9 +108,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.Extension.level",
"serializationOptions": {
- "$id": "10",
+ "$id": "14",
"json": {
- "$id": "11",
+ "$id": "15",
"name": "level"
}
}
@@ -84,46 +118,36 @@
]
},
{
- "$ref": "3"
+ "$ref": "7"
}
],
"clients": [
{
- "$id": "12",
+ "$id": "16",
"kind": "client",
"name": "RecursiveClient",
"namespace": "Type.Model.Inheritance.Recursive",
"doc": "Illustrates inheritance recursion",
"methods": [
{
- "$id": "13",
+ "$id": "17",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "14",
+ "$id": "18",
"name": "put",
"resourceName": "Recursive",
"accessibility": "public",
"parameters": [
{
- "$id": "15",
+ "$id": "19",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "16",
- "kind": "constant",
- "valueType": {
- "$id": "17",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -136,11 +160,11 @@
"skipUrlEncoding": false
},
{
- "$id": "18",
+ "$id": "20",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "6"
},
"location": "Body",
"isApiVersion": false,
@@ -155,7 +179,7 @@
],
"responses": [
{
- "$id": "19",
+ "$id": "21",
"statusCodes": [
204
],
@@ -177,11 +201,11 @@
},
"parameters": [
{
- "$id": "20",
+ "$id": "22",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "6"
},
"location": "Body",
"isApiVersion": false,
@@ -194,12 +218,12 @@
"skipUrlEncoding": false
},
{
- "$id": "21",
+ "$id": "23",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "16"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -213,7 +237,7 @@
}
],
"response": {
- "$id": "22"
+ "$id": "24"
},
"isOverride": false,
"generateConvenient": true,
@@ -221,33 +245,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.Recursive.put"
},
{
- "$id": "23",
+ "$id": "25",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "24",
+ "$id": "26",
"name": "get",
"resourceName": "Recursive",
"accessibility": "public",
"parameters": [
{
- "$id": "25",
+ "$id": "27",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "26",
- "kind": "constant",
- "valueType": {
- "$id": "27",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -267,7 +281,7 @@
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "6"
},
"headers": [],
"isErrorResponse": false,
@@ -291,7 +305,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "26"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -307,7 +321,7 @@
"response": {
"$id": "30",
"type": {
- "$ref": "2"
+ "$ref": "6"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/src/Type.Model.Inheritance.SingleDiscriminator.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/src/Type.Model.Inheritance.SingleDiscriminator.csproj
index 2d640c1f34bc..c6a7f1332f33 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/src/Type.Model.Inheritance.SingleDiscriminator.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/inheritance/single-discriminator/src/Type.Model.Inheritance.SingleDiscriminator.csproj
@@ -17,6 +17,7 @@
+
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 a2b8c1bfbd84..48e4812dff89 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
@@ -3,9 +3,203 @@
"name": "Type.Model.Inheritance.SingleDiscriminator",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "SeaGullKind",
+ "namespace": "Type.Model.Inheritance.SingleDiscriminator",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "seagull",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "SparrowKind",
+ "namespace": "Type.Model.Inheritance.SingleDiscriminator",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "sparrow",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "GooseKind",
+ "namespace": "Type.Model.Inheritance.SingleDiscriminator",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "goose",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "EagleKind",
+ "namespace": "Type.Model.Inheritance.SingleDiscriminator",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "eagle",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "TRexKind",
+ "namespace": "Type.Model.Inheritance.SingleDiscriminator",
+ "usage": "Output,Json",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "t-rex",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "getModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "putModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "getRecursiveModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "putRecursiveModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "getMissingDiscriminatorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "getWrongDiscriminatorContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "getLegacyModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "26",
"kind": "model",
"name": "Bird",
"namespace": "Type.Model.Inheritance.SingleDiscriminator",
@@ -14,12 +208,12 @@
"doc": "This is base model for polymorphic single level inheritance with a discriminator.",
"decorators": [],
"discriminatorProperty": {
- "$id": "3",
+ "$id": "27",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "4",
+ "$id": "28",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -32,24 +226,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Bird.kind",
"serializationOptions": {
- "$id": "5",
+ "$id": "29",
"json": {
- "$id": "6",
+ "$id": "30",
"name": "kind"
}
}
},
"properties": [
{
- "$ref": "3"
+ "$ref": "27"
},
{
- "$id": "7",
+ "$id": "31",
"kind": "property",
"name": "wingspan",
"serializedName": "wingspan",
"type": {
- "$id": "8",
+ "$id": "32",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -62,18 +256,18 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Bird.wingspan",
"serializationOptions": {
- "$id": "9",
+ "$id": "33",
"json": {
- "$id": "10",
+ "$id": "34",
"name": "wingspan"
}
}
}
],
"discriminatedSubtypes": {
- "$id": "11",
+ "$id": "35",
"seagull": {
- "$id": "12",
+ "$id": "36",
"kind": "model",
"name": "SeaGull",
"namespace": "Type.Model.Inheritance.SingleDiscriminator",
@@ -83,26 +277,16 @@
"discriminatorValue": "seagull",
"decorators": [],
"baseModel": {
- "$ref": "2"
+ "$ref": "26"
},
"properties": [
{
- "$id": "13",
+ "$id": "37",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "14",
- "kind": "constant",
- "valueType": {
- "$id": "15",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "seagull",
- "decorators": []
+ "$ref": "2"
},
"optional": false,
"readOnly": false,
@@ -111,9 +295,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.SeaGull.kind",
"serializationOptions": {
- "$id": "16",
+ "$id": "38",
"json": {
- "$id": "17",
+ "$id": "39",
"name": "kind"
}
}
@@ -121,7 +305,7 @@
]
},
"sparrow": {
- "$id": "18",
+ "$id": "40",
"kind": "model",
"name": "Sparrow",
"namespace": "Type.Model.Inheritance.SingleDiscriminator",
@@ -131,26 +315,16 @@
"discriminatorValue": "sparrow",
"decorators": [],
"baseModel": {
- "$ref": "2"
+ "$ref": "26"
},
"properties": [
{
- "$id": "19",
+ "$id": "41",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "20",
- "kind": "constant",
- "valueType": {
- "$id": "21",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "sparrow",
- "decorators": []
+ "$ref": "4"
},
"optional": false,
"readOnly": false,
@@ -159,9 +333,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Sparrow.kind",
"serializationOptions": {
- "$id": "22",
+ "$id": "42",
"json": {
- "$id": "23",
+ "$id": "43",
"name": "kind"
}
}
@@ -169,7 +343,7 @@
]
},
"goose": {
- "$id": "24",
+ "$id": "44",
"kind": "model",
"name": "Goose",
"namespace": "Type.Model.Inheritance.SingleDiscriminator",
@@ -179,26 +353,16 @@
"discriminatorValue": "goose",
"decorators": [],
"baseModel": {
- "$ref": "2"
+ "$ref": "26"
},
"properties": [
{
- "$id": "25",
+ "$id": "45",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "26",
- "kind": "constant",
- "valueType": {
- "$id": "27",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "goose",
- "decorators": []
+ "$ref": "6"
},
"optional": false,
"readOnly": false,
@@ -207,9 +371,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Goose.kind",
"serializationOptions": {
- "$id": "28",
+ "$id": "46",
"json": {
- "$id": "29",
+ "$id": "47",
"name": "kind"
}
}
@@ -217,7 +381,7 @@
]
},
"eagle": {
- "$id": "30",
+ "$id": "48",
"kind": "model",
"name": "Eagle",
"namespace": "Type.Model.Inheritance.SingleDiscriminator",
@@ -227,26 +391,16 @@
"discriminatorValue": "eagle",
"decorators": [],
"baseModel": {
- "$ref": "2"
+ "$ref": "26"
},
"properties": [
{
- "$id": "31",
+ "$id": "49",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "32",
- "kind": "constant",
- "valueType": {
- "$id": "33",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "eagle",
- "decorators": []
+ "$ref": "8"
},
"optional": false,
"readOnly": false,
@@ -255,24 +409,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.kind",
"serializationOptions": {
- "$id": "34",
+ "$id": "50",
"json": {
- "$id": "35",
+ "$id": "51",
"name": "kind"
}
}
},
{
- "$id": "36",
+ "$id": "52",
"kind": "property",
"name": "friends",
"serializedName": "friends",
"type": {
- "$id": "37",
+ "$id": "53",
"kind": "array",
"name": "ArrayBird",
"valueType": {
- "$ref": "2"
+ "$ref": "26"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -284,30 +438,30 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.friends",
"serializationOptions": {
- "$id": "38",
+ "$id": "54",
"json": {
- "$id": "39",
+ "$id": "55",
"name": "friends"
}
}
},
{
- "$id": "40",
+ "$id": "56",
"kind": "property",
"name": "hate",
"serializedName": "hate",
"type": {
- "$id": "41",
+ "$id": "57",
"kind": "dict",
"keyType": {
- "$id": "42",
+ "$id": "58",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$ref": "2"
+ "$ref": "26"
},
"decorators": []
},
@@ -318,20 +472,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.hate",
"serializationOptions": {
- "$id": "43",
+ "$id": "59",
"json": {
- "$id": "44",
+ "$id": "60",
"name": "hate"
}
}
},
{
- "$id": "45",
+ "$id": "61",
"kind": "property",
"name": "partner",
"serializedName": "partner",
"type": {
- "$ref": "2"
+ "$ref": "26"
},
"optional": true,
"readOnly": false,
@@ -340,9 +494,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Eagle.partner",
"serializationOptions": {
- "$id": "46",
+ "$id": "62",
"json": {
- "$id": "47",
+ "$id": "63",
"name": "partner"
}
}
@@ -352,19 +506,19 @@
}
},
{
- "$ref": "12"
+ "$ref": "36"
},
{
- "$ref": "18"
+ "$ref": "40"
},
{
- "$ref": "24"
+ "$ref": "44"
},
{
- "$ref": "30"
+ "$ref": "48"
},
{
- "$id": "48",
+ "$id": "64",
"kind": "model",
"name": "Dinosaur",
"namespace": "Type.Model.Inheritance.SingleDiscriminator",
@@ -373,13 +527,13 @@
"doc": "Define a base class in the legacy way. Discriminator property is not explicitly defined in the model.",
"decorators": [],
"discriminatorProperty": {
- "$id": "49",
+ "$id": "65",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"doc": "Discriminator property for Dinosaur.",
"type": {
- "$id": "50",
+ "$id": "66",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -392,24 +546,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Dinosaur.kind",
"serializationOptions": {
- "$id": "51",
+ "$id": "67",
"json": {
- "$id": "52",
+ "$id": "68",
"name": "kind"
}
}
},
"properties": [
{
- "$ref": "49"
+ "$ref": "65"
},
{
- "$id": "53",
+ "$id": "69",
"kind": "property",
"name": "size",
"serializedName": "size",
"type": {
- "$id": "54",
+ "$id": "70",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -422,18 +576,18 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.Dinosaur.size",
"serializationOptions": {
- "$id": "55",
+ "$id": "71",
"json": {
- "$id": "56",
+ "$id": "72",
"name": "size"
}
}
}
],
"discriminatedSubtypes": {
- "$id": "57",
+ "$id": "73",
"t-rex": {
- "$id": "58",
+ "$id": "74",
"kind": "model",
"name": "TRex",
"namespace": "Type.Model.Inheritance.SingleDiscriminator",
@@ -443,26 +597,16 @@
"discriminatorValue": "t-rex",
"decorators": [],
"baseModel": {
- "$ref": "48"
+ "$ref": "64"
},
"properties": [
{
- "$id": "59",
+ "$id": "75",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "60",
- "kind": "constant",
- "valueType": {
- "$id": "61",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "t-rex",
- "decorators": []
+ "$ref": "10"
},
"optional": false,
"readOnly": false,
@@ -471,9 +615,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.TRex.kind",
"serializationOptions": {
- "$id": "62",
+ "$id": "76",
"json": {
- "$id": "63",
+ "$id": "77",
"name": "kind"
}
}
@@ -483,45 +627,35 @@
}
},
{
- "$ref": "58"
+ "$ref": "74"
}
],
"clients": [
{
- "$id": "64",
+ "$id": "78",
"kind": "client",
"name": "SingleDiscriminatorClient",
"namespace": "Type.Model.Inheritance.SingleDiscriminator",
"doc": "Illustrates inheritance with single discriminator.",
"methods": [
{
- "$id": "65",
+ "$id": "79",
"kind": "basic",
"name": "getModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "66",
+ "$id": "80",
"name": "getModel",
"resourceName": "SingleDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "67",
+ "$id": "81",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "68",
- "kind": "constant",
- "valueType": {
- "$id": "69",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -536,12 +670,12 @@
],
"responses": [
{
- "$id": "70",
+ "$id": "82",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "26"
},
"headers": [],
"isErrorResponse": false,
@@ -561,11 +695,11 @@
},
"parameters": [
{
- "$id": "71",
+ "$id": "83",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "68"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -579,9 +713,9 @@
}
],
"response": {
- "$id": "72",
+ "$id": "84",
"type": {
- "$ref": "2"
+ "$ref": "26"
}
},
"isOverride": false,
@@ -590,34 +724,24 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getModel"
},
{
- "$id": "73",
+ "$id": "85",
"kind": "basic",
"name": "putModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "74",
+ "$id": "86",
"name": "putModel",
"resourceName": "SingleDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "75",
+ "$id": "87",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "76",
- "kind": "constant",
- "valueType": {
- "$id": "77",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -630,11 +754,11 @@
"skipUrlEncoding": false
},
{
- "$id": "78",
+ "$id": "88",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "26"
},
"location": "Body",
"isApiVersion": false,
@@ -649,7 +773,7 @@
],
"responses": [
{
- "$id": "79",
+ "$id": "89",
"statusCodes": [
204
],
@@ -671,11 +795,11 @@
},
"parameters": [
{
- "$id": "80",
+ "$id": "90",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "26"
},
"location": "Body",
"isApiVersion": false,
@@ -688,12 +812,12 @@
"skipUrlEncoding": false
},
{
- "$id": "81",
+ "$id": "91",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "76"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -707,7 +831,7 @@
}
],
"response": {
- "$id": "82"
+ "$id": "92"
},
"isOverride": false,
"generateConvenient": true,
@@ -715,33 +839,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putModel"
},
{
- "$id": "83",
+ "$id": "93",
"kind": "basic",
"name": "getRecursiveModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "84",
+ "$id": "94",
"name": "getRecursiveModel",
"resourceName": "SingleDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "85",
+ "$id": "95",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "86",
- "kind": "constant",
- "valueType": {
- "$id": "87",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -756,12 +870,12 @@
],
"responses": [
{
- "$id": "88",
+ "$id": "96",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "26"
},
"headers": [],
"isErrorResponse": false,
@@ -781,11 +895,11 @@
},
"parameters": [
{
- "$id": "89",
+ "$id": "97",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "86"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -799,9 +913,9 @@
}
],
"response": {
- "$id": "90",
+ "$id": "98",
"type": {
- "$ref": "2"
+ "$ref": "26"
}
},
"isOverride": false,
@@ -810,34 +924,24 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getRecursiveModel"
},
{
- "$id": "91",
+ "$id": "99",
"kind": "basic",
"name": "putRecursiveModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "92",
+ "$id": "100",
"name": "putRecursiveModel",
"resourceName": "SingleDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "93",
+ "$id": "101",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "94",
- "kind": "constant",
- "valueType": {
- "$id": "95",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -850,11 +954,11 @@
"skipUrlEncoding": false
},
{
- "$id": "96",
+ "$id": "102",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "26"
},
"location": "Body",
"isApiVersion": false,
@@ -869,7 +973,7 @@
],
"responses": [
{
- "$id": "97",
+ "$id": "103",
"statusCodes": [
204
],
@@ -891,11 +995,11 @@
},
"parameters": [
{
- "$id": "98",
+ "$id": "104",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "26"
},
"location": "Body",
"isApiVersion": false,
@@ -908,12 +1012,12 @@
"skipUrlEncoding": false
},
{
- "$id": "99",
+ "$id": "105",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "94"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -927,7 +1031,7 @@
}
],
"response": {
- "$id": "100"
+ "$id": "106"
},
"isOverride": false,
"generateConvenient": true,
@@ -935,33 +1039,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.putRecursiveModel"
},
{
- "$id": "101",
+ "$id": "107",
"kind": "basic",
"name": "getMissingDiscriminator",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "102",
+ "$id": "108",
"name": "getMissingDiscriminator",
"resourceName": "SingleDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "103",
+ "$id": "109",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "104",
- "kind": "constant",
- "valueType": {
- "$id": "105",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -976,12 +1070,12 @@
],
"responses": [
{
- "$id": "106",
+ "$id": "110",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "26"
},
"headers": [],
"isErrorResponse": false,
@@ -1001,11 +1095,11 @@
},
"parameters": [
{
- "$id": "107",
+ "$id": "111",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "104"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1019,9 +1113,9 @@
}
],
"response": {
- "$id": "108",
+ "$id": "112",
"type": {
- "$ref": "2"
+ "$ref": "26"
}
},
"isOverride": false,
@@ -1030,33 +1124,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getMissingDiscriminator"
},
{
- "$id": "109",
+ "$id": "113",
"kind": "basic",
"name": "getWrongDiscriminator",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "110",
+ "$id": "114",
"name": "getWrongDiscriminator",
"resourceName": "SingleDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "111",
+ "$id": "115",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "112",
- "kind": "constant",
- "valueType": {
- "$id": "113",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1071,12 +1155,12 @@
],
"responses": [
{
- "$id": "114",
+ "$id": "116",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "26"
},
"headers": [],
"isErrorResponse": false,
@@ -1096,11 +1180,11 @@
},
"parameters": [
{
- "$id": "115",
+ "$id": "117",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "112"
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1114,9 +1198,9 @@
}
],
"response": {
- "$id": "116",
+ "$id": "118",
"type": {
- "$ref": "2"
+ "$ref": "26"
}
},
"isOverride": false,
@@ -1125,33 +1209,23 @@
"crossLanguageDefinitionId": "Type.Model.Inheritance.SingleDiscriminator.getWrongDiscriminator"
},
{
- "$id": "117",
+ "$id": "119",
"kind": "basic",
"name": "getLegacyModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "118",
+ "$id": "120",
"name": "getLegacyModel",
"resourceName": "SingleDiscriminator",
"accessibility": "public",
"parameters": [
{
- "$id": "119",
+ "$id": "121",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "120",
- "kind": "constant",
- "valueType": {
- "$id": "121",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1171,7 +1245,7 @@
200
],
"bodyType": {
- "$ref": "48"
+ "$ref": "64"
},
"headers": [],
"isErrorResponse": false,
@@ -1195,7 +1269,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "120"
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1211,7 +1285,7 @@
"response": {
"$id": "124",
"type": {
- "$ref": "48"
+ "$ref": "64"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/src/Type.Model.Usage.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/src/Type.Model.Usage.csproj
index b49c6551930d..062d72fbcf87 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/src/Type.Model.Usage.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/usage/src/Type.Model.Usage.csproj
@@ -17,6 +17,7 @@
+
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 58e626d957d5..152b88361ce2 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
@@ -3,9 +3,75 @@
"name": "Type.Model.Usage",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "inputContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "outputContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "inputAndOutputContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "inputAndOutputContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "10",
"kind": "model",
"name": "InputRecord",
"namespace": "Type.Model.Usage",
@@ -15,12 +81,12 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "11",
"kind": "property",
"name": "requiredProp",
"serializedName": "requiredProp",
"type": {
- "$id": "4",
+ "$id": "12",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -33,9 +99,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Usage.InputRecord.requiredProp",
"serializationOptions": {
- "$id": "5",
+ "$id": "13",
"json": {
- "$id": "6",
+ "$id": "14",
"name": "requiredProp"
}
}
@@ -43,7 +109,7 @@
]
},
{
- "$id": "7",
+ "$id": "15",
"kind": "model",
"name": "OutputRecord",
"namespace": "Type.Model.Usage",
@@ -53,12 +119,12 @@
"decorators": [],
"properties": [
{
- "$id": "8",
+ "$id": "16",
"kind": "property",
"name": "requiredProp",
"serializedName": "requiredProp",
"type": {
- "$id": "9",
+ "$id": "17",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -71,9 +137,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Usage.OutputRecord.requiredProp",
"serializationOptions": {
- "$id": "10",
+ "$id": "18",
"json": {
- "$id": "11",
+ "$id": "19",
"name": "requiredProp"
}
}
@@ -81,7 +147,7 @@
]
},
{
- "$id": "12",
+ "$id": "20",
"kind": "model",
"name": "InputOutputRecord",
"namespace": "Type.Model.Usage",
@@ -91,12 +157,12 @@
"decorators": [],
"properties": [
{
- "$id": "13",
+ "$id": "21",
"kind": "property",
"name": "requiredProp",
"serializedName": "requiredProp",
"type": {
- "$id": "14",
+ "$id": "22",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -109,9 +175,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Usage.InputOutputRecord.requiredProp",
"serializationOptions": {
- "$id": "15",
+ "$id": "23",
"json": {
- "$id": "16",
+ "$id": "24",
"name": "requiredProp"
}
}
@@ -121,41 +187,31 @@
],
"clients": [
{
- "$id": "17",
+ "$id": "25",
"kind": "client",
"name": "UsageClient",
"namespace": "Type.Model.Usage",
"doc": "Illustrates usage of Record in different places(Operation parameters, return type or both).",
"methods": [
{
- "$id": "18",
+ "$id": "26",
"kind": "basic",
"name": "input",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "19",
+ "$id": "27",
"name": "input",
"resourceName": "Usage",
"accessibility": "public",
"parameters": [
{
- "$id": "20",
+ "$id": "28",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "21",
- "kind": "constant",
- "valueType": {
- "$id": "22",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -168,11 +224,11 @@
"skipUrlEncoding": false
},
{
- "$id": "23",
+ "$id": "29",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -187,7 +243,7 @@
],
"responses": [
{
- "$id": "24",
+ "$id": "30",
"statusCodes": [
204
],
@@ -209,11 +265,11 @@
},
"parameters": [
{
- "$id": "25",
+ "$id": "31",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "10"
},
"location": "Body",
"isApiVersion": false,
@@ -226,12 +282,12 @@
"skipUrlEncoding": false
},
{
- "$id": "26",
+ "$id": "32",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "21"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -245,7 +301,7 @@
}
],
"response": {
- "$id": "27"
+ "$id": "33"
},
"isOverride": false,
"generateConvenient": true,
@@ -253,33 +309,23 @@
"crossLanguageDefinitionId": "Type.Model.Usage.input"
},
{
- "$id": "28",
+ "$id": "34",
"kind": "basic",
"name": "output",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "29",
+ "$id": "35",
"name": "output",
"resourceName": "Usage",
"accessibility": "public",
"parameters": [
{
- "$id": "30",
+ "$id": "36",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "31",
- "kind": "constant",
- "valueType": {
- "$id": "32",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -294,12 +340,12 @@
],
"responses": [
{
- "$id": "33",
+ "$id": "37",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "7"
+ "$ref": "15"
},
"headers": [],
"isErrorResponse": false,
@@ -319,11 +365,11 @@
},
"parameters": [
{
- "$id": "34",
+ "$id": "38",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "31"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -337,9 +383,9 @@
}
],
"response": {
- "$id": "35",
+ "$id": "39",
"type": {
- "$ref": "7"
+ "$ref": "15"
}
},
"isOverride": false,
@@ -348,34 +394,24 @@
"crossLanguageDefinitionId": "Type.Model.Usage.output"
},
{
- "$id": "36",
+ "$id": "40",
"kind": "basic",
"name": "inputAndOutput",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "37",
+ "$id": "41",
"name": "inputAndOutput",
"resourceName": "Usage",
"accessibility": "public",
"parameters": [
{
- "$id": "38",
+ "$id": "42",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "39",
- "kind": "constant",
- "valueType": {
- "$id": "40",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -388,21 +424,11 @@
"skipUrlEncoding": false
},
{
- "$id": "41",
+ "$id": "43",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "42",
- "kind": "constant",
- "valueType": {
- "$id": "43",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -419,7 +445,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -439,7 +465,7 @@
200
],
"bodyType": {
- "$ref": "12"
+ "$ref": "20"
},
"headers": [],
"isErrorResponse": false,
@@ -466,7 +492,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -484,7 +510,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "39"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -501,7 +527,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "42"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -517,7 +543,7 @@
"response": {
"$id": "49",
"type": {
- "$ref": "12"
+ "$ref": "20"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/src/Type.Model.Visibility.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/src/Type.Model.Visibility.csproj
index dc889b85de57..56cdd693a90b 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/src/Type.Model.Visibility.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/model/visibility/src/Type.Model.Visibility.csproj
@@ -17,6 +17,7 @@
+
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 f9aa18c70a5c..794a0ce37039 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
@@ -3,9 +3,155 @@
"name": "Type.Model.Visibility",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "getModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "getModelContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "headModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "putModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "patchModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "postModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "deleteModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "putReadOnlyModelContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "putReadOnlyModelContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "20",
"kind": "model",
"name": "VisibilityModel",
"namespace": "Type.Model.Visibility",
@@ -15,13 +161,13 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "21",
"kind": "property",
"name": "readProp",
"serializedName": "readProp",
"doc": "Required string, illustrating a readonly property.",
"type": {
- "$id": "4",
+ "$id": "22",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -34,21 +180,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.readProp",
"serializationOptions": {
- "$id": "5",
+ "$id": "23",
"json": {
- "$id": "6",
+ "$id": "24",
"name": "readProp"
}
}
},
{
- "$id": "7",
+ "$id": "25",
"kind": "query",
"name": "queryProp",
"serializedName": "queryProp",
"doc": "Required int32, illustrating a query property.",
"type": {
- "$id": "8",
+ "$id": "26",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -58,21 +204,20 @@
"readOnly": false,
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.queryProp",
- "discriminator": false,
- "flatten": false
+ "correspondingMethodParams": []
},
{
- "$id": "9",
+ "$id": "27",
"kind": "property",
"name": "createProp",
"serializedName": "createProp",
"doc": "Required string[], illustrating a create property.",
"type": {
- "$id": "10",
+ "$id": "28",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "11",
+ "$id": "29",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -88,25 +233,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.createProp",
"serializationOptions": {
- "$id": "12",
+ "$id": "30",
"json": {
- "$id": "13",
+ "$id": "31",
"name": "createProp"
}
}
},
{
- "$id": "14",
+ "$id": "32",
"kind": "property",
"name": "updateProp",
"serializedName": "updateProp",
"doc": "Required int32[], illustrating a update property.",
"type": {
- "$id": "15",
+ "$id": "33",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "16",
+ "$id": "34",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -122,21 +267,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.updateProp",
"serializationOptions": {
- "$id": "17",
+ "$id": "35",
"json": {
- "$id": "18",
+ "$id": "36",
"name": "updateProp"
}
}
},
{
- "$id": "19",
+ "$id": "37",
"kind": "property",
"name": "deleteProp",
"serializedName": "deleteProp",
"doc": "Required bool, illustrating a delete property.",
"type": {
- "$id": "20",
+ "$id": "38",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -149,9 +294,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Visibility.VisibilityModel.deleteProp",
"serializationOptions": {
- "$id": "21",
+ "$id": "39",
"json": {
- "$id": "22",
+ "$id": "40",
"name": "deleteProp"
}
}
@@ -159,7 +304,7 @@
]
},
{
- "$id": "23",
+ "$id": "41",
"kind": "model",
"name": "ReadOnlyModel",
"namespace": "Type.Model.Visibility",
@@ -169,20 +314,20 @@
"decorators": [],
"properties": [
{
- "$id": "24",
+ "$id": "42",
"kind": "property",
"name": "optionalNullableIntList",
"serializedName": "optionalNullableIntList",
"doc": "Optional readonly nullable int list.",
"type": {
- "$id": "25",
+ "$id": "43",
"kind": "nullable",
"type": {
- "$id": "26",
+ "$id": "44",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "27",
+ "$id": "45",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -200,31 +345,31 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel.optionalNullableIntList",
"serializationOptions": {
- "$id": "28",
+ "$id": "46",
"json": {
- "$id": "29",
+ "$id": "47",
"name": "optionalNullableIntList"
}
}
},
{
- "$id": "30",
+ "$id": "48",
"kind": "property",
"name": "optionalStringRecord",
"serializedName": "optionalStringRecord",
"doc": "Optional readonly string dictionary.",
"type": {
- "$id": "31",
+ "$id": "49",
"kind": "dict",
"keyType": {
- "$id": "32",
+ "$id": "50",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "33",
+ "$id": "51",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -239,9 +384,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Model.Visibility.ReadOnlyModel.optionalStringRecord",
"serializationOptions": {
- "$id": "34",
+ "$id": "52",
"json": {
- "$id": "35",
+ "$id": "53",
"name": "optionalStringRecord"
}
}
@@ -251,31 +396,31 @@
],
"clients": [
{
- "$id": "36",
+ "$id": "54",
"kind": "client",
"name": "VisibilityClient",
"namespace": "Type.Model.Visibility",
"doc": "Illustrates models with visibility properties.",
"methods": [
{
- "$id": "37",
+ "$id": "55",
"kind": "basic",
"name": "getModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "38",
+ "$id": "56",
"name": "getModel",
"resourceName": "Visibility",
"accessibility": "public",
"parameters": [
{
- "$id": "39",
+ "$id": "57",
"name": "queryProp",
"nameInRequest": "queryProp",
"doc": "Required int32, illustrating a query property.",
"type": {
- "$id": "40",
+ "$id": "58",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -292,22 +437,12 @@
"skipUrlEncoding": false
},
{
- "$id": "41",
+ "$id": "59",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "42",
- "kind": "constant",
- "valueType": {
- "$id": "43",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -320,21 +455,11 @@
"skipUrlEncoding": false
},
{
- "$id": "44",
+ "$id": "60",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "45",
- "kind": "constant",
- "valueType": {
- "$id": "46",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -347,11 +472,11 @@
"skipUrlEncoding": false
},
{
- "$id": "47",
+ "$id": "61",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -366,12 +491,12 @@
],
"responses": [
{
- "$id": "48",
+ "$id": "62",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "20"
},
"headers": [],
"isErrorResponse": false,
@@ -394,11 +519,11 @@
},
"parameters": [
{
- "$id": "49",
+ "$id": "63",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -411,12 +536,12 @@
"skipUrlEncoding": false
},
{
- "$id": "50",
+ "$id": "64",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "42"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -429,11 +554,11 @@
"skipUrlEncoding": false
},
{
- "$id": "51",
+ "$id": "65",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "45"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -447,9 +572,9 @@
}
],
"response": {
- "$id": "52",
+ "$id": "66",
"type": {
- "$ref": "2"
+ "$ref": "20"
}
},
"isOverride": false,
@@ -458,24 +583,24 @@
"crossLanguageDefinitionId": "Type.Model.Visibility.getModel"
},
{
- "$id": "53",
+ "$id": "67",
"kind": "basic",
"name": "headModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "54",
+ "$id": "68",
"name": "headModel",
"resourceName": "Visibility",
"accessibility": "public",
"parameters": [
{
- "$id": "55",
+ "$id": "69",
"name": "queryProp",
"nameInRequest": "queryProp",
"doc": "Required int32, illustrating a query property.",
"type": {
- "$id": "56",
+ "$id": "70",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -492,22 +617,12 @@
"skipUrlEncoding": false
},
{
- "$id": "57",
+ "$id": "71",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "58",
- "kind": "constant",
- "valueType": {
- "$id": "59",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -520,11 +635,11 @@
"skipUrlEncoding": false
},
{
- "$id": "60",
+ "$id": "72",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -539,7 +654,7 @@
],
"responses": [
{
- "$id": "61",
+ "$id": "73",
"statusCodes": [
200
],
@@ -561,11 +676,11 @@
},
"parameters": [
{
- "$id": "62",
+ "$id": "74",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -578,12 +693,12 @@
"skipUrlEncoding": false
},
{
- "$id": "63",
+ "$id": "75",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "58"
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -597,7 +712,7 @@
}
],
"response": {
- "$id": "64"
+ "$id": "76"
},
"isOverride": false,
"generateConvenient": true,
@@ -605,34 +720,24 @@
"crossLanguageDefinitionId": "Type.Model.Visibility.headModel"
},
{
- "$id": "65",
+ "$id": "77",
"kind": "basic",
"name": "putModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "66",
+ "$id": "78",
"name": "putModel",
"resourceName": "Visibility",
"accessibility": "public",
"parameters": [
{
- "$id": "67",
+ "$id": "79",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "68",
- "kind": "constant",
- "valueType": {
- "$id": "69",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -645,11 +750,11 @@
"skipUrlEncoding": false
},
{
- "$id": "70",
+ "$id": "80",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -664,7 +769,7 @@
],
"responses": [
{
- "$id": "71",
+ "$id": "81",
"statusCodes": [
204
],
@@ -686,11 +791,11 @@
},
"parameters": [
{
- "$id": "72",
+ "$id": "82",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -703,12 +808,12 @@
"skipUrlEncoding": false
},
{
- "$id": "73",
+ "$id": "83",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "68"
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -722,7 +827,7 @@
}
],
"response": {
- "$id": "74"
+ "$id": "84"
},
"isOverride": false,
"generateConvenient": true,
@@ -730,34 +835,24 @@
"crossLanguageDefinitionId": "Type.Model.Visibility.putModel"
},
{
- "$id": "75",
+ "$id": "85",
"kind": "basic",
"name": "patchModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "76",
+ "$id": "86",
"name": "patchModel",
"resourceName": "Visibility",
"accessibility": "public",
"parameters": [
{
- "$id": "77",
+ "$id": "87",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "78",
- "kind": "constant",
- "valueType": {
- "$id": "79",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -770,11 +865,11 @@
"skipUrlEncoding": false
},
{
- "$id": "80",
+ "$id": "88",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -789,7 +884,7 @@
],
"responses": [
{
- "$id": "81",
+ "$id": "89",
"statusCodes": [
204
],
@@ -811,11 +906,11 @@
},
"parameters": [
{
- "$id": "82",
+ "$id": "90",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -828,12 +923,12 @@
"skipUrlEncoding": false
},
{
- "$id": "83",
+ "$id": "91",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "78"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -847,7 +942,7 @@
}
],
"response": {
- "$id": "84"
+ "$id": "92"
},
"isOverride": false,
"generateConvenient": true,
@@ -855,34 +950,24 @@
"crossLanguageDefinitionId": "Type.Model.Visibility.patchModel"
},
{
- "$id": "85",
+ "$id": "93",
"kind": "basic",
"name": "postModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "86",
+ "$id": "94",
"name": "postModel",
"resourceName": "Visibility",
"accessibility": "public",
"parameters": [
{
- "$id": "87",
+ "$id": "95",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "88",
- "kind": "constant",
- "valueType": {
- "$id": "89",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -895,11 +980,11 @@
"skipUrlEncoding": false
},
{
- "$id": "90",
+ "$id": "96",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -914,7 +999,7 @@
],
"responses": [
{
- "$id": "91",
+ "$id": "97",
"statusCodes": [
204
],
@@ -936,11 +1021,11 @@
},
"parameters": [
{
- "$id": "92",
+ "$id": "98",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -953,12 +1038,12 @@
"skipUrlEncoding": false
},
{
- "$id": "93",
+ "$id": "99",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "88"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -972,7 +1057,7 @@
}
],
"response": {
- "$id": "94"
+ "$id": "100"
},
"isOverride": false,
"generateConvenient": true,
@@ -980,34 +1065,24 @@
"crossLanguageDefinitionId": "Type.Model.Visibility.postModel"
},
{
- "$id": "95",
+ "$id": "101",
"kind": "basic",
"name": "deleteModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "96",
+ "$id": "102",
"name": "deleteModel",
"resourceName": "Visibility",
"accessibility": "public",
"parameters": [
{
- "$id": "97",
+ "$id": "103",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "98",
- "kind": "constant",
- "valueType": {
- "$id": "99",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1020,11 +1095,11 @@
"skipUrlEncoding": false
},
{
- "$id": "100",
+ "$id": "104",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -1039,7 +1114,7 @@
],
"responses": [
{
- "$id": "101",
+ "$id": "105",
"statusCodes": [
204
],
@@ -1061,11 +1136,11 @@
},
"parameters": [
{
- "$id": "102",
+ "$id": "106",
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "2"
+ "$ref": "20"
},
"location": "Body",
"isApiVersion": false,
@@ -1078,12 +1153,12 @@
"skipUrlEncoding": false
},
{
- "$id": "103",
+ "$id": "107",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "98"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1097,7 +1172,7 @@
}
],
"response": {
- "$id": "104"
+ "$id": "108"
},
"isOverride": false,
"generateConvenient": true,
@@ -1105,34 +1180,24 @@
"crossLanguageDefinitionId": "Type.Model.Visibility.deleteModel"
},
{
- "$id": "105",
+ "$id": "109",
"kind": "basic",
"name": "putReadOnlyModel",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "106",
+ "$id": "110",
"name": "putReadOnlyModel",
"resourceName": "Visibility",
"accessibility": "public",
"parameters": [
{
- "$id": "107",
+ "$id": "111",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "108",
- "kind": "constant",
- "valueType": {
- "$id": "109",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1145,21 +1210,11 @@
"skipUrlEncoding": false
},
{
- "$id": "110",
+ "$id": "112",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "111",
- "kind": "constant",
- "valueType": {
- "$id": "112",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1176,7 +1231,7 @@
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "23"
+ "$ref": "41"
},
"location": "Body",
"isApiVersion": false,
@@ -1196,7 +1251,7 @@
200
],
"bodyType": {
- "$ref": "23"
+ "$ref": "41"
},
"headers": [],
"isErrorResponse": false,
@@ -1223,7 +1278,7 @@
"name": "input",
"nameInRequest": "input",
"type": {
- "$ref": "23"
+ "$ref": "41"
},
"location": "Body",
"isApiVersion": false,
@@ -1241,7 +1296,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "108"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1258,7 +1313,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "111"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1274,7 +1329,7 @@
"response": {
"$id": "118",
"type": {
- "$ref": "23"
+ "$ref": "41"
}
},
"isOverride": false,
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData0.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData0.cs
index 65375f5d0e03..d1cc0ac63d6a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData0.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData0.cs
@@ -11,7 +11,7 @@ public partial class WidgetData0
{
public WidgetData0(string fooProp) => throw null;
- public WidgetData0Kind Kind => throw null;
+ public string Kind => throw null;
public string FooProp
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData0Kind.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData0Kind.cs
deleted file mode 100644
index 162bb19ec119..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData0Kind.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.AdditionalProperties
-{
- public readonly partial struct WidgetData0Kind : IEquatable
- {
- public WidgetData0Kind(string value) => throw null;
-
- public static WidgetData0Kind Kind0 => throw null;
-
- public static bool operator ==(WidgetData0Kind left, WidgetData0Kind right) => throw null;
-
- public static bool operator !=(WidgetData0Kind left, WidgetData0Kind right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator WidgetData0Kind(string value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(WidgetData0Kind other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData1.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData1.cs
index 6777a117f7fc..fd9adfb8309a 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData1.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData1.cs
@@ -13,7 +13,7 @@ public partial class WidgetData1
{
public WidgetData1(DateTimeOffset start) => throw null;
- public WidgetData1Kind Kind => throw null;
+ public string Kind => throw null;
public DateTimeOffset Start
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData1Kind.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData1Kind.cs
deleted file mode 100644
index 7b742f2f3a2a..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData1Kind.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.AdditionalProperties
-{
- public readonly partial struct WidgetData1Kind : IEquatable
- {
- public WidgetData1Kind(string value) => throw null;
-
- public static WidgetData1Kind Kind1 => throw null;
-
- public static bool operator ==(WidgetData1Kind left, WidgetData1Kind right) => throw null;
-
- public static bool operator !=(WidgetData1Kind left, WidgetData1Kind right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator WidgetData1Kind(string value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(WidgetData1Kind other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData2.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData2.cs
index 3c0c2c327165..d920d7339276 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData2.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData2.cs
@@ -11,7 +11,7 @@ public partial class WidgetData2
{
public WidgetData2(string start) => throw null;
- public WidgetData2Kind Kind => throw null;
+ public string Kind => throw null;
public string Start
{
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData2Kind.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData2Kind.cs
deleted file mode 100644
index 34de432c3ff5..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/Models/WidgetData2Kind.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.AdditionalProperties
-{
- public readonly partial struct WidgetData2Kind : IEquatable
- {
- public WidgetData2Kind(string value) => throw null;
-
- public static WidgetData2Kind Kind1 => throw null;
-
- public static bool operator ==(WidgetData2Kind left, WidgetData2Kind right) => throw null;
-
- public static bool operator !=(WidgetData2Kind left, WidgetData2Kind right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator WidgetData2Kind(string value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(WidgetData2Kind other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/TypePropertyAdditionalPropertiesModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/TypePropertyAdditionalPropertiesModelFactory.cs
index b2aa73469ed8..84db2ff0ab71 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/TypePropertyAdditionalPropertiesModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Generated/TypePropertyAdditionalPropertiesModelFactory.cs
@@ -76,13 +76,13 @@ public static partial class TypePropertyAdditionalPropertiesModelFactory
public static SpreadRecordForNonDiscriminatedUnion SpreadRecordForNonDiscriminatedUnion(string name = default, IDictionary additionalProperties = default) => throw null;
- public static WidgetData0 WidgetData0(WidgetData0Kind kind = default, string fooProp = default) => throw null;
+ public static WidgetData0 WidgetData0(string kind = default, string fooProp = default) => throw null;
- public static WidgetData1 WidgetData1(WidgetData1Kind kind = default, DateTimeOffset start = default, DateTimeOffset? end = default) => throw null;
+ public static WidgetData1 WidgetData1(string kind = default, DateTimeOffset start = default, DateTimeOffset? end = default) => throw null;
public static SpreadRecordForNonDiscriminatedUnion2 SpreadRecordForNonDiscriminatedUnion2(string name = default, IDictionary additionalProperties = default) => throw null;
- public static WidgetData2 WidgetData2(WidgetData2Kind kind = default, string start = default) => throw null;
+ public static WidgetData2 WidgetData2(string kind = default, string start = default) => throw null;
public static SpreadRecordForNonDiscriminatedUnion3 SpreadRecordForNonDiscriminatedUnion3(string name = default, IDictionary additionalProperties = default) => throw null;
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Type.Property.AdditionalProperties.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Type.Property.AdditionalProperties.csproj
index 172eaffddc35..8779afa68c25 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Type.Property.AdditionalProperties.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/additional-properties/src/Type.Property.AdditionalProperties.csproj
@@ -17,6 +17,7 @@
+
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 1f7f2f6a87f4..bf7aa86d6272 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
@@ -2,113 +2,1084 @@
"$id": "1",
"name": "Type.Property.AdditionalProperties",
"apiVersions": [],
- "enums": [
+ "enums": [],
+ "constants": [
{
"$id": "2",
- "kind": "enum",
- "name": "WidgetData0_kind",
+ "kind": "constant",
+ "name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerivedKind",
+ "namespace": "Type.Property.AdditionalProperties",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "derived",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "IsUnknownAdditionalPropertiesDiscriminatedDerivedKind",
+ "namespace": "Type.Property.AdditionalProperties",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "derived",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "WidgetData0Kind",
+ "namespace": "Type.Property.AdditionalProperties",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "kind0",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "WidgetData1Kind",
+ "namespace": "Type.Property.AdditionalProperties",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "kind1",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "WidgetData2Kind",
+ "namespace": "Type.Property.AdditionalProperties",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "kind1",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "putContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "getContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "putContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "getContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "putContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "getContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "putContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "getContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "putContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "getContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "putContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "getContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "putContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "getContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "putContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "getContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "putContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "getContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "putContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "getContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "54",
+ "kind": "constant",
+ "name": "putContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "constant",
+ "name": "getContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "57",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "58",
+ "kind": "constant",
+ "name": "putContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "59",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "60",
+ "kind": "constant",
+ "name": "getContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "61",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "62",
+ "kind": "constant",
+ "name": "putContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "63",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "64",
+ "kind": "constant",
+ "name": "getContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "65",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "66",
+ "kind": "constant",
+ "name": "putContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "68",
+ "kind": "constant",
+ "name": "getContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "69",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "70",
+ "kind": "constant",
+ "name": "putContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "71",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "72",
+ "kind": "constant",
+ "name": "getContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "73",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "74",
+ "kind": "constant",
+ "name": "putContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "75",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "76",
+ "kind": "constant",
+ "name": "getContentType16",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "77",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "78",
+ "kind": "constant",
+ "name": "putContentType16",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "79",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "80",
+ "kind": "constant",
+ "name": "getContentType17",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "81",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "82",
+ "kind": "constant",
+ "name": "putContentType17",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "83",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "84",
+ "kind": "constant",
+ "name": "getContentType18",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "85",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "86",
+ "kind": "constant",
+ "name": "putContentType18",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "87",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "88",
+ "kind": "constant",
+ "name": "getContentType19",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "89",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "90",
+ "kind": "constant",
+ "name": "putContentType19",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "91",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "92",
+ "kind": "constant",
+ "name": "getContentType20",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "93",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "94",
+ "kind": "constant",
+ "name": "putContentType20",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "95",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "96",
+ "kind": "constant",
+ "name": "getContentType21",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "3",
+ "$id": "97",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "4",
- "kind": "enumvalue",
- "name": "kind0",
- "value": "kind0",
- "doc": "kind0",
- "valueType": {
- "$ref": "3"
- },
- "enumType": {
- "$ref": "2"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Type.Property.AdditionalProperties",
- "doc": "The WidgetData0_kind",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "value": "application/json",
"decorators": []
},
{
- "$id": "5",
- "kind": "enum",
- "name": "WidgetData1_kind",
+ "$id": "98",
+ "kind": "constant",
+ "name": "putContentType21",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "6",
+ "$id": "99",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "7",
- "kind": "enumvalue",
- "name": "kind1",
- "value": "kind1",
- "doc": "kind1",
- "valueType": {
- "$ref": "6"
- },
- "enumType": {
- "$ref": "5"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Type.Property.AdditionalProperties",
- "doc": "The WidgetData1_kind",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "value": "application/json",
"decorators": []
},
{
- "$id": "8",
- "kind": "enum",
- "name": "WidgetData2_kind",
+ "$id": "100",
+ "kind": "constant",
+ "name": "getContentType22",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "9",
+ "$id": "101",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "10",
- "kind": "enumvalue",
- "name": "kind1",
- "value": "kind1",
- "doc": "kind1",
- "valueType": {
- "$ref": "9"
- },
- "enumType": {
- "$ref": "8"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Type.Property.AdditionalProperties",
- "doc": "The WidgetData2_kind",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "102",
+ "kind": "constant",
+ "name": "putContentType22",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "103",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "104",
+ "kind": "constant",
+ "name": "getContentType23",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "105",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "106",
+ "kind": "constant",
+ "name": "putContentType23",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "107",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "108",
+ "kind": "constant",
+ "name": "getContentType24",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "109",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "110",
+ "kind": "constant",
+ "name": "putContentType24",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "111",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "112",
+ "kind": "constant",
+ "name": "getContentType25",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "113",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "114",
+ "kind": "constant",
+ "name": "putContentType25",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "115",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "116",
+ "kind": "constant",
+ "name": "getContentType26",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "117",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "118",
+ "kind": "constant",
+ "name": "putContentType26",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "119",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "120",
+ "kind": "constant",
+ "name": "getContentType27",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "121",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "122",
+ "kind": "constant",
+ "name": "putContentType27",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "123",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "124",
+ "kind": "constant",
+ "name": "getContentType28",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "125",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "126",
+ "kind": "constant",
+ "name": "putContentType28",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "127",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "128",
+ "kind": "constant",
+ "name": "getContentType29",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "129",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "130",
+ "kind": "constant",
+ "name": "putContentType29",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "131",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "132",
+ "kind": "constant",
+ "name": "getContentType30",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "133",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "134",
+ "kind": "constant",
+ "name": "putContentType30",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "135",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
"decorators": []
}
],
"models": [
{
- "$id": "11",
+ "$id": "136",
"kind": "model",
"name": "ExtendsUnknownAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -117,7 +1088,7 @@
"doc": "The model extends from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "12",
+ "$id": "137",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -125,13 +1096,13 @@
},
"properties": [
{
- "$id": "13",
+ "$id": "138",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "14",
+ "$id": "139",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -144,9 +1115,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalProperties.name",
"serializationOptions": {
- "$id": "15",
+ "$id": "140",
"json": {
- "$id": "16",
+ "$id": "141",
"name": "name"
}
}
@@ -154,7 +1125,7 @@
]
},
{
- "$id": "17",
+ "$id": "142",
"kind": "model",
"name": "ExtendsUnknownAdditionalPropertiesDerived",
"namespace": "Type.Property.AdditionalProperties",
@@ -163,17 +1134,17 @@
"doc": "The model extends from a type that extends from Record.",
"decorators": [],
"baseModel": {
- "$ref": "11"
+ "$ref": "136"
},
"properties": [
{
- "$id": "18",
+ "$id": "143",
"kind": "property",
"name": "index",
"serializedName": "index",
"doc": "The index property",
"type": {
- "$id": "19",
+ "$id": "144",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -186,21 +1157,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived.index",
"serializationOptions": {
- "$id": "20",
+ "$id": "145",
"json": {
- "$id": "21",
+ "$id": "146",
"name": "index"
}
}
},
{
- "$id": "22",
+ "$id": "147",
"kind": "property",
"name": "age",
"serializedName": "age",
"doc": "The age property",
"type": {
- "$id": "23",
+ "$id": "148",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -213,9 +1184,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDerived.age",
"serializationOptions": {
- "$id": "24",
+ "$id": "149",
"json": {
- "$id": "25",
+ "$id": "150",
"name": "age"
}
}
@@ -223,7 +1194,7 @@
]
},
{
- "$id": "26",
+ "$id": "151",
"kind": "model",
"name": "ExtendsUnknownAdditionalPropertiesDiscriminated",
"namespace": "Type.Property.AdditionalProperties",
@@ -232,20 +1203,20 @@
"doc": "The model extends from Record with a discriminator.",
"decorators": [],
"additionalProperties": {
- "$id": "27",
+ "$id": "152",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
"decorators": []
},
"discriminatorProperty": {
- "$id": "28",
+ "$id": "153",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"doc": "The discriminator",
"type": {
- "$id": "29",
+ "$id": "154",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -258,22 +1229,22 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated.kind",
"serializationOptions": {
- "$id": "30",
+ "$id": "155",
"json": {
- "$id": "31",
+ "$id": "156",
"name": "kind"
}
}
},
"properties": [
{
- "$id": "32",
+ "$id": "157",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "33",
+ "$id": "158",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -286,21 +1257,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminated.name",
"serializationOptions": {
- "$id": "34",
+ "$id": "159",
"json": {
- "$id": "35",
+ "$id": "160",
"name": "name"
}
}
},
{
- "$ref": "28"
+ "$ref": "153"
}
],
"discriminatedSubtypes": {
- "$id": "36",
+ "$id": "161",
"derived": {
- "$id": "37",
+ "$id": "162",
"kind": "model",
"name": "ExtendsUnknownAdditionalPropertiesDiscriminatedDerived",
"namespace": "Type.Property.AdditionalProperties",
@@ -310,26 +1281,16 @@
"discriminatorValue": "derived",
"decorators": [],
"baseModel": {
- "$ref": "26"
+ "$ref": "151"
},
"properties": [
{
- "$id": "38",
+ "$id": "163",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "39",
- "kind": "constant",
- "valueType": {
- "$id": "40",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "derived",
- "decorators": []
+ "$ref": "2"
},
"optional": false,
"readOnly": false,
@@ -338,21 +1299,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.kind",
"serializationOptions": {
- "$id": "41",
+ "$id": "164",
"json": {
- "$id": "42",
+ "$id": "165",
"name": "kind"
}
}
},
{
- "$id": "43",
+ "$id": "166",
"kind": "property",
"name": "index",
"serializedName": "index",
"doc": "The index property",
"type": {
- "$id": "44",
+ "$id": "167",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -365,21 +1326,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.index",
"serializationOptions": {
- "$id": "45",
+ "$id": "168",
"json": {
- "$id": "46",
+ "$id": "169",
"name": "index"
}
}
},
{
- "$id": "47",
+ "$id": "170",
"kind": "property",
"name": "age",
"serializedName": "age",
"doc": "The age property",
"type": {
- "$id": "48",
+ "$id": "171",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -392,9 +1353,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownAdditionalPropertiesDiscriminatedDerived.age",
"serializationOptions": {
- "$id": "49",
+ "$id": "172",
"json": {
- "$id": "50",
+ "$id": "173",
"name": "age"
}
}
@@ -404,10 +1365,10 @@
}
},
{
- "$ref": "37"
+ "$ref": "162"
},
{
- "$id": "51",
+ "$id": "174",
"kind": "model",
"name": "IsUnknownAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -416,7 +1377,7 @@
"doc": "The model is from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "52",
+ "$id": "175",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -424,13 +1385,13 @@
},
"properties": [
{
- "$id": "53",
+ "$id": "176",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "54",
+ "$id": "177",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -443,9 +1404,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalProperties.name",
"serializationOptions": {
- "$id": "55",
+ "$id": "178",
"json": {
- "$id": "56",
+ "$id": "179",
"name": "name"
}
}
@@ -453,7 +1414,7 @@
]
},
{
- "$id": "57",
+ "$id": "180",
"kind": "model",
"name": "IsUnknownAdditionalPropertiesDerived",
"namespace": "Type.Property.AdditionalProperties",
@@ -462,17 +1423,17 @@
"doc": "The model extends from a type that is Record type",
"decorators": [],
"baseModel": {
- "$ref": "51"
+ "$ref": "174"
},
"properties": [
{
- "$id": "58",
+ "$id": "181",
"kind": "property",
"name": "index",
"serializedName": "index",
"doc": "The index property",
"type": {
- "$id": "59",
+ "$id": "182",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -485,21 +1446,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived.index",
"serializationOptions": {
- "$id": "60",
+ "$id": "183",
"json": {
- "$id": "61",
+ "$id": "184",
"name": "index"
}
}
},
{
- "$id": "62",
+ "$id": "185",
"kind": "property",
"name": "age",
"serializedName": "age",
"doc": "The age property",
"type": {
- "$id": "63",
+ "$id": "186",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -512,9 +1473,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDerived.age",
"serializationOptions": {
- "$id": "64",
+ "$id": "187",
"json": {
- "$id": "65",
+ "$id": "188",
"name": "age"
}
}
@@ -522,7 +1483,7 @@
]
},
{
- "$id": "66",
+ "$id": "189",
"kind": "model",
"name": "IsUnknownAdditionalPropertiesDiscriminated",
"namespace": "Type.Property.AdditionalProperties",
@@ -531,20 +1492,20 @@
"doc": "The model is Record with a discriminator.",
"decorators": [],
"additionalProperties": {
- "$id": "67",
+ "$id": "190",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
"decorators": []
},
"discriminatorProperty": {
- "$id": "68",
+ "$id": "191",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"doc": "The discriminator",
"type": {
- "$id": "69",
+ "$id": "192",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -557,22 +1518,22 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated.kind",
"serializationOptions": {
- "$id": "70",
+ "$id": "193",
"json": {
- "$id": "71",
+ "$id": "194",
"name": "kind"
}
}
},
"properties": [
{
- "$id": "72",
+ "$id": "195",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "73",
+ "$id": "196",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -585,21 +1546,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminated.name",
"serializationOptions": {
- "$id": "74",
+ "$id": "197",
"json": {
- "$id": "75",
+ "$id": "198",
"name": "name"
}
}
},
{
- "$ref": "68"
+ "$ref": "191"
}
],
"discriminatedSubtypes": {
- "$id": "76",
+ "$id": "199",
"derived": {
- "$id": "77",
+ "$id": "200",
"kind": "model",
"name": "IsUnknownAdditionalPropertiesDiscriminatedDerived",
"namespace": "Type.Property.AdditionalProperties",
@@ -609,26 +1570,16 @@
"discriminatorValue": "derived",
"decorators": [],
"baseModel": {
- "$ref": "66"
+ "$ref": "189"
},
"properties": [
{
- "$id": "78",
+ "$id": "201",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "79",
- "kind": "constant",
- "valueType": {
- "$id": "80",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "derived",
- "decorators": []
+ "$ref": "4"
},
"optional": false,
"readOnly": false,
@@ -637,21 +1588,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.kind",
"serializationOptions": {
- "$id": "81",
+ "$id": "202",
"json": {
- "$id": "82",
+ "$id": "203",
"name": "kind"
}
}
},
{
- "$id": "83",
+ "$id": "204",
"kind": "property",
"name": "index",
"serializedName": "index",
"doc": "The index property",
"type": {
- "$id": "84",
+ "$id": "205",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -664,21 +1615,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.index",
"serializationOptions": {
- "$id": "85",
+ "$id": "206",
"json": {
- "$id": "86",
+ "$id": "207",
"name": "index"
}
}
},
{
- "$id": "87",
+ "$id": "208",
"kind": "property",
"name": "age",
"serializedName": "age",
"doc": "The age property",
"type": {
- "$id": "88",
+ "$id": "209",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -691,9 +1642,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownAdditionalPropertiesDiscriminatedDerived.age",
"serializationOptions": {
- "$id": "89",
+ "$id": "210",
"json": {
- "$id": "90",
+ "$id": "211",
"name": "age"
}
}
@@ -703,10 +1654,10 @@
}
},
{
- "$ref": "77"
+ "$ref": "200"
},
{
- "$id": "91",
+ "$id": "212",
"kind": "model",
"name": "ExtendsStringAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -715,7 +1666,7 @@
"doc": "The model extends from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "92",
+ "$id": "213",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -723,13 +1674,13 @@
},
"properties": [
{
- "$id": "93",
+ "$id": "214",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "94",
+ "$id": "215",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -742,9 +1693,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsStringAdditionalProperties.name",
"serializationOptions": {
- "$id": "95",
+ "$id": "216",
"json": {
- "$id": "96",
+ "$id": "217",
"name": "name"
}
}
@@ -752,7 +1703,7 @@
]
},
{
- "$id": "97",
+ "$id": "218",
"kind": "model",
"name": "IsStringAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -761,7 +1712,7 @@
"doc": "The model is from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "98",
+ "$id": "219",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -769,13 +1720,13 @@
},
"properties": [
{
- "$id": "99",
+ "$id": "220",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "100",
+ "$id": "221",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -788,9 +1739,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsStringAdditionalProperties.name",
"serializationOptions": {
- "$id": "101",
+ "$id": "222",
"json": {
- "$id": "102",
+ "$id": "223",
"name": "name"
}
}
@@ -798,7 +1749,7 @@
]
},
{
- "$id": "103",
+ "$id": "224",
"kind": "model",
"name": "SpreadStringRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -807,7 +1758,7 @@
"doc": "The model spread Record with the same known property type",
"decorators": [],
"additionalProperties": {
- "$id": "104",
+ "$id": "225",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -815,13 +1766,13 @@
},
"properties": [
{
- "$id": "105",
+ "$id": "226",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "106",
+ "$id": "227",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -834,9 +1785,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadStringRecord.name",
"serializationOptions": {
- "$id": "107",
+ "$id": "228",
"json": {
- "$id": "108",
+ "$id": "229",
"name": "name"
}
}
@@ -844,7 +1795,7 @@
]
},
{
- "$id": "109",
+ "$id": "230",
"kind": "model",
"name": "ExtendsFloatAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -853,7 +1804,7 @@
"doc": "The model extends from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "110",
+ "$id": "231",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -861,13 +1812,13 @@
},
"properties": [
{
- "$id": "111",
+ "$id": "232",
"kind": "property",
"name": "id",
"serializedName": "id",
"doc": "The id property",
"type": {
- "$id": "112",
+ "$id": "233",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -880,9 +1831,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloatAdditionalProperties.id",
"serializationOptions": {
- "$id": "113",
+ "$id": "234",
"json": {
- "$id": "114",
+ "$id": "235",
"name": "id"
}
}
@@ -890,7 +1841,7 @@
]
},
{
- "$id": "115",
+ "$id": "236",
"kind": "model",
"name": "IsFloatAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -899,7 +1850,7 @@
"doc": "The model is from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "116",
+ "$id": "237",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -907,13 +1858,13 @@
},
"properties": [
{
- "$id": "117",
+ "$id": "238",
"kind": "property",
"name": "id",
"serializedName": "id",
"doc": "The id property",
"type": {
- "$id": "118",
+ "$id": "239",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -926,9 +1877,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloatAdditionalProperties.id",
"serializationOptions": {
- "$id": "119",
+ "$id": "240",
"json": {
- "$id": "120",
+ "$id": "241",
"name": "id"
}
}
@@ -936,7 +1887,7 @@
]
},
{
- "$id": "121",
+ "$id": "242",
"kind": "model",
"name": "SpreadFloatRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -945,7 +1896,7 @@
"doc": "The model spread Record with the same known property type",
"decorators": [],
"additionalProperties": {
- "$id": "122",
+ "$id": "243",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -953,13 +1904,13 @@
},
"properties": [
{
- "$id": "123",
+ "$id": "244",
"kind": "property",
"name": "id",
"serializedName": "id",
"doc": "The id property",
"type": {
- "$id": "124",
+ "$id": "245",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -972,9 +1923,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloatRecord.id",
"serializationOptions": {
- "$id": "125",
+ "$id": "246",
"json": {
- "$id": "126",
+ "$id": "247",
"name": "id"
}
}
@@ -982,7 +1933,7 @@
]
},
{
- "$id": "127",
+ "$id": "248",
"kind": "model",
"name": "ExtendsModelAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -991,7 +1942,7 @@
"doc": "The model extends from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "128",
+ "$id": "249",
"kind": "model",
"name": "ModelForRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -1001,13 +1952,13 @@
"decorators": [],
"properties": [
{
- "$id": "129",
+ "$id": "250",
"kind": "property",
"name": "state",
"serializedName": "state",
"doc": "The state property",
"type": {
- "$id": "130",
+ "$id": "251",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1020,9 +1971,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ModelForRecord.state",
"serializationOptions": {
- "$id": "131",
+ "$id": "252",
"json": {
- "$id": "132",
+ "$id": "253",
"name": "state"
}
}
@@ -1031,12 +1982,12 @@
},
"properties": [
{
- "$id": "133",
+ "$id": "254",
"kind": "property",
"name": "knownProp",
"serializedName": "knownProp",
"type": {
- "$ref": "128"
+ "$ref": "249"
},
"optional": false,
"readOnly": false,
@@ -1045,9 +1996,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelAdditionalProperties.knownProp",
"serializationOptions": {
- "$id": "134",
+ "$id": "255",
"json": {
- "$id": "135",
+ "$id": "256",
"name": "knownProp"
}
}
@@ -1055,10 +2006,10 @@
]
},
{
- "$ref": "128"
+ "$ref": "249"
},
{
- "$id": "136",
+ "$id": "257",
"kind": "model",
"name": "IsModelAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -1067,16 +2018,16 @@
"doc": "The model is from Record type.",
"decorators": [],
"additionalProperties": {
- "$ref": "128"
+ "$ref": "249"
},
"properties": [
{
- "$id": "137",
+ "$id": "258",
"kind": "property",
"name": "knownProp",
"serializedName": "knownProp",
"type": {
- "$ref": "128"
+ "$ref": "249"
},
"optional": false,
"readOnly": false,
@@ -1085,9 +2036,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelAdditionalProperties.knownProp",
"serializationOptions": {
- "$id": "138",
+ "$id": "259",
"json": {
- "$id": "139",
+ "$id": "260",
"name": "knownProp"
}
}
@@ -1095,7 +2046,7 @@
]
},
{
- "$id": "140",
+ "$id": "261",
"kind": "model",
"name": "SpreadModelRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -1104,16 +2055,16 @@
"doc": "The model spread Record with the same known property type",
"decorators": [],
"additionalProperties": {
- "$ref": "128"
+ "$ref": "249"
},
"properties": [
{
- "$id": "141",
+ "$id": "262",
"kind": "property",
"name": "knownProp",
"serializedName": "knownProp",
"type": {
- "$ref": "128"
+ "$ref": "249"
},
"optional": false,
"readOnly": false,
@@ -1122,9 +2073,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelRecord.knownProp",
"serializationOptions": {
- "$id": "142",
+ "$id": "263",
"json": {
- "$id": "143",
+ "$id": "264",
"name": "knownProp"
}
}
@@ -1132,7 +2083,7 @@
]
},
{
- "$id": "144",
+ "$id": "265",
"kind": "model",
"name": "ExtendsModelArrayAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -1141,27 +2092,27 @@
"doc": "The model extends from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "145",
+ "$id": "266",
"kind": "array",
"name": "ArrayModelForRecord",
"valueType": {
- "$ref": "128"
+ "$ref": "249"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
},
"properties": [
{
- "$id": "146",
+ "$id": "267",
"kind": "property",
"name": "knownProp",
"serializedName": "knownProp",
"type": {
- "$id": "147",
+ "$id": "268",
"kind": "array",
"name": "ArrayModelForRecord",
"valueType": {
- "$ref": "128"
+ "$ref": "249"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1173,9 +2124,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArrayAdditionalProperties.knownProp",
"serializationOptions": {
- "$id": "148",
+ "$id": "269",
"json": {
- "$id": "149",
+ "$id": "270",
"name": "knownProp"
}
}
@@ -1183,7 +2134,7 @@
]
},
{
- "$id": "150",
+ "$id": "271",
"kind": "model",
"name": "IsModelArrayAdditionalProperties",
"namespace": "Type.Property.AdditionalProperties",
@@ -1192,27 +2143,27 @@
"doc": "The model is from Record type.",
"decorators": [],
"additionalProperties": {
- "$id": "151",
+ "$id": "272",
"kind": "array",
"name": "ArrayModelForRecord",
"valueType": {
- "$ref": "128"
+ "$ref": "249"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
},
"properties": [
{
- "$id": "152",
+ "$id": "273",
"kind": "property",
"name": "knownProp",
"serializedName": "knownProp",
"type": {
- "$id": "153",
+ "$id": "274",
"kind": "array",
"name": "ArrayModelForRecord",
"valueType": {
- "$ref": "128"
+ "$ref": "249"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1224,9 +2175,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArrayAdditionalProperties.knownProp",
"serializationOptions": {
- "$id": "154",
+ "$id": "275",
"json": {
- "$id": "155",
+ "$id": "276",
"name": "knownProp"
}
}
@@ -1234,7 +2185,7 @@
]
},
{
- "$id": "156",
+ "$id": "277",
"kind": "model",
"name": "SpreadModelArrayRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -1242,27 +2193,27 @@
"usage": "Input,Output,Json",
"decorators": [],
"additionalProperties": {
- "$id": "157",
+ "$id": "278",
"kind": "array",
"name": "ArrayModelForRecord",
"valueType": {
- "$ref": "128"
+ "$ref": "249"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
},
"properties": [
{
- "$id": "158",
+ "$id": "279",
"kind": "property",
"name": "knownProp",
"serializedName": "knownProp",
"type": {
- "$id": "159",
+ "$id": "280",
"kind": "array",
"name": "ArrayModelForRecord",
"valueType": {
- "$ref": "128"
+ "$ref": "249"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1274,9 +2225,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArrayRecord.knownProp",
"serializationOptions": {
- "$id": "160",
+ "$id": "281",
"json": {
- "$id": "161",
+ "$id": "282",
"name": "knownProp"
}
}
@@ -1284,7 +2235,7 @@
]
},
{
- "$id": "162",
+ "$id": "283",
"kind": "model",
"name": "DifferentSpreadStringRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -1293,7 +2244,7 @@
"doc": "The model spread Record with the different known property type",
"decorators": [],
"additionalProperties": {
- "$id": "163",
+ "$id": "284",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1301,13 +2252,13 @@
},
"properties": [
{
- "$id": "164",
+ "$id": "285",
"kind": "property",
"name": "id",
"serializedName": "id",
"doc": "The name property",
"type": {
- "$id": "165",
+ "$id": "286",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1320,9 +2271,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringRecord.id",
"serializationOptions": {
- "$id": "166",
+ "$id": "287",
"json": {
- "$id": "167",
+ "$id": "288",
"name": "id"
}
}
@@ -1330,7 +2281,7 @@
]
},
{
- "$id": "168",
+ "$id": "289",
"kind": "model",
"name": "DifferentSpreadFloatRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -1339,7 +2290,7 @@
"doc": "The model spread Record with the different known property type",
"decorators": [],
"additionalProperties": {
- "$id": "169",
+ "$id": "290",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1347,13 +2298,13 @@
},
"properties": [
{
- "$id": "170",
+ "$id": "291",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The id property",
"type": {
- "$id": "171",
+ "$id": "292",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1366,9 +2317,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatRecord.name",
"serializationOptions": {
- "$id": "172",
+ "$id": "293",
"json": {
- "$id": "173",
+ "$id": "294",
"name": "name"
}
}
@@ -1376,7 +2327,7 @@
]
},
{
- "$id": "174",
+ "$id": "295",
"kind": "model",
"name": "DifferentSpreadModelRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -1385,16 +2336,16 @@
"doc": "The model spread Record with the different known property type",
"decorators": [],
"additionalProperties": {
- "$ref": "128"
+ "$ref": "249"
},
"properties": [
{
- "$id": "175",
+ "$id": "296",
"kind": "property",
"name": "knownProp",
"serializedName": "knownProp",
"type": {
- "$id": "176",
+ "$id": "297",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1407,9 +2358,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelRecord.knownProp",
"serializationOptions": {
- "$id": "177",
+ "$id": "298",
"json": {
- "$id": "178",
+ "$id": "299",
"name": "knownProp"
}
}
@@ -1417,7 +2368,7 @@
]
},
{
- "$id": "179",
+ "$id": "300",
"kind": "model",
"name": "DifferentSpreadModelArrayRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -1426,23 +2377,23 @@
"doc": "The model spread Record with the different known property type",
"decorators": [],
"additionalProperties": {
- "$id": "180",
+ "$id": "301",
"kind": "array",
"name": "ArrayModelForRecord",
"valueType": {
- "$ref": "128"
+ "$ref": "249"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
},
"properties": [
{
- "$id": "181",
+ "$id": "302",
"kind": "property",
"name": "knownProp",
"serializedName": "knownProp",
"type": {
- "$id": "182",
+ "$id": "303",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1455,9 +2406,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayRecord.knownProp",
"serializationOptions": {
- "$id": "183",
+ "$id": "304",
"json": {
- "$id": "184",
+ "$id": "305",
"name": "knownProp"
}
}
@@ -1465,7 +2416,7 @@
]
},
{
- "$id": "185",
+ "$id": "306",
"kind": "model",
"name": "DifferentSpreadStringDerived",
"namespace": "Type.Property.AdditionalProperties",
@@ -1474,17 +2425,17 @@
"doc": "The model extends from a model that spread Record with the different known property type",
"decorators": [],
"baseModel": {
- "$ref": "162"
+ "$ref": "283"
},
"properties": [
{
- "$id": "186",
+ "$id": "307",
"kind": "property",
"name": "derivedProp",
"serializedName": "derivedProp",
"doc": "The index property",
"type": {
- "$id": "187",
+ "$id": "308",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1497,9 +2448,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadStringDerived.derivedProp",
"serializationOptions": {
- "$id": "188",
+ "$id": "309",
"json": {
- "$id": "189",
+ "$id": "310",
"name": "derivedProp"
}
}
@@ -1507,7 +2458,7 @@
]
},
{
- "$id": "190",
+ "$id": "311",
"kind": "model",
"name": "DifferentSpreadFloatDerived",
"namespace": "Type.Property.AdditionalProperties",
@@ -1516,17 +2467,17 @@
"doc": "The model extends from a model that spread Record with the different known property type",
"decorators": [],
"baseModel": {
- "$ref": "168"
+ "$ref": "289"
},
"properties": [
{
- "$id": "191",
+ "$id": "312",
"kind": "property",
"name": "derivedProp",
"serializedName": "derivedProp",
"doc": "The index property",
"type": {
- "$id": "192",
+ "$id": "313",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1539,9 +2490,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadFloatDerived.derivedProp",
"serializationOptions": {
- "$id": "193",
+ "$id": "314",
"json": {
- "$id": "194",
+ "$id": "315",
"name": "derivedProp"
}
}
@@ -1549,7 +2500,7 @@
]
},
{
- "$id": "195",
+ "$id": "316",
"kind": "model",
"name": "DifferentSpreadModelDerived",
"namespace": "Type.Property.AdditionalProperties",
@@ -1558,17 +2509,17 @@
"doc": "The model extends from a model that spread Record with the different known property type",
"decorators": [],
"baseModel": {
- "$ref": "174"
+ "$ref": "295"
},
"properties": [
{
- "$id": "196",
+ "$id": "317",
"kind": "property",
"name": "derivedProp",
"serializedName": "derivedProp",
"doc": "The index property",
"type": {
- "$ref": "128"
+ "$ref": "249"
},
"optional": false,
"readOnly": false,
@@ -1577,9 +2528,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelDerived.derivedProp",
"serializationOptions": {
- "$id": "197",
+ "$id": "318",
"json": {
- "$id": "198",
+ "$id": "319",
"name": "derivedProp"
}
}
@@ -1587,7 +2538,7 @@
]
},
{
- "$id": "199",
+ "$id": "320",
"kind": "model",
"name": "DifferentSpreadModelArrayDerived",
"namespace": "Type.Property.AdditionalProperties",
@@ -1596,21 +2547,21 @@
"doc": "The model extends from a model that spread Record with the different known property type",
"decorators": [],
"baseModel": {
- "$ref": "179"
+ "$ref": "300"
},
"properties": [
{
- "$id": "200",
+ "$id": "321",
"kind": "property",
"name": "derivedProp",
"serializedName": "derivedProp",
"doc": "The index property",
"type": {
- "$id": "201",
+ "$id": "322",
"kind": "array",
"name": "ArrayModelForRecord",
"valueType": {
- "$ref": "128"
+ "$ref": "249"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1622,9 +2573,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.DifferentSpreadModelArrayDerived.derivedProp",
"serializationOptions": {
- "$id": "202",
+ "$id": "323",
"json": {
- "$id": "203",
+ "$id": "324",
"name": "derivedProp"
}
}
@@ -1632,7 +2583,7 @@
]
},
{
- "$id": "204",
+ "$id": "325",
"kind": "model",
"name": "MultipleSpreadRecord",
"namespace": "Type.Property.AdditionalProperties",
@@ -1641,19 +2592,19 @@
"doc": "The model spread Record and Record",
"decorators": [],
"additionalProperties": {
- "$id": "205",
+ "$id": "326",
"kind": "union",
"name": "MultipleSpreadRecordAdditionalProperty",
"variantTypes": [
{
- "$id": "206",
+ "$id": "327",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
{
- "$id": "207",
+ "$id": "328",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1665,13 +2616,13 @@
},
"properties": [
{
- "$id": "208",
+ "$id": "329",
"kind": "property",
"name": "flag",
"serializedName": "flag",
"doc": "The name property",
"type": {
- "$id": "209",
+ "$id": "330",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -1684,9 +2635,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpreadRecord.flag",
"serializationOptions": {
- "$id": "210",
+ "$id": "331",
"json": {
- "$id": "211",
+ "$id": "332",
"name": "flag"
}
}
@@ -1694,7 +2645,7 @@
]
},
{
- "$id": "212",
+ "$id": "333",
"kind": "model",
"name": "SpreadRecordForUnion",
"namespace": "Type.Property.AdditionalProperties",
@@ -1703,19 +2654,19 @@
"doc": "The model spread Record",
"decorators": [],
"additionalProperties": {
- "$id": "213",
+ "$id": "334",
"kind": "union",
"name": "SpreadRecordForUnionAdditionalProperty",
"variantTypes": [
{
- "$id": "214",
+ "$id": "335",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
{
- "$id": "215",
+ "$id": "336",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -1727,13 +2678,13 @@
},
"properties": [
{
- "$id": "216",
+ "$id": "337",
"kind": "property",
"name": "flag",
"serializedName": "flag",
"doc": "The name property",
"type": {
- "$id": "217",
+ "$id": "338",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -1746,9 +2697,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForUnion.flag",
"serializationOptions": {
- "$id": "218",
+ "$id": "339",
"json": {
- "$id": "219",
+ "$id": "340",
"name": "flag"
}
}
@@ -1756,7 +2707,7 @@
]
},
{
- "$id": "220",
+ "$id": "341",
"kind": "model",
"name": "SpreadRecordForNonDiscriminatedUnion",
"namespace": "Type.Property.AdditionalProperties",
@@ -1765,12 +2716,12 @@
"doc": "The model spread Record",
"decorators": [],
"additionalProperties": {
- "$id": "221",
+ "$id": "342",
"kind": "union",
"name": "SpreadRecordForNonDiscriminatedUnionAdditionalProperty",
"variantTypes": [
{
- "$id": "222",
+ "$id": "343",
"kind": "model",
"name": "WidgetData0",
"namespace": "Type.Property.AdditionalProperties",
@@ -1779,18 +2730,12 @@
"decorators": [],
"properties": [
{
- "$id": "223",
+ "$id": "344",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "224",
- "kind": "constant",
- "valueType": {
- "$ref": "2"
- },
- "value": "kind0",
- "decorators": []
+ "$ref": "6"
},
"optional": false,
"readOnly": false,
@@ -1799,20 +2744,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0.kind",
"serializationOptions": {
- "$id": "225",
+ "$id": "345",
"json": {
- "$id": "226",
+ "$id": "346",
"name": "kind"
}
}
},
{
- "$id": "227",
+ "$id": "347",
"kind": "property",
"name": "fooProp",
"serializedName": "fooProp",
"type": {
- "$id": "228",
+ "$id": "348",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1825,9 +2770,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData0.fooProp",
"serializationOptions": {
- "$id": "229",
+ "$id": "349",
"json": {
- "$id": "230",
+ "$id": "350",
"name": "fooProp"
}
}
@@ -1835,7 +2780,7 @@
]
},
{
- "$id": "231",
+ "$id": "351",
"kind": "model",
"name": "WidgetData1",
"namespace": "Type.Property.AdditionalProperties",
@@ -1844,18 +2789,12 @@
"decorators": [],
"properties": [
{
- "$id": "232",
+ "$id": "352",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "233",
- "kind": "constant",
- "valueType": {
- "$ref": "5"
- },
- "value": "kind1",
- "decorators": []
+ "$ref": "8"
},
"optional": false,
"readOnly": false,
@@ -1864,25 +2803,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.kind",
"serializationOptions": {
- "$id": "234",
+ "$id": "353",
"json": {
- "$id": "235",
+ "$id": "354",
"name": "kind"
}
}
},
{
- "$id": "236",
+ "$id": "355",
"kind": "property",
"name": "start",
"serializedName": "start",
"type": {
- "$id": "237",
+ "$id": "356",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "238",
+ "$id": "357",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1898,25 +2837,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.start",
"serializationOptions": {
- "$id": "239",
+ "$id": "358",
"json": {
- "$id": "240",
+ "$id": "359",
"name": "start"
}
}
},
{
- "$id": "241",
+ "$id": "360",
"kind": "property",
"name": "end",
"serializedName": "end",
"type": {
- "$id": "242",
+ "$id": "361",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "243",
+ "$id": "362",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1932,9 +2871,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData1.end",
"serializationOptions": {
- "$id": "244",
+ "$id": "363",
"json": {
- "$id": "245",
+ "$id": "364",
"name": "end"
}
}
@@ -1947,13 +2886,13 @@
},
"properties": [
{
- "$id": "246",
+ "$id": "365",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "247",
+ "$id": "366",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1966,9 +2905,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion.name",
"serializationOptions": {
- "$id": "248",
+ "$id": "367",
"json": {
- "$id": "249",
+ "$id": "368",
"name": "name"
}
}
@@ -1976,13 +2915,13 @@
]
},
{
- "$ref": "222"
+ "$ref": "343"
},
{
- "$ref": "231"
+ "$ref": "351"
},
{
- "$id": "250",
+ "$id": "369",
"kind": "model",
"name": "SpreadRecordForNonDiscriminatedUnion2",
"namespace": "Type.Property.AdditionalProperties",
@@ -1991,12 +2930,12 @@
"doc": "The model spread Record",
"decorators": [],
"additionalProperties": {
- "$id": "251",
+ "$id": "370",
"kind": "union",
"name": "SpreadRecordForNonDiscriminatedUnion2AdditionalProperty",
"variantTypes": [
{
- "$id": "252",
+ "$id": "371",
"kind": "model",
"name": "WidgetData2",
"namespace": "Type.Property.AdditionalProperties",
@@ -2005,18 +2944,12 @@
"decorators": [],
"properties": [
{
- "$id": "253",
+ "$id": "372",
"kind": "property",
"name": "kind",
"serializedName": "kind",
"type": {
- "$id": "254",
- "kind": "constant",
- "valueType": {
- "$ref": "8"
- },
- "value": "kind1",
- "decorators": []
+ "$ref": "10"
},
"optional": false,
"readOnly": false,
@@ -2025,20 +2958,20 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2.kind",
"serializationOptions": {
- "$id": "255",
+ "$id": "373",
"json": {
- "$id": "256",
+ "$id": "374",
"name": "kind"
}
}
},
{
- "$id": "257",
+ "$id": "375",
"kind": "property",
"name": "start",
"serializedName": "start",
"type": {
- "$id": "258",
+ "$id": "376",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2051,9 +2984,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.WidgetData2.start",
"serializationOptions": {
- "$id": "259",
+ "$id": "377",
"json": {
- "$id": "260",
+ "$id": "378",
"name": "start"
}
}
@@ -2061,7 +2994,7 @@
]
},
{
- "$ref": "231"
+ "$ref": "351"
}
],
"namespace": "",
@@ -2069,13 +3002,13 @@
},
"properties": [
{
- "$id": "261",
+ "$id": "379",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "262",
+ "$id": "380",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2088,9 +3021,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion2.name",
"serializationOptions": {
- "$id": "263",
+ "$id": "381",
"json": {
- "$id": "264",
+ "$id": "382",
"name": "name"
}
}
@@ -2098,10 +3031,10 @@
]
},
{
- "$ref": "252"
+ "$ref": "371"
},
{
- "$id": "265",
+ "$id": "383",
"kind": "model",
"name": "SpreadRecordForNonDiscriminatedUnion3",
"namespace": "Type.Property.AdditionalProperties",
@@ -2110,22 +3043,22 @@
"doc": "The model spread Record",
"decorators": [],
"additionalProperties": {
- "$id": "266",
+ "$id": "384",
"kind": "union",
"name": "SpreadRecordForNonDiscriminatedUnion3AdditionalProperty",
"variantTypes": [
{
- "$id": "267",
+ "$id": "385",
"kind": "array",
"name": "ArrayWidgetData2",
"valueType": {
- "$ref": "252"
+ "$ref": "371"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
},
{
- "$ref": "231"
+ "$ref": "351"
}
],
"namespace": "",
@@ -2133,13 +3066,13 @@
},
"properties": [
{
- "$id": "268",
+ "$id": "386",
"kind": "property",
"name": "name",
"serializedName": "name",
"doc": "The name property",
"type": {
- "$id": "269",
+ "$id": "387",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -2152,9 +3085,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordForNonDiscriminatedUnion3.name",
"serializationOptions": {
- "$id": "270",
+ "$id": "388",
"json": {
- "$id": "271",
+ "$id": "389",
"name": "name"
}
}
@@ -2164,7 +3097,7 @@
],
"clients": [
{
- "$id": "272",
+ "$id": "390",
"kind": "client",
"name": "AdditionalPropertiesClient",
"namespace": "Type.Property.AdditionalProperties",
@@ -2172,12 +3105,12 @@
"methods": [],
"parameters": [
{
- "$id": "273",
+ "$id": "391",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "274",
+ "$id": "392",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2191,9 +3124,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "275",
+ "$id": "393",
"type": {
- "$id": "276",
+ "$id": "394",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2207,41 +3140,31 @@
"apiVersions": [],
"children": [
{
- "$id": "277",
+ "$id": "395",
"kind": "client",
"name": "ExtendsUnknown",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "278",
+ "$id": "396",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "279",
+ "$id": "397",
"name": "get",
"resourceName": "ExtendsUnknown",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "280",
+ "$id": "398",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "281",
- "kind": "constant",
- "valueType": {
- "$id": "282",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -2256,12 +3179,12 @@
],
"responses": [
{
- "$id": "283",
+ "$id": "399",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "11"
+ "$ref": "136"
},
"headers": [],
"isErrorResponse": false,
@@ -2281,11 +3204,11 @@
},
"parameters": [
{
- "$id": "284",
+ "$id": "400",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "281"
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -2299,9 +3222,9 @@
}
],
"response": {
- "$id": "285",
+ "$id": "401",
"type": {
- "$ref": "11"
+ "$ref": "136"
}
},
"isOverride": false,
@@ -2310,36 +3233,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown.get"
},
{
- "$id": "286",
+ "$id": "402",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "287",
+ "$id": "403",
"name": "put",
"resourceName": "ExtendsUnknown",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "288",
+ "$id": "404",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "289",
- "kind": "constant",
- "valueType": {
- "$id": "290",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -2352,12 +3265,12 @@
"skipUrlEncoding": false
},
{
- "$id": "291",
+ "$id": "405",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "11"
+ "$ref": "136"
},
"location": "Body",
"isApiVersion": false,
@@ -2372,7 +3285,7 @@
],
"responses": [
{
- "$id": "292",
+ "$id": "406",
"statusCodes": [
204
],
@@ -2394,12 +3307,12 @@
},
"parameters": [
{
- "$id": "293",
+ "$id": "407",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "11"
+ "$ref": "136"
},
"location": "Body",
"isApiVersion": false,
@@ -2412,12 +3325,12 @@
"skipUrlEncoding": false
},
{
- "$id": "294",
+ "$id": "408",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "289"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -2431,7 +3344,7 @@
}
],
"response": {
- "$id": "295"
+ "$id": "409"
},
"isOverride": false,
"generateConvenient": true,
@@ -2441,12 +3354,12 @@
],
"parameters": [
{
- "$id": "296",
+ "$id": "410",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "297",
+ "$id": "411",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2460,9 +3373,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "298",
+ "$id": "412",
"type": {
- "$id": "299",
+ "$id": "413",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2475,45 +3388,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknown",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "300",
+ "$id": "414",
"kind": "client",
"name": "ExtendsUnknownDerived",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "301",
+ "$id": "415",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "302",
+ "$id": "416",
"name": "get",
"resourceName": "ExtendsUnknownDerived",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "303",
+ "$id": "417",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "304",
- "kind": "constant",
- "valueType": {
- "$id": "305",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -2528,12 +3431,12 @@
],
"responses": [
{
- "$id": "306",
+ "$id": "418",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "17"
+ "$ref": "142"
},
"headers": [],
"isErrorResponse": false,
@@ -2553,11 +3456,11 @@
},
"parameters": [
{
- "$id": "307",
+ "$id": "419",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "304"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -2571,9 +3474,9 @@
}
],
"response": {
- "$id": "308",
+ "$id": "420",
"type": {
- "$ref": "17"
+ "$ref": "142"
}
},
"isOverride": false,
@@ -2582,36 +3485,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived.get"
},
{
- "$id": "309",
+ "$id": "421",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "310",
+ "$id": "422",
"name": "put",
"resourceName": "ExtendsUnknownDerived",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "311",
+ "$id": "423",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "312",
- "kind": "constant",
- "valueType": {
- "$id": "313",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -2624,12 +3517,12 @@
"skipUrlEncoding": false
},
{
- "$id": "314",
+ "$id": "424",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "17"
+ "$ref": "142"
},
"location": "Body",
"isApiVersion": false,
@@ -2644,7 +3537,7 @@
],
"responses": [
{
- "$id": "315",
+ "$id": "425",
"statusCodes": [
204
],
@@ -2666,12 +3559,12 @@
},
"parameters": [
{
- "$id": "316",
+ "$id": "426",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "17"
+ "$ref": "142"
},
"location": "Body",
"isApiVersion": false,
@@ -2684,12 +3577,12 @@
"skipUrlEncoding": false
},
{
- "$id": "317",
+ "$id": "427",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "312"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -2703,7 +3596,7 @@
}
],
"response": {
- "$id": "318"
+ "$id": "428"
},
"isOverride": false,
"generateConvenient": true,
@@ -2713,12 +3606,12 @@
],
"parameters": [
{
- "$id": "319",
+ "$id": "429",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "320",
+ "$id": "430",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2732,9 +3625,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "321",
+ "$id": "431",
"type": {
- "$id": "322",
+ "$id": "432",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2747,45 +3640,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDerived",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "323",
+ "$id": "433",
"kind": "client",
"name": "ExtendsUnknownDiscriminated",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "324",
+ "$id": "434",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "325",
+ "$id": "435",
"name": "get",
"resourceName": "ExtendsUnknownDiscriminated",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "326",
+ "$id": "436",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "327",
- "kind": "constant",
- "valueType": {
- "$id": "328",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -2800,12 +3683,12 @@
],
"responses": [
{
- "$id": "329",
+ "$id": "437",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "26"
+ "$ref": "151"
},
"headers": [],
"isErrorResponse": false,
@@ -2825,11 +3708,11 @@
},
"parameters": [
{
- "$id": "330",
+ "$id": "438",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "327"
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -2843,9 +3726,9 @@
}
],
"response": {
- "$id": "331",
+ "$id": "439",
"type": {
- "$ref": "26"
+ "$ref": "151"
}
},
"isOverride": false,
@@ -2854,36 +3737,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated.get"
},
{
- "$id": "332",
+ "$id": "440",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "333",
+ "$id": "441",
"name": "put",
"resourceName": "ExtendsUnknownDiscriminated",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "334",
+ "$id": "442",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "335",
- "kind": "constant",
- "valueType": {
- "$id": "336",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -2896,12 +3769,12 @@
"skipUrlEncoding": false
},
{
- "$id": "337",
+ "$id": "443",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "26"
+ "$ref": "151"
},
"location": "Body",
"isApiVersion": false,
@@ -2916,7 +3789,7 @@
],
"responses": [
{
- "$id": "338",
+ "$id": "444",
"statusCodes": [
204
],
@@ -2938,12 +3811,12 @@
},
"parameters": [
{
- "$id": "339",
+ "$id": "445",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "26"
+ "$ref": "151"
},
"location": "Body",
"isApiVersion": false,
@@ -2956,12 +3829,12 @@
"skipUrlEncoding": false
},
{
- "$id": "340",
+ "$id": "446",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "335"
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -2975,7 +3848,7 @@
}
],
"response": {
- "$id": "341"
+ "$id": "447"
},
"isOverride": false,
"generateConvenient": true,
@@ -2985,12 +3858,12 @@
],
"parameters": [
{
- "$id": "342",
+ "$id": "448",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "343",
+ "$id": "449",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3004,9 +3877,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "344",
+ "$id": "450",
"type": {
- "$id": "345",
+ "$id": "451",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3019,45 +3892,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsUnknownDiscriminated",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "346",
+ "$id": "452",
"kind": "client",
"name": "IsUnknown",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "347",
+ "$id": "453",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "348",
+ "$id": "454",
"name": "get",
"resourceName": "IsUnknown",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "349",
+ "$id": "455",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "350",
- "kind": "constant",
- "valueType": {
- "$id": "351",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -3072,12 +3935,12 @@
],
"responses": [
{
- "$id": "352",
+ "$id": "456",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "51"
+ "$ref": "174"
},
"headers": [],
"isErrorResponse": false,
@@ -3097,11 +3960,11 @@
},
"parameters": [
{
- "$id": "353",
+ "$id": "457",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "350"
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -3115,9 +3978,9 @@
}
],
"response": {
- "$id": "354",
+ "$id": "458",
"type": {
- "$ref": "51"
+ "$ref": "174"
}
},
"isOverride": false,
@@ -3126,36 +3989,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown.get"
},
{
- "$id": "355",
+ "$id": "459",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "356",
+ "$id": "460",
"name": "put",
"resourceName": "IsUnknown",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "357",
+ "$id": "461",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "358",
- "kind": "constant",
- "valueType": {
- "$id": "359",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -3168,12 +4021,12 @@
"skipUrlEncoding": false
},
{
- "$id": "360",
+ "$id": "462",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "51"
+ "$ref": "174"
},
"location": "Body",
"isApiVersion": false,
@@ -3188,7 +4041,7 @@
],
"responses": [
{
- "$id": "361",
+ "$id": "463",
"statusCodes": [
204
],
@@ -3210,12 +4063,12 @@
},
"parameters": [
{
- "$id": "362",
+ "$id": "464",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "51"
+ "$ref": "174"
},
"location": "Body",
"isApiVersion": false,
@@ -3228,12 +4081,12 @@
"skipUrlEncoding": false
},
{
- "$id": "363",
+ "$id": "465",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "358"
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -3247,7 +4100,7 @@
}
],
"response": {
- "$id": "364"
+ "$id": "466"
},
"isOverride": false,
"generateConvenient": true,
@@ -3257,12 +4110,12 @@
],
"parameters": [
{
- "$id": "365",
+ "$id": "467",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "366",
+ "$id": "468",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3276,9 +4129,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "367",
+ "$id": "469",
"type": {
- "$id": "368",
+ "$id": "470",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3291,45 +4144,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknown",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "369",
+ "$id": "471",
"kind": "client",
"name": "IsUnknownDerived",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "370",
+ "$id": "472",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "371",
+ "$id": "473",
"name": "get",
"resourceName": "IsUnknownDerived",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "372",
+ "$id": "474",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "373",
- "kind": "constant",
- "valueType": {
- "$id": "374",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -3344,12 +4187,12 @@
],
"responses": [
{
- "$id": "375",
+ "$id": "475",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "57"
+ "$ref": "180"
},
"headers": [],
"isErrorResponse": false,
@@ -3369,11 +4212,11 @@
},
"parameters": [
{
- "$id": "376",
+ "$id": "476",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "373"
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -3387,9 +4230,9 @@
}
],
"response": {
- "$id": "377",
+ "$id": "477",
"type": {
- "$ref": "57"
+ "$ref": "180"
}
},
"isOverride": false,
@@ -3398,36 +4241,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived.get"
},
{
- "$id": "378",
+ "$id": "478",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "379",
+ "$id": "479",
"name": "put",
"resourceName": "IsUnknownDerived",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "380",
+ "$id": "480",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "381",
- "kind": "constant",
- "valueType": {
- "$id": "382",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -3440,12 +4273,12 @@
"skipUrlEncoding": false
},
{
- "$id": "383",
+ "$id": "481",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "57"
+ "$ref": "180"
},
"location": "Body",
"isApiVersion": false,
@@ -3460,7 +4293,7 @@
],
"responses": [
{
- "$id": "384",
+ "$id": "482",
"statusCodes": [
204
],
@@ -3482,12 +4315,12 @@
},
"parameters": [
{
- "$id": "385",
+ "$id": "483",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "57"
+ "$ref": "180"
},
"location": "Body",
"isApiVersion": false,
@@ -3500,12 +4333,12 @@
"skipUrlEncoding": false
},
{
- "$id": "386",
+ "$id": "484",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "381"
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -3519,7 +4352,7 @@
}
],
"response": {
- "$id": "387"
+ "$id": "485"
},
"isOverride": false,
"generateConvenient": true,
@@ -3529,12 +4362,12 @@
],
"parameters": [
{
- "$id": "388",
+ "$id": "486",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "389",
+ "$id": "487",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3548,9 +4381,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "390",
+ "$id": "488",
"type": {
- "$id": "391",
+ "$id": "489",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3563,45 +4396,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDerived",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "392",
+ "$id": "490",
"kind": "client",
"name": "IsUnknownDiscriminated",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "393",
+ "$id": "491",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "394",
+ "$id": "492",
"name": "get",
"resourceName": "IsUnknownDiscriminated",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "395",
+ "$id": "493",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "396",
- "kind": "constant",
- "valueType": {
- "$id": "397",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -3616,12 +4439,12 @@
],
"responses": [
{
- "$id": "398",
+ "$id": "494",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "66"
+ "$ref": "189"
},
"headers": [],
"isErrorResponse": false,
@@ -3641,11 +4464,11 @@
},
"parameters": [
{
- "$id": "399",
+ "$id": "495",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "396"
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -3659,9 +4482,9 @@
}
],
"response": {
- "$id": "400",
+ "$id": "496",
"type": {
- "$ref": "66"
+ "$ref": "189"
}
},
"isOverride": false,
@@ -3670,36 +4493,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated.get"
},
{
- "$id": "401",
+ "$id": "497",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "402",
+ "$id": "498",
"name": "put",
"resourceName": "IsUnknownDiscriminated",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "403",
+ "$id": "499",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "404",
- "kind": "constant",
- "valueType": {
- "$id": "405",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -3712,12 +4525,12 @@
"skipUrlEncoding": false
},
{
- "$id": "406",
+ "$id": "500",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "66"
+ "$ref": "189"
},
"location": "Body",
"isApiVersion": false,
@@ -3732,7 +4545,7 @@
],
"responses": [
{
- "$id": "407",
+ "$id": "501",
"statusCodes": [
204
],
@@ -3754,12 +4567,12 @@
},
"parameters": [
{
- "$id": "408",
+ "$id": "502",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "66"
+ "$ref": "189"
},
"location": "Body",
"isApiVersion": false,
@@ -3772,12 +4585,12 @@
"skipUrlEncoding": false
},
{
- "$id": "409",
+ "$id": "503",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "404"
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -3791,7 +4604,7 @@
}
],
"response": {
- "$id": "410"
+ "$id": "504"
},
"isOverride": false,
"generateConvenient": true,
@@ -3801,12 +4614,12 @@
],
"parameters": [
{
- "$id": "411",
+ "$id": "505",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "412",
+ "$id": "506",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3820,9 +4633,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "413",
+ "$id": "507",
"type": {
- "$id": "414",
+ "$id": "508",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3835,45 +4648,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsUnknownDiscriminated",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "415",
+ "$id": "509",
"kind": "client",
"name": "ExtendsString",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "416",
+ "$id": "510",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "417",
+ "$id": "511",
"name": "get",
"resourceName": "ExtendsString",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "418",
+ "$id": "512",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "419",
- "kind": "constant",
- "valueType": {
- "$id": "420",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -3888,12 +4691,12 @@
],
"responses": [
{
- "$id": "421",
+ "$id": "513",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "91"
+ "$ref": "212"
},
"headers": [],
"isErrorResponse": false,
@@ -3913,11 +4716,11 @@
},
"parameters": [
{
- "$id": "422",
+ "$id": "514",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "419"
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -3931,9 +4734,9 @@
}
],
"response": {
- "$id": "423",
+ "$id": "515",
"type": {
- "$ref": "91"
+ "$ref": "212"
}
},
"isOverride": false,
@@ -3942,36 +4745,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString.get"
},
{
- "$id": "424",
+ "$id": "516",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "425",
+ "$id": "517",
"name": "put",
"resourceName": "ExtendsString",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "426",
+ "$id": "518",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "427",
- "kind": "constant",
- "valueType": {
- "$id": "428",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -3984,12 +4777,12 @@
"skipUrlEncoding": false
},
{
- "$id": "429",
+ "$id": "519",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "91"
+ "$ref": "212"
},
"location": "Body",
"isApiVersion": false,
@@ -4004,7 +4797,7 @@
],
"responses": [
{
- "$id": "430",
+ "$id": "520",
"statusCodes": [
204
],
@@ -4026,12 +4819,12 @@
},
"parameters": [
{
- "$id": "431",
+ "$id": "521",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "91"
+ "$ref": "212"
},
"location": "Body",
"isApiVersion": false,
@@ -4044,12 +4837,12 @@
"skipUrlEncoding": false
},
{
- "$id": "432",
+ "$id": "522",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "427"
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -4063,7 +4856,7 @@
}
],
"response": {
- "$id": "433"
+ "$id": "523"
},
"isOverride": false,
"generateConvenient": true,
@@ -4073,12 +4866,12 @@
],
"parameters": [
{
- "$id": "434",
+ "$id": "524",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "435",
+ "$id": "525",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4092,9 +4885,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "436",
+ "$id": "526",
"type": {
- "$id": "437",
+ "$id": "527",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4107,45 +4900,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsString",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "438",
+ "$id": "528",
"kind": "client",
"name": "IsString",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "439",
+ "$id": "529",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "440",
+ "$id": "530",
"name": "get",
"resourceName": "IsString",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "441",
+ "$id": "531",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "442",
- "kind": "constant",
- "valueType": {
- "$id": "443",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -4160,12 +4943,12 @@
],
"responses": [
{
- "$id": "444",
+ "$id": "532",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "97"
+ "$ref": "218"
},
"headers": [],
"isErrorResponse": false,
@@ -4185,11 +4968,11 @@
},
"parameters": [
{
- "$id": "445",
+ "$id": "533",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "442"
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -4203,9 +4986,9 @@
}
],
"response": {
- "$id": "446",
+ "$id": "534",
"type": {
- "$ref": "97"
+ "$ref": "218"
}
},
"isOverride": false,
@@ -4214,36 +4997,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString.get"
},
{
- "$id": "447",
+ "$id": "535",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "448",
+ "$id": "536",
"name": "put",
"resourceName": "IsString",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "449",
+ "$id": "537",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "450",
- "kind": "constant",
- "valueType": {
- "$id": "451",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -4256,12 +5029,12 @@
"skipUrlEncoding": false
},
{
- "$id": "452",
+ "$id": "538",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "97"
+ "$ref": "218"
},
"location": "Body",
"isApiVersion": false,
@@ -4276,7 +5049,7 @@
],
"responses": [
{
- "$id": "453",
+ "$id": "539",
"statusCodes": [
204
],
@@ -4298,12 +5071,12 @@
},
"parameters": [
{
- "$id": "454",
+ "$id": "540",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "97"
+ "$ref": "218"
},
"location": "Body",
"isApiVersion": false,
@@ -4316,12 +5089,12 @@
"skipUrlEncoding": false
},
{
- "$id": "455",
+ "$id": "541",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "450"
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -4335,7 +5108,7 @@
}
],
"response": {
- "$id": "456"
+ "$id": "542"
},
"isOverride": false,
"generateConvenient": true,
@@ -4345,12 +5118,12 @@
],
"parameters": [
{
- "$id": "457",
+ "$id": "543",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "458",
+ "$id": "544",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4364,9 +5137,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "459",
+ "$id": "545",
"type": {
- "$id": "460",
+ "$id": "546",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4379,45 +5152,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsString",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "461",
+ "$id": "547",
"kind": "client",
"name": "SpreadString",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "462",
+ "$id": "548",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "463",
+ "$id": "549",
"name": "get",
"resourceName": "SpreadString",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "464",
+ "$id": "550",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "465",
- "kind": "constant",
- "valueType": {
- "$id": "466",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -4432,12 +5195,12 @@
],
"responses": [
{
- "$id": "467",
+ "$id": "551",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "103"
+ "$ref": "224"
},
"headers": [],
"isErrorResponse": false,
@@ -4457,11 +5220,11 @@
},
"parameters": [
{
- "$id": "468",
+ "$id": "552",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "465"
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -4475,9 +5238,9 @@
}
],
"response": {
- "$id": "469",
+ "$id": "553",
"type": {
- "$ref": "103"
+ "$ref": "224"
}
},
"isOverride": false,
@@ -4486,36 +5249,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString.get"
},
{
- "$id": "470",
+ "$id": "554",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "471",
+ "$id": "555",
"name": "put",
"resourceName": "SpreadString",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "472",
+ "$id": "556",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "473",
- "kind": "constant",
- "valueType": {
- "$id": "474",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -4528,12 +5281,12 @@
"skipUrlEncoding": false
},
{
- "$id": "475",
+ "$id": "557",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "103"
+ "$ref": "224"
},
"location": "Body",
"isApiVersion": false,
@@ -4548,7 +5301,7 @@
],
"responses": [
{
- "$id": "476",
+ "$id": "558",
"statusCodes": [
204
],
@@ -4570,12 +5323,12 @@
},
"parameters": [
{
- "$id": "477",
+ "$id": "559",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "103"
+ "$ref": "224"
},
"location": "Body",
"isApiVersion": false,
@@ -4588,12 +5341,12 @@
"skipUrlEncoding": false
},
{
- "$id": "478",
+ "$id": "560",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "473"
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -4607,7 +5360,7 @@
}
],
"response": {
- "$id": "479"
+ "$id": "561"
},
"isOverride": false,
"generateConvenient": true,
@@ -4617,12 +5370,12 @@
],
"parameters": [
{
- "$id": "480",
+ "$id": "562",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "481",
+ "$id": "563",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4636,9 +5389,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "482",
+ "$id": "564",
"type": {
- "$id": "483",
+ "$id": "565",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4651,45 +5404,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadString",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "484",
+ "$id": "566",
"kind": "client",
"name": "ExtendsFloat",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "485",
+ "$id": "567",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "486",
+ "$id": "568",
"name": "get",
"resourceName": "ExtendsFloat",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "487",
+ "$id": "569",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "488",
- "kind": "constant",
- "valueType": {
- "$id": "489",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -4704,12 +5447,12 @@
],
"responses": [
{
- "$id": "490",
+ "$id": "570",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "109"
+ "$ref": "230"
},
"headers": [],
"isErrorResponse": false,
@@ -4729,11 +5472,11 @@
},
"parameters": [
{
- "$id": "491",
+ "$id": "571",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "488"
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -4747,9 +5490,9 @@
}
],
"response": {
- "$id": "492",
+ "$id": "572",
"type": {
- "$ref": "109"
+ "$ref": "230"
}
},
"isOverride": false,
@@ -4758,36 +5501,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat.get"
},
{
- "$id": "493",
+ "$id": "573",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "494",
+ "$id": "574",
"name": "put",
"resourceName": "ExtendsFloat",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "495",
+ "$id": "575",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "496",
- "kind": "constant",
- "valueType": {
- "$id": "497",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -4800,12 +5533,12 @@
"skipUrlEncoding": false
},
{
- "$id": "498",
+ "$id": "576",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "109"
+ "$ref": "230"
},
"location": "Body",
"isApiVersion": false,
@@ -4820,7 +5553,7 @@
],
"responses": [
{
- "$id": "499",
+ "$id": "577",
"statusCodes": [
204
],
@@ -4842,12 +5575,12 @@
},
"parameters": [
{
- "$id": "500",
+ "$id": "578",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "109"
+ "$ref": "230"
},
"location": "Body",
"isApiVersion": false,
@@ -4860,12 +5593,12 @@
"skipUrlEncoding": false
},
{
- "$id": "501",
+ "$id": "579",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "496"
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -4879,7 +5612,7 @@
}
],
"response": {
- "$id": "502"
+ "$id": "580"
},
"isOverride": false,
"generateConvenient": true,
@@ -4889,12 +5622,12 @@
],
"parameters": [
{
- "$id": "503",
+ "$id": "581",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "504",
+ "$id": "582",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4908,9 +5641,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "505",
+ "$id": "583",
"type": {
- "$id": "506",
+ "$id": "584",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4923,45 +5656,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsFloat",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "507",
+ "$id": "585",
"kind": "client",
"name": "IsFloat",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "508",
+ "$id": "586",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "509",
+ "$id": "587",
"name": "get",
"resourceName": "IsFloat",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "510",
+ "$id": "588",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "511",
- "kind": "constant",
- "valueType": {
- "$id": "512",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -4976,12 +5699,12 @@
],
"responses": [
{
- "$id": "513",
+ "$id": "589",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "115"
+ "$ref": "236"
},
"headers": [],
"isErrorResponse": false,
@@ -5001,11 +5724,11 @@
},
"parameters": [
{
- "$id": "514",
+ "$id": "590",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "511"
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -5019,9 +5742,9 @@
}
],
"response": {
- "$id": "515",
+ "$id": "591",
"type": {
- "$ref": "115"
+ "$ref": "236"
}
},
"isOverride": false,
@@ -5030,36 +5753,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat.get"
},
{
- "$id": "516",
+ "$id": "592",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "517",
+ "$id": "593",
"name": "put",
"resourceName": "IsFloat",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "518",
+ "$id": "594",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "519",
- "kind": "constant",
- "valueType": {
- "$id": "520",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -5072,12 +5785,12 @@
"skipUrlEncoding": false
},
{
- "$id": "521",
+ "$id": "595",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "115"
+ "$ref": "236"
},
"location": "Body",
"isApiVersion": false,
@@ -5092,7 +5805,7 @@
],
"responses": [
{
- "$id": "522",
+ "$id": "596",
"statusCodes": [
204
],
@@ -5114,12 +5827,12 @@
},
"parameters": [
{
- "$id": "523",
+ "$id": "597",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "115"
+ "$ref": "236"
},
"location": "Body",
"isApiVersion": false,
@@ -5132,12 +5845,12 @@
"skipUrlEncoding": false
},
{
- "$id": "524",
+ "$id": "598",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "519"
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -5151,7 +5864,7 @@
}
],
"response": {
- "$id": "525"
+ "$id": "599"
},
"isOverride": false,
"generateConvenient": true,
@@ -5161,12 +5874,12 @@
],
"parameters": [
{
- "$id": "526",
+ "$id": "600",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "527",
+ "$id": "601",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5180,9 +5893,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "528",
+ "$id": "602",
"type": {
- "$id": "529",
+ "$id": "603",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5195,45 +5908,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsFloat",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "530",
+ "$id": "604",
"kind": "client",
"name": "SpreadFloat",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "531",
+ "$id": "605",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "532",
+ "$id": "606",
"name": "get",
"resourceName": "SpreadFloat",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "533",
+ "$id": "607",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "534",
- "kind": "constant",
- "valueType": {
- "$id": "535",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -5248,12 +5951,12 @@
],
"responses": [
{
- "$id": "536",
+ "$id": "608",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "121"
+ "$ref": "242"
},
"headers": [],
"isErrorResponse": false,
@@ -5273,11 +5976,11 @@
},
"parameters": [
{
- "$id": "537",
+ "$id": "609",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "534"
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -5291,9 +5994,9 @@
}
],
"response": {
- "$id": "538",
+ "$id": "610",
"type": {
- "$ref": "121"
+ "$ref": "242"
}
},
"isOverride": false,
@@ -5302,36 +6005,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat.get"
},
{
- "$id": "539",
+ "$id": "611",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "540",
+ "$id": "612",
"name": "put",
"resourceName": "SpreadFloat",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "541",
+ "$id": "613",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "542",
- "kind": "constant",
- "valueType": {
- "$id": "543",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -5344,12 +6037,12 @@
"skipUrlEncoding": false
},
{
- "$id": "544",
+ "$id": "614",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "121"
+ "$ref": "242"
},
"location": "Body",
"isApiVersion": false,
@@ -5364,7 +6057,7 @@
],
"responses": [
{
- "$id": "545",
+ "$id": "615",
"statusCodes": [
204
],
@@ -5386,12 +6079,12 @@
},
"parameters": [
{
- "$id": "546",
+ "$id": "616",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "121"
+ "$ref": "242"
},
"location": "Body",
"isApiVersion": false,
@@ -5404,12 +6097,12 @@
"skipUrlEncoding": false
},
{
- "$id": "547",
+ "$id": "617",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "542"
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -5423,7 +6116,7 @@
}
],
"response": {
- "$id": "548"
+ "$id": "618"
},
"isOverride": false,
"generateConvenient": true,
@@ -5433,12 +6126,12 @@
],
"parameters": [
{
- "$id": "549",
+ "$id": "619",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "550",
+ "$id": "620",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5452,9 +6145,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "551",
+ "$id": "621",
"type": {
- "$id": "552",
+ "$id": "622",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5467,45 +6160,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadFloat",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "553",
+ "$id": "623",
"kind": "client",
"name": "ExtendsModel",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "554",
+ "$id": "624",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "555",
+ "$id": "625",
"name": "get",
"resourceName": "ExtendsModel",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "556",
+ "$id": "626",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "557",
- "kind": "constant",
- "valueType": {
- "$id": "558",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -5520,12 +6203,12 @@
],
"responses": [
{
- "$id": "559",
+ "$id": "627",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "127"
+ "$ref": "248"
},
"headers": [],
"isErrorResponse": false,
@@ -5545,11 +6228,11 @@
},
"parameters": [
{
- "$id": "560",
+ "$id": "628",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "557"
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -5563,9 +6246,9 @@
}
],
"response": {
- "$id": "561",
+ "$id": "629",
"type": {
- "$ref": "127"
+ "$ref": "248"
}
},
"isOverride": false,
@@ -5574,36 +6257,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel.get"
},
{
- "$id": "562",
+ "$id": "630",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "563",
+ "$id": "631",
"name": "put",
"resourceName": "ExtendsModel",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "564",
+ "$id": "632",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "565",
- "kind": "constant",
- "valueType": {
- "$id": "566",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -5616,12 +6289,12 @@
"skipUrlEncoding": false
},
{
- "$id": "567",
+ "$id": "633",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "127"
+ "$ref": "248"
},
"location": "Body",
"isApiVersion": false,
@@ -5636,7 +6309,7 @@
],
"responses": [
{
- "$id": "568",
+ "$id": "634",
"statusCodes": [
204
],
@@ -5658,12 +6331,12 @@
},
"parameters": [
{
- "$id": "569",
+ "$id": "635",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "127"
+ "$ref": "248"
},
"location": "Body",
"isApiVersion": false,
@@ -5676,12 +6349,12 @@
"skipUrlEncoding": false
},
{
- "$id": "570",
+ "$id": "636",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "565"
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -5695,7 +6368,7 @@
}
],
"response": {
- "$id": "571"
+ "$id": "637"
},
"isOverride": false,
"generateConvenient": true,
@@ -5705,12 +6378,12 @@
],
"parameters": [
{
- "$id": "572",
+ "$id": "638",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "573",
+ "$id": "639",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5724,9 +6397,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "574",
+ "$id": "640",
"type": {
- "$id": "575",
+ "$id": "641",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5739,45 +6412,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModel",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "576",
+ "$id": "642",
"kind": "client",
"name": "IsModel",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "577",
+ "$id": "643",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "578",
+ "$id": "644",
"name": "get",
"resourceName": "IsModel",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "579",
+ "$id": "645",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "580",
- "kind": "constant",
- "valueType": {
- "$id": "581",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -5792,12 +6455,12 @@
],
"responses": [
{
- "$id": "582",
+ "$id": "646",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "136"
+ "$ref": "257"
},
"headers": [],
"isErrorResponse": false,
@@ -5817,11 +6480,11 @@
},
"parameters": [
{
- "$id": "583",
+ "$id": "647",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "580"
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -5835,9 +6498,9 @@
}
],
"response": {
- "$id": "584",
+ "$id": "648",
"type": {
- "$ref": "136"
+ "$ref": "257"
}
},
"isOverride": false,
@@ -5846,36 +6509,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel.get"
},
{
- "$id": "585",
+ "$id": "649",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "586",
+ "$id": "650",
"name": "put",
"resourceName": "IsModel",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "587",
+ "$id": "651",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "588",
- "kind": "constant",
- "valueType": {
- "$id": "589",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -5888,12 +6541,12 @@
"skipUrlEncoding": false
},
{
- "$id": "590",
+ "$id": "652",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "136"
+ "$ref": "257"
},
"location": "Body",
"isApiVersion": false,
@@ -5908,7 +6561,7 @@
],
"responses": [
{
- "$id": "591",
+ "$id": "653",
"statusCodes": [
204
],
@@ -5930,12 +6583,12 @@
},
"parameters": [
{
- "$id": "592",
+ "$id": "654",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "136"
+ "$ref": "257"
},
"location": "Body",
"isApiVersion": false,
@@ -5948,12 +6601,12 @@
"skipUrlEncoding": false
},
{
- "$id": "593",
+ "$id": "655",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "588"
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -5967,7 +6620,7 @@
}
],
"response": {
- "$id": "594"
+ "$id": "656"
},
"isOverride": false,
"generateConvenient": true,
@@ -5977,12 +6630,12 @@
],
"parameters": [
{
- "$id": "595",
+ "$id": "657",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "596",
+ "$id": "658",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5996,9 +6649,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "597",
+ "$id": "659",
"type": {
- "$id": "598",
+ "$id": "660",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6011,45 +6664,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModel",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "599",
+ "$id": "661",
"kind": "client",
"name": "SpreadModel",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "600",
+ "$id": "662",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "601",
+ "$id": "663",
"name": "get",
"resourceName": "SpreadModel",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "602",
+ "$id": "664",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "603",
- "kind": "constant",
- "valueType": {
- "$id": "604",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -6064,12 +6707,12 @@
],
"responses": [
{
- "$id": "605",
+ "$id": "665",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "140"
+ "$ref": "261"
},
"headers": [],
"isErrorResponse": false,
@@ -6089,11 +6732,11 @@
},
"parameters": [
{
- "$id": "606",
+ "$id": "666",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "603"
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -6107,9 +6750,9 @@
}
],
"response": {
- "$id": "607",
+ "$id": "667",
"type": {
- "$ref": "140"
+ "$ref": "261"
}
},
"isOverride": false,
@@ -6118,36 +6761,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel.get"
},
{
- "$id": "608",
+ "$id": "668",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "609",
+ "$id": "669",
"name": "put",
"resourceName": "SpreadModel",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "610",
+ "$id": "670",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "611",
- "kind": "constant",
- "valueType": {
- "$id": "612",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -6160,12 +6793,12 @@
"skipUrlEncoding": false
},
{
- "$id": "613",
+ "$id": "671",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "140"
+ "$ref": "261"
},
"location": "Body",
"isApiVersion": false,
@@ -6180,7 +6813,7 @@
],
"responses": [
{
- "$id": "614",
+ "$id": "672",
"statusCodes": [
204
],
@@ -6202,12 +6835,12 @@
},
"parameters": [
{
- "$id": "615",
+ "$id": "673",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "140"
+ "$ref": "261"
},
"location": "Body",
"isApiVersion": false,
@@ -6220,12 +6853,12 @@
"skipUrlEncoding": false
},
{
- "$id": "616",
+ "$id": "674",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "611"
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -6239,7 +6872,7 @@
}
],
"response": {
- "$id": "617"
+ "$id": "675"
},
"isOverride": false,
"generateConvenient": true,
@@ -6249,12 +6882,12 @@
],
"parameters": [
{
- "$id": "618",
+ "$id": "676",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "619",
+ "$id": "677",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -6268,9 +6901,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "620",
+ "$id": "678",
"type": {
- "$id": "621",
+ "$id": "679",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6283,45 +6916,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModel",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "622",
+ "$id": "680",
"kind": "client",
"name": "ExtendsModelArray",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "623",
+ "$id": "681",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "624",
+ "$id": "682",
"name": "get",
"resourceName": "ExtendsModelArray",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "625",
+ "$id": "683",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "626",
- "kind": "constant",
- "valueType": {
- "$id": "627",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -6336,12 +6959,12 @@
],
"responses": [
{
- "$id": "628",
+ "$id": "684",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "144"
+ "$ref": "265"
},
"headers": [],
"isErrorResponse": false,
@@ -6361,11 +6984,11 @@
},
"parameters": [
{
- "$id": "629",
+ "$id": "685",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "626"
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -6379,9 +7002,9 @@
}
],
"response": {
- "$id": "630",
+ "$id": "686",
"type": {
- "$ref": "144"
+ "$ref": "265"
}
},
"isOverride": false,
@@ -6390,36 +7013,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray.get"
},
{
- "$id": "631",
+ "$id": "687",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "632",
+ "$id": "688",
"name": "put",
"resourceName": "ExtendsModelArray",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "633",
+ "$id": "689",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "634",
- "kind": "constant",
- "valueType": {
- "$id": "635",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -6432,12 +7045,12 @@
"skipUrlEncoding": false
},
{
- "$id": "636",
+ "$id": "690",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "144"
+ "$ref": "265"
},
"location": "Body",
"isApiVersion": false,
@@ -6452,7 +7065,7 @@
],
"responses": [
{
- "$id": "637",
+ "$id": "691",
"statusCodes": [
204
],
@@ -6474,12 +7087,12 @@
},
"parameters": [
{
- "$id": "638",
+ "$id": "692",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "144"
+ "$ref": "265"
},
"location": "Body",
"isApiVersion": false,
@@ -6492,12 +7105,12 @@
"skipUrlEncoding": false
},
{
- "$id": "639",
+ "$id": "693",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "634"
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -6511,7 +7124,7 @@
}
],
"response": {
- "$id": "640"
+ "$id": "694"
},
"isOverride": false,
"generateConvenient": true,
@@ -6521,12 +7134,12 @@
],
"parameters": [
{
- "$id": "641",
+ "$id": "695",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "642",
+ "$id": "696",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -6540,9 +7153,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "643",
+ "$id": "697",
"type": {
- "$id": "644",
+ "$id": "698",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6555,45 +7168,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsModelArray",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "645",
+ "$id": "699",
"kind": "client",
"name": "IsModelArray",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "646",
+ "$id": "700",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "647",
+ "$id": "701",
"name": "get",
"resourceName": "IsModelArray",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "648",
+ "$id": "702",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "649",
- "kind": "constant",
- "valueType": {
- "$id": "650",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -6608,12 +7211,12 @@
],
"responses": [
{
- "$id": "651",
+ "$id": "703",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "150"
+ "$ref": "271"
},
"headers": [],
"isErrorResponse": false,
@@ -6633,11 +7236,11 @@
},
"parameters": [
{
- "$id": "652",
+ "$id": "704",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "649"
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -6651,9 +7254,9 @@
}
],
"response": {
- "$id": "653",
+ "$id": "705",
"type": {
- "$ref": "150"
+ "$ref": "271"
}
},
"isOverride": false,
@@ -6662,36 +7265,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray.get"
},
{
- "$id": "654",
+ "$id": "706",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "655",
+ "$id": "707",
"name": "put",
"resourceName": "IsModelArray",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "656",
+ "$id": "708",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "657",
- "kind": "constant",
- "valueType": {
- "$id": "658",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -6704,12 +7297,12 @@
"skipUrlEncoding": false
},
{
- "$id": "659",
+ "$id": "709",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "150"
+ "$ref": "271"
},
"location": "Body",
"isApiVersion": false,
@@ -6724,7 +7317,7 @@
],
"responses": [
{
- "$id": "660",
+ "$id": "710",
"statusCodes": [
204
],
@@ -6746,12 +7339,12 @@
},
"parameters": [
{
- "$id": "661",
+ "$id": "711",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "150"
+ "$ref": "271"
},
"location": "Body",
"isApiVersion": false,
@@ -6764,12 +7357,12 @@
"skipUrlEncoding": false
},
{
- "$id": "662",
+ "$id": "712",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "657"
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -6783,7 +7376,7 @@
}
],
"response": {
- "$id": "663"
+ "$id": "713"
},
"isOverride": false,
"generateConvenient": true,
@@ -6793,12 +7386,12 @@
],
"parameters": [
{
- "$id": "664",
+ "$id": "714",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "665",
+ "$id": "715",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -6812,9 +7405,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "666",
+ "$id": "716",
"type": {
- "$id": "667",
+ "$id": "717",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6827,45 +7420,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.IsModelArray",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "668",
+ "$id": "718",
"kind": "client",
"name": "SpreadModelArray",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "669",
+ "$id": "719",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "670",
+ "$id": "720",
"name": "get",
"resourceName": "SpreadModelArray",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "671",
+ "$id": "721",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "672",
- "kind": "constant",
- "valueType": {
- "$id": "673",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -6880,12 +7463,12 @@
],
"responses": [
{
- "$id": "674",
+ "$id": "722",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "156"
+ "$ref": "277"
},
"headers": [],
"isErrorResponse": false,
@@ -6905,11 +7488,11 @@
},
"parameters": [
{
- "$id": "675",
+ "$id": "723",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "672"
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -6923,9 +7506,9 @@
}
],
"response": {
- "$id": "676",
+ "$id": "724",
"type": {
- "$ref": "156"
+ "$ref": "277"
}
},
"isOverride": false,
@@ -6934,36 +7517,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray.get"
},
{
- "$id": "677",
+ "$id": "725",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "678",
+ "$id": "726",
"name": "put",
"resourceName": "SpreadModelArray",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "679",
+ "$id": "727",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "680",
- "kind": "constant",
- "valueType": {
- "$id": "681",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -6976,12 +7549,12 @@
"skipUrlEncoding": false
},
{
- "$id": "682",
+ "$id": "728",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "156"
+ "$ref": "277"
},
"location": "Body",
"isApiVersion": false,
@@ -6996,7 +7569,7 @@
],
"responses": [
{
- "$id": "683",
+ "$id": "729",
"statusCodes": [
204
],
@@ -7018,12 +7591,12 @@
},
"parameters": [
{
- "$id": "684",
+ "$id": "730",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "156"
+ "$ref": "277"
},
"location": "Body",
"isApiVersion": false,
@@ -7036,12 +7609,12 @@
"skipUrlEncoding": false
},
{
- "$id": "685",
+ "$id": "731",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "680"
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -7055,7 +7628,7 @@
}
],
"response": {
- "$id": "686"
+ "$id": "732"
},
"isOverride": false,
"generateConvenient": true,
@@ -7065,12 +7638,12 @@
],
"parameters": [
{
- "$id": "687",
+ "$id": "733",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "688",
+ "$id": "734",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7084,9 +7657,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "689",
+ "$id": "735",
"type": {
- "$id": "690",
+ "$id": "736",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7099,45 +7672,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadModelArray",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "691",
+ "$id": "737",
"kind": "client",
"name": "SpreadDifferentString",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "692",
+ "$id": "738",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "693",
+ "$id": "739",
"name": "get",
"resourceName": "SpreadDifferentString",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "694",
+ "$id": "740",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "695",
- "kind": "constant",
- "valueType": {
- "$id": "696",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -7152,12 +7715,12 @@
],
"responses": [
{
- "$id": "697",
+ "$id": "741",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "162"
+ "$ref": "283"
},
"headers": [],
"isErrorResponse": false,
@@ -7177,11 +7740,11 @@
},
"parameters": [
{
- "$id": "698",
+ "$id": "742",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "695"
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -7195,9 +7758,9 @@
}
],
"response": {
- "$id": "699",
+ "$id": "743",
"type": {
- "$ref": "162"
+ "$ref": "283"
}
},
"isOverride": false,
@@ -7206,36 +7769,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString.get"
},
{
- "$id": "700",
+ "$id": "744",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "701",
+ "$id": "745",
"name": "put",
"resourceName": "SpreadDifferentString",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "702",
+ "$id": "746",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "703",
- "kind": "constant",
- "valueType": {
- "$id": "704",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "86"
},
"location": "Header",
"isApiVersion": false,
@@ -7248,12 +7801,12 @@
"skipUrlEncoding": false
},
{
- "$id": "705",
+ "$id": "747",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "162"
+ "$ref": "283"
},
"location": "Body",
"isApiVersion": false,
@@ -7268,7 +7821,7 @@
],
"responses": [
{
- "$id": "706",
+ "$id": "748",
"statusCodes": [
204
],
@@ -7290,12 +7843,12 @@
},
"parameters": [
{
- "$id": "707",
+ "$id": "749",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "162"
+ "$ref": "283"
},
"location": "Body",
"isApiVersion": false,
@@ -7308,12 +7861,12 @@
"skipUrlEncoding": false
},
{
- "$id": "708",
+ "$id": "750",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "703"
+ "$ref": "86"
},
"location": "Header",
"isApiVersion": false,
@@ -7327,7 +7880,7 @@
}
],
"response": {
- "$id": "709"
+ "$id": "751"
},
"isOverride": false,
"generateConvenient": true,
@@ -7337,12 +7890,12 @@
],
"parameters": [
{
- "$id": "710",
+ "$id": "752",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "711",
+ "$id": "753",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7356,9 +7909,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "712",
+ "$id": "754",
"type": {
- "$id": "713",
+ "$id": "755",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7371,45 +7924,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentString",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "714",
+ "$id": "756",
"kind": "client",
"name": "SpreadDifferentFloat",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "715",
+ "$id": "757",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "716",
+ "$id": "758",
"name": "get",
"resourceName": "SpreadDifferentFloat",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "717",
+ "$id": "759",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "718",
- "kind": "constant",
- "valueType": {
- "$id": "719",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -7424,12 +7967,12 @@
],
"responses": [
{
- "$id": "720",
+ "$id": "760",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "168"
+ "$ref": "289"
},
"headers": [],
"isErrorResponse": false,
@@ -7449,11 +7992,11 @@
},
"parameters": [
{
- "$id": "721",
+ "$id": "761",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "718"
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -7467,9 +8010,9 @@
}
],
"response": {
- "$id": "722",
+ "$id": "762",
"type": {
- "$ref": "168"
+ "$ref": "289"
}
},
"isOverride": false,
@@ -7478,36 +8021,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat.get"
},
{
- "$id": "723",
+ "$id": "763",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "724",
+ "$id": "764",
"name": "put",
"resourceName": "SpreadDifferentFloat",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "725",
+ "$id": "765",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "726",
- "kind": "constant",
- "valueType": {
- "$id": "727",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -7520,12 +8053,12 @@
"skipUrlEncoding": false
},
{
- "$id": "728",
+ "$id": "766",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "168"
+ "$ref": "289"
},
"location": "Body",
"isApiVersion": false,
@@ -7540,7 +8073,7 @@
],
"responses": [
{
- "$id": "729",
+ "$id": "767",
"statusCodes": [
204
],
@@ -7562,12 +8095,12 @@
},
"parameters": [
{
- "$id": "730",
+ "$id": "768",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "168"
+ "$ref": "289"
},
"location": "Body",
"isApiVersion": false,
@@ -7580,12 +8113,12 @@
"skipUrlEncoding": false
},
{
- "$id": "731",
+ "$id": "769",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "726"
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -7599,7 +8132,7 @@
}
],
"response": {
- "$id": "732"
+ "$id": "770"
},
"isOverride": false,
"generateConvenient": true,
@@ -7609,12 +8142,12 @@
],
"parameters": [
{
- "$id": "733",
+ "$id": "771",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "734",
+ "$id": "772",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7628,9 +8161,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "735",
+ "$id": "773",
"type": {
- "$id": "736",
+ "$id": "774",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7643,45 +8176,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentFloat",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "737",
+ "$id": "775",
"kind": "client",
"name": "SpreadDifferentModel",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "738",
+ "$id": "776",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "739",
+ "$id": "777",
"name": "get",
"resourceName": "SpreadDifferentModel",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "740",
+ "$id": "778",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "741",
- "kind": "constant",
- "valueType": {
- "$id": "742",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -7696,12 +8219,12 @@
],
"responses": [
{
- "$id": "743",
+ "$id": "779",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "174"
+ "$ref": "295"
},
"headers": [],
"isErrorResponse": false,
@@ -7721,11 +8244,11 @@
},
"parameters": [
{
- "$id": "744",
+ "$id": "780",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "741"
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -7739,9 +8262,9 @@
}
],
"response": {
- "$id": "745",
+ "$id": "781",
"type": {
- "$ref": "174"
+ "$ref": "295"
}
},
"isOverride": false,
@@ -7750,36 +8273,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel.get"
},
{
- "$id": "746",
+ "$id": "782",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "747",
+ "$id": "783",
"name": "put",
"resourceName": "SpreadDifferentModel",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "748",
+ "$id": "784",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "749",
- "kind": "constant",
- "valueType": {
- "$id": "750",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -7792,12 +8305,12 @@
"skipUrlEncoding": false
},
{
- "$id": "751",
+ "$id": "785",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "174"
+ "$ref": "295"
},
"location": "Body",
"isApiVersion": false,
@@ -7812,7 +8325,7 @@
],
"responses": [
{
- "$id": "752",
+ "$id": "786",
"statusCodes": [
204
],
@@ -7834,12 +8347,12 @@
},
"parameters": [
{
- "$id": "753",
+ "$id": "787",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "174"
+ "$ref": "295"
},
"location": "Body",
"isApiVersion": false,
@@ -7852,12 +8365,12 @@
"skipUrlEncoding": false
},
{
- "$id": "754",
+ "$id": "788",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "749"
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -7871,7 +8384,7 @@
}
],
"response": {
- "$id": "755"
+ "$id": "789"
},
"isOverride": false,
"generateConvenient": true,
@@ -7881,12 +8394,12 @@
],
"parameters": [
{
- "$id": "756",
+ "$id": "790",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "757",
+ "$id": "791",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7900,9 +8413,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "758",
+ "$id": "792",
"type": {
- "$id": "759",
+ "$id": "793",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7915,45 +8428,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModel",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "760",
+ "$id": "794",
"kind": "client",
"name": "SpreadDifferentModelArray",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "761",
+ "$id": "795",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "762",
+ "$id": "796",
"name": "get",
"resourceName": "SpreadDifferentModelArray",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "763",
+ "$id": "797",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "764",
- "kind": "constant",
- "valueType": {
- "$id": "765",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -7968,12 +8471,12 @@
],
"responses": [
{
- "$id": "766",
+ "$id": "798",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "179"
+ "$ref": "300"
},
"headers": [],
"isErrorResponse": false,
@@ -7993,11 +8496,11 @@
},
"parameters": [
{
- "$id": "767",
+ "$id": "799",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "764"
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -8011,9 +8514,9 @@
}
],
"response": {
- "$id": "768",
+ "$id": "800",
"type": {
- "$ref": "179"
+ "$ref": "300"
}
},
"isOverride": false,
@@ -8022,36 +8525,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray.get"
},
{
- "$id": "769",
+ "$id": "801",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "770",
+ "$id": "802",
"name": "put",
"resourceName": "SpreadDifferentModelArray",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "771",
+ "$id": "803",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "772",
- "kind": "constant",
- "valueType": {
- "$id": "773",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -8064,12 +8557,12 @@
"skipUrlEncoding": false
},
{
- "$id": "774",
+ "$id": "804",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "179"
+ "$ref": "300"
},
"location": "Body",
"isApiVersion": false,
@@ -8084,7 +8577,7 @@
],
"responses": [
{
- "$id": "775",
+ "$id": "805",
"statusCodes": [
204
],
@@ -8106,12 +8599,12 @@
},
"parameters": [
{
- "$id": "776",
+ "$id": "806",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "179"
+ "$ref": "300"
},
"location": "Body",
"isApiVersion": false,
@@ -8124,12 +8617,12 @@
"skipUrlEncoding": false
},
{
- "$id": "777",
+ "$id": "807",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "772"
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -8143,7 +8636,7 @@
}
],
"response": {
- "$id": "778"
+ "$id": "808"
},
"isOverride": false,
"generateConvenient": true,
@@ -8153,12 +8646,12 @@
],
"parameters": [
{
- "$id": "779",
+ "$id": "809",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "780",
+ "$id": "810",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8172,9 +8665,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "781",
+ "$id": "811",
"type": {
- "$id": "782",
+ "$id": "812",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8187,45 +8680,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadDifferentModelArray",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "783",
+ "$id": "813",
"kind": "client",
"name": "ExtendsDifferentSpreadString",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "784",
+ "$id": "814",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "785",
+ "$id": "815",
"name": "get",
"resourceName": "ExtendsDifferentSpreadString",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "786",
+ "$id": "816",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "787",
- "kind": "constant",
- "valueType": {
- "$id": "788",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -8240,12 +8723,12 @@
],
"responses": [
{
- "$id": "789",
+ "$id": "817",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "185"
+ "$ref": "306"
},
"headers": [],
"isErrorResponse": false,
@@ -8265,11 +8748,11 @@
},
"parameters": [
{
- "$id": "790",
+ "$id": "818",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "787"
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -8283,9 +8766,9 @@
}
],
"response": {
- "$id": "791",
+ "$id": "819",
"type": {
- "$ref": "185"
+ "$ref": "306"
}
},
"isOverride": false,
@@ -8294,36 +8777,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString.get"
},
{
- "$id": "792",
+ "$id": "820",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "793",
+ "$id": "821",
"name": "put",
"resourceName": "ExtendsDifferentSpreadString",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "794",
+ "$id": "822",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "795",
- "kind": "constant",
- "valueType": {
- "$id": "796",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -8336,12 +8809,12 @@
"skipUrlEncoding": false
},
{
- "$id": "797",
+ "$id": "823",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "185"
+ "$ref": "306"
},
"location": "Body",
"isApiVersion": false,
@@ -8356,7 +8829,7 @@
],
"responses": [
{
- "$id": "798",
+ "$id": "824",
"statusCodes": [
204
],
@@ -8378,12 +8851,12 @@
},
"parameters": [
{
- "$id": "799",
+ "$id": "825",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "185"
+ "$ref": "306"
},
"location": "Body",
"isApiVersion": false,
@@ -8396,12 +8869,12 @@
"skipUrlEncoding": false
},
{
- "$id": "800",
+ "$id": "826",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "795"
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -8415,7 +8888,7 @@
}
],
"response": {
- "$id": "801"
+ "$id": "827"
},
"isOverride": false,
"generateConvenient": true,
@@ -8425,12 +8898,12 @@
],
"parameters": [
{
- "$id": "802",
+ "$id": "828",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "803",
+ "$id": "829",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8444,9 +8917,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "804",
+ "$id": "830",
"type": {
- "$id": "805",
+ "$id": "831",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8459,45 +8932,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadString",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "806",
+ "$id": "832",
"kind": "client",
"name": "ExtendsDifferentSpreadFloat",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "807",
+ "$id": "833",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "808",
+ "$id": "834",
"name": "get",
"resourceName": "ExtendsDifferentSpreadFloat",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "809",
+ "$id": "835",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "810",
- "kind": "constant",
- "valueType": {
- "$id": "811",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "104"
},
"location": "Header",
"isApiVersion": false,
@@ -8512,12 +8975,12 @@
],
"responses": [
{
- "$id": "812",
+ "$id": "836",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "190"
+ "$ref": "311"
},
"headers": [],
"isErrorResponse": false,
@@ -8537,11 +9000,11 @@
},
"parameters": [
{
- "$id": "813",
+ "$id": "837",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "810"
+ "$ref": "104"
},
"location": "Header",
"isApiVersion": false,
@@ -8555,9 +9018,9 @@
}
],
"response": {
- "$id": "814",
+ "$id": "838",
"type": {
- "$ref": "190"
+ "$ref": "311"
}
},
"isOverride": false,
@@ -8566,36 +9029,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat.get"
},
{
- "$id": "815",
+ "$id": "839",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "816",
+ "$id": "840",
"name": "put",
"resourceName": "ExtendsDifferentSpreadFloat",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "817",
+ "$id": "841",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "818",
- "kind": "constant",
- "valueType": {
- "$id": "819",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "106"
},
"location": "Header",
"isApiVersion": false,
@@ -8608,12 +9061,12 @@
"skipUrlEncoding": false
},
{
- "$id": "820",
+ "$id": "842",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "190"
+ "$ref": "311"
},
"location": "Body",
"isApiVersion": false,
@@ -8628,7 +9081,7 @@
],
"responses": [
{
- "$id": "821",
+ "$id": "843",
"statusCodes": [
204
],
@@ -8650,12 +9103,12 @@
},
"parameters": [
{
- "$id": "822",
+ "$id": "844",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "190"
+ "$ref": "311"
},
"location": "Body",
"isApiVersion": false,
@@ -8668,12 +9121,12 @@
"skipUrlEncoding": false
},
{
- "$id": "823",
+ "$id": "845",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "818"
+ "$ref": "106"
},
"location": "Header",
"isApiVersion": false,
@@ -8687,7 +9140,7 @@
}
],
"response": {
- "$id": "824"
+ "$id": "846"
},
"isOverride": false,
"generateConvenient": true,
@@ -8697,12 +9150,12 @@
],
"parameters": [
{
- "$id": "825",
+ "$id": "847",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "826",
+ "$id": "848",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8716,9 +9169,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "827",
+ "$id": "849",
"type": {
- "$id": "828",
+ "$id": "850",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8731,45 +9184,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadFloat",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "829",
+ "$id": "851",
"kind": "client",
"name": "ExtendsDifferentSpreadModel",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "830",
+ "$id": "852",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "831",
+ "$id": "853",
"name": "get",
"resourceName": "ExtendsDifferentSpreadModel",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "832",
+ "$id": "854",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "833",
- "kind": "constant",
- "valueType": {
- "$id": "834",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "108"
},
"location": "Header",
"isApiVersion": false,
@@ -8784,12 +9227,12 @@
],
"responses": [
{
- "$id": "835",
+ "$id": "855",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "195"
+ "$ref": "316"
},
"headers": [],
"isErrorResponse": false,
@@ -8809,11 +9252,11 @@
},
"parameters": [
{
- "$id": "836",
+ "$id": "856",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "833"
+ "$ref": "108"
},
"location": "Header",
"isApiVersion": false,
@@ -8827,9 +9270,9 @@
}
],
"response": {
- "$id": "837",
+ "$id": "857",
"type": {
- "$ref": "195"
+ "$ref": "316"
}
},
"isOverride": false,
@@ -8838,36 +9281,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel.get"
},
{
- "$id": "838",
+ "$id": "858",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "839",
+ "$id": "859",
"name": "put",
"resourceName": "ExtendsDifferentSpreadModel",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "840",
+ "$id": "860",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "841",
- "kind": "constant",
- "valueType": {
- "$id": "842",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "110"
},
"location": "Header",
"isApiVersion": false,
@@ -8880,12 +9313,12 @@
"skipUrlEncoding": false
},
{
- "$id": "843",
+ "$id": "861",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "195"
+ "$ref": "316"
},
"location": "Body",
"isApiVersion": false,
@@ -8900,7 +9333,7 @@
],
"responses": [
{
- "$id": "844",
+ "$id": "862",
"statusCodes": [
204
],
@@ -8922,12 +9355,12 @@
},
"parameters": [
{
- "$id": "845",
+ "$id": "863",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "195"
+ "$ref": "316"
},
"location": "Body",
"isApiVersion": false,
@@ -8940,12 +9373,12 @@
"skipUrlEncoding": false
},
{
- "$id": "846",
+ "$id": "864",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "841"
+ "$ref": "110"
},
"location": "Header",
"isApiVersion": false,
@@ -8959,7 +9392,7 @@
}
],
"response": {
- "$id": "847"
+ "$id": "865"
},
"isOverride": false,
"generateConvenient": true,
@@ -8969,12 +9402,12 @@
],
"parameters": [
{
- "$id": "848",
+ "$id": "866",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "849",
+ "$id": "867",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8988,9 +9421,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "850",
+ "$id": "868",
"type": {
- "$id": "851",
+ "$id": "869",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9003,45 +9436,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModel",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "852",
+ "$id": "870",
"kind": "client",
"name": "ExtendsDifferentSpreadModelArray",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "853",
+ "$id": "871",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "854",
+ "$id": "872",
"name": "get",
"resourceName": "ExtendsDifferentSpreadModelArray",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "855",
+ "$id": "873",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "856",
- "kind": "constant",
- "valueType": {
- "$id": "857",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "112"
},
"location": "Header",
"isApiVersion": false,
@@ -9056,12 +9479,12 @@
],
"responses": [
{
- "$id": "858",
+ "$id": "874",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "199"
+ "$ref": "320"
},
"headers": [],
"isErrorResponse": false,
@@ -9081,11 +9504,11 @@
},
"parameters": [
{
- "$id": "859",
+ "$id": "875",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "856"
+ "$ref": "112"
},
"location": "Header",
"isApiVersion": false,
@@ -9099,9 +9522,9 @@
}
],
"response": {
- "$id": "860",
+ "$id": "876",
"type": {
- "$ref": "199"
+ "$ref": "320"
}
},
"isOverride": false,
@@ -9110,36 +9533,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray.get"
},
{
- "$id": "861",
+ "$id": "877",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "862",
+ "$id": "878",
"name": "put",
"resourceName": "ExtendsDifferentSpreadModelArray",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "863",
+ "$id": "879",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "864",
- "kind": "constant",
- "valueType": {
- "$id": "865",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "114"
},
"location": "Header",
"isApiVersion": false,
@@ -9152,12 +9565,12 @@
"skipUrlEncoding": false
},
{
- "$id": "866",
+ "$id": "880",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "199"
+ "$ref": "320"
},
"location": "Body",
"isApiVersion": false,
@@ -9172,7 +9585,7 @@
],
"responses": [
{
- "$id": "867",
+ "$id": "881",
"statusCodes": [
204
],
@@ -9194,12 +9607,12 @@
},
"parameters": [
{
- "$id": "868",
+ "$id": "882",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "199"
+ "$ref": "320"
},
"location": "Body",
"isApiVersion": false,
@@ -9212,12 +9625,12 @@
"skipUrlEncoding": false
},
{
- "$id": "869",
+ "$id": "883",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "864"
+ "$ref": "114"
},
"location": "Header",
"isApiVersion": false,
@@ -9231,7 +9644,7 @@
}
],
"response": {
- "$id": "870"
+ "$id": "884"
},
"isOverride": false,
"generateConvenient": true,
@@ -9241,12 +9654,12 @@
],
"parameters": [
{
- "$id": "871",
+ "$id": "885",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "872",
+ "$id": "886",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -9260,9 +9673,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "873",
+ "$id": "887",
"type": {
- "$id": "874",
+ "$id": "888",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9275,45 +9688,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.ExtendsDifferentSpreadModelArray",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "875",
+ "$id": "889",
"kind": "client",
"name": "MultipleSpread",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "876",
+ "$id": "890",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "877",
+ "$id": "891",
"name": "get",
"resourceName": "MultipleSpread",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "878",
+ "$id": "892",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "879",
- "kind": "constant",
- "valueType": {
- "$id": "880",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "116"
},
"location": "Header",
"isApiVersion": false,
@@ -9328,12 +9731,12 @@
],
"responses": [
{
- "$id": "881",
+ "$id": "893",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "204"
+ "$ref": "325"
},
"headers": [],
"isErrorResponse": false,
@@ -9353,11 +9756,11 @@
},
"parameters": [
{
- "$id": "882",
+ "$id": "894",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "879"
+ "$ref": "116"
},
"location": "Header",
"isApiVersion": false,
@@ -9371,9 +9774,9 @@
}
],
"response": {
- "$id": "883",
+ "$id": "895",
"type": {
- "$ref": "204"
+ "$ref": "325"
}
},
"isOverride": false,
@@ -9382,36 +9785,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread.get"
},
{
- "$id": "884",
+ "$id": "896",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "885",
+ "$id": "897",
"name": "put",
"resourceName": "MultipleSpread",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "886",
+ "$id": "898",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "887",
- "kind": "constant",
- "valueType": {
- "$id": "888",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "118"
},
"location": "Header",
"isApiVersion": false,
@@ -9424,12 +9817,12 @@
"skipUrlEncoding": false
},
{
- "$id": "889",
+ "$id": "899",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "204"
+ "$ref": "325"
},
"location": "Body",
"isApiVersion": false,
@@ -9444,7 +9837,7 @@
],
"responses": [
{
- "$id": "890",
+ "$id": "900",
"statusCodes": [
204
],
@@ -9466,12 +9859,12 @@
},
"parameters": [
{
- "$id": "891",
+ "$id": "901",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "204"
+ "$ref": "325"
},
"location": "Body",
"isApiVersion": false,
@@ -9484,12 +9877,12 @@
"skipUrlEncoding": false
},
{
- "$id": "892",
+ "$id": "902",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "887"
+ "$ref": "118"
},
"location": "Header",
"isApiVersion": false,
@@ -9503,7 +9896,7 @@
}
],
"response": {
- "$id": "893"
+ "$id": "903"
},
"isOverride": false,
"generateConvenient": true,
@@ -9513,12 +9906,12 @@
],
"parameters": [
{
- "$id": "894",
+ "$id": "904",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "895",
+ "$id": "905",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -9532,9 +9925,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "896",
+ "$id": "906",
"type": {
- "$id": "897",
+ "$id": "907",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9547,45 +9940,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.MultipleSpread",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "898",
+ "$id": "908",
"kind": "client",
"name": "SpreadRecordUnion",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "899",
+ "$id": "909",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "900",
+ "$id": "910",
"name": "get",
"resourceName": "SpreadRecordUnion",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "901",
+ "$id": "911",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "902",
- "kind": "constant",
- "valueType": {
- "$id": "903",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "120"
},
"location": "Header",
"isApiVersion": false,
@@ -9600,12 +9983,12 @@
],
"responses": [
{
- "$id": "904",
+ "$id": "912",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "212"
+ "$ref": "333"
},
"headers": [],
"isErrorResponse": false,
@@ -9625,11 +10008,11 @@
},
"parameters": [
{
- "$id": "905",
+ "$id": "913",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "902"
+ "$ref": "120"
},
"location": "Header",
"isApiVersion": false,
@@ -9643,9 +10026,9 @@
}
],
"response": {
- "$id": "906",
+ "$id": "914",
"type": {
- "$ref": "212"
+ "$ref": "333"
}
},
"isOverride": false,
@@ -9654,36 +10037,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion.get"
},
{
- "$id": "907",
+ "$id": "915",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "908",
+ "$id": "916",
"name": "put",
"resourceName": "SpreadRecordUnion",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "909",
+ "$id": "917",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "910",
- "kind": "constant",
- "valueType": {
- "$id": "911",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "122"
},
"location": "Header",
"isApiVersion": false,
@@ -9696,12 +10069,12 @@
"skipUrlEncoding": false
},
{
- "$id": "912",
+ "$id": "918",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "212"
+ "$ref": "333"
},
"location": "Body",
"isApiVersion": false,
@@ -9716,7 +10089,7 @@
],
"responses": [
{
- "$id": "913",
+ "$id": "919",
"statusCodes": [
204
],
@@ -9738,12 +10111,12 @@
},
"parameters": [
{
- "$id": "914",
+ "$id": "920",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "212"
+ "$ref": "333"
},
"location": "Body",
"isApiVersion": false,
@@ -9756,12 +10129,12 @@
"skipUrlEncoding": false
},
{
- "$id": "915",
+ "$id": "921",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "910"
+ "$ref": "122"
},
"location": "Header",
"isApiVersion": false,
@@ -9775,7 +10148,7 @@
}
],
"response": {
- "$id": "916"
+ "$id": "922"
},
"isOverride": false,
"generateConvenient": true,
@@ -9785,12 +10158,12 @@
],
"parameters": [
{
- "$id": "917",
+ "$id": "923",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "918",
+ "$id": "924",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -9804,9 +10177,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "919",
+ "$id": "925",
"type": {
- "$id": "920",
+ "$id": "926",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9819,45 +10192,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordUnion",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "921",
+ "$id": "927",
"kind": "client",
"name": "SpreadRecordNonDiscriminatedUnion",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "922",
+ "$id": "928",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "923",
+ "$id": "929",
"name": "get",
"resourceName": "SpreadRecordNonDiscriminatedUnion",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "924",
+ "$id": "930",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "925",
- "kind": "constant",
- "valueType": {
- "$id": "926",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "124"
},
"location": "Header",
"isApiVersion": false,
@@ -9872,12 +10235,12 @@
],
"responses": [
{
- "$id": "927",
+ "$id": "931",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "220"
+ "$ref": "341"
},
"headers": [],
"isErrorResponse": false,
@@ -9897,11 +10260,11 @@
},
"parameters": [
{
- "$id": "928",
+ "$id": "932",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "925"
+ "$ref": "124"
},
"location": "Header",
"isApiVersion": false,
@@ -9915,9 +10278,9 @@
}
],
"response": {
- "$id": "929",
+ "$id": "933",
"type": {
- "$ref": "220"
+ "$ref": "341"
}
},
"isOverride": false,
@@ -9926,36 +10289,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion.get"
},
{
- "$id": "930",
+ "$id": "934",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "931",
+ "$id": "935",
"name": "put",
"resourceName": "SpreadRecordNonDiscriminatedUnion",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "932",
+ "$id": "936",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "933",
- "kind": "constant",
- "valueType": {
- "$id": "934",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "126"
},
"location": "Header",
"isApiVersion": false,
@@ -9968,12 +10321,12 @@
"skipUrlEncoding": false
},
{
- "$id": "935",
+ "$id": "937",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "220"
+ "$ref": "341"
},
"location": "Body",
"isApiVersion": false,
@@ -9988,7 +10341,7 @@
],
"responses": [
{
- "$id": "936",
+ "$id": "938",
"statusCodes": [
204
],
@@ -10010,12 +10363,12 @@
},
"parameters": [
{
- "$id": "937",
+ "$id": "939",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "220"
+ "$ref": "341"
},
"location": "Body",
"isApiVersion": false,
@@ -10028,12 +10381,12 @@
"skipUrlEncoding": false
},
{
- "$id": "938",
+ "$id": "940",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "933"
+ "$ref": "126"
},
"location": "Header",
"isApiVersion": false,
@@ -10047,7 +10400,7 @@
}
],
"response": {
- "$id": "939"
+ "$id": "941"
},
"isOverride": false,
"generateConvenient": true,
@@ -10057,12 +10410,12 @@
],
"parameters": [
{
- "$id": "940",
+ "$id": "942",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "941",
+ "$id": "943",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -10076,9 +10429,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "942",
+ "$id": "944",
"type": {
- "$id": "943",
+ "$id": "945",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -10091,45 +10444,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "944",
+ "$id": "946",
"kind": "client",
"name": "SpreadRecordNonDiscriminatedUnion2",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "945",
+ "$id": "947",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "946",
+ "$id": "948",
"name": "get",
"resourceName": "SpreadRecordNonDiscriminatedUnion2",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "947",
+ "$id": "949",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "948",
- "kind": "constant",
- "valueType": {
- "$id": "949",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "128"
},
"location": "Header",
"isApiVersion": false,
@@ -10149,7 +10492,7 @@
200
],
"bodyType": {
- "$ref": "250"
+ "$ref": "369"
},
"headers": [],
"isErrorResponse": false,
@@ -10173,7 +10516,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "948"
+ "$ref": "128"
},
"location": "Header",
"isApiVersion": false,
@@ -10189,7 +10532,7 @@
"response": {
"$id": "952",
"type": {
- "$ref": "250"
+ "$ref": "369"
}
},
"isOverride": false,
@@ -10217,17 +10560,7 @@
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "956",
- "kind": "constant",
- "valueType": {
- "$id": "957",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "130"
},
"location": "Header",
"isApiVersion": false,
@@ -10240,12 +10573,12 @@
"skipUrlEncoding": false
},
{
- "$id": "958",
+ "$id": "956",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "250"
+ "$ref": "369"
},
"location": "Body",
"isApiVersion": false,
@@ -10260,7 +10593,7 @@
],
"responses": [
{
- "$id": "959",
+ "$id": "957",
"statusCodes": [
204
],
@@ -10282,12 +10615,12 @@
},
"parameters": [
{
- "$id": "960",
+ "$id": "958",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "250"
+ "$ref": "369"
},
"location": "Body",
"isApiVersion": false,
@@ -10300,12 +10633,12 @@
"skipUrlEncoding": false
},
{
- "$id": "961",
+ "$id": "959",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "956"
+ "$ref": "130"
},
"location": "Header",
"isApiVersion": false,
@@ -10319,7 +10652,7 @@
}
],
"response": {
- "$id": "962"
+ "$id": "960"
},
"isOverride": false,
"generateConvenient": true,
@@ -10329,12 +10662,12 @@
],
"parameters": [
{
- "$id": "963",
+ "$id": "961",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "964",
+ "$id": "962",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -10348,9 +10681,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "965",
+ "$id": "963",
"type": {
- "$id": "966",
+ "$id": "964",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -10363,45 +10696,35 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion2",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
},
{
- "$id": "967",
+ "$id": "965",
"kind": "client",
"name": "SpreadRecordNonDiscriminatedUnion3",
"namespace": "Type.Property.AdditionalProperties",
"methods": [
{
- "$id": "968",
+ "$id": "966",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "969",
+ "$id": "967",
"name": "get",
"resourceName": "SpreadRecordNonDiscriminatedUnion3",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "970",
+ "$id": "968",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "971",
- "kind": "constant",
- "valueType": {
- "$id": "972",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "132"
},
"location": "Header",
"isApiVersion": false,
@@ -10416,12 +10739,12 @@
],
"responses": [
{
- "$id": "973",
+ "$id": "969",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "265"
+ "$ref": "383"
},
"headers": [],
"isErrorResponse": false,
@@ -10441,11 +10764,11 @@
},
"parameters": [
{
- "$id": "974",
+ "$id": "970",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "971"
+ "$ref": "132"
},
"location": "Header",
"isApiVersion": false,
@@ -10459,9 +10782,9 @@
}
],
"response": {
- "$id": "975",
+ "$id": "971",
"type": {
- "$ref": "265"
+ "$ref": "383"
}
},
"isOverride": false,
@@ -10470,36 +10793,26 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3.get"
},
{
- "$id": "976",
+ "$id": "972",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "977",
+ "$id": "973",
"name": "put",
"resourceName": "SpreadRecordNonDiscriminatedUnion3",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "978",
+ "$id": "974",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "979",
- "kind": "constant",
- "valueType": {
- "$id": "980",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "134"
},
"location": "Header",
"isApiVersion": false,
@@ -10512,12 +10825,12 @@
"skipUrlEncoding": false
},
{
- "$id": "981",
+ "$id": "975",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "265"
+ "$ref": "383"
},
"location": "Body",
"isApiVersion": false,
@@ -10532,7 +10845,7 @@
],
"responses": [
{
- "$id": "982",
+ "$id": "976",
"statusCodes": [
204
],
@@ -10554,12 +10867,12 @@
},
"parameters": [
{
- "$id": "983",
+ "$id": "977",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "265"
+ "$ref": "383"
},
"location": "Body",
"isApiVersion": false,
@@ -10572,12 +10885,12 @@
"skipUrlEncoding": false
},
{
- "$id": "984",
+ "$id": "978",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "979"
+ "$ref": "134"
},
"location": "Header",
"isApiVersion": false,
@@ -10591,7 +10904,7 @@
}
],
"response": {
- "$id": "985"
+ "$id": "979"
},
"isOverride": false,
"generateConvenient": true,
@@ -10601,12 +10914,12 @@
],
"parameters": [
{
- "$id": "986",
+ "$id": "980",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "987",
+ "$id": "981",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -10620,9 +10933,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "988",
+ "$id": "982",
"type": {
- "$id": "989",
+ "$id": "983",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -10635,7 +10948,7 @@
"crossLanguageDefinitionId": "Type.Property.AdditionalProperties.SpreadRecordNonDiscriminatedUnion3",
"apiVersions": [],
"parent": {
- "$ref": "272"
+ "$ref": "390"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/src/Type.Property.Nullable.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/src/Type.Property.Nullable.csproj
index 4b0b98d84052..770bafcf8264 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/src/Type.Property.Nullable.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/nullable/src/Type.Property.Nullable.csproj
@@ -17,6 +17,7 @@
+
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 6ff694c4dcee..eb675bd24f5f 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
@@ -3,9 +3,683 @@
"name": "Type.Property.Nullable",
"apiVersions": [],
"enums": [],
- "models": [
+ "constants": [
{
"$id": "2",
+ "kind": "constant",
+ "name": "getNonNullContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "getNullContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "getNonNullContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "getNullContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "getNonNullContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "getNullContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "getNonNullContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "getNullContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "getNonNullContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "getNullContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "54",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType16",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType17",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "57",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "58",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType18",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "59",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "60",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType19",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "61",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "62",
+ "kind": "constant",
+ "name": "getNonNullContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "63",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "64",
+ "kind": "constant",
+ "name": "getNullContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "65",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "66",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType20",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "68",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType21",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "69",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "70",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType22",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "71",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "72",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType23",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "73",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "74",
+ "kind": "constant",
+ "name": "getNonNullContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "75",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "76",
+ "kind": "constant",
+ "name": "getNullContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "77",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "78",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType24",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "79",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "80",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType25",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "81",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "82",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType26",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "83",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ },
+ {
+ "$id": "84",
+ "kind": "constant",
+ "name": "PatchNonNullRequestContentType27",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "85",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/merge-patch+json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "86",
"kind": "model",
"name": "StringProperty",
"namespace": "Type.Property.Nullable",
@@ -15,13 +689,13 @@
"decorators": [],
"properties": [
{
- "$id": "3",
+ "$id": "87",
"kind": "property",
"name": "requiredProperty",
"serializedName": "requiredProperty",
"doc": "Required property",
"type": {
- "$id": "4",
+ "$id": "88",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -34,24 +708,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.StringProperty.requiredProperty",
"serializationOptions": {
- "$id": "5",
+ "$id": "89",
"json": {
- "$id": "6",
+ "$id": "90",
"name": "requiredProperty"
}
}
},
{
- "$id": "7",
+ "$id": "91",
"kind": "property",
"name": "nullableProperty",
"serializedName": "nullableProperty",
"doc": "Property",
"type": {
- "$id": "8",
+ "$id": "92",
"kind": "nullable",
"type": {
- "$id": "9",
+ "$id": "93",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -66,9 +740,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.StringProperty.nullableProperty",
"serializationOptions": {
- "$id": "10",
+ "$id": "94",
"json": {
- "$id": "11",
+ "$id": "95",
"name": "nullableProperty"
}
}
@@ -76,7 +750,7 @@
]
},
{
- "$id": "12",
+ "$id": "96",
"kind": "model",
"name": "BytesProperty",
"namespace": "Type.Property.Nullable",
@@ -86,13 +760,13 @@
"decorators": [],
"properties": [
{
- "$id": "13",
+ "$id": "97",
"kind": "property",
"name": "requiredProperty",
"serializedName": "requiredProperty",
"doc": "Required property",
"type": {
- "$id": "14",
+ "$id": "98",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -105,24 +779,24 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.BytesProperty.requiredProperty",
"serializationOptions": {
- "$id": "15",
+ "$id": "99",
"json": {
- "$id": "16",
+ "$id": "100",
"name": "requiredProperty"
}
}
},
{
- "$id": "17",
+ "$id": "101",
"kind": "property",
"name": "nullableProperty",
"serializedName": "nullableProperty",
"doc": "Property",
"type": {
- "$id": "18",
+ "$id": "102",
"kind": "nullable",
"type": {
- "$id": "19",
+ "$id": "103",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -138,9 +812,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.BytesProperty.nullableProperty",
"serializationOptions": {
- "$id": "20",
+ "$id": "104",
"json": {
- "$id": "21",
+ "$id": "105",
"name": "nullableProperty"
}
}
@@ -148,7 +822,7 @@
]
},
{
- "$id": "22",
+ "$id": "106",
"kind": "model",
"name": "DatetimeProperty",
"namespace": "Type.Property.Nullable",
@@ -158,13 +832,13 @@
"decorators": [],
"properties": [
{
- "$id": "23",
+ "$id": "107",
"kind": "property",
"name": "requiredProperty",
"serializedName": "requiredProperty",
"doc": "Required property",
"type": {
- "$id": "24",
+ "$id": "108",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -177,29 +851,29 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.DatetimeProperty.requiredProperty",
"serializationOptions": {
- "$id": "25",
+ "$id": "109",
"json": {
- "$id": "26",
+ "$id": "110",
"name": "requiredProperty"
}
}
},
{
- "$id": "27",
+ "$id": "111",
"kind": "property",
"name": "nullableProperty",
"serializedName": "nullableProperty",
"doc": "Property",
"type": {
- "$id": "28",
+ "$id": "112",
"kind": "nullable",
"type": {
- "$id": "29",
+ "$id": "113",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "30",
+ "$id": "114",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -217,9 +891,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.DatetimeProperty.nullableProperty",
"serializationOptions": {
- "$id": "31",
+ "$id": "115",
"json": {
- "$id": "32",
+ "$id": "116",
"name": "nullableProperty"
}
}
@@ -227,7 +901,7 @@
]
},
{
- "$id": "33",
+ "$id": "117",
"kind": "model",
"name": "DurationProperty",
"namespace": "Type.Property.Nullable",
@@ -237,13 +911,13 @@
"decorators": [],
"properties": [
{
- "$id": "34",
+ "$id": "118",
"kind": "property",
"name": "requiredProperty",
"serializedName": "requiredProperty",
"doc": "Required property",
"type": {
- "$id": "35",
+ "$id": "119",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -256,29 +930,29 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.DurationProperty.requiredProperty",
"serializationOptions": {
- "$id": "36",
+ "$id": "120",
"json": {
- "$id": "37",
+ "$id": "121",
"name": "requiredProperty"
}
}
},
{
- "$id": "38",
+ "$id": "122",
"kind": "property",
"name": "nullableProperty",
"serializedName": "nullableProperty",
"doc": "Property",
"type": {
- "$id": "39",
+ "$id": "123",
"kind": "nullable",
"type": {
- "$id": "40",
+ "$id": "124",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "41",
+ "$id": "125",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -296,9 +970,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.DurationProperty.nullableProperty",
"serializationOptions": {
- "$id": "42",
+ "$id": "126",
"json": {
- "$id": "43",
+ "$id": "127",
"name": "nullableProperty"
}
}
@@ -306,7 +980,7 @@
]
},
{
- "$id": "44",
+ "$id": "128",
"kind": "model",
"name": "CollectionsByteProperty",
"namespace": "Type.Property.Nullable",
@@ -316,13 +990,13 @@
"decorators": [],
"properties": [
{
- "$id": "45",
+ "$id": "129",
"kind": "property",
"name": "requiredProperty",
"serializedName": "requiredProperty",
"doc": "Required property",
"type": {
- "$id": "46",
+ "$id": "130",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -335,28 +1009,28 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByteProperty.requiredProperty",
"serializationOptions": {
- "$id": "47",
+ "$id": "131",
"json": {
- "$id": "48",
+ "$id": "132",
"name": "requiredProperty"
}
}
},
{
- "$id": "49",
+ "$id": "133",
"kind": "property",
"name": "nullableProperty",
"serializedName": "nullableProperty",
"doc": "Property",
"type": {
- "$id": "50",
+ "$id": "134",
"kind": "nullable",
"type": {
- "$id": "51",
+ "$id": "135",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "52",
+ "$id": "136",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -375,9 +1049,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByteProperty.nullableProperty",
"serializationOptions": {
- "$id": "53",
+ "$id": "137",
"json": {
- "$id": "54",
+ "$id": "138",
"name": "nullableProperty"
}
}
@@ -385,7 +1059,7 @@
]
},
{
- "$id": "55",
+ "$id": "139",
"kind": "model",
"name": "CollectionsModelProperty",
"namespace": "Type.Property.Nullable",
@@ -395,13 +1069,13 @@
"decorators": [],
"properties": [
{
- "$id": "56",
+ "$id": "140",
"kind": "property",
"name": "requiredProperty",
"serializedName": "requiredProperty",
"doc": "Required property",
"type": {
- "$id": "57",
+ "$id": "141",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -414,28 +1088,28 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModelProperty.requiredProperty",
"serializationOptions": {
- "$id": "58",
+ "$id": "142",
"json": {
- "$id": "59",
+ "$id": "143",
"name": "requiredProperty"
}
}
},
{
- "$id": "60",
+ "$id": "144",
"kind": "property",
"name": "nullableProperty",
"serializedName": "nullableProperty",
"doc": "Property",
"type": {
- "$id": "61",
+ "$id": "145",
"kind": "nullable",
"type": {
- "$id": "62",
+ "$id": "146",
"kind": "array",
"name": "ArrayInnerModel",
"valueType": {
- "$id": "63",
+ "$id": "147",
"kind": "model",
"name": "InnerModel",
"namespace": "Type.Property.Nullable",
@@ -445,13 +1119,13 @@
"decorators": [],
"properties": [
{
- "$id": "64",
+ "$id": "148",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Inner model property",
"type": {
- "$id": "65",
+ "$id": "149",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -464,9 +1138,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.InnerModel.property",
"serializationOptions": {
- "$id": "66",
+ "$id": "150",
"json": {
- "$id": "67",
+ "$id": "151",
"name": "property"
}
}
@@ -485,9 +1159,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModelProperty.nullableProperty",
"serializationOptions": {
- "$id": "68",
+ "$id": "152",
"json": {
- "$id": "69",
+ "$id": "153",
"name": "nullableProperty"
}
}
@@ -495,10 +1169,10 @@
]
},
{
- "$ref": "63"
+ "$ref": "147"
},
{
- "$id": "70",
+ "$id": "154",
"kind": "model",
"name": "CollectionsStringProperty",
"namespace": "Type.Property.Nullable",
@@ -508,13 +1182,13 @@
"decorators": [],
"properties": [
{
- "$id": "71",
+ "$id": "155",
"kind": "property",
"name": "requiredProperty",
"serializedName": "requiredProperty",
"doc": "Required property",
"type": {
- "$id": "72",
+ "$id": "156",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -527,28 +1201,28 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsStringProperty.requiredProperty",
"serializationOptions": {
- "$id": "73",
+ "$id": "157",
"json": {
- "$id": "74",
+ "$id": "158",
"name": "requiredProperty"
}
}
},
{
- "$id": "75",
+ "$id": "159",
"kind": "property",
"name": "nullableProperty",
"serializedName": "nullableProperty",
"doc": "Property",
"type": {
- "$id": "76",
+ "$id": "160",
"kind": "nullable",
"type": {
- "$id": "77",
+ "$id": "161",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "78",
+ "$id": "162",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -566,9 +1240,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsStringProperty.nullableProperty",
"serializationOptions": {
- "$id": "79",
+ "$id": "163",
"json": {
- "$id": "80",
+ "$id": "164",
"name": "nullableProperty"
}
}
@@ -578,7 +1252,7 @@
],
"clients": [
{
- "$id": "81",
+ "$id": "165",
"kind": "client",
"name": "NullableClient",
"namespace": "Type.Property.Nullable",
@@ -586,12 +1260,12 @@
"methods": [],
"parameters": [
{
- "$id": "82",
+ "$id": "166",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "83",
+ "$id": "167",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -605,9 +1279,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "84",
+ "$id": "168",
"type": {
- "$id": "85",
+ "$id": "169",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -621,41 +1295,31 @@
"apiVersions": [],
"children": [
{
- "$id": "86",
+ "$id": "170",
"kind": "client",
"name": "String",
"namespace": "Type.Property.Nullable",
"methods": [
{
- "$id": "87",
+ "$id": "171",
"kind": "basic",
"name": "getNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "88",
+ "$id": "172",
"name": "getNonNull",
"resourceName": "String",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "89",
+ "$id": "173",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "90",
- "kind": "constant",
- "valueType": {
- "$id": "91",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -670,12 +1334,12 @@
],
"responses": [
{
- "$id": "92",
+ "$id": "174",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "86"
},
"headers": [],
"isErrorResponse": false,
@@ -695,11 +1359,11 @@
},
"parameters": [
{
- "$id": "93",
+ "$id": "175",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "90"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -713,9 +1377,9 @@
}
],
"response": {
- "$id": "94",
+ "$id": "176",
"type": {
- "$ref": "2"
+ "$ref": "86"
}
},
"isOverride": false,
@@ -724,35 +1388,25 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.String.getNonNull"
},
{
- "$id": "95",
+ "$id": "177",
"kind": "basic",
"name": "getNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "96",
+ "$id": "178",
"name": "getNull",
"resourceName": "String",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "97",
+ "$id": "179",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "98",
- "kind": "constant",
- "valueType": {
- "$id": "99",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -767,12 +1421,12 @@
],
"responses": [
{
- "$id": "100",
+ "$id": "180",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "2"
+ "$ref": "86"
},
"headers": [],
"isErrorResponse": false,
@@ -792,11 +1446,11 @@
},
"parameters": [
{
- "$id": "101",
+ "$id": "181",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "98"
+ "$ref": "4"
},
"location": "Header",
"isApiVersion": false,
@@ -810,9 +1464,9 @@
}
],
"response": {
- "$id": "102",
+ "$id": "182",
"type": {
- "$ref": "2"
+ "$ref": "86"
}
},
"isOverride": false,
@@ -821,36 +1475,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.String.getNull"
},
{
- "$id": "103",
+ "$id": "183",
"kind": "basic",
"name": "patchNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "104",
+ "$id": "184",
"name": "patchNonNull",
"resourceName": "String",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "105",
+ "$id": "185",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "106",
- "kind": "constant",
- "valueType": {
- "$id": "107",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -863,11 +1507,11 @@
"skipUrlEncoding": false
},
{
- "$id": "108",
+ "$id": "186",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "86"
},
"location": "Body",
"isApiVersion": false,
@@ -882,7 +1526,7 @@
],
"responses": [
{
- "$id": "109",
+ "$id": "187",
"statusCodes": [
204
],
@@ -904,22 +1548,12 @@
},
"parameters": [
{
- "$id": "110",
+ "$id": "188",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "111",
- "kind": "constant",
- "valueType": {
- "$id": "112",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -932,11 +1566,11 @@
"skipUrlEncoding": false
},
{
- "$id": "113",
+ "$id": "189",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "86"
},
"location": "Body",
"isApiVersion": false,
@@ -950,7 +1584,7 @@
}
],
"response": {
- "$id": "114"
+ "$id": "190"
},
"isOverride": false,
"generateConvenient": true,
@@ -958,36 +1592,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.String.patchNonNull"
},
{
- "$id": "115",
+ "$id": "191",
"kind": "basic",
"name": "patchNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "116",
+ "$id": "192",
"name": "patchNull",
"resourceName": "String",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "117",
+ "$id": "193",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "118",
- "kind": "constant",
- "valueType": {
- "$id": "119",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -1000,11 +1624,11 @@
"skipUrlEncoding": false
},
{
- "$id": "120",
+ "$id": "194",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "86"
},
"location": "Body",
"isApiVersion": false,
@@ -1019,7 +1643,7 @@
],
"responses": [
{
- "$id": "121",
+ "$id": "195",
"statusCodes": [
204
],
@@ -1041,22 +1665,12 @@
},
"parameters": [
{
- "$id": "122",
+ "$id": "196",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "123",
- "kind": "constant",
- "valueType": {
- "$id": "124",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "12"
},
"location": "Header",
"isApiVersion": false,
@@ -1069,11 +1683,11 @@
"skipUrlEncoding": false
},
{
- "$id": "125",
+ "$id": "197",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "2"
+ "$ref": "86"
},
"location": "Body",
"isApiVersion": false,
@@ -1087,7 +1701,7 @@
}
],
"response": {
- "$id": "126"
+ "$id": "198"
},
"isOverride": false,
"generateConvenient": true,
@@ -1097,12 +1711,12 @@
],
"parameters": [
{
- "$id": "127",
+ "$id": "199",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "128",
+ "$id": "200",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1116,9 +1730,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "129",
+ "$id": "201",
"type": {
- "$id": "130",
+ "$id": "202",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1131,45 +1745,35 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.String",
"apiVersions": [],
"parent": {
- "$ref": "81"
+ "$ref": "165"
}
},
{
- "$id": "131",
+ "$id": "203",
"kind": "client",
"name": "Bytes",
"namespace": "Type.Property.Nullable",
"methods": [
{
- "$id": "132",
+ "$id": "204",
"kind": "basic",
"name": "getNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "133",
+ "$id": "205",
"name": "getNonNull",
"resourceName": "Bytes",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "134",
+ "$id": "206",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "135",
- "kind": "constant",
- "valueType": {
- "$id": "136",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1184,12 +1788,12 @@
],
"responses": [
{
- "$id": "137",
+ "$id": "207",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "12"
+ "$ref": "96"
},
"headers": [],
"isErrorResponse": false,
@@ -1209,11 +1813,11 @@
},
"parameters": [
{
- "$id": "138",
+ "$id": "208",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "135"
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -1227,9 +1831,9 @@
}
],
"response": {
- "$id": "139",
+ "$id": "209",
"type": {
- "$ref": "12"
+ "$ref": "96"
}
},
"isOverride": false,
@@ -1238,35 +1842,25 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNonNull"
},
{
- "$id": "140",
+ "$id": "210",
"kind": "basic",
"name": "getNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "141",
+ "$id": "211",
"name": "getNull",
"resourceName": "Bytes",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "142",
+ "$id": "212",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "143",
- "kind": "constant",
- "valueType": {
- "$id": "144",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1281,12 +1875,12 @@
],
"responses": [
{
- "$id": "145",
+ "$id": "213",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "12"
+ "$ref": "96"
},
"headers": [],
"isErrorResponse": false,
@@ -1306,11 +1900,11 @@
},
"parameters": [
{
- "$id": "146",
+ "$id": "214",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "143"
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -1324,9 +1918,9 @@
}
],
"response": {
- "$id": "147",
+ "$id": "215",
"type": {
- "$ref": "12"
+ "$ref": "96"
}
},
"isOverride": false,
@@ -1335,36 +1929,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.getNull"
},
{
- "$id": "148",
+ "$id": "216",
"kind": "basic",
"name": "patchNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "149",
+ "$id": "217",
"name": "patchNonNull",
"resourceName": "Bytes",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "150",
+ "$id": "218",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "151",
- "kind": "constant",
- "valueType": {
- "$id": "152",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -1377,11 +1961,11 @@
"skipUrlEncoding": false
},
{
- "$id": "153",
+ "$id": "219",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "96"
},
"location": "Body",
"isApiVersion": false,
@@ -1396,7 +1980,7 @@
],
"responses": [
{
- "$id": "154",
+ "$id": "220",
"statusCodes": [
204
],
@@ -1418,22 +2002,12 @@
},
"parameters": [
{
- "$id": "155",
+ "$id": "221",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "156",
- "kind": "constant",
- "valueType": {
- "$id": "157",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "20"
},
"location": "Header",
"isApiVersion": false,
@@ -1446,11 +2020,11 @@
"skipUrlEncoding": false
},
{
- "$id": "158",
+ "$id": "222",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "96"
},
"location": "Body",
"isApiVersion": false,
@@ -1464,7 +2038,7 @@
}
],
"response": {
- "$id": "159"
+ "$id": "223"
},
"isOverride": false,
"generateConvenient": true,
@@ -1472,36 +2046,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Bytes.patchNonNull"
},
{
- "$id": "160",
+ "$id": "224",
"kind": "basic",
"name": "patchNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "161",
+ "$id": "225",
"name": "patchNull",
"resourceName": "Bytes",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "162",
+ "$id": "226",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "163",
- "kind": "constant",
- "valueType": {
- "$id": "164",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -1514,11 +2078,11 @@
"skipUrlEncoding": false
},
{
- "$id": "165",
+ "$id": "227",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "96"
},
"location": "Body",
"isApiVersion": false,
@@ -1533,7 +2097,7 @@
],
"responses": [
{
- "$id": "166",
+ "$id": "228",
"statusCodes": [
204
],
@@ -1555,22 +2119,12 @@
},
"parameters": [
{
- "$id": "167",
+ "$id": "229",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "168",
- "kind": "constant",
- "valueType": {
- "$id": "169",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -1583,11 +2137,11 @@
"skipUrlEncoding": false
},
{
- "$id": "170",
+ "$id": "230",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "12"
+ "$ref": "96"
},
"location": "Body",
"isApiVersion": false,
@@ -1601,7 +2155,7 @@
}
],
"response": {
- "$id": "171"
+ "$id": "231"
},
"isOverride": false,
"generateConvenient": true,
@@ -1611,12 +2165,12 @@
],
"parameters": [
{
- "$id": "172",
+ "$id": "232",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "173",
+ "$id": "233",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1630,9 +2184,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "174",
+ "$id": "234",
"type": {
- "$id": "175",
+ "$id": "235",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1645,45 +2199,35 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Bytes",
"apiVersions": [],
"parent": {
- "$ref": "81"
+ "$ref": "165"
}
},
{
- "$id": "176",
+ "$id": "236",
"kind": "client",
"name": "Datetime",
"namespace": "Type.Property.Nullable",
"methods": [
{
- "$id": "177",
+ "$id": "237",
"kind": "basic",
"name": "getNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "178",
+ "$id": "238",
"name": "getNonNull",
"resourceName": "Datetime",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "179",
+ "$id": "239",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "180",
- "kind": "constant",
- "valueType": {
- "$id": "181",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -1698,12 +2242,12 @@
],
"responses": [
{
- "$id": "182",
+ "$id": "240",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "22"
+ "$ref": "106"
},
"headers": [],
"isErrorResponse": false,
@@ -1723,11 +2267,11 @@
},
"parameters": [
{
- "$id": "183",
+ "$id": "241",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "180"
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -1741,9 +2285,9 @@
}
],
"response": {
- "$id": "184",
+ "$id": "242",
"type": {
- "$ref": "22"
+ "$ref": "106"
}
},
"isOverride": false,
@@ -1752,35 +2296,25 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNonNull"
},
{
- "$id": "185",
+ "$id": "243",
"kind": "basic",
"name": "getNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "186",
+ "$id": "244",
"name": "getNull",
"resourceName": "Datetime",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "187",
+ "$id": "245",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "188",
- "kind": "constant",
- "valueType": {
- "$id": "189",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -1795,12 +2329,12 @@
],
"responses": [
{
- "$id": "190",
+ "$id": "246",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "22"
+ "$ref": "106"
},
"headers": [],
"isErrorResponse": false,
@@ -1820,11 +2354,11 @@
},
"parameters": [
{
- "$id": "191",
+ "$id": "247",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "188"
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -1838,9 +2372,9 @@
}
],
"response": {
- "$id": "192",
+ "$id": "248",
"type": {
- "$ref": "22"
+ "$ref": "106"
}
},
"isOverride": false,
@@ -1849,36 +2383,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.getNull"
},
{
- "$id": "193",
+ "$id": "249",
"kind": "basic",
"name": "patchNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "194",
+ "$id": "250",
"name": "patchNonNull",
"resourceName": "Datetime",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "195",
+ "$id": "251",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "196",
- "kind": "constant",
- "valueType": {
- "$id": "197",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -1891,11 +2415,11 @@
"skipUrlEncoding": false
},
{
- "$id": "198",
+ "$id": "252",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "22"
+ "$ref": "106"
},
"location": "Body",
"isApiVersion": false,
@@ -1910,7 +2434,7 @@
],
"responses": [
{
- "$id": "199",
+ "$id": "253",
"statusCodes": [
204
],
@@ -1932,22 +2456,12 @@
},
"parameters": [
{
- "$id": "200",
+ "$id": "254",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "201",
- "kind": "constant",
- "valueType": {
- "$id": "202",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -1960,11 +2474,11 @@
"skipUrlEncoding": false
},
{
- "$id": "203",
+ "$id": "255",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "22"
+ "$ref": "106"
},
"location": "Body",
"isApiVersion": false,
@@ -1978,7 +2492,7 @@
}
],
"response": {
- "$id": "204"
+ "$id": "256"
},
"isOverride": false,
"generateConvenient": true,
@@ -1986,36 +2500,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Datetime.patchNonNull"
},
{
- "$id": "205",
+ "$id": "257",
"kind": "basic",
"name": "patchNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "206",
+ "$id": "258",
"name": "patchNull",
"resourceName": "Datetime",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "207",
+ "$id": "259",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "208",
- "kind": "constant",
- "valueType": {
- "$id": "209",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -2028,11 +2532,11 @@
"skipUrlEncoding": false
},
{
- "$id": "210",
+ "$id": "260",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "22"
+ "$ref": "106"
},
"location": "Body",
"isApiVersion": false,
@@ -2047,7 +2551,7 @@
],
"responses": [
{
- "$id": "211",
+ "$id": "261",
"statusCodes": [
204
],
@@ -2069,22 +2573,12 @@
},
"parameters": [
{
- "$id": "212",
+ "$id": "262",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "213",
- "kind": "constant",
- "valueType": {
- "$id": "214",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -2097,11 +2591,11 @@
"skipUrlEncoding": false
},
{
- "$id": "215",
+ "$id": "263",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "22"
+ "$ref": "106"
},
"location": "Body",
"isApiVersion": false,
@@ -2115,7 +2609,7 @@
}
],
"response": {
- "$id": "216"
+ "$id": "264"
},
"isOverride": false,
"generateConvenient": true,
@@ -2125,12 +2619,12 @@
],
"parameters": [
{
- "$id": "217",
+ "$id": "265",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "218",
+ "$id": "266",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2144,9 +2638,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "219",
+ "$id": "267",
"type": {
- "$id": "220",
+ "$id": "268",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2159,45 +2653,35 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Datetime",
"apiVersions": [],
"parent": {
- "$ref": "81"
+ "$ref": "165"
}
},
{
- "$id": "221",
+ "$id": "269",
"kind": "client",
"name": "Duration",
"namespace": "Type.Property.Nullable",
"methods": [
{
- "$id": "222",
+ "$id": "270",
"kind": "basic",
"name": "getNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "223",
+ "$id": "271",
"name": "getNonNull",
"resourceName": "Duration",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "224",
+ "$id": "272",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "225",
- "kind": "constant",
- "valueType": {
- "$id": "226",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -2212,12 +2696,12 @@
],
"responses": [
{
- "$id": "227",
+ "$id": "273",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "33"
+ "$ref": "117"
},
"headers": [],
"isErrorResponse": false,
@@ -2237,11 +2721,11 @@
},
"parameters": [
{
- "$id": "228",
+ "$id": "274",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "225"
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -2255,9 +2739,9 @@
}
],
"response": {
- "$id": "229",
+ "$id": "275",
"type": {
- "$ref": "33"
+ "$ref": "117"
}
},
"isOverride": false,
@@ -2266,35 +2750,25 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNonNull"
},
{
- "$id": "230",
+ "$id": "276",
"kind": "basic",
"name": "getNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "231",
+ "$id": "277",
"name": "getNull",
"resourceName": "Duration",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "232",
+ "$id": "278",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "233",
- "kind": "constant",
- "valueType": {
- "$id": "234",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -2309,12 +2783,12 @@
],
"responses": [
{
- "$id": "235",
+ "$id": "279",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "33"
+ "$ref": "117"
},
"headers": [],
"isErrorResponse": false,
@@ -2334,11 +2808,11 @@
},
"parameters": [
{
- "$id": "236",
+ "$id": "280",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "233"
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -2352,9 +2826,9 @@
}
],
"response": {
- "$id": "237",
+ "$id": "281",
"type": {
- "$ref": "33"
+ "$ref": "117"
}
},
"isOverride": false,
@@ -2363,36 +2837,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Duration.getNull"
},
{
- "$id": "238",
+ "$id": "282",
"kind": "basic",
"name": "patchNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "239",
+ "$id": "283",
"name": "patchNonNull",
"resourceName": "Duration",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "240",
+ "$id": "284",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "241",
- "kind": "constant",
- "valueType": {
- "$id": "242",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -2405,11 +2869,11 @@
"skipUrlEncoding": false
},
{
- "$id": "243",
+ "$id": "285",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "33"
+ "$ref": "117"
},
"location": "Body",
"isApiVersion": false,
@@ -2424,7 +2888,7 @@
],
"responses": [
{
- "$id": "244",
+ "$id": "286",
"statusCodes": [
204
],
@@ -2446,22 +2910,12 @@
},
"parameters": [
{
- "$id": "245",
+ "$id": "287",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "246",
- "kind": "constant",
- "valueType": {
- "$id": "247",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -2474,11 +2928,11 @@
"skipUrlEncoding": false
},
{
- "$id": "248",
+ "$id": "288",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "33"
+ "$ref": "117"
},
"location": "Body",
"isApiVersion": false,
@@ -2492,7 +2946,7 @@
}
],
"response": {
- "$id": "249"
+ "$id": "289"
},
"isOverride": false,
"generateConvenient": true,
@@ -2500,36 +2954,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Duration.patchNonNull"
},
{
- "$id": "250",
+ "$id": "290",
"kind": "basic",
"name": "patchNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "251",
+ "$id": "291",
"name": "patchNull",
"resourceName": "Duration",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "252",
+ "$id": "292",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "253",
- "kind": "constant",
- "valueType": {
- "$id": "254",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -2542,11 +2986,11 @@
"skipUrlEncoding": false
},
{
- "$id": "255",
+ "$id": "293",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "33"
+ "$ref": "117"
},
"location": "Body",
"isApiVersion": false,
@@ -2561,7 +3005,7 @@
],
"responses": [
{
- "$id": "256",
+ "$id": "294",
"statusCodes": [
204
],
@@ -2583,22 +3027,12 @@
},
"parameters": [
{
- "$id": "257",
+ "$id": "295",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "258",
- "kind": "constant",
- "valueType": {
- "$id": "259",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -2611,11 +3045,11 @@
"skipUrlEncoding": false
},
{
- "$id": "260",
+ "$id": "296",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "33"
+ "$ref": "117"
},
"location": "Body",
"isApiVersion": false,
@@ -2629,7 +3063,7 @@
}
],
"response": {
- "$id": "261"
+ "$id": "297"
},
"isOverride": false,
"generateConvenient": true,
@@ -2639,12 +3073,12 @@
],
"parameters": [
{
- "$id": "262",
+ "$id": "298",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "263",
+ "$id": "299",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2658,9 +3092,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "264",
+ "$id": "300",
"type": {
- "$id": "265",
+ "$id": "301",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2673,45 +3107,35 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.Duration",
"apiVersions": [],
"parent": {
- "$ref": "81"
+ "$ref": "165"
}
},
{
- "$id": "266",
+ "$id": "302",
"kind": "client",
"name": "CollectionsByte",
"namespace": "Type.Property.Nullable",
"methods": [
{
- "$id": "267",
+ "$id": "303",
"kind": "basic",
"name": "getNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "268",
+ "$id": "304",
"name": "getNonNull",
"resourceName": "CollectionsByte",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "269",
+ "$id": "305",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "270",
- "kind": "constant",
- "valueType": {
- "$id": "271",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -2726,12 +3150,12 @@
],
"responses": [
{
- "$id": "272",
+ "$id": "306",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "44"
+ "$ref": "128"
},
"headers": [],
"isErrorResponse": false,
@@ -2751,11 +3175,11 @@
},
"parameters": [
{
- "$id": "273",
+ "$id": "307",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "270"
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -2769,9 +3193,9 @@
}
],
"response": {
- "$id": "274",
+ "$id": "308",
"type": {
- "$ref": "44"
+ "$ref": "128"
}
},
"isOverride": false,
@@ -2780,35 +3204,25 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNonNull"
},
{
- "$id": "275",
+ "$id": "309",
"kind": "basic",
"name": "getNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "276",
+ "$id": "310",
"name": "getNull",
"resourceName": "CollectionsByte",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "277",
+ "$id": "311",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "278",
- "kind": "constant",
- "valueType": {
- "$id": "279",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -2823,12 +3237,12 @@
],
"responses": [
{
- "$id": "280",
+ "$id": "312",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "44"
+ "$ref": "128"
},
"headers": [],
"isErrorResponse": false,
@@ -2848,11 +3262,11 @@
},
"parameters": [
{
- "$id": "281",
+ "$id": "313",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "278"
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -2866,9 +3280,9 @@
}
],
"response": {
- "$id": "282",
+ "$id": "314",
"type": {
- "$ref": "44"
+ "$ref": "128"
}
},
"isOverride": false,
@@ -2877,36 +3291,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.getNull"
},
{
- "$id": "283",
+ "$id": "315",
"kind": "basic",
"name": "patchNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "284",
+ "$id": "316",
"name": "patchNonNull",
"resourceName": "CollectionsByte",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "285",
+ "$id": "317",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "286",
- "kind": "constant",
- "valueType": {
- "$id": "287",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -2919,11 +3323,11 @@
"skipUrlEncoding": false
},
{
- "$id": "288",
+ "$id": "318",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "44"
+ "$ref": "128"
},
"location": "Body",
"isApiVersion": false,
@@ -2938,7 +3342,7 @@
],
"responses": [
{
- "$id": "289",
+ "$id": "319",
"statusCodes": [
204
],
@@ -2960,22 +3364,12 @@
},
"parameters": [
{
- "$id": "290",
+ "$id": "320",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "291",
- "kind": "constant",
- "valueType": {
- "$id": "292",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -2988,11 +3382,11 @@
"skipUrlEncoding": false
},
{
- "$id": "293",
+ "$id": "321",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "44"
+ "$ref": "128"
},
"location": "Body",
"isApiVersion": false,
@@ -3006,7 +3400,7 @@
}
],
"response": {
- "$id": "294"
+ "$id": "322"
},
"isOverride": false,
"generateConvenient": true,
@@ -3014,36 +3408,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte.patchNonNull"
},
{
- "$id": "295",
+ "$id": "323",
"kind": "basic",
"name": "patchNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "296",
+ "$id": "324",
"name": "patchNull",
"resourceName": "CollectionsByte",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "297",
+ "$id": "325",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "298",
- "kind": "constant",
- "valueType": {
- "$id": "299",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -3056,11 +3440,11 @@
"skipUrlEncoding": false
},
{
- "$id": "300",
+ "$id": "326",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "44"
+ "$ref": "128"
},
"location": "Body",
"isApiVersion": false,
@@ -3075,7 +3459,7 @@
],
"responses": [
{
- "$id": "301",
+ "$id": "327",
"statusCodes": [
204
],
@@ -3097,22 +3481,12 @@
},
"parameters": [
{
- "$id": "302",
+ "$id": "328",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "303",
- "kind": "constant",
- "valueType": {
- "$id": "304",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -3125,11 +3499,11 @@
"skipUrlEncoding": false
},
{
- "$id": "305",
+ "$id": "329",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "44"
+ "$ref": "128"
},
"location": "Body",
"isApiVersion": false,
@@ -3143,7 +3517,7 @@
}
],
"response": {
- "$id": "306"
+ "$id": "330"
},
"isOverride": false,
"generateConvenient": true,
@@ -3153,12 +3527,12 @@
],
"parameters": [
{
- "$id": "307",
+ "$id": "331",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "308",
+ "$id": "332",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3172,9 +3546,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "309",
+ "$id": "333",
"type": {
- "$id": "310",
+ "$id": "334",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3187,45 +3561,35 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsByte",
"apiVersions": [],
"parent": {
- "$ref": "81"
+ "$ref": "165"
}
},
{
- "$id": "311",
+ "$id": "335",
"kind": "client",
"name": "CollectionsModel",
"namespace": "Type.Property.Nullable",
"methods": [
{
- "$id": "312",
+ "$id": "336",
"kind": "basic",
"name": "getNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "313",
+ "$id": "337",
"name": "getNonNull",
"resourceName": "CollectionsModel",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "314",
+ "$id": "338",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "315",
- "kind": "constant",
- "valueType": {
- "$id": "316",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -3240,12 +3604,12 @@
],
"responses": [
{
- "$id": "317",
+ "$id": "339",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "55"
+ "$ref": "139"
},
"headers": [],
"isErrorResponse": false,
@@ -3265,11 +3629,11 @@
},
"parameters": [
{
- "$id": "318",
+ "$id": "340",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "315"
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -3283,9 +3647,9 @@
}
],
"response": {
- "$id": "319",
+ "$id": "341",
"type": {
- "$ref": "55"
+ "$ref": "139"
}
},
"isOverride": false,
@@ -3294,35 +3658,25 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNonNull"
},
{
- "$id": "320",
+ "$id": "342",
"kind": "basic",
"name": "getNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "321",
+ "$id": "343",
"name": "getNull",
"resourceName": "CollectionsModel",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "322",
+ "$id": "344",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "323",
- "kind": "constant",
- "valueType": {
- "$id": "324",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -3337,12 +3691,12 @@
],
"responses": [
{
- "$id": "325",
+ "$id": "345",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "55"
+ "$ref": "139"
},
"headers": [],
"isErrorResponse": false,
@@ -3362,11 +3716,11 @@
},
"parameters": [
{
- "$id": "326",
+ "$id": "346",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "323"
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -3380,9 +3734,9 @@
}
],
"response": {
- "$id": "327",
+ "$id": "347",
"type": {
- "$ref": "55"
+ "$ref": "139"
}
},
"isOverride": false,
@@ -3391,36 +3745,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.getNull"
},
{
- "$id": "328",
+ "$id": "348",
"kind": "basic",
"name": "patchNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "329",
+ "$id": "349",
"name": "patchNonNull",
"resourceName": "CollectionsModel",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "330",
+ "$id": "350",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "331",
- "kind": "constant",
- "valueType": {
- "$id": "332",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -3433,11 +3777,11 @@
"skipUrlEncoding": false
},
{
- "$id": "333",
+ "$id": "351",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "55"
+ "$ref": "139"
},
"location": "Body",
"isApiVersion": false,
@@ -3452,7 +3796,7 @@
],
"responses": [
{
- "$id": "334",
+ "$id": "352",
"statusCodes": [
204
],
@@ -3474,22 +3818,12 @@
},
"parameters": [
{
- "$id": "335",
+ "$id": "353",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "336",
- "kind": "constant",
- "valueType": {
- "$id": "337",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -3502,11 +3836,11 @@
"skipUrlEncoding": false
},
{
- "$id": "338",
+ "$id": "354",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "55"
+ "$ref": "139"
},
"location": "Body",
"isApiVersion": false,
@@ -3520,7 +3854,7 @@
}
],
"response": {
- "$id": "339"
+ "$id": "355"
},
"isOverride": false,
"generateConvenient": true,
@@ -3528,36 +3862,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel.patchNonNull"
},
{
- "$id": "340",
+ "$id": "356",
"kind": "basic",
"name": "patchNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "341",
+ "$id": "357",
"name": "patchNull",
"resourceName": "CollectionsModel",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "342",
+ "$id": "358",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "343",
- "kind": "constant",
- "valueType": {
- "$id": "344",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -3570,11 +3894,11 @@
"skipUrlEncoding": false
},
{
- "$id": "345",
+ "$id": "359",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "55"
+ "$ref": "139"
},
"location": "Body",
"isApiVersion": false,
@@ -3589,7 +3913,7 @@
],
"responses": [
{
- "$id": "346",
+ "$id": "360",
"statusCodes": [
204
],
@@ -3611,22 +3935,12 @@
},
"parameters": [
{
- "$id": "347",
+ "$id": "361",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "348",
- "kind": "constant",
- "valueType": {
- "$id": "349",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -3639,11 +3953,11 @@
"skipUrlEncoding": false
},
{
- "$id": "350",
+ "$id": "362",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "55"
+ "$ref": "139"
},
"location": "Body",
"isApiVersion": false,
@@ -3657,7 +3971,7 @@
}
],
"response": {
- "$id": "351"
+ "$id": "363"
},
"isOverride": false,
"generateConvenient": true,
@@ -3667,12 +3981,12 @@
],
"parameters": [
{
- "$id": "352",
+ "$id": "364",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "353",
+ "$id": "365",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3686,9 +4000,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "354",
+ "$id": "366",
"type": {
- "$id": "355",
+ "$id": "367",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3701,45 +4015,35 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsModel",
"apiVersions": [],
"parent": {
- "$ref": "81"
+ "$ref": "165"
}
},
{
- "$id": "356",
+ "$id": "368",
"kind": "client",
"name": "CollectionsString",
"namespace": "Type.Property.Nullable",
"methods": [
{
- "$id": "357",
+ "$id": "369",
"kind": "basic",
"name": "getNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "358",
+ "$id": "370",
"name": "getNonNull",
"resourceName": "CollectionsString",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "359",
+ "$id": "371",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "360",
- "kind": "constant",
- "valueType": {
- "$id": "361",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -3754,12 +4058,12 @@
],
"responses": [
{
- "$id": "362",
+ "$id": "372",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "70"
+ "$ref": "154"
},
"headers": [],
"isErrorResponse": false,
@@ -3779,11 +4083,11 @@
},
"parameters": [
{
- "$id": "363",
+ "$id": "373",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "360"
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -3797,9 +4101,9 @@
}
],
"response": {
- "$id": "364",
+ "$id": "374",
"type": {
- "$ref": "70"
+ "$ref": "154"
}
},
"isOverride": false,
@@ -3808,35 +4112,25 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNonNull"
},
{
- "$id": "365",
+ "$id": "375",
"kind": "basic",
"name": "getNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "366",
+ "$id": "376",
"name": "getNull",
"resourceName": "CollectionsString",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "367",
+ "$id": "377",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "368",
- "kind": "constant",
- "valueType": {
- "$id": "369",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -3851,12 +4145,12 @@
],
"responses": [
{
- "$id": "370",
+ "$id": "378",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "70"
+ "$ref": "154"
},
"headers": [],
"isErrorResponse": false,
@@ -3876,11 +4170,11 @@
},
"parameters": [
{
- "$id": "371",
+ "$id": "379",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "368"
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -3894,9 +4188,9 @@
}
],
"response": {
- "$id": "372",
+ "$id": "380",
"type": {
- "$ref": "70"
+ "$ref": "154"
}
},
"isOverride": false,
@@ -3905,36 +4199,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.getNull"
},
{
- "$id": "373",
+ "$id": "381",
"kind": "basic",
"name": "patchNonNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "374",
+ "$id": "382",
"name": "patchNonNull",
"resourceName": "CollectionsString",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "375",
+ "$id": "383",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "376",
- "kind": "constant",
- "valueType": {
- "$id": "377",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -3947,11 +4231,11 @@
"skipUrlEncoding": false
},
{
- "$id": "378",
+ "$id": "384",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "70"
+ "$ref": "154"
},
"location": "Body",
"isApiVersion": false,
@@ -3966,7 +4250,7 @@
],
"responses": [
{
- "$id": "379",
+ "$id": "385",
"statusCodes": [
204
],
@@ -3988,22 +4272,12 @@
},
"parameters": [
{
- "$id": "380",
+ "$id": "386",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "381",
- "kind": "constant",
- "valueType": {
- "$id": "382",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -4016,11 +4290,11 @@
"skipUrlEncoding": false
},
{
- "$id": "383",
+ "$id": "387",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "70"
+ "$ref": "154"
},
"location": "Body",
"isApiVersion": false,
@@ -4034,7 +4308,7 @@
}
],
"response": {
- "$id": "384"
+ "$id": "388"
},
"isOverride": false,
"generateConvenient": true,
@@ -4042,36 +4316,26 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString.patchNonNull"
},
{
- "$id": "385",
+ "$id": "389",
"kind": "basic",
"name": "patchNull",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "386",
+ "$id": "390",
"name": "patchNull",
"resourceName": "CollectionsString",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "387",
+ "$id": "391",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "388",
- "kind": "constant",
- "valueType": {
- "$id": "389",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -4084,11 +4348,11 @@
"skipUrlEncoding": false
},
{
- "$id": "390",
+ "$id": "392",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "70"
+ "$ref": "154"
},
"location": "Body",
"isApiVersion": false,
@@ -4103,7 +4367,7 @@
],
"responses": [
{
- "$id": "391",
+ "$id": "393",
"statusCodes": [
204
],
@@ -4125,22 +4389,12 @@
},
"parameters": [
{
- "$id": "392",
+ "$id": "394",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "content-type is application/merge-patch+json",
"type": {
- "$id": "393",
- "kind": "constant",
- "valueType": {
- "$id": "394",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/merge-patch+json",
- "decorators": []
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -4157,7 +4411,7 @@
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "70"
+ "$ref": "154"
},
"location": "Body",
"isApiVersion": false,
@@ -4215,7 +4469,7 @@
"crossLanguageDefinitionId": "Type.Property.Nullable.CollectionsString",
"apiVersions": [],
"parent": {
- "$ref": "81"
+ "$ref": "165"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralProperty.cs
index d0c630a5d6de..edc42ac35551 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralProperty.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralProperty.cs
@@ -11,7 +11,7 @@ public partial class FloatLiteralProperty
{
public FloatLiteralProperty() => throw null;
- public FloatLiteralPropertyProperty? Property
+ public float? Property
{
get => throw null;
set => throw null;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralPropertyProperty.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralPropertyProperty.Serialization.cs
deleted file mode 100644
index c8467c6d6429..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralPropertyProperty.Serialization.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace _Type.Property.Optional
-{
- public readonly partial struct FloatLiteralPropertyProperty
- {
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralPropertyProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralPropertyProperty.cs
deleted file mode 100644
index de9e7e14fbf4..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/FloatLiteralPropertyProperty.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.Optional
-{
- public readonly partial struct FloatLiteralPropertyProperty : IEquatable
- {
- public FloatLiteralPropertyProperty(float value) => throw null;
-
- public static FloatLiteralPropertyProperty _125 => throw null;
-
- public static bool operator ==(FloatLiteralPropertyProperty left, FloatLiteralPropertyProperty right) => throw null;
-
- public static bool operator !=(FloatLiteralPropertyProperty left, FloatLiteralPropertyProperty right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator FloatLiteralPropertyProperty(float value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(FloatLiteralPropertyProperty other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralProperty.cs
index fb59e2a35cae..b793b22db010 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralProperty.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralProperty.cs
@@ -11,7 +11,7 @@ public partial class IntLiteralProperty
{
public IntLiteralProperty() => throw null;
- public IntLiteralPropertyProperty? Property
+ public int? Property
{
get => throw null;
set => throw null;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralPropertyProperty.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralPropertyProperty.Serialization.cs
deleted file mode 100644
index 0f5ea58370f9..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralPropertyProperty.Serialization.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace _Type.Property.Optional
-{
- public readonly partial struct IntLiteralPropertyProperty
- {
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralPropertyProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralPropertyProperty.cs
deleted file mode 100644
index 8d041e4d7520..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/IntLiteralPropertyProperty.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.Optional
-{
- public readonly partial struct IntLiteralPropertyProperty : IEquatable
- {
- public IntLiteralPropertyProperty(int value) => throw null;
-
- public static IntLiteralPropertyProperty _1 => throw null;
-
- public static bool operator ==(IntLiteralPropertyProperty left, IntLiteralPropertyProperty right) => throw null;
-
- public static bool operator !=(IntLiteralPropertyProperty left, IntLiteralPropertyProperty right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator IntLiteralPropertyProperty(int value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(IntLiteralPropertyProperty other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/StringLiteralProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/StringLiteralProperty.cs
index 0c327ff661ae..dd649231865c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/StringLiteralProperty.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/StringLiteralProperty.cs
@@ -11,7 +11,7 @@ public partial class StringLiteralProperty
{
public StringLiteralProperty() => throw null;
- public StringLiteralPropertyProperty? Property
+ public string Property
{
get => throw null;
set => throw null;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/StringLiteralPropertyProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/StringLiteralPropertyProperty.cs
deleted file mode 100644
index a377c00aaafa..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/Models/StringLiteralPropertyProperty.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.Optional
-{
- public readonly partial struct StringLiteralPropertyProperty : IEquatable
- {
- public StringLiteralPropertyProperty(string value) => throw null;
-
- public static StringLiteralPropertyProperty Hello => throw null;
-
- public static bool operator ==(StringLiteralPropertyProperty left, StringLiteralPropertyProperty right) => throw null;
-
- public static bool operator !=(StringLiteralPropertyProperty left, StringLiteralPropertyProperty right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator StringLiteralPropertyProperty(string value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(StringLiteralPropertyProperty other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/TypePropertyOptionalModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/TypePropertyOptionalModelFactory.cs
index 6a58271398d4..e6ee39ff14bd 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/TypePropertyOptionalModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Generated/TypePropertyOptionalModelFactory.cs
@@ -28,11 +28,11 @@ public static partial class TypePropertyOptionalModelFactory
public static CollectionsModelProperty CollectionsModelProperty(IEnumerable @property = default) => throw null;
- public static StringLiteralProperty StringLiteralProperty(StringLiteralPropertyProperty? @property = default) => throw null;
+ public static StringLiteralProperty StringLiteralProperty(string @property = default) => throw null;
- public static IntLiteralProperty IntLiteralProperty(IntLiteralPropertyProperty? @property = default) => throw null;
+ public static IntLiteralProperty IntLiteralProperty(int? @property = default) => throw null;
- public static FloatLiteralProperty FloatLiteralProperty(FloatLiteralPropertyProperty? @property = default) => throw null;
+ public static FloatLiteralProperty FloatLiteralProperty(float? @property = default) => throw null;
public static BooleanLiteralProperty BooleanLiteralProperty(bool? @property = default) => throw null;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Type.Property.Optional.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Type.Property.Optional.csproj
index a5fb2e3c370c..10dd93ce79e9 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Type.Property.Optional.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/optionality/src/Type.Property.Optional.csproj
@@ -17,6 +17,7 @@
+
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 993169247516..86a216bd7a94 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
@@ -6,112 +6,10 @@
{
"$id": "2",
"kind": "enum",
- "name": "StringLiteralProperty_property",
- "valueType": {
- "$id": "3",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "values": [
- {
- "$id": "4",
- "kind": "enumvalue",
- "name": "hello",
- "value": "hello",
- "doc": "hello",
- "valueType": {
- "$ref": "3"
- },
- "enumType": {
- "$ref": "2"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Type.Property.Optional",
- "doc": "The StringLiteralProperty_property",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Json",
- "decorators": []
- },
- {
- "$id": "5",
- "kind": "enum",
- "name": "IntLiteralProperty_property",
- "valueType": {
- "$id": "6",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "values": [
- {
- "$id": "7",
- "kind": "enumvalue",
- "name": "1",
- "value": 1,
- "doc": "1",
- "valueType": {
- "$ref": "6"
- },
- "enumType": {
- "$ref": "5"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Type.Property.Optional",
- "doc": "The IntLiteralProperty_property",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Json",
- "decorators": []
- },
- {
- "$id": "8",
- "kind": "enum",
- "name": "FloatLiteralProperty_property",
- "valueType": {
- "$id": "9",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
- "decorators": []
- },
- "values": [
- {
- "$id": "10",
- "kind": "enumvalue",
- "name": "1.25",
- "value": 1.25,
- "doc": "1.25",
- "valueType": {
- "$ref": "9"
- },
- "enumType": {
- "$ref": "8"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Type.Property.Optional",
- "doc": "The FloatLiteralProperty_property",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Json",
- "decorators": []
- },
- {
- "$id": "11",
- "kind": "enum",
"name": "UnionStringLiteralPropertyProperty",
"crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty.property.anonymous",
"valueType": {
- "$id": "12",
+ "$id": "3",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -119,36 +17,36 @@
},
"values": [
{
- "$id": "13",
+ "$id": "4",
"kind": "enumvalue",
"name": "hello",
"value": "hello",
"valueType": {
- "$id": "14",
+ "$id": "5",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "11"
+ "$ref": "2"
},
"decorators": []
},
{
- "$id": "15",
+ "$id": "6",
"kind": "enumvalue",
"name": "world",
"value": "world",
"valueType": {
- "$id": "16",
+ "$id": "7",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"enumType": {
- "$ref": "11"
+ "$ref": "2"
},
"decorators": []
}
@@ -160,12 +58,12 @@
"decorators": []
},
{
- "$id": "17",
+ "$id": "8",
"kind": "enum",
"name": "UnionIntLiteralPropertyProperty",
"crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty.property.anonymous",
"valueType": {
- "$id": "18",
+ "$id": "9",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -173,36 +71,36 @@
},
"values": [
{
- "$id": "19",
+ "$id": "10",
"kind": "enumvalue",
"name": "1",
"value": 1,
"valueType": {
- "$id": "20",
+ "$id": "11",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
"enumType": {
- "$ref": "17"
+ "$ref": "8"
},
"decorators": []
},
{
- "$id": "21",
+ "$id": "12",
"kind": "enumvalue",
"name": "2",
"value": 2,
"valueType": {
- "$id": "22",
+ "$id": "13",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
"enumType": {
- "$ref": "17"
+ "$ref": "8"
},
"decorators": []
}
@@ -214,12 +112,12 @@
"decorators": []
},
{
- "$id": "23",
+ "$id": "14",
"kind": "enum",
"name": "UnionFloatLiteralPropertyProperty",
"crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty.property.anonymous",
"valueType": {
- "$id": "24",
+ "$id": "15",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -227,50 +125,1140 @@
},
"values": [
{
- "$id": "25",
+ "$id": "16",
"kind": "enumvalue",
"name": "1.25",
"value": 1.25,
"valueType": {
- "$id": "26",
+ "$id": "17",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "23"
+ "$ref": "14"
},
"decorators": []
},
{
- "$id": "27",
+ "$id": "18",
"kind": "enumvalue",
"name": "2.375",
"value": 2.375,
"valueType": {
- "$id": "28",
+ "$id": "19",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
"decorators": []
},
"enumType": {
- "$ref": "23"
+ "$ref": "14"
},
"decorators": []
}
],
"namespace": "",
- "isFixed": true,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "isFixed": true,
+ "isFlags": false,
+ "usage": "Input,Output,Json",
+ "decorators": []
+ }
+ ],
+ "constants": [
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "StringLiteralPropertyProperty",
+ "namespace": "Type.Property.Optional",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "hello",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "IntLiteralPropertyProperty",
+ "namespace": "Type.Property.Optional",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "23",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 1,
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "FloatLiteralPropertyProperty",
+ "namespace": "Type.Property.Optional",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "25",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "value": 1.25,
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "BooleanLiteralPropertyProperty",
+ "namespace": "Type.Property.Optional",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "27",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": true,
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "getAllContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "getDefaultContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "putAllContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "putDefaultContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "getAllContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "getDefaultContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "putAllContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "putDefaultContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "getAllContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "getDefaultContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "putAllContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "putDefaultContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "getAllContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "54",
+ "kind": "constant",
+ "name": "getDefaultContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "constant",
+ "name": "putAllContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "57",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "58",
+ "kind": "constant",
+ "name": "putDefaultContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "59",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "60",
+ "kind": "constant",
+ "name": "getAllContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "61",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "62",
+ "kind": "constant",
+ "name": "getDefaultContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "63",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "64",
+ "kind": "constant",
+ "name": "putAllContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "65",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "66",
+ "kind": "constant",
+ "name": "putDefaultContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "68",
+ "kind": "constant",
+ "name": "getAllContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "69",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "70",
+ "kind": "constant",
+ "name": "getDefaultContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "71",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "72",
+ "kind": "constant",
+ "name": "putAllContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "73",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "74",
+ "kind": "constant",
+ "name": "putDefaultContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "75",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "76",
+ "kind": "constant",
+ "name": "getAllContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "77",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "78",
+ "kind": "constant",
+ "name": "getDefaultContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "79",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "80",
+ "kind": "constant",
+ "name": "putAllContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "81",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "82",
+ "kind": "constant",
+ "name": "putDefaultContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "83",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "84",
+ "kind": "constant",
+ "name": "getAllContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "85",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "86",
+ "kind": "constant",
+ "name": "getDefaultContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "87",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "88",
+ "kind": "constant",
+ "name": "putAllContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "89",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "90",
+ "kind": "constant",
+ "name": "putDefaultContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "91",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "92",
+ "kind": "constant",
+ "name": "getAllContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "93",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "94",
+ "kind": "constant",
+ "name": "getDefaultContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "95",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "96",
+ "kind": "constant",
+ "name": "putAllContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "97",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "98",
+ "kind": "constant",
+ "name": "putDefaultContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "99",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "100",
+ "kind": "constant",
+ "name": "getAllContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "101",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "102",
+ "kind": "constant",
+ "name": "getDefaultContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "103",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "104",
+ "kind": "constant",
+ "name": "putAllContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "105",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "106",
+ "kind": "constant",
+ "name": "putDefaultContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "107",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "108",
+ "kind": "constant",
+ "name": "getAllContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "109",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "110",
+ "kind": "constant",
+ "name": "getDefaultContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "111",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "112",
+ "kind": "constant",
+ "name": "putAllContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "113",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "114",
+ "kind": "constant",
+ "name": "putDefaultContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "115",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "116",
+ "kind": "constant",
+ "name": "getAllContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "117",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "118",
+ "kind": "constant",
+ "name": "getDefaultContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "119",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "120",
+ "kind": "constant",
+ "name": "putAllContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "121",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "122",
+ "kind": "constant",
+ "name": "putDefaultContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "123",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "124",
+ "kind": "constant",
+ "name": "getAllContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "125",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "126",
+ "kind": "constant",
+ "name": "getDefaultContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "127",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "128",
+ "kind": "constant",
+ "name": "putAllContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "129",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "130",
+ "kind": "constant",
+ "name": "putDefaultContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "131",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "132",
+ "kind": "constant",
+ "name": "getAllContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "133",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "134",
+ "kind": "constant",
+ "name": "getDefaultContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "135",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "136",
+ "kind": "constant",
+ "name": "putAllContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "137",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "138",
+ "kind": "constant",
+ "name": "putDefaultContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "139",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "140",
+ "kind": "constant",
+ "name": "getAllContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "141",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "142",
+ "kind": "constant",
+ "name": "getDefaultContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "143",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "144",
+ "kind": "constant",
+ "name": "putAllContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "145",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "146",
+ "kind": "constant",
+ "name": "putDefaultContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "147",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "148",
+ "kind": "constant",
+ "name": "getAllContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "149",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "150",
+ "kind": "constant",
+ "name": "getRequiredOnlyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "151",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "152",
+ "kind": "constant",
+ "name": "putAllContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "153",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "154",
+ "kind": "constant",
+ "name": "putRequiredOnlyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "155",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
"decorators": []
}
],
"models": [
{
- "$id": "29",
+ "$id": "156",
"kind": "model",
"name": "StringProperty",
"namespace": "Type.Property.Optional",
@@ -280,13 +1268,13 @@
"decorators": [],
"properties": [
{
- "$id": "30",
+ "$id": "157",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "31",
+ "$id": "158",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -299,9 +1287,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.StringProperty.property",
"serializationOptions": {
- "$id": "32",
+ "$id": "159",
"json": {
- "$id": "33",
+ "$id": "160",
"name": "property"
}
}
@@ -309,7 +1297,7 @@
]
},
{
- "$id": "34",
+ "$id": "161",
"kind": "model",
"name": "BytesProperty",
"namespace": "Type.Property.Optional",
@@ -319,13 +1307,13 @@
"decorators": [],
"properties": [
{
- "$id": "35",
+ "$id": "162",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "36",
+ "$id": "163",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -339,9 +1327,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.BytesProperty.property",
"serializationOptions": {
- "$id": "37",
+ "$id": "164",
"json": {
- "$id": "38",
+ "$id": "165",
"name": "property"
}
}
@@ -349,7 +1337,7 @@
]
},
{
- "$id": "39",
+ "$id": "166",
"kind": "model",
"name": "DatetimeProperty",
"namespace": "Type.Property.Optional",
@@ -359,18 +1347,18 @@
"decorators": [],
"properties": [
{
- "$id": "40",
+ "$id": "167",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "41",
+ "$id": "168",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "42",
+ "$id": "169",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -386,9 +1374,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.DatetimeProperty.property",
"serializationOptions": {
- "$id": "43",
+ "$id": "170",
"json": {
- "$id": "44",
+ "$id": "171",
"name": "property"
}
}
@@ -396,7 +1384,7 @@
]
},
{
- "$id": "45",
+ "$id": "172",
"kind": "model",
"name": "DurationProperty",
"namespace": "Type.Property.Optional",
@@ -406,18 +1394,18 @@
"decorators": [],
"properties": [
{
- "$id": "46",
+ "$id": "173",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "47",
+ "$id": "174",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "48",
+ "$id": "175",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -433,9 +1421,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.DurationProperty.property",
"serializationOptions": {
- "$id": "49",
+ "$id": "176",
"json": {
- "$id": "50",
+ "$id": "177",
"name": "property"
}
}
@@ -443,7 +1431,7 @@
]
},
{
- "$id": "51",
+ "$id": "178",
"kind": "model",
"name": "PlainDateProperty",
"namespace": "Type.Property.Optional",
@@ -453,13 +1441,13 @@
"decorators": [],
"properties": [
{
- "$id": "52",
+ "$id": "179",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "53",
+ "$id": "180",
"kind": "plainDate",
"name": "plainDate",
"crossLanguageDefinitionId": "TypeSpec.plainDate",
@@ -472,9 +1460,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.PlainDateProperty.property",
"serializationOptions": {
- "$id": "54",
+ "$id": "181",
"json": {
- "$id": "55",
+ "$id": "182",
"name": "property"
}
}
@@ -482,7 +1470,7 @@
]
},
{
- "$id": "56",
+ "$id": "183",
"kind": "model",
"name": "PlainTimeProperty",
"namespace": "Type.Property.Optional",
@@ -492,13 +1480,13 @@
"decorators": [],
"properties": [
{
- "$id": "57",
+ "$id": "184",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "58",
+ "$id": "185",
"kind": "plainTime",
"name": "plainTime",
"crossLanguageDefinitionId": "TypeSpec.plainTime",
@@ -511,9 +1499,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.PlainTimeProperty.property",
"serializationOptions": {
- "$id": "59",
+ "$id": "186",
"json": {
- "$id": "60",
+ "$id": "187",
"name": "property"
}
}
@@ -521,7 +1509,7 @@
]
},
{
- "$id": "61",
+ "$id": "188",
"kind": "model",
"name": "CollectionsByteProperty",
"namespace": "Type.Property.Optional",
@@ -531,17 +1519,17 @@
"decorators": [],
"properties": [
{
- "$id": "62",
+ "$id": "189",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "63",
+ "$id": "190",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "64",
+ "$id": "191",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -558,9 +1546,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByteProperty.property",
"serializationOptions": {
- "$id": "65",
+ "$id": "192",
"json": {
- "$id": "66",
+ "$id": "193",
"name": "property"
}
}
@@ -568,7 +1556,7 @@
]
},
{
- "$id": "67",
+ "$id": "194",
"kind": "model",
"name": "CollectionsModelProperty",
"namespace": "Type.Property.Optional",
@@ -578,17 +1566,17 @@
"decorators": [],
"properties": [
{
- "$id": "68",
+ "$id": "195",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "69",
+ "$id": "196",
"kind": "array",
"name": "ArrayStringProperty",
"valueType": {
- "$ref": "29"
+ "$ref": "156"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -600,9 +1588,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModelProperty.property",
"serializationOptions": {
- "$id": "70",
+ "$id": "197",
"json": {
- "$id": "71",
+ "$id": "198",
"name": "property"
}
}
@@ -610,7 +1598,7 @@
]
},
{
- "$id": "72",
+ "$id": "199",
"kind": "model",
"name": "StringLiteralProperty",
"namespace": "Type.Property.Optional",
@@ -620,19 +1608,13 @@
"decorators": [],
"properties": [
{
- "$id": "73",
+ "$id": "200",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "74",
- "kind": "constant",
- "valueType": {
- "$ref": "2"
- },
- "value": "hello",
- "decorators": []
+ "$ref": "20"
},
"optional": true,
"readOnly": false,
@@ -641,9 +1623,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.StringLiteralProperty.property",
"serializationOptions": {
- "$id": "75",
+ "$id": "201",
"json": {
- "$id": "76",
+ "$id": "202",
"name": "property"
}
}
@@ -651,7 +1633,7 @@
]
},
{
- "$id": "77",
+ "$id": "203",
"kind": "model",
"name": "IntLiteralProperty",
"namespace": "Type.Property.Optional",
@@ -661,19 +1643,13 @@
"decorators": [],
"properties": [
{
- "$id": "78",
+ "$id": "204",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "79",
- "kind": "constant",
- "valueType": {
- "$ref": "5"
- },
- "value": 1,
- "decorators": []
+ "$ref": "22"
},
"optional": true,
"readOnly": false,
@@ -682,9 +1658,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.IntLiteralProperty.property",
"serializationOptions": {
- "$id": "80",
+ "$id": "205",
"json": {
- "$id": "81",
+ "$id": "206",
"name": "property"
}
}
@@ -692,7 +1668,7 @@
]
},
{
- "$id": "82",
+ "$id": "207",
"kind": "model",
"name": "FloatLiteralProperty",
"namespace": "Type.Property.Optional",
@@ -702,19 +1678,13 @@
"decorators": [],
"properties": [
{
- "$id": "83",
+ "$id": "208",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "84",
- "kind": "constant",
- "valueType": {
- "$ref": "8"
- },
- "value": 1.25,
- "decorators": []
+ "$ref": "24"
},
"optional": true,
"readOnly": false,
@@ -723,9 +1693,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteralProperty.property",
"serializationOptions": {
- "$id": "85",
+ "$id": "209",
"json": {
- "$id": "86",
+ "$id": "210",
"name": "property"
}
}
@@ -733,7 +1703,7 @@
]
},
{
- "$id": "87",
+ "$id": "211",
"kind": "model",
"name": "BooleanLiteralProperty",
"namespace": "Type.Property.Optional",
@@ -743,23 +1713,13 @@
"decorators": [],
"properties": [
{
- "$id": "88",
+ "$id": "212",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "89",
- "kind": "constant",
- "valueType": {
- "$id": "90",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
- "decorators": []
- },
- "value": true,
- "decorators": []
+ "$ref": "26"
},
"optional": true,
"readOnly": false,
@@ -768,9 +1728,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteralProperty.property",
"serializationOptions": {
- "$id": "91",
+ "$id": "213",
"json": {
- "$id": "92",
+ "$id": "214",
"name": "property"
}
}
@@ -778,7 +1738,7 @@
]
},
{
- "$id": "93",
+ "$id": "215",
"kind": "model",
"name": "UnionStringLiteralProperty",
"namespace": "Type.Property.Optional",
@@ -788,13 +1748,13 @@
"decorators": [],
"properties": [
{
- "$id": "94",
+ "$id": "216",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$ref": "11"
+ "$ref": "2"
},
"optional": true,
"readOnly": false,
@@ -803,9 +1763,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteralProperty.property",
"serializationOptions": {
- "$id": "95",
+ "$id": "217",
"json": {
- "$id": "96",
+ "$id": "218",
"name": "property"
}
}
@@ -813,7 +1773,7 @@
]
},
{
- "$id": "97",
+ "$id": "219",
"kind": "model",
"name": "UnionIntLiteralProperty",
"namespace": "Type.Property.Optional",
@@ -823,13 +1783,13 @@
"decorators": [],
"properties": [
{
- "$id": "98",
+ "$id": "220",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$ref": "17"
+ "$ref": "8"
},
"optional": true,
"readOnly": false,
@@ -838,9 +1798,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteralProperty.property",
"serializationOptions": {
- "$id": "99",
+ "$id": "221",
"json": {
- "$id": "100",
+ "$id": "222",
"name": "property"
}
}
@@ -848,7 +1808,7 @@
]
},
{
- "$id": "101",
+ "$id": "223",
"kind": "model",
"name": "UnionFloatLiteralProperty",
"namespace": "Type.Property.Optional",
@@ -858,13 +1818,13 @@
"decorators": [],
"properties": [
{
- "$id": "102",
+ "$id": "224",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$ref": "23"
+ "$ref": "14"
},
"optional": true,
"readOnly": false,
@@ -873,9 +1833,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteralProperty.property",
"serializationOptions": {
- "$id": "103",
+ "$id": "225",
"json": {
- "$id": "104",
+ "$id": "226",
"name": "property"
}
}
@@ -883,7 +1843,7 @@
]
},
{
- "$id": "105",
+ "$id": "227",
"kind": "model",
"name": "RequiredAndOptionalProperty",
"namespace": "Type.Property.Optional",
@@ -893,13 +1853,13 @@
"decorators": [],
"properties": [
{
- "$id": "106",
+ "$id": "228",
"kind": "property",
"name": "optionalProperty",
"serializedName": "optionalProperty",
"doc": "optional string property",
"type": {
- "$id": "107",
+ "$id": "229",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -912,21 +1872,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptionalProperty.optionalProperty",
"serializationOptions": {
- "$id": "108",
+ "$id": "230",
"json": {
- "$id": "109",
+ "$id": "231",
"name": "optionalProperty"
}
}
},
{
- "$id": "110",
+ "$id": "232",
"kind": "property",
"name": "requiredProperty",
"serializedName": "requiredProperty",
"doc": "required int property",
"type": {
- "$id": "111",
+ "$id": "233",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -939,9 +1899,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptionalProperty.requiredProperty",
"serializationOptions": {
- "$id": "112",
+ "$id": "234",
"json": {
- "$id": "113",
+ "$id": "235",
"name": "requiredProperty"
}
}
@@ -951,7 +1911,7 @@
],
"clients": [
{
- "$id": "114",
+ "$id": "236",
"kind": "client",
"name": "OptionalClient",
"namespace": "Type.Property.Optional",
@@ -959,12 +1919,12 @@
"methods": [],
"parameters": [
{
- "$id": "115",
+ "$id": "237",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "116",
+ "$id": "238",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -978,9 +1938,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "117",
+ "$id": "239",
"type": {
- "$id": "118",
+ "$id": "240",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -994,41 +1954,31 @@
"apiVersions": [],
"children": [
{
- "$id": "119",
+ "$id": "241",
"kind": "client",
"name": "String",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "120",
+ "$id": "242",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "121",
+ "$id": "243",
"name": "getAll",
"resourceName": "String",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "122",
+ "$id": "244",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "123",
- "kind": "constant",
- "valueType": {
- "$id": "124",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -1043,12 +1993,12 @@
],
"responses": [
{
- "$id": "125",
+ "$id": "245",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "29"
+ "$ref": "156"
},
"headers": [],
"isErrorResponse": false,
@@ -1068,11 +2018,11 @@
},
"parameters": [
{
- "$id": "126",
+ "$id": "246",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "123"
+ "$ref": "28"
},
"location": "Header",
"isApiVersion": false,
@@ -1086,9 +2036,9 @@
}
],
"response": {
- "$id": "127",
+ "$id": "247",
"type": {
- "$ref": "29"
+ "$ref": "156"
}
},
"isOverride": false,
@@ -1097,35 +2047,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.String.getAll"
},
{
- "$id": "128",
+ "$id": "248",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "129",
+ "$id": "249",
"name": "getDefault",
"resourceName": "String",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "130",
+ "$id": "250",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "131",
- "kind": "constant",
- "valueType": {
- "$id": "132",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -1140,12 +2080,12 @@
],
"responses": [
{
- "$id": "133",
+ "$id": "251",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "29"
+ "$ref": "156"
},
"headers": [],
"isErrorResponse": false,
@@ -1165,11 +2105,11 @@
},
"parameters": [
{
- "$id": "134",
+ "$id": "252",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "131"
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -1183,9 +2123,9 @@
}
],
"response": {
- "$id": "135",
+ "$id": "253",
"type": {
- "$ref": "29"
+ "$ref": "156"
}
},
"isOverride": false,
@@ -1194,36 +2134,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.String.getDefault"
},
{
- "$id": "136",
+ "$id": "254",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "137",
+ "$id": "255",
"name": "putAll",
"resourceName": "String",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "138",
+ "$id": "256",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "139",
- "kind": "constant",
- "valueType": {
- "$id": "140",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -1236,11 +2166,11 @@
"skipUrlEncoding": false
},
{
- "$id": "141",
+ "$id": "257",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "29"
+ "$ref": "156"
},
"location": "Body",
"isApiVersion": false,
@@ -1255,7 +2185,7 @@
],
"responses": [
{
- "$id": "142",
+ "$id": "258",
"statusCodes": [
204
],
@@ -1277,11 +2207,11 @@
},
"parameters": [
{
- "$id": "143",
+ "$id": "259",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "29"
+ "$ref": "156"
},
"location": "Body",
"isApiVersion": false,
@@ -1294,12 +2224,12 @@
"skipUrlEncoding": false
},
{
- "$id": "144",
+ "$id": "260",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "139"
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -1313,7 +2243,7 @@
}
],
"response": {
- "$id": "145"
+ "$id": "261"
},
"isOverride": false,
"generateConvenient": true,
@@ -1321,36 +2251,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.String.putAll"
},
{
- "$id": "146",
+ "$id": "262",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "147",
+ "$id": "263",
"name": "putDefault",
"resourceName": "String",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "148",
+ "$id": "264",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "149",
- "kind": "constant",
- "valueType": {
- "$id": "150",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -1363,11 +2283,11 @@
"skipUrlEncoding": false
},
{
- "$id": "151",
+ "$id": "265",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "29"
+ "$ref": "156"
},
"location": "Body",
"isApiVersion": false,
@@ -1382,7 +2302,7 @@
],
"responses": [
{
- "$id": "152",
+ "$id": "266",
"statusCodes": [
204
],
@@ -1404,11 +2324,11 @@
},
"parameters": [
{
- "$id": "153",
+ "$id": "267",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "29"
+ "$ref": "156"
},
"location": "Body",
"isApiVersion": false,
@@ -1421,12 +2341,12 @@
"skipUrlEncoding": false
},
{
- "$id": "154",
+ "$id": "268",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "149"
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -1440,7 +2360,7 @@
}
],
"response": {
- "$id": "155"
+ "$id": "269"
},
"isOverride": false,
"generateConvenient": true,
@@ -1450,12 +2370,12 @@
],
"parameters": [
{
- "$id": "156",
+ "$id": "270",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "157",
+ "$id": "271",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1469,9 +2389,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "158",
+ "$id": "272",
"type": {
- "$id": "159",
+ "$id": "273",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1484,45 +2404,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.String",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "160",
+ "$id": "274",
"kind": "client",
"name": "Bytes",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "161",
+ "$id": "275",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "162",
+ "$id": "276",
"name": "getAll",
"resourceName": "Bytes",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "163",
+ "$id": "277",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "164",
- "kind": "constant",
- "valueType": {
- "$id": "165",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -1537,12 +2447,12 @@
],
"responses": [
{
- "$id": "166",
+ "$id": "278",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "34"
+ "$ref": "161"
},
"headers": [],
"isErrorResponse": false,
@@ -1562,11 +2472,11 @@
},
"parameters": [
{
- "$id": "167",
+ "$id": "279",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "164"
+ "$ref": "36"
},
"location": "Header",
"isApiVersion": false,
@@ -1580,9 +2490,9 @@
}
],
"response": {
- "$id": "168",
+ "$id": "280",
"type": {
- "$ref": "34"
+ "$ref": "161"
}
},
"isOverride": false,
@@ -1591,35 +2501,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getAll"
},
{
- "$id": "169",
+ "$id": "281",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "170",
+ "$id": "282",
"name": "getDefault",
"resourceName": "Bytes",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "171",
+ "$id": "283",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "172",
- "kind": "constant",
- "valueType": {
- "$id": "173",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -1634,12 +2534,12 @@
],
"responses": [
{
- "$id": "174",
+ "$id": "284",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "34"
+ "$ref": "161"
},
"headers": [],
"isErrorResponse": false,
@@ -1659,11 +2559,11 @@
},
"parameters": [
{
- "$id": "175",
+ "$id": "285",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "172"
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -1677,9 +2577,9 @@
}
],
"response": {
- "$id": "176",
+ "$id": "286",
"type": {
- "$ref": "34"
+ "$ref": "161"
}
},
"isOverride": false,
@@ -1688,36 +2588,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Bytes.getDefault"
},
{
- "$id": "177",
+ "$id": "287",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "178",
+ "$id": "288",
"name": "putAll",
"resourceName": "Bytes",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "179",
+ "$id": "289",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "180",
- "kind": "constant",
- "valueType": {
- "$id": "181",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -1730,11 +2620,11 @@
"skipUrlEncoding": false
},
{
- "$id": "182",
+ "$id": "290",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "34"
+ "$ref": "161"
},
"location": "Body",
"isApiVersion": false,
@@ -1749,7 +2639,7 @@
],
"responses": [
{
- "$id": "183",
+ "$id": "291",
"statusCodes": [
204
],
@@ -1771,11 +2661,11 @@
},
"parameters": [
{
- "$id": "184",
+ "$id": "292",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "34"
+ "$ref": "161"
},
"location": "Body",
"isApiVersion": false,
@@ -1788,12 +2678,12 @@
"skipUrlEncoding": false
},
{
- "$id": "185",
+ "$id": "293",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "180"
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -1807,7 +2697,7 @@
}
],
"response": {
- "$id": "186"
+ "$id": "294"
},
"isOverride": false,
"generateConvenient": true,
@@ -1815,36 +2705,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Bytes.putAll"
},
{
- "$id": "187",
+ "$id": "295",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "188",
+ "$id": "296",
"name": "putDefault",
"resourceName": "Bytes",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "189",
+ "$id": "297",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "190",
- "kind": "constant",
- "valueType": {
- "$id": "191",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -1857,11 +2737,11 @@
"skipUrlEncoding": false
},
{
- "$id": "192",
+ "$id": "298",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "34"
+ "$ref": "161"
},
"location": "Body",
"isApiVersion": false,
@@ -1876,7 +2756,7 @@
],
"responses": [
{
- "$id": "193",
+ "$id": "299",
"statusCodes": [
204
],
@@ -1898,11 +2778,11 @@
},
"parameters": [
{
- "$id": "194",
+ "$id": "300",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "34"
+ "$ref": "161"
},
"location": "Body",
"isApiVersion": false,
@@ -1915,12 +2795,12 @@
"skipUrlEncoding": false
},
{
- "$id": "195",
+ "$id": "301",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "190"
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -1934,7 +2814,7 @@
}
],
"response": {
- "$id": "196"
+ "$id": "302"
},
"isOverride": false,
"generateConvenient": true,
@@ -1944,12 +2824,12 @@
],
"parameters": [
{
- "$id": "197",
+ "$id": "303",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "198",
+ "$id": "304",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1963,9 +2843,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "199",
+ "$id": "305",
"type": {
- "$id": "200",
+ "$id": "306",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1978,45 +2858,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Bytes",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "201",
+ "$id": "307",
"kind": "client",
"name": "Datetime",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "202",
+ "$id": "308",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "203",
+ "$id": "309",
"name": "getAll",
"resourceName": "Datetime",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "204",
+ "$id": "310",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "205",
- "kind": "constant",
- "valueType": {
- "$id": "206",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -2031,12 +2901,12 @@
],
"responses": [
{
- "$id": "207",
+ "$id": "311",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "39"
+ "$ref": "166"
},
"headers": [],
"isErrorResponse": false,
@@ -2056,11 +2926,11 @@
},
"parameters": [
{
- "$id": "208",
+ "$id": "312",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "205"
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -2074,9 +2944,9 @@
}
],
"response": {
- "$id": "209",
+ "$id": "313",
"type": {
- "$ref": "39"
+ "$ref": "166"
}
},
"isOverride": false,
@@ -2085,35 +2955,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getAll"
},
{
- "$id": "210",
+ "$id": "314",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "211",
+ "$id": "315",
"name": "getDefault",
"resourceName": "Datetime",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "212",
+ "$id": "316",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "213",
- "kind": "constant",
- "valueType": {
- "$id": "214",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -2128,12 +2988,12 @@
],
"responses": [
{
- "$id": "215",
+ "$id": "317",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "39"
+ "$ref": "166"
},
"headers": [],
"isErrorResponse": false,
@@ -2153,11 +3013,11 @@
},
"parameters": [
{
- "$id": "216",
+ "$id": "318",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "213"
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -2171,9 +3031,9 @@
}
],
"response": {
- "$id": "217",
+ "$id": "319",
"type": {
- "$ref": "39"
+ "$ref": "166"
}
},
"isOverride": false,
@@ -2182,36 +3042,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Datetime.getDefault"
},
{
- "$id": "218",
+ "$id": "320",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "219",
+ "$id": "321",
"name": "putAll",
"resourceName": "Datetime",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "220",
+ "$id": "322",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "221",
- "kind": "constant",
- "valueType": {
- "$id": "222",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -2224,11 +3074,11 @@
"skipUrlEncoding": false
},
{
- "$id": "223",
+ "$id": "323",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "39"
+ "$ref": "166"
},
"location": "Body",
"isApiVersion": false,
@@ -2243,7 +3093,7 @@
],
"responses": [
{
- "$id": "224",
+ "$id": "324",
"statusCodes": [
204
],
@@ -2265,11 +3115,11 @@
},
"parameters": [
{
- "$id": "225",
+ "$id": "325",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "39"
+ "$ref": "166"
},
"location": "Body",
"isApiVersion": false,
@@ -2282,12 +3132,12 @@
"skipUrlEncoding": false
},
{
- "$id": "226",
+ "$id": "326",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "221"
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -2301,7 +3151,7 @@
}
],
"response": {
- "$id": "227"
+ "$id": "327"
},
"isOverride": false,
"generateConvenient": true,
@@ -2309,36 +3159,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Datetime.putAll"
},
{
- "$id": "228",
+ "$id": "328",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "229",
+ "$id": "329",
"name": "putDefault",
"resourceName": "Datetime",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "230",
+ "$id": "330",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "231",
- "kind": "constant",
- "valueType": {
- "$id": "232",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -2351,11 +3191,11 @@
"skipUrlEncoding": false
},
{
- "$id": "233",
+ "$id": "331",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "39"
+ "$ref": "166"
},
"location": "Body",
"isApiVersion": false,
@@ -2370,7 +3210,7 @@
],
"responses": [
{
- "$id": "234",
+ "$id": "332",
"statusCodes": [
204
],
@@ -2392,11 +3232,11 @@
},
"parameters": [
{
- "$id": "235",
+ "$id": "333",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "39"
+ "$ref": "166"
},
"location": "Body",
"isApiVersion": false,
@@ -2409,12 +3249,12 @@
"skipUrlEncoding": false
},
{
- "$id": "236",
+ "$id": "334",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "231"
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -2428,7 +3268,7 @@
}
],
"response": {
- "$id": "237"
+ "$id": "335"
},
"isOverride": false,
"generateConvenient": true,
@@ -2438,12 +3278,12 @@
],
"parameters": [
{
- "$id": "238",
+ "$id": "336",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "239",
+ "$id": "337",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2457,9 +3297,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "240",
+ "$id": "338",
"type": {
- "$id": "241",
+ "$id": "339",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2472,45 +3312,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Datetime",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "242",
+ "$id": "340",
"kind": "client",
"name": "Duration",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "243",
+ "$id": "341",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "244",
+ "$id": "342",
"name": "getAll",
"resourceName": "Duration",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "245",
+ "$id": "343",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "246",
- "kind": "constant",
- "valueType": {
- "$id": "247",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -2525,12 +3355,12 @@
],
"responses": [
{
- "$id": "248",
+ "$id": "344",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "45"
+ "$ref": "172"
},
"headers": [],
"isErrorResponse": false,
@@ -2550,11 +3380,11 @@
},
"parameters": [
{
- "$id": "249",
+ "$id": "345",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "246"
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -2568,9 +3398,9 @@
}
],
"response": {
- "$id": "250",
+ "$id": "346",
"type": {
- "$ref": "45"
+ "$ref": "172"
}
},
"isOverride": false,
@@ -2579,35 +3409,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Duration.getAll"
},
{
- "$id": "251",
+ "$id": "347",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "252",
+ "$id": "348",
"name": "getDefault",
"resourceName": "Duration",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "253",
+ "$id": "349",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "254",
- "kind": "constant",
- "valueType": {
- "$id": "255",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -2622,12 +3442,12 @@
],
"responses": [
{
- "$id": "256",
+ "$id": "350",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "45"
+ "$ref": "172"
},
"headers": [],
"isErrorResponse": false,
@@ -2647,11 +3467,11 @@
},
"parameters": [
{
- "$id": "257",
+ "$id": "351",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "254"
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -2665,9 +3485,9 @@
}
],
"response": {
- "$id": "258",
+ "$id": "352",
"type": {
- "$ref": "45"
+ "$ref": "172"
}
},
"isOverride": false,
@@ -2676,36 +3496,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Duration.getDefault"
},
{
- "$id": "259",
+ "$id": "353",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "260",
+ "$id": "354",
"name": "putAll",
"resourceName": "Duration",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "261",
+ "$id": "355",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "262",
- "kind": "constant",
- "valueType": {
- "$id": "263",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -2718,11 +3528,11 @@
"skipUrlEncoding": false
},
{
- "$id": "264",
+ "$id": "356",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "45"
+ "$ref": "172"
},
"location": "Body",
"isApiVersion": false,
@@ -2737,7 +3547,7 @@
],
"responses": [
{
- "$id": "265",
+ "$id": "357",
"statusCodes": [
204
],
@@ -2759,11 +3569,11 @@
},
"parameters": [
{
- "$id": "266",
+ "$id": "358",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "45"
+ "$ref": "172"
},
"location": "Body",
"isApiVersion": false,
@@ -2776,12 +3586,12 @@
"skipUrlEncoding": false
},
{
- "$id": "267",
+ "$id": "359",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "262"
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -2795,7 +3605,7 @@
}
],
"response": {
- "$id": "268"
+ "$id": "360"
},
"isOverride": false,
"generateConvenient": true,
@@ -2803,36 +3613,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Duration.putAll"
},
{
- "$id": "269",
+ "$id": "361",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "270",
+ "$id": "362",
"name": "putDefault",
"resourceName": "Duration",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "271",
+ "$id": "363",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "272",
- "kind": "constant",
- "valueType": {
- "$id": "273",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -2845,11 +3645,11 @@
"skipUrlEncoding": false
},
{
- "$id": "274",
+ "$id": "364",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "45"
+ "$ref": "172"
},
"location": "Body",
"isApiVersion": false,
@@ -2864,7 +3664,7 @@
],
"responses": [
{
- "$id": "275",
+ "$id": "365",
"statusCodes": [
204
],
@@ -2886,11 +3686,11 @@
},
"parameters": [
{
- "$id": "276",
+ "$id": "366",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "45"
+ "$ref": "172"
},
"location": "Body",
"isApiVersion": false,
@@ -2903,12 +3703,12 @@
"skipUrlEncoding": false
},
{
- "$id": "277",
+ "$id": "367",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "272"
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -2922,7 +3722,7 @@
}
],
"response": {
- "$id": "278"
+ "$id": "368"
},
"isOverride": false,
"generateConvenient": true,
@@ -2932,12 +3732,12 @@
],
"parameters": [
{
- "$id": "279",
+ "$id": "369",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "280",
+ "$id": "370",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2951,9 +3751,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "281",
+ "$id": "371",
"type": {
- "$id": "282",
+ "$id": "372",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2966,45 +3766,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.Duration",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "283",
+ "$id": "373",
"kind": "client",
"name": "PlainDate",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "284",
+ "$id": "374",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "285",
+ "$id": "375",
"name": "getAll",
"resourceName": "PlainDate",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "286",
+ "$id": "376",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "287",
- "kind": "constant",
- "valueType": {
- "$id": "288",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -3019,12 +3809,12 @@
],
"responses": [
{
- "$id": "289",
+ "$id": "377",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "51"
+ "$ref": "178"
},
"headers": [],
"isErrorResponse": false,
@@ -3044,11 +3834,11 @@
},
"parameters": [
{
- "$id": "290",
+ "$id": "378",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "287"
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -3062,9 +3852,9 @@
}
],
"response": {
- "$id": "291",
+ "$id": "379",
"type": {
- "$ref": "51"
+ "$ref": "178"
}
},
"isOverride": false,
@@ -3073,35 +3863,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getAll"
},
{
- "$id": "292",
+ "$id": "380",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "293",
+ "$id": "381",
"name": "getDefault",
"resourceName": "PlainDate",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "294",
+ "$id": "382",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "295",
- "kind": "constant",
- "valueType": {
- "$id": "296",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -3116,12 +3896,12 @@
],
"responses": [
{
- "$id": "297",
+ "$id": "383",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "51"
+ "$ref": "178"
},
"headers": [],
"isErrorResponse": false,
@@ -3141,11 +3921,11 @@
},
"parameters": [
{
- "$id": "298",
+ "$id": "384",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "295"
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -3159,9 +3939,9 @@
}
],
"response": {
- "$id": "299",
+ "$id": "385",
"type": {
- "$ref": "51"
+ "$ref": "178"
}
},
"isOverride": false,
@@ -3170,36 +3950,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.getDefault"
},
{
- "$id": "300",
+ "$id": "386",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "301",
+ "$id": "387",
"name": "putAll",
"resourceName": "PlainDate",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "302",
+ "$id": "388",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "303",
- "kind": "constant",
- "valueType": {
- "$id": "304",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -3212,11 +3982,11 @@
"skipUrlEncoding": false
},
{
- "$id": "305",
+ "$id": "389",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "51"
+ "$ref": "178"
},
"location": "Body",
"isApiVersion": false,
@@ -3231,7 +4001,7 @@
],
"responses": [
{
- "$id": "306",
+ "$id": "390",
"statusCodes": [
204
],
@@ -3253,11 +4023,11 @@
},
"parameters": [
{
- "$id": "307",
+ "$id": "391",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "51"
+ "$ref": "178"
},
"location": "Body",
"isApiVersion": false,
@@ -3270,12 +4040,12 @@
"skipUrlEncoding": false
},
{
- "$id": "308",
+ "$id": "392",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "303"
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -3289,7 +4059,7 @@
}
],
"response": {
- "$id": "309"
+ "$id": "393"
},
"isOverride": false,
"generateConvenient": true,
@@ -3297,36 +4067,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.PlainDate.putAll"
},
{
- "$id": "310",
+ "$id": "394",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "311",
+ "$id": "395",
"name": "putDefault",
"resourceName": "PlainDate",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "312",
+ "$id": "396",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "313",
- "kind": "constant",
- "valueType": {
- "$id": "314",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -3339,11 +4099,11 @@
"skipUrlEncoding": false
},
{
- "$id": "315",
+ "$id": "397",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "51"
+ "$ref": "178"
},
"location": "Body",
"isApiVersion": false,
@@ -3358,7 +4118,7 @@
],
"responses": [
{
- "$id": "316",
+ "$id": "398",
"statusCodes": [
204
],
@@ -3380,11 +4140,11 @@
},
"parameters": [
{
- "$id": "317",
+ "$id": "399",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "51"
+ "$ref": "178"
},
"location": "Body",
"isApiVersion": false,
@@ -3397,12 +4157,12 @@
"skipUrlEncoding": false
},
{
- "$id": "318",
+ "$id": "400",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "313"
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -3416,7 +4176,7 @@
}
],
"response": {
- "$id": "319"
+ "$id": "401"
},
"isOverride": false,
"generateConvenient": true,
@@ -3426,12 +4186,12 @@
],
"parameters": [
{
- "$id": "320",
+ "$id": "402",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "321",
+ "$id": "403",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3445,9 +4205,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "322",
+ "$id": "404",
"type": {
- "$id": "323",
+ "$id": "405",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3460,45 +4220,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.PlainDate",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "324",
+ "$id": "406",
"kind": "client",
"name": "PlainTime",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "325",
+ "$id": "407",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "326",
+ "$id": "408",
"name": "getAll",
"resourceName": "PlainTime",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "327",
+ "$id": "409",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "328",
- "kind": "constant",
- "valueType": {
- "$id": "329",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -3513,12 +4263,12 @@
],
"responses": [
{
- "$id": "330",
+ "$id": "410",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "56"
+ "$ref": "183"
},
"headers": [],
"isErrorResponse": false,
@@ -3538,11 +4288,11 @@
},
"parameters": [
{
- "$id": "331",
+ "$id": "411",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "328"
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -3556,9 +4306,9 @@
}
],
"response": {
- "$id": "332",
+ "$id": "412",
"type": {
- "$ref": "56"
+ "$ref": "183"
}
},
"isOverride": false,
@@ -3567,35 +4317,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getAll"
},
{
- "$id": "333",
+ "$id": "413",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "334",
+ "$id": "414",
"name": "getDefault",
"resourceName": "PlainTime",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "335",
+ "$id": "415",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "336",
- "kind": "constant",
- "valueType": {
- "$id": "337",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -3610,12 +4350,12 @@
],
"responses": [
{
- "$id": "338",
+ "$id": "416",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "56"
+ "$ref": "183"
},
"headers": [],
"isErrorResponse": false,
@@ -3635,11 +4375,11 @@
},
"parameters": [
{
- "$id": "339",
+ "$id": "417",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "336"
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -3653,9 +4393,9 @@
}
],
"response": {
- "$id": "340",
+ "$id": "418",
"type": {
- "$ref": "56"
+ "$ref": "183"
}
},
"isOverride": false,
@@ -3664,36 +4404,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.getDefault"
},
{
- "$id": "341",
+ "$id": "419",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "342",
+ "$id": "420",
"name": "putAll",
"resourceName": "PlainTime",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "343",
+ "$id": "421",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "344",
- "kind": "constant",
- "valueType": {
- "$id": "345",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -3706,11 +4436,11 @@
"skipUrlEncoding": false
},
{
- "$id": "346",
+ "$id": "422",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "56"
+ "$ref": "183"
},
"location": "Body",
"isApiVersion": false,
@@ -3725,7 +4455,7 @@
],
"responses": [
{
- "$id": "347",
+ "$id": "423",
"statusCodes": [
204
],
@@ -3747,11 +4477,11 @@
},
"parameters": [
{
- "$id": "348",
+ "$id": "424",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "56"
+ "$ref": "183"
},
"location": "Body",
"isApiVersion": false,
@@ -3764,12 +4494,12 @@
"skipUrlEncoding": false
},
{
- "$id": "349",
+ "$id": "425",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "344"
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -3783,7 +4513,7 @@
}
],
"response": {
- "$id": "350"
+ "$id": "426"
},
"isOverride": false,
"generateConvenient": true,
@@ -3791,36 +4521,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.PlainTime.putAll"
},
{
- "$id": "351",
+ "$id": "427",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "352",
+ "$id": "428",
"name": "putDefault",
"resourceName": "PlainTime",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "353",
+ "$id": "429",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "354",
- "kind": "constant",
- "valueType": {
- "$id": "355",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -3833,11 +4553,11 @@
"skipUrlEncoding": false
},
{
- "$id": "356",
+ "$id": "430",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "56"
+ "$ref": "183"
},
"location": "Body",
"isApiVersion": false,
@@ -3852,7 +4572,7 @@
],
"responses": [
{
- "$id": "357",
+ "$id": "431",
"statusCodes": [
204
],
@@ -3874,11 +4594,11 @@
},
"parameters": [
{
- "$id": "358",
+ "$id": "432",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "56"
+ "$ref": "183"
},
"location": "Body",
"isApiVersion": false,
@@ -3891,12 +4611,12 @@
"skipUrlEncoding": false
},
{
- "$id": "359",
+ "$id": "433",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "354"
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -3910,7 +4630,7 @@
}
],
"response": {
- "$id": "360"
+ "$id": "434"
},
"isOverride": false,
"generateConvenient": true,
@@ -3920,12 +4640,12 @@
],
"parameters": [
{
- "$id": "361",
+ "$id": "435",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "362",
+ "$id": "436",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3939,9 +4659,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "363",
+ "$id": "437",
"type": {
- "$id": "364",
+ "$id": "438",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3954,45 +4674,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.PlainTime",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "365",
+ "$id": "439",
"kind": "client",
"name": "CollectionsByte",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "366",
+ "$id": "440",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "367",
+ "$id": "441",
"name": "getAll",
"resourceName": "CollectionsByte",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "368",
+ "$id": "442",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "369",
- "kind": "constant",
- "valueType": {
- "$id": "370",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -4007,12 +4717,12 @@
],
"responses": [
{
- "$id": "371",
+ "$id": "443",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "61"
+ "$ref": "188"
},
"headers": [],
"isErrorResponse": false,
@@ -4032,11 +4742,11 @@
},
"parameters": [
{
- "$id": "372",
+ "$id": "444",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "369"
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -4050,9 +4760,9 @@
}
],
"response": {
- "$id": "373",
+ "$id": "445",
"type": {
- "$ref": "61"
+ "$ref": "188"
}
},
"isOverride": false,
@@ -4061,35 +4771,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getAll"
},
{
- "$id": "374",
+ "$id": "446",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "375",
+ "$id": "447",
"name": "getDefault",
"resourceName": "CollectionsByte",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "376",
+ "$id": "448",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "377",
- "kind": "constant",
- "valueType": {
- "$id": "378",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -4104,12 +4804,12 @@
],
"responses": [
{
- "$id": "379",
+ "$id": "449",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "61"
+ "$ref": "188"
},
"headers": [],
"isErrorResponse": false,
@@ -4129,11 +4829,11 @@
},
"parameters": [
{
- "$id": "380",
+ "$id": "450",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "377"
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -4147,9 +4847,9 @@
}
],
"response": {
- "$id": "381",
+ "$id": "451",
"type": {
- "$ref": "61"
+ "$ref": "188"
}
},
"isOverride": false,
@@ -4158,36 +4858,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.getDefault"
},
{
- "$id": "382",
+ "$id": "452",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "383",
+ "$id": "453",
"name": "putAll",
"resourceName": "CollectionsByte",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "384",
+ "$id": "454",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "385",
- "kind": "constant",
- "valueType": {
- "$id": "386",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -4200,11 +4890,11 @@
"skipUrlEncoding": false
},
{
- "$id": "387",
+ "$id": "455",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "61"
+ "$ref": "188"
},
"location": "Body",
"isApiVersion": false,
@@ -4219,7 +4909,7 @@
],
"responses": [
{
- "$id": "388",
+ "$id": "456",
"statusCodes": [
204
],
@@ -4241,11 +4931,11 @@
},
"parameters": [
{
- "$id": "389",
+ "$id": "457",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "61"
+ "$ref": "188"
},
"location": "Body",
"isApiVersion": false,
@@ -4258,12 +4948,12 @@
"skipUrlEncoding": false
},
{
- "$id": "390",
+ "$id": "458",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "385"
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -4277,7 +4967,7 @@
}
],
"response": {
- "$id": "391"
+ "$id": "459"
},
"isOverride": false,
"generateConvenient": true,
@@ -4285,36 +4975,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte.putAll"
},
{
- "$id": "392",
+ "$id": "460",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "393",
+ "$id": "461",
"name": "putDefault",
"resourceName": "CollectionsByte",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "394",
+ "$id": "462",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "395",
- "kind": "constant",
- "valueType": {
- "$id": "396",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -4327,11 +5007,11 @@
"skipUrlEncoding": false
},
{
- "$id": "397",
+ "$id": "463",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "61"
+ "$ref": "188"
},
"location": "Body",
"isApiVersion": false,
@@ -4346,7 +5026,7 @@
],
"responses": [
{
- "$id": "398",
+ "$id": "464",
"statusCodes": [
204
],
@@ -4368,11 +5048,11 @@
},
"parameters": [
{
- "$id": "399",
+ "$id": "465",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "61"
+ "$ref": "188"
},
"location": "Body",
"isApiVersion": false,
@@ -4385,12 +5065,12 @@
"skipUrlEncoding": false
},
{
- "$id": "400",
+ "$id": "466",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "395"
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -4404,7 +5084,7 @@
}
],
"response": {
- "$id": "401"
+ "$id": "467"
},
"isOverride": false,
"generateConvenient": true,
@@ -4414,12 +5094,12 @@
],
"parameters": [
{
- "$id": "402",
+ "$id": "468",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "403",
+ "$id": "469",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4433,9 +5113,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "404",
+ "$id": "470",
"type": {
- "$id": "405",
+ "$id": "471",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4448,45 +5128,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsByte",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "406",
+ "$id": "472",
"kind": "client",
"name": "CollectionsModel",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "407",
+ "$id": "473",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "408",
+ "$id": "474",
"name": "getAll",
"resourceName": "CollectionsModel",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "409",
+ "$id": "475",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "410",
- "kind": "constant",
- "valueType": {
- "$id": "411",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -4501,12 +5171,12 @@
],
"responses": [
{
- "$id": "412",
+ "$id": "476",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "67"
+ "$ref": "194"
},
"headers": [],
"isErrorResponse": false,
@@ -4526,11 +5196,11 @@
},
"parameters": [
{
- "$id": "413",
+ "$id": "477",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "410"
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -4544,9 +5214,9 @@
}
],
"response": {
- "$id": "414",
+ "$id": "478",
"type": {
- "$ref": "67"
+ "$ref": "194"
}
},
"isOverride": false,
@@ -4555,35 +5225,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getAll"
},
{
- "$id": "415",
+ "$id": "479",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "416",
+ "$id": "480",
"name": "getDefault",
"resourceName": "CollectionsModel",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "417",
+ "$id": "481",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "418",
- "kind": "constant",
- "valueType": {
- "$id": "419",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "86"
},
"location": "Header",
"isApiVersion": false,
@@ -4598,12 +5258,12 @@
],
"responses": [
{
- "$id": "420",
+ "$id": "482",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "67"
+ "$ref": "194"
},
"headers": [],
"isErrorResponse": false,
@@ -4623,11 +5283,11 @@
},
"parameters": [
{
- "$id": "421",
+ "$id": "483",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "418"
+ "$ref": "86"
},
"location": "Header",
"isApiVersion": false,
@@ -4641,9 +5301,9 @@
}
],
"response": {
- "$id": "422",
+ "$id": "484",
"type": {
- "$ref": "67"
+ "$ref": "194"
}
},
"isOverride": false,
@@ -4652,36 +5312,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.getDefault"
},
{
- "$id": "423",
+ "$id": "485",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "424",
+ "$id": "486",
"name": "putAll",
"resourceName": "CollectionsModel",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "425",
+ "$id": "487",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "426",
- "kind": "constant",
- "valueType": {
- "$id": "427",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -4694,11 +5344,11 @@
"skipUrlEncoding": false
},
{
- "$id": "428",
+ "$id": "488",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "67"
+ "$ref": "194"
},
"location": "Body",
"isApiVersion": false,
@@ -4713,7 +5363,7 @@
],
"responses": [
{
- "$id": "429",
+ "$id": "489",
"statusCodes": [
204
],
@@ -4735,11 +5385,11 @@
},
"parameters": [
{
- "$id": "430",
+ "$id": "490",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "67"
+ "$ref": "194"
},
"location": "Body",
"isApiVersion": false,
@@ -4752,12 +5402,12 @@
"skipUrlEncoding": false
},
{
- "$id": "431",
+ "$id": "491",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "426"
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -4771,7 +5421,7 @@
}
],
"response": {
- "$id": "432"
+ "$id": "492"
},
"isOverride": false,
"generateConvenient": true,
@@ -4779,36 +5429,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel.putAll"
},
{
- "$id": "433",
+ "$id": "493",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "434",
+ "$id": "494",
"name": "putDefault",
"resourceName": "CollectionsModel",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "435",
+ "$id": "495",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "436",
- "kind": "constant",
- "valueType": {
- "$id": "437",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -4821,11 +5461,11 @@
"skipUrlEncoding": false
},
{
- "$id": "438",
+ "$id": "496",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "67"
+ "$ref": "194"
},
"location": "Body",
"isApiVersion": false,
@@ -4840,7 +5480,7 @@
],
"responses": [
{
- "$id": "439",
+ "$id": "497",
"statusCodes": [
204
],
@@ -4862,11 +5502,11 @@
},
"parameters": [
{
- "$id": "440",
+ "$id": "498",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "67"
+ "$ref": "194"
},
"location": "Body",
"isApiVersion": false,
@@ -4879,12 +5519,12 @@
"skipUrlEncoding": false
},
{
- "$id": "441",
+ "$id": "499",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "436"
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -4898,7 +5538,7 @@
}
],
"response": {
- "$id": "442"
+ "$id": "500"
},
"isOverride": false,
"generateConvenient": true,
@@ -4908,12 +5548,12 @@
],
"parameters": [
{
- "$id": "443",
+ "$id": "501",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "444",
+ "$id": "502",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4927,9 +5567,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "445",
+ "$id": "503",
"type": {
- "$id": "446",
+ "$id": "504",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4942,45 +5582,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.CollectionsModel",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "447",
+ "$id": "505",
"kind": "client",
"name": "StringLiteral",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "448",
+ "$id": "506",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "449",
+ "$id": "507",
"name": "getAll",
"resourceName": "StringLiteral",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "450",
+ "$id": "508",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "451",
- "kind": "constant",
- "valueType": {
- "$id": "452",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -4995,12 +5625,12 @@
],
"responses": [
{
- "$id": "453",
+ "$id": "509",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "72"
+ "$ref": "199"
},
"headers": [],
"isErrorResponse": false,
@@ -5020,11 +5650,11 @@
},
"parameters": [
{
- "$id": "454",
+ "$id": "510",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "451"
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -5038,9 +5668,9 @@
}
],
"response": {
- "$id": "455",
+ "$id": "511",
"type": {
- "$ref": "72"
+ "$ref": "199"
}
},
"isOverride": false,
@@ -5049,35 +5679,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getAll"
},
{
- "$id": "456",
+ "$id": "512",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "457",
+ "$id": "513",
"name": "getDefault",
"resourceName": "StringLiteral",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "458",
+ "$id": "514",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "459",
- "kind": "constant",
- "valueType": {
- "$id": "460",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -5092,12 +5712,12 @@
],
"responses": [
{
- "$id": "461",
+ "$id": "515",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "72"
+ "$ref": "199"
},
"headers": [],
"isErrorResponse": false,
@@ -5117,11 +5737,11 @@
},
"parameters": [
{
- "$id": "462",
+ "$id": "516",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "459"
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -5135,9 +5755,9 @@
}
],
"response": {
- "$id": "463",
+ "$id": "517",
"type": {
- "$ref": "72"
+ "$ref": "199"
}
},
"isOverride": false,
@@ -5146,36 +5766,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.getDefault"
},
{
- "$id": "464",
+ "$id": "518",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "465",
+ "$id": "519",
"name": "putAll",
"resourceName": "StringLiteral",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "466",
+ "$id": "520",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "467",
- "kind": "constant",
- "valueType": {
- "$id": "468",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -5188,11 +5798,11 @@
"skipUrlEncoding": false
},
{
- "$id": "469",
+ "$id": "521",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "72"
+ "$ref": "199"
},
"location": "Body",
"isApiVersion": false,
@@ -5207,7 +5817,7 @@
],
"responses": [
{
- "$id": "470",
+ "$id": "522",
"statusCodes": [
204
],
@@ -5229,11 +5839,11 @@
},
"parameters": [
{
- "$id": "471",
+ "$id": "523",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "72"
+ "$ref": "199"
},
"location": "Body",
"isApiVersion": false,
@@ -5246,12 +5856,12 @@
"skipUrlEncoding": false
},
{
- "$id": "472",
+ "$id": "524",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "467"
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -5265,7 +5875,7 @@
}
],
"response": {
- "$id": "473"
+ "$id": "525"
},
"isOverride": false,
"generateConvenient": true,
@@ -5273,36 +5883,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral.putAll"
},
{
- "$id": "474",
+ "$id": "526",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "475",
+ "$id": "527",
"name": "putDefault",
"resourceName": "StringLiteral",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "476",
+ "$id": "528",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "477",
- "kind": "constant",
- "valueType": {
- "$id": "478",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -5315,11 +5915,11 @@
"skipUrlEncoding": false
},
{
- "$id": "479",
+ "$id": "529",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "72"
+ "$ref": "199"
},
"location": "Body",
"isApiVersion": false,
@@ -5334,7 +5934,7 @@
],
"responses": [
{
- "$id": "480",
+ "$id": "530",
"statusCodes": [
204
],
@@ -5356,11 +5956,11 @@
},
"parameters": [
{
- "$id": "481",
+ "$id": "531",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "72"
+ "$ref": "199"
},
"location": "Body",
"isApiVersion": false,
@@ -5373,12 +5973,12 @@
"skipUrlEncoding": false
},
{
- "$id": "482",
+ "$id": "532",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "477"
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -5392,7 +5992,7 @@
}
],
"response": {
- "$id": "483"
+ "$id": "533"
},
"isOverride": false,
"generateConvenient": true,
@@ -5402,12 +6002,12 @@
],
"parameters": [
{
- "$id": "484",
+ "$id": "534",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "485",
+ "$id": "535",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5421,9 +6021,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "486",
+ "$id": "536",
"type": {
- "$id": "487",
+ "$id": "537",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5436,45 +6036,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.StringLiteral",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "488",
+ "$id": "538",
"kind": "client",
"name": "IntLiteral",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "489",
+ "$id": "539",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "490",
+ "$id": "540",
"name": "getAll",
"resourceName": "IntLiteral",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "491",
+ "$id": "541",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "492",
- "kind": "constant",
- "valueType": {
- "$id": "493",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -5489,12 +6079,12 @@
],
"responses": [
{
- "$id": "494",
+ "$id": "542",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "77"
+ "$ref": "203"
},
"headers": [],
"isErrorResponse": false,
@@ -5514,11 +6104,11 @@
},
"parameters": [
{
- "$id": "495",
+ "$id": "543",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "492"
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -5532,9 +6122,9 @@
}
],
"response": {
- "$id": "496",
+ "$id": "544",
"type": {
- "$ref": "77"
+ "$ref": "203"
}
},
"isOverride": false,
@@ -5543,35 +6133,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getAll"
},
{
- "$id": "497",
+ "$id": "545",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "498",
+ "$id": "546",
"name": "getDefault",
"resourceName": "IntLiteral",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "499",
+ "$id": "547",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "500",
- "kind": "constant",
- "valueType": {
- "$id": "501",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -5586,12 +6166,12 @@
],
"responses": [
{
- "$id": "502",
+ "$id": "548",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "77"
+ "$ref": "203"
},
"headers": [],
"isErrorResponse": false,
@@ -5611,11 +6191,11 @@
},
"parameters": [
{
- "$id": "503",
+ "$id": "549",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "500"
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -5629,9 +6209,9 @@
}
],
"response": {
- "$id": "504",
+ "$id": "550",
"type": {
- "$ref": "77"
+ "$ref": "203"
}
},
"isOverride": false,
@@ -5640,36 +6220,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.getDefault"
},
{
- "$id": "505",
+ "$id": "551",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "506",
+ "$id": "552",
"name": "putAll",
"resourceName": "IntLiteral",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "507",
+ "$id": "553",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "508",
- "kind": "constant",
- "valueType": {
- "$id": "509",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "104"
},
"location": "Header",
"isApiVersion": false,
@@ -5682,11 +6252,11 @@
"skipUrlEncoding": false
},
{
- "$id": "510",
+ "$id": "554",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "77"
+ "$ref": "203"
},
"location": "Body",
"isApiVersion": false,
@@ -5701,7 +6271,7 @@
],
"responses": [
{
- "$id": "511",
+ "$id": "555",
"statusCodes": [
204
],
@@ -5723,11 +6293,11 @@
},
"parameters": [
{
- "$id": "512",
+ "$id": "556",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "77"
+ "$ref": "203"
},
"location": "Body",
"isApiVersion": false,
@@ -5740,12 +6310,12 @@
"skipUrlEncoding": false
},
{
- "$id": "513",
+ "$id": "557",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "508"
+ "$ref": "104"
},
"location": "Header",
"isApiVersion": false,
@@ -5759,7 +6329,7 @@
}
],
"response": {
- "$id": "514"
+ "$id": "558"
},
"isOverride": false,
"generateConvenient": true,
@@ -5767,36 +6337,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral.putAll"
},
{
- "$id": "515",
+ "$id": "559",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "516",
+ "$id": "560",
"name": "putDefault",
"resourceName": "IntLiteral",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "517",
+ "$id": "561",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "518",
- "kind": "constant",
- "valueType": {
- "$id": "519",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "106"
},
"location": "Header",
"isApiVersion": false,
@@ -5809,11 +6369,11 @@
"skipUrlEncoding": false
},
{
- "$id": "520",
+ "$id": "562",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "77"
+ "$ref": "203"
},
"location": "Body",
"isApiVersion": false,
@@ -5828,7 +6388,7 @@
],
"responses": [
{
- "$id": "521",
+ "$id": "563",
"statusCodes": [
204
],
@@ -5850,11 +6410,11 @@
},
"parameters": [
{
- "$id": "522",
+ "$id": "564",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "77"
+ "$ref": "203"
},
"location": "Body",
"isApiVersion": false,
@@ -5867,12 +6427,12 @@
"skipUrlEncoding": false
},
{
- "$id": "523",
+ "$id": "565",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "518"
+ "$ref": "106"
},
"location": "Header",
"isApiVersion": false,
@@ -5886,7 +6446,7 @@
}
],
"response": {
- "$id": "524"
+ "$id": "566"
},
"isOverride": false,
"generateConvenient": true,
@@ -5896,12 +6456,12 @@
],
"parameters": [
{
- "$id": "525",
+ "$id": "567",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "526",
+ "$id": "568",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5915,9 +6475,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "527",
+ "$id": "569",
"type": {
- "$id": "528",
+ "$id": "570",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5930,45 +6490,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.IntLiteral",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "529",
+ "$id": "571",
"kind": "client",
"name": "FloatLiteral",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "530",
+ "$id": "572",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "531",
+ "$id": "573",
"name": "getAll",
"resourceName": "FloatLiteral",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "532",
+ "$id": "574",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "533",
- "kind": "constant",
- "valueType": {
- "$id": "534",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "108"
},
"location": "Header",
"isApiVersion": false,
@@ -5983,12 +6533,12 @@
],
"responses": [
{
- "$id": "535",
+ "$id": "575",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "82"
+ "$ref": "207"
},
"headers": [],
"isErrorResponse": false,
@@ -6008,11 +6558,11 @@
},
"parameters": [
{
- "$id": "536",
+ "$id": "576",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "533"
+ "$ref": "108"
},
"location": "Header",
"isApiVersion": false,
@@ -6026,9 +6576,9 @@
}
],
"response": {
- "$id": "537",
+ "$id": "577",
"type": {
- "$ref": "82"
+ "$ref": "207"
}
},
"isOverride": false,
@@ -6037,35 +6587,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getAll"
},
{
- "$id": "538",
+ "$id": "578",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "539",
+ "$id": "579",
"name": "getDefault",
"resourceName": "FloatLiteral",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "540",
+ "$id": "580",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "541",
- "kind": "constant",
- "valueType": {
- "$id": "542",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "110"
},
"location": "Header",
"isApiVersion": false,
@@ -6080,12 +6620,12 @@
],
"responses": [
{
- "$id": "543",
+ "$id": "581",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "82"
+ "$ref": "207"
},
"headers": [],
"isErrorResponse": false,
@@ -6105,11 +6645,11 @@
},
"parameters": [
{
- "$id": "544",
+ "$id": "582",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "541"
+ "$ref": "110"
},
"location": "Header",
"isApiVersion": false,
@@ -6123,9 +6663,9 @@
}
],
"response": {
- "$id": "545",
+ "$id": "583",
"type": {
- "$ref": "82"
+ "$ref": "207"
}
},
"isOverride": false,
@@ -6134,36 +6674,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.getDefault"
},
{
- "$id": "546",
+ "$id": "584",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "547",
+ "$id": "585",
"name": "putAll",
"resourceName": "FloatLiteral",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "548",
+ "$id": "586",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "549",
- "kind": "constant",
- "valueType": {
- "$id": "550",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "112"
},
"location": "Header",
"isApiVersion": false,
@@ -6176,11 +6706,11 @@
"skipUrlEncoding": false
},
{
- "$id": "551",
+ "$id": "587",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "82"
+ "$ref": "207"
},
"location": "Body",
"isApiVersion": false,
@@ -6195,7 +6725,7 @@
],
"responses": [
{
- "$id": "552",
+ "$id": "588",
"statusCodes": [
204
],
@@ -6217,11 +6747,11 @@
},
"parameters": [
{
- "$id": "553",
+ "$id": "589",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "82"
+ "$ref": "207"
},
"location": "Body",
"isApiVersion": false,
@@ -6234,12 +6764,12 @@
"skipUrlEncoding": false
},
{
- "$id": "554",
+ "$id": "590",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "549"
+ "$ref": "112"
},
"location": "Header",
"isApiVersion": false,
@@ -6253,7 +6783,7 @@
}
],
"response": {
- "$id": "555"
+ "$id": "591"
},
"isOverride": false,
"generateConvenient": true,
@@ -6261,36 +6791,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral.putAll"
},
{
- "$id": "556",
+ "$id": "592",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "557",
+ "$id": "593",
"name": "putDefault",
"resourceName": "FloatLiteral",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "558",
+ "$id": "594",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "559",
- "kind": "constant",
- "valueType": {
- "$id": "560",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "114"
},
"location": "Header",
"isApiVersion": false,
@@ -6303,11 +6823,11 @@
"skipUrlEncoding": false
},
{
- "$id": "561",
+ "$id": "595",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "82"
+ "$ref": "207"
},
"location": "Body",
"isApiVersion": false,
@@ -6322,7 +6842,7 @@
],
"responses": [
{
- "$id": "562",
+ "$id": "596",
"statusCodes": [
204
],
@@ -6344,11 +6864,11 @@
},
"parameters": [
{
- "$id": "563",
+ "$id": "597",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "82"
+ "$ref": "207"
},
"location": "Body",
"isApiVersion": false,
@@ -6361,12 +6881,12 @@
"skipUrlEncoding": false
},
{
- "$id": "564",
+ "$id": "598",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "559"
+ "$ref": "114"
},
"location": "Header",
"isApiVersion": false,
@@ -6380,7 +6900,7 @@
}
],
"response": {
- "$id": "565"
+ "$id": "599"
},
"isOverride": false,
"generateConvenient": true,
@@ -6390,12 +6910,12 @@
],
"parameters": [
{
- "$id": "566",
+ "$id": "600",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "567",
+ "$id": "601",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -6409,9 +6929,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "568",
+ "$id": "602",
"type": {
- "$id": "569",
+ "$id": "603",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6424,45 +6944,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.FloatLiteral",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "570",
+ "$id": "604",
"kind": "client",
"name": "BooleanLiteral",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "571",
+ "$id": "605",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "572",
+ "$id": "606",
"name": "getAll",
"resourceName": "BooleanLiteral",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "573",
+ "$id": "607",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "574",
- "kind": "constant",
- "valueType": {
- "$id": "575",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "116"
},
"location": "Header",
"isApiVersion": false,
@@ -6477,12 +6987,12 @@
],
"responses": [
{
- "$id": "576",
+ "$id": "608",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "87"
+ "$ref": "211"
},
"headers": [],
"isErrorResponse": false,
@@ -6502,11 +7012,11 @@
},
"parameters": [
{
- "$id": "577",
+ "$id": "609",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "574"
+ "$ref": "116"
},
"location": "Header",
"isApiVersion": false,
@@ -6520,9 +7030,9 @@
}
],
"response": {
- "$id": "578",
+ "$id": "610",
"type": {
- "$ref": "87"
+ "$ref": "211"
}
},
"isOverride": false,
@@ -6531,35 +7041,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getAll"
},
{
- "$id": "579",
+ "$id": "611",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "580",
+ "$id": "612",
"name": "getDefault",
"resourceName": "BooleanLiteral",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "581",
+ "$id": "613",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "582",
- "kind": "constant",
- "valueType": {
- "$id": "583",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "118"
},
"location": "Header",
"isApiVersion": false,
@@ -6574,12 +7074,12 @@
],
"responses": [
{
- "$id": "584",
+ "$id": "614",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "87"
+ "$ref": "211"
},
"headers": [],
"isErrorResponse": false,
@@ -6599,11 +7099,11 @@
},
"parameters": [
{
- "$id": "585",
+ "$id": "615",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "582"
+ "$ref": "118"
},
"location": "Header",
"isApiVersion": false,
@@ -6617,9 +7117,9 @@
}
],
"response": {
- "$id": "586",
+ "$id": "616",
"type": {
- "$ref": "87"
+ "$ref": "211"
}
},
"isOverride": false,
@@ -6628,36 +7128,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.getDefault"
},
{
- "$id": "587",
+ "$id": "617",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "588",
+ "$id": "618",
"name": "putAll",
"resourceName": "BooleanLiteral",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "589",
+ "$id": "619",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "590",
- "kind": "constant",
- "valueType": {
- "$id": "591",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "120"
},
"location": "Header",
"isApiVersion": false,
@@ -6670,11 +7160,11 @@
"skipUrlEncoding": false
},
{
- "$id": "592",
+ "$id": "620",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "87"
+ "$ref": "211"
},
"location": "Body",
"isApiVersion": false,
@@ -6689,7 +7179,7 @@
],
"responses": [
{
- "$id": "593",
+ "$id": "621",
"statusCodes": [
204
],
@@ -6711,11 +7201,11 @@
},
"parameters": [
{
- "$id": "594",
+ "$id": "622",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "87"
+ "$ref": "211"
},
"location": "Body",
"isApiVersion": false,
@@ -6728,12 +7218,12 @@
"skipUrlEncoding": false
},
{
- "$id": "595",
+ "$id": "623",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "590"
+ "$ref": "120"
},
"location": "Header",
"isApiVersion": false,
@@ -6747,7 +7237,7 @@
}
],
"response": {
- "$id": "596"
+ "$id": "624"
},
"isOverride": false,
"generateConvenient": true,
@@ -6755,36 +7245,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral.putAll"
},
{
- "$id": "597",
+ "$id": "625",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "598",
+ "$id": "626",
"name": "putDefault",
"resourceName": "BooleanLiteral",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "599",
+ "$id": "627",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "600",
- "kind": "constant",
- "valueType": {
- "$id": "601",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "122"
},
"location": "Header",
"isApiVersion": false,
@@ -6797,11 +7277,11 @@
"skipUrlEncoding": false
},
{
- "$id": "602",
+ "$id": "628",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "87"
+ "$ref": "211"
},
"location": "Body",
"isApiVersion": false,
@@ -6816,7 +7296,7 @@
],
"responses": [
{
- "$id": "603",
+ "$id": "629",
"statusCodes": [
204
],
@@ -6838,11 +7318,11 @@
},
"parameters": [
{
- "$id": "604",
+ "$id": "630",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "87"
+ "$ref": "211"
},
"location": "Body",
"isApiVersion": false,
@@ -6855,12 +7335,12 @@
"skipUrlEncoding": false
},
{
- "$id": "605",
+ "$id": "631",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "600"
+ "$ref": "122"
},
"location": "Header",
"isApiVersion": false,
@@ -6874,7 +7354,7 @@
}
],
"response": {
- "$id": "606"
+ "$id": "632"
},
"isOverride": false,
"generateConvenient": true,
@@ -6884,12 +7364,12 @@
],
"parameters": [
{
- "$id": "607",
+ "$id": "633",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "608",
+ "$id": "634",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -6903,9 +7383,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "609",
+ "$id": "635",
"type": {
- "$id": "610",
+ "$id": "636",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6918,45 +7398,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.BooleanLiteral",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "611",
+ "$id": "637",
"kind": "client",
"name": "UnionStringLiteral",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "612",
+ "$id": "638",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "613",
+ "$id": "639",
"name": "getAll",
"resourceName": "UnionStringLiteral",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "614",
+ "$id": "640",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "615",
- "kind": "constant",
- "valueType": {
- "$id": "616",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "124"
},
"location": "Header",
"isApiVersion": false,
@@ -6971,12 +7441,12 @@
],
"responses": [
{
- "$id": "617",
+ "$id": "641",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "93"
+ "$ref": "215"
},
"headers": [],
"isErrorResponse": false,
@@ -6996,11 +7466,11 @@
},
"parameters": [
{
- "$id": "618",
+ "$id": "642",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "615"
+ "$ref": "124"
},
"location": "Header",
"isApiVersion": false,
@@ -7014,9 +7484,9 @@
}
],
"response": {
- "$id": "619",
+ "$id": "643",
"type": {
- "$ref": "93"
+ "$ref": "215"
}
},
"isOverride": false,
@@ -7025,35 +7495,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getAll"
},
{
- "$id": "620",
+ "$id": "644",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "621",
+ "$id": "645",
"name": "getDefault",
"resourceName": "UnionStringLiteral",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "622",
+ "$id": "646",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "623",
- "kind": "constant",
- "valueType": {
- "$id": "624",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "126"
},
"location": "Header",
"isApiVersion": false,
@@ -7068,12 +7528,12 @@
],
"responses": [
{
- "$id": "625",
+ "$id": "647",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "93"
+ "$ref": "215"
},
"headers": [],
"isErrorResponse": false,
@@ -7093,11 +7553,11 @@
},
"parameters": [
{
- "$id": "626",
+ "$id": "648",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "623"
+ "$ref": "126"
},
"location": "Header",
"isApiVersion": false,
@@ -7111,9 +7571,9 @@
}
],
"response": {
- "$id": "627",
+ "$id": "649",
"type": {
- "$ref": "93"
+ "$ref": "215"
}
},
"isOverride": false,
@@ -7122,36 +7582,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.getDefault"
},
{
- "$id": "628",
+ "$id": "650",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "629",
+ "$id": "651",
"name": "putAll",
"resourceName": "UnionStringLiteral",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "630",
+ "$id": "652",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "631",
- "kind": "constant",
- "valueType": {
- "$id": "632",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "128"
},
"location": "Header",
"isApiVersion": false,
@@ -7164,11 +7614,11 @@
"skipUrlEncoding": false
},
{
- "$id": "633",
+ "$id": "653",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "93"
+ "$ref": "215"
},
"location": "Body",
"isApiVersion": false,
@@ -7183,7 +7633,7 @@
],
"responses": [
{
- "$id": "634",
+ "$id": "654",
"statusCodes": [
204
],
@@ -7205,11 +7655,11 @@
},
"parameters": [
{
- "$id": "635",
+ "$id": "655",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "93"
+ "$ref": "215"
},
"location": "Body",
"isApiVersion": false,
@@ -7222,12 +7672,12 @@
"skipUrlEncoding": false
},
{
- "$id": "636",
+ "$id": "656",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "631"
+ "$ref": "128"
},
"location": "Header",
"isApiVersion": false,
@@ -7241,7 +7691,7 @@
}
],
"response": {
- "$id": "637"
+ "$id": "657"
},
"isOverride": false,
"generateConvenient": true,
@@ -7249,36 +7699,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral.putAll"
},
{
- "$id": "638",
+ "$id": "658",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "639",
+ "$id": "659",
"name": "putDefault",
"resourceName": "UnionStringLiteral",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "640",
+ "$id": "660",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "641",
- "kind": "constant",
- "valueType": {
- "$id": "642",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "130"
},
"location": "Header",
"isApiVersion": false,
@@ -7291,11 +7731,11 @@
"skipUrlEncoding": false
},
{
- "$id": "643",
+ "$id": "661",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "93"
+ "$ref": "215"
},
"location": "Body",
"isApiVersion": false,
@@ -7310,7 +7750,7 @@
],
"responses": [
{
- "$id": "644",
+ "$id": "662",
"statusCodes": [
204
],
@@ -7332,11 +7772,11 @@
},
"parameters": [
{
- "$id": "645",
+ "$id": "663",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "93"
+ "$ref": "215"
},
"location": "Body",
"isApiVersion": false,
@@ -7349,12 +7789,12 @@
"skipUrlEncoding": false
},
{
- "$id": "646",
+ "$id": "664",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "641"
+ "$ref": "130"
},
"location": "Header",
"isApiVersion": false,
@@ -7368,7 +7808,7 @@
}
],
"response": {
- "$id": "647"
+ "$id": "665"
},
"isOverride": false,
"generateConvenient": true,
@@ -7378,12 +7818,12 @@
],
"parameters": [
{
- "$id": "648",
+ "$id": "666",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "649",
+ "$id": "667",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7397,9 +7837,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "650",
+ "$id": "668",
"type": {
- "$id": "651",
+ "$id": "669",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7412,45 +7852,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionStringLiteral",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "652",
+ "$id": "670",
"kind": "client",
"name": "UnionIntLiteral",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "653",
+ "$id": "671",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "654",
+ "$id": "672",
"name": "getAll",
"resourceName": "UnionIntLiteral",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "655",
+ "$id": "673",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "656",
- "kind": "constant",
- "valueType": {
- "$id": "657",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "132"
},
"location": "Header",
"isApiVersion": false,
@@ -7465,12 +7895,12 @@
],
"responses": [
{
- "$id": "658",
+ "$id": "674",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "97"
+ "$ref": "219"
},
"headers": [],
"isErrorResponse": false,
@@ -7490,11 +7920,11 @@
},
"parameters": [
{
- "$id": "659",
+ "$id": "675",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "656"
+ "$ref": "132"
},
"location": "Header",
"isApiVersion": false,
@@ -7508,9 +7938,9 @@
}
],
"response": {
- "$id": "660",
+ "$id": "676",
"type": {
- "$ref": "97"
+ "$ref": "219"
}
},
"isOverride": false,
@@ -7519,35 +7949,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getAll"
},
{
- "$id": "661",
+ "$id": "677",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "662",
+ "$id": "678",
"name": "getDefault",
"resourceName": "UnionIntLiteral",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "663",
+ "$id": "679",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "664",
- "kind": "constant",
- "valueType": {
- "$id": "665",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "134"
},
"location": "Header",
"isApiVersion": false,
@@ -7562,12 +7982,12 @@
],
"responses": [
{
- "$id": "666",
+ "$id": "680",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "97"
+ "$ref": "219"
},
"headers": [],
"isErrorResponse": false,
@@ -7587,11 +8007,11 @@
},
"parameters": [
{
- "$id": "667",
+ "$id": "681",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "664"
+ "$ref": "134"
},
"location": "Header",
"isApiVersion": false,
@@ -7605,9 +8025,9 @@
}
],
"response": {
- "$id": "668",
+ "$id": "682",
"type": {
- "$ref": "97"
+ "$ref": "219"
}
},
"isOverride": false,
@@ -7616,36 +8036,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.getDefault"
},
{
- "$id": "669",
+ "$id": "683",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "670",
+ "$id": "684",
"name": "putAll",
"resourceName": "UnionIntLiteral",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "671",
+ "$id": "685",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "672",
- "kind": "constant",
- "valueType": {
- "$id": "673",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "136"
},
"location": "Header",
"isApiVersion": false,
@@ -7658,11 +8068,11 @@
"skipUrlEncoding": false
},
{
- "$id": "674",
+ "$id": "686",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "97"
+ "$ref": "219"
},
"location": "Body",
"isApiVersion": false,
@@ -7677,7 +8087,7 @@
],
"responses": [
{
- "$id": "675",
+ "$id": "687",
"statusCodes": [
204
],
@@ -7699,11 +8109,11 @@
},
"parameters": [
{
- "$id": "676",
+ "$id": "688",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "97"
+ "$ref": "219"
},
"location": "Body",
"isApiVersion": false,
@@ -7716,12 +8126,12 @@
"skipUrlEncoding": false
},
{
- "$id": "677",
+ "$id": "689",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "672"
+ "$ref": "136"
},
"location": "Header",
"isApiVersion": false,
@@ -7735,7 +8145,7 @@
}
],
"response": {
- "$id": "678"
+ "$id": "690"
},
"isOverride": false,
"generateConvenient": true,
@@ -7743,36 +8153,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral.putAll"
},
{
- "$id": "679",
+ "$id": "691",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "680",
+ "$id": "692",
"name": "putDefault",
"resourceName": "UnionIntLiteral",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "681",
+ "$id": "693",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "682",
- "kind": "constant",
- "valueType": {
- "$id": "683",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "138"
},
"location": "Header",
"isApiVersion": false,
@@ -7785,11 +8185,11 @@
"skipUrlEncoding": false
},
{
- "$id": "684",
+ "$id": "694",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "97"
+ "$ref": "219"
},
"location": "Body",
"isApiVersion": false,
@@ -7804,7 +8204,7 @@
],
"responses": [
{
- "$id": "685",
+ "$id": "695",
"statusCodes": [
204
],
@@ -7826,11 +8226,11 @@
},
"parameters": [
{
- "$id": "686",
+ "$id": "696",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "97"
+ "$ref": "219"
},
"location": "Body",
"isApiVersion": false,
@@ -7843,12 +8243,12 @@
"skipUrlEncoding": false
},
{
- "$id": "687",
+ "$id": "697",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "682"
+ "$ref": "138"
},
"location": "Header",
"isApiVersion": false,
@@ -7862,7 +8262,7 @@
}
],
"response": {
- "$id": "688"
+ "$id": "698"
},
"isOverride": false,
"generateConvenient": true,
@@ -7872,12 +8272,12 @@
],
"parameters": [
{
- "$id": "689",
+ "$id": "699",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "690",
+ "$id": "700",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7891,9 +8291,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "691",
+ "$id": "701",
"type": {
- "$id": "692",
+ "$id": "702",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7906,45 +8306,35 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionIntLiteral",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "693",
+ "$id": "703",
"kind": "client",
"name": "UnionFloatLiteral",
"namespace": "Type.Property.Optional",
"methods": [
{
- "$id": "694",
+ "$id": "704",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "695",
+ "$id": "705",
"name": "getAll",
"resourceName": "UnionFloatLiteral",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "696",
+ "$id": "706",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "697",
- "kind": "constant",
- "valueType": {
- "$id": "698",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "140"
},
"location": "Header",
"isApiVersion": false,
@@ -7959,12 +8349,12 @@
],
"responses": [
{
- "$id": "699",
+ "$id": "707",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "101"
+ "$ref": "223"
},
"headers": [],
"isErrorResponse": false,
@@ -7984,11 +8374,11 @@
},
"parameters": [
{
- "$id": "700",
+ "$id": "708",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "697"
+ "$ref": "140"
},
"location": "Header",
"isApiVersion": false,
@@ -8002,9 +8392,9 @@
}
],
"response": {
- "$id": "701",
+ "$id": "709",
"type": {
- "$ref": "101"
+ "$ref": "223"
}
},
"isOverride": false,
@@ -8013,35 +8403,25 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getAll"
},
{
- "$id": "702",
+ "$id": "710",
"kind": "basic",
"name": "getDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return the default object",
"operation": {
- "$id": "703",
+ "$id": "711",
"name": "getDefault",
"resourceName": "UnionFloatLiteral",
"doc": "Get models that will return the default object",
"accessibility": "public",
"parameters": [
{
- "$id": "704",
+ "$id": "712",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "705",
- "kind": "constant",
- "valueType": {
- "$id": "706",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "142"
},
"location": "Header",
"isApiVersion": false,
@@ -8056,12 +8436,12 @@
],
"responses": [
{
- "$id": "707",
+ "$id": "713",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "101"
+ "$ref": "223"
},
"headers": [],
"isErrorResponse": false,
@@ -8081,11 +8461,11 @@
},
"parameters": [
{
- "$id": "708",
+ "$id": "714",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "705"
+ "$ref": "142"
},
"location": "Header",
"isApiVersion": false,
@@ -8099,9 +8479,9 @@
}
],
"response": {
- "$id": "709",
+ "$id": "715",
"type": {
- "$ref": "101"
+ "$ref": "223"
}
},
"isOverride": false,
@@ -8110,36 +8490,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.getDefault"
},
{
- "$id": "710",
+ "$id": "716",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "711",
+ "$id": "717",
"name": "putAll",
"resourceName": "UnionFloatLiteral",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "712",
+ "$id": "718",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "713",
- "kind": "constant",
- "valueType": {
- "$id": "714",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "144"
},
"location": "Header",
"isApiVersion": false,
@@ -8152,11 +8522,11 @@
"skipUrlEncoding": false
},
{
- "$id": "715",
+ "$id": "719",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "101"
+ "$ref": "223"
},
"location": "Body",
"isApiVersion": false,
@@ -8171,7 +8541,7 @@
],
"responses": [
{
- "$id": "716",
+ "$id": "720",
"statusCodes": [
204
],
@@ -8193,11 +8563,11 @@
},
"parameters": [
{
- "$id": "717",
+ "$id": "721",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "101"
+ "$ref": "223"
},
"location": "Body",
"isApiVersion": false,
@@ -8210,12 +8580,12 @@
"skipUrlEncoding": false
},
{
- "$id": "718",
+ "$id": "722",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "713"
+ "$ref": "144"
},
"location": "Header",
"isApiVersion": false,
@@ -8229,7 +8599,7 @@
}
],
"response": {
- "$id": "719"
+ "$id": "723"
},
"isOverride": false,
"generateConvenient": true,
@@ -8237,36 +8607,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral.putAll"
},
{
- "$id": "720",
+ "$id": "724",
"kind": "basic",
"name": "putDefault",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with default properties.",
"operation": {
- "$id": "721",
+ "$id": "725",
"name": "putDefault",
"resourceName": "UnionFloatLiteral",
"doc": "Put a body with default properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "722",
+ "$id": "726",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "723",
- "kind": "constant",
- "valueType": {
- "$id": "724",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "146"
},
"location": "Header",
"isApiVersion": false,
@@ -8279,11 +8639,11 @@
"skipUrlEncoding": false
},
{
- "$id": "725",
+ "$id": "727",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "101"
+ "$ref": "223"
},
"location": "Body",
"isApiVersion": false,
@@ -8298,7 +8658,7 @@
],
"responses": [
{
- "$id": "726",
+ "$id": "728",
"statusCodes": [
204
],
@@ -8320,11 +8680,11 @@
},
"parameters": [
{
- "$id": "727",
+ "$id": "729",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "101"
+ "$ref": "223"
},
"location": "Body",
"isApiVersion": false,
@@ -8337,12 +8697,12 @@
"skipUrlEncoding": false
},
{
- "$id": "728",
+ "$id": "730",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "723"
+ "$ref": "146"
},
"location": "Header",
"isApiVersion": false,
@@ -8356,7 +8716,7 @@
}
],
"response": {
- "$id": "729"
+ "$id": "731"
},
"isOverride": false,
"generateConvenient": true,
@@ -8366,12 +8726,12 @@
],
"parameters": [
{
- "$id": "730",
+ "$id": "732",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "731",
+ "$id": "733",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8385,9 +8745,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "732",
+ "$id": "734",
"type": {
- "$id": "733",
+ "$id": "735",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8400,46 +8760,36 @@
"crossLanguageDefinitionId": "Type.Property.Optional.UnionFloatLiteral",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
},
{
- "$id": "734",
+ "$id": "736",
"kind": "client",
"name": "RequiredAndOptional",
"namespace": "Type.Property.Optional",
"doc": "Test optional and required properties",
"methods": [
{
- "$id": "735",
+ "$id": "737",
"kind": "basic",
"name": "getAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Get models that will return all properties in the model",
"operation": {
- "$id": "736",
+ "$id": "738",
"name": "getAll",
"resourceName": "RequiredAndOptional",
"doc": "Get models that will return all properties in the model",
"accessibility": "public",
"parameters": [
{
- "$id": "737",
+ "$id": "739",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "738",
- "kind": "constant",
- "valueType": {
- "$id": "739",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "148"
},
"location": "Header",
"isApiVersion": false,
@@ -8459,7 +8809,7 @@
200
],
"bodyType": {
- "$ref": "105"
+ "$ref": "227"
},
"headers": [],
"isErrorResponse": false,
@@ -8483,7 +8833,7 @@
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "738"
+ "$ref": "148"
},
"location": "Header",
"isApiVersion": false,
@@ -8499,7 +8849,7 @@
"response": {
"$id": "742",
"type": {
- "$ref": "105"
+ "$ref": "227"
}
},
"isOverride": false,
@@ -8526,17 +8876,7 @@
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "746",
- "kind": "constant",
- "valueType": {
- "$id": "747",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "150"
},
"location": "Header",
"isApiVersion": false,
@@ -8551,12 +8891,12 @@
],
"responses": [
{
- "$id": "748",
+ "$id": "746",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "105"
+ "$ref": "227"
},
"headers": [],
"isErrorResponse": false,
@@ -8576,11 +8916,11 @@
},
"parameters": [
{
- "$id": "749",
+ "$id": "747",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "746"
+ "$ref": "150"
},
"location": "Header",
"isApiVersion": false,
@@ -8594,9 +8934,9 @@
}
],
"response": {
- "$id": "750",
+ "$id": "748",
"type": {
- "$ref": "105"
+ "$ref": "227"
}
},
"isOverride": false,
@@ -8605,36 +8945,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.getRequiredOnly"
},
{
- "$id": "751",
+ "$id": "749",
"kind": "basic",
"name": "putAll",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with all properties present.",
"operation": {
- "$id": "752",
+ "$id": "750",
"name": "putAll",
"resourceName": "RequiredAndOptional",
"doc": "Put a body with all properties present.",
"accessibility": "public",
"parameters": [
{
- "$id": "753",
+ "$id": "751",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "754",
- "kind": "constant",
- "valueType": {
- "$id": "755",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "152"
},
"location": "Header",
"isApiVersion": false,
@@ -8647,11 +8977,11 @@
"skipUrlEncoding": false
},
{
- "$id": "756",
+ "$id": "752",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "105"
+ "$ref": "227"
},
"location": "Body",
"isApiVersion": false,
@@ -8666,7 +8996,7 @@
],
"responses": [
{
- "$id": "757",
+ "$id": "753",
"statusCodes": [
204
],
@@ -8688,11 +9018,11 @@
},
"parameters": [
{
- "$id": "758",
+ "$id": "754",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "105"
+ "$ref": "227"
},
"location": "Body",
"isApiVersion": false,
@@ -8705,12 +9035,12 @@
"skipUrlEncoding": false
},
{
- "$id": "759",
+ "$id": "755",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "754"
+ "$ref": "152"
},
"location": "Header",
"isApiVersion": false,
@@ -8724,7 +9054,7 @@
}
],
"response": {
- "$id": "760"
+ "$id": "756"
},
"isOverride": false,
"generateConvenient": true,
@@ -8732,36 +9062,26 @@
"crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional.putAll"
},
{
- "$id": "761",
+ "$id": "757",
"kind": "basic",
"name": "putRequiredOnly",
"accessibility": "public",
"apiVersions": [],
"doc": "Put a body with only required properties.",
"operation": {
- "$id": "762",
+ "$id": "758",
"name": "putRequiredOnly",
"resourceName": "RequiredAndOptional",
"doc": "Put a body with only required properties.",
"accessibility": "public",
"parameters": [
{
- "$id": "763",
+ "$id": "759",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "764",
- "kind": "constant",
- "valueType": {
- "$id": "765",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "154"
},
"location": "Header",
"isApiVersion": false,
@@ -8774,11 +9094,11 @@
"skipUrlEncoding": false
},
{
- "$id": "766",
+ "$id": "760",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "105"
+ "$ref": "227"
},
"location": "Body",
"isApiVersion": false,
@@ -8793,7 +9113,7 @@
],
"responses": [
{
- "$id": "767",
+ "$id": "761",
"statusCodes": [
204
],
@@ -8815,11 +9135,11 @@
},
"parameters": [
{
- "$id": "768",
+ "$id": "762",
"name": "body",
"nameInRequest": "body",
"type": {
- "$ref": "105"
+ "$ref": "227"
},
"location": "Body",
"isApiVersion": false,
@@ -8832,12 +9152,12 @@
"skipUrlEncoding": false
},
{
- "$id": "769",
+ "$id": "763",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "764"
+ "$ref": "154"
},
"location": "Header",
"isApiVersion": false,
@@ -8851,7 +9171,7 @@
}
],
"response": {
- "$id": "770"
+ "$id": "764"
},
"isOverride": false,
"generateConvenient": true,
@@ -8861,12 +9181,12 @@
],
"parameters": [
{
- "$id": "771",
+ "$id": "765",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "772",
+ "$id": "766",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8880,9 +9200,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "773",
+ "$id": "767",
"type": {
- "$id": "774",
+ "$id": "768",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8895,7 +9215,7 @@
"crossLanguageDefinitionId": "Type.Property.Optional.RequiredAndOptional",
"apiVersions": [],
"parent": {
- "$ref": "114"
+ "$ref": "236"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralProperty.cs
index 36438a93932b..b7859f1ca1a2 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralProperty.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralProperty.cs
@@ -11,6 +11,6 @@ public partial class FloatLiteralProperty
{
public FloatLiteralProperty() => throw null;
- public FloatLiteralPropertyProperty Property => throw null;
+ public float Property => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralPropertyProperty.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralPropertyProperty.Serialization.cs
deleted file mode 100644
index 7d454e7c89f5..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralPropertyProperty.Serialization.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace _Type.Property.ValueTypes
-{
- public readonly partial struct FloatLiteralPropertyProperty
- {
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralPropertyProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralPropertyProperty.cs
deleted file mode 100644
index 0b3c6b6b2240..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/FloatLiteralPropertyProperty.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.ValueTypes
-{
- public readonly partial struct FloatLiteralPropertyProperty : IEquatable
- {
- public FloatLiteralPropertyProperty(float value) => throw null;
-
- public static FloatLiteralPropertyProperty _43125 => throw null;
-
- public static bool operator ==(FloatLiteralPropertyProperty left, FloatLiteralPropertyProperty right) => throw null;
-
- public static bool operator !=(FloatLiteralPropertyProperty left, FloatLiteralPropertyProperty right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator FloatLiteralPropertyProperty(float value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(FloatLiteralPropertyProperty other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralProperty.cs
index f7d402b93cf2..cf511c8db490 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralProperty.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralProperty.cs
@@ -11,6 +11,6 @@ public partial class IntLiteralProperty
{
public IntLiteralProperty() => throw null;
- public IntLiteralPropertyProperty Property => throw null;
+ public int Property => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralPropertyProperty.Serialization.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralPropertyProperty.Serialization.cs
deleted file mode 100644
index bb8ded4939fd..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralPropertyProperty.Serialization.cs
+++ /dev/null
@@ -1,13 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-namespace _Type.Property.ValueTypes
-{
- public readonly partial struct IntLiteralPropertyProperty
- {
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralPropertyProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralPropertyProperty.cs
deleted file mode 100644
index b0985e4f01c9..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/IntLiteralPropertyProperty.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.ValueTypes
-{
- public readonly partial struct IntLiteralPropertyProperty : IEquatable
- {
- public IntLiteralPropertyProperty(int value) => throw null;
-
- public static IntLiteralPropertyProperty _42 => throw null;
-
- public static bool operator ==(IntLiteralPropertyProperty left, IntLiteralPropertyProperty right) => throw null;
-
- public static bool operator !=(IntLiteralPropertyProperty left, IntLiteralPropertyProperty right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator IntLiteralPropertyProperty(int value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(IntLiteralPropertyProperty other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/StringLiteralProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/StringLiteralProperty.cs
index 3356665f7276..ee989924e7b8 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/StringLiteralProperty.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/StringLiteralProperty.cs
@@ -11,6 +11,6 @@ public partial class StringLiteralProperty
{
public StringLiteralProperty() => throw null;
- public StringLiteralPropertyProperty Property => throw null;
+ public string Property => throw null;
}
}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/StringLiteralPropertyProperty.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/StringLiteralPropertyProperty.cs
deleted file mode 100644
index 31bf3ec21b13..000000000000
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/Models/StringLiteralPropertyProperty.cs
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) Microsoft Corporation. All rights reserved.
-// Licensed under the MIT License.
-
-//
-
-#nullable disable
-
-using System;
-using System.ComponentModel;
-
-namespace _Type.Property.ValueTypes
-{
- public readonly partial struct StringLiteralPropertyProperty : IEquatable
- {
- public StringLiteralPropertyProperty(string value) => throw null;
-
- public static StringLiteralPropertyProperty Hello => throw null;
-
- public static bool operator ==(StringLiteralPropertyProperty left, StringLiteralPropertyProperty right) => throw null;
-
- public static bool operator !=(StringLiteralPropertyProperty left, StringLiteralPropertyProperty right) => throw null;
-
- /// Converts a string to a .
- /// The value.
- public static implicit operator StringLiteralPropertyProperty(string value) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override bool Equals(object obj) => throw null;
-
- public bool Equals(StringLiteralPropertyProperty other) => throw null;
-
- [EditorBrowsable(EditorBrowsableState.Never)]
- public override int GetHashCode() => throw null;
-
- public override string ToString() => throw null;
- }
-}
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/TypePropertyValueTypesModelFactory.cs b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/TypePropertyValueTypesModelFactory.cs
index 2d521a62764b..35fc9f055d5c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/TypePropertyValueTypesModelFactory.cs
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Generated/TypePropertyValueTypesModelFactory.cs
@@ -56,11 +56,11 @@ public static partial class TypePropertyValueTypesModelFactory
public static UnknownArrayProperty UnknownArrayProperty(BinaryData @property = default) => throw null;
- public static StringLiteralProperty StringLiteralProperty(StringLiteralPropertyProperty @property = default) => throw null;
+ public static StringLiteralProperty StringLiteralProperty(string @property = default) => throw null;
- public static IntLiteralProperty IntLiteralProperty(IntLiteralPropertyProperty @property = default) => throw null;
+ public static IntLiteralProperty IntLiteralProperty(int @property = default) => throw null;
- public static FloatLiteralProperty FloatLiteralProperty(FloatLiteralPropertyProperty @property = default) => throw null;
+ public static FloatLiteralProperty FloatLiteralProperty(float @property = default) => throw null;
public static BooleanLiteralProperty BooleanLiteralProperty(bool @property = default) => throw null;
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Type.Property.ValueTypes.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Type.Property.ValueTypes.csproj
index 0897e6121b5e..b1c4ca3ad701 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Type.Property.ValueTypes.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/property/value-types/src/Type.Property.ValueTypes.csproj
@@ -17,6 +17,7 @@
+
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 45333f89cb2e..446ca828125b 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
@@ -120,7 +120,8 @@
{
"$id": "14",
"kind": "enum",
- "name": "StringLiteralProperty_property",
+ "name": "UnionStringLiteralPropertyProperty",
+ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property.anonymous",
"valueType": {
"$id": "15",
"kind": "string",
@@ -134,29 +135,49 @@
"kind": "enumvalue",
"name": "hello",
"value": "hello",
- "doc": "hello",
"valueType": {
- "$ref": "15"
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
},
"enumType": {
"$ref": "14"
- }
+ },
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "enumvalue",
+ "name": "world",
+ "value": "world",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "14"
+ },
+ "decorators": []
}
],
- "crossLanguageDefinitionId": "",
- "namespace": "Type.Property.ValueTypes",
- "doc": "The StringLiteralProperty_property",
- "isFixed": false,
+ "namespace": "",
+ "isFixed": true,
"isFlags": false,
"usage": "Input,Output,Json",
"decorators": []
},
{
- "$id": "17",
+ "$id": "20",
"kind": "enum",
- "name": "IntLiteralProperty_property",
+ "name": "UnionIntLiteralPropertyProperty",
+ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property.anonymous",
"valueType": {
- "$id": "18",
+ "$id": "21",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -164,264 +185,1135 @@
},
"values": [
{
- "$id": "19",
+ "$id": "22",
"kind": "enumvalue",
"name": "42",
"value": 42,
- "doc": "42",
"valueType": {
- "$ref": "18"
+ "$id": "23",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
},
"enumType": {
- "$ref": "17"
- }
+ "$ref": "20"
+ },
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "enumvalue",
+ "name": "43",
+ "value": 43,
+ "valueType": {
+ "$id": "25",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "20"
+ },
+ "decorators": []
+ }
+ ],
+ "namespace": "",
+ "isFixed": true,
+ "isFlags": false,
+ "usage": "Input,Output,Json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "enum",
+ "name": "UnionFloatLiteralPropertyProperty",
+ "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property.anonymous",
+ "valueType": {
+ "$id": "27",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "28",
+ "kind": "enumvalue",
+ "name": "43.125",
+ "value": 43.125,
+ "valueType": {
+ "$id": "29",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "26"
+ },
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "enumvalue",
+ "name": "46.875",
+ "value": 46.875,
+ "valueType": {
+ "$id": "31",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "26"
+ },
+ "decorators": []
+ }
+ ],
+ "namespace": "",
+ "isFixed": true,
+ "isFlags": false,
+ "usage": "Input,Output,Json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "enum",
+ "name": "ExtendedEnum",
+ "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtendedEnum",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "values": [
+ {
+ "$id": "34",
+ "kind": "enumvalue",
+ "name": "EnumValue2",
+ "value": "value2",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "32"
+ },
+ "decorators": []
}
],
- "crossLanguageDefinitionId": "",
"namespace": "Type.Property.ValueTypes",
- "doc": "The IntLiteralProperty_property",
"isFixed": false,
"isFlags": false,
"usage": "Input,Output,Json",
"decorators": []
+ }
+ ],
+ "constants": [
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "StringLiteralPropertyProperty",
+ "namespace": "Type.Property.ValueTypes",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "hello",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "IntLiteralPropertyProperty",
+ "namespace": "Type.Property.ValueTypes",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "39",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 42,
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "FloatLiteralPropertyProperty",
+ "namespace": "Type.Property.ValueTypes",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "41",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "value": 43.125,
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "BooleanLiteralPropertyProperty",
+ "namespace": "Type.Property.ValueTypes",
+ "usage": "Input,Output,Json",
+ "valueType": {
+ "$id": "43",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": true,
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "putContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "getContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "putContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "getContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "54",
+ "kind": "constant",
+ "name": "putContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "constant",
+ "name": "getContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "57",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "58",
+ "kind": "constant",
+ "name": "putContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "59",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "60",
+ "kind": "constant",
+ "name": "getContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "61",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "62",
+ "kind": "constant",
+ "name": "putContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "63",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "64",
+ "kind": "constant",
+ "name": "getContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "65",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "66",
+ "kind": "constant",
+ "name": "putContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "68",
+ "kind": "constant",
+ "name": "getContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "69",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "70",
+ "kind": "constant",
+ "name": "putContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "71",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "72",
+ "kind": "constant",
+ "name": "getContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "73",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "74",
+ "kind": "constant",
+ "name": "putContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "75",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "76",
+ "kind": "constant",
+ "name": "getContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "77",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "78",
+ "kind": "constant",
+ "name": "putContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "79",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "80",
+ "kind": "constant",
+ "name": "getContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "81",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "82",
+ "kind": "constant",
+ "name": "putContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "83",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "84",
+ "kind": "constant",
+ "name": "getContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "85",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "86",
+ "kind": "constant",
+ "name": "putContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "87",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "88",
+ "kind": "constant",
+ "name": "getContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "89",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "90",
+ "kind": "constant",
+ "name": "putContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "91",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "92",
+ "kind": "constant",
+ "name": "getContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "93",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "94",
+ "kind": "constant",
+ "name": "putContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "95",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "96",
+ "kind": "constant",
+ "name": "getContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "97",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "98",
+ "kind": "constant",
+ "name": "putContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "99",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "100",
+ "kind": "constant",
+ "name": "getContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "101",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "102",
+ "kind": "constant",
+ "name": "putContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "103",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "104",
+ "kind": "constant",
+ "name": "getContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "105",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "106",
+ "kind": "constant",
+ "name": "putContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "107",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "108",
+ "kind": "constant",
+ "name": "getContentType16",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "109",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "110",
+ "kind": "constant",
+ "name": "putContentType16",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "111",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "112",
+ "kind": "constant",
+ "name": "getContentType17",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "113",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "114",
+ "kind": "constant",
+ "name": "putContentType17",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "115",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "116",
+ "kind": "constant",
+ "name": "getContentType18",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "117",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "118",
+ "kind": "constant",
+ "name": "putContentType18",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "119",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "120",
+ "kind": "constant",
+ "name": "getContentType19",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "121",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "122",
+ "kind": "constant",
+ "name": "putContentType19",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "123",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "124",
+ "kind": "constant",
+ "name": "getContentType20",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "125",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "126",
+ "kind": "constant",
+ "name": "putContentType20",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "127",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "128",
+ "kind": "constant",
+ "name": "getContentType21",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "129",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "130",
+ "kind": "constant",
+ "name": "putContentType21",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "131",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "132",
+ "kind": "constant",
+ "name": "getContentType22",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "133",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "134",
+ "kind": "constant",
+ "name": "putContentType22",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "135",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "136",
+ "kind": "constant",
+ "name": "getContentType23",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "137",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "138",
+ "kind": "constant",
+ "name": "putContentType23",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "139",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "140",
+ "kind": "constant",
+ "name": "getContentType24",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "141",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "142",
+ "kind": "constant",
+ "name": "putContentType24",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "143",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "144",
+ "kind": "constant",
+ "name": "getContentType25",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "145",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "146",
+ "kind": "constant",
+ "name": "putContentType25",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "147",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
},
{
- "$id": "20",
- "kind": "enum",
- "name": "FloatLiteralProperty_property",
+ "$id": "148",
+ "kind": "constant",
+ "name": "getContentType26",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "21",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
+ "$id": "149",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "22",
- "kind": "enumvalue",
- "name": "43.125",
- "value": 43.125,
- "doc": "43.125",
- "valueType": {
- "$ref": "21"
- },
- "enumType": {
- "$ref": "20"
- }
- }
- ],
- "crossLanguageDefinitionId": "",
- "namespace": "Type.Property.ValueTypes",
- "doc": "The FloatLiteralProperty_property",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "value": "application/json",
"decorators": []
},
{
- "$id": "23",
- "kind": "enum",
- "name": "UnionStringLiteralPropertyProperty",
- "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property.anonymous",
+ "$id": "150",
+ "kind": "constant",
+ "name": "putContentType26",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "24",
+ "$id": "151",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "25",
- "kind": "enumvalue",
- "name": "hello",
- "value": "hello",
- "valueType": {
- "$id": "26",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "enumType": {
- "$ref": "23"
- },
- "decorators": []
- },
- {
- "$id": "27",
- "kind": "enumvalue",
- "name": "world",
- "value": "world",
- "valueType": {
- "$id": "28",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "enumType": {
- "$ref": "23"
- },
- "decorators": []
- }
- ],
- "namespace": "",
- "isFixed": true,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "value": "application/json",
"decorators": []
},
{
- "$id": "29",
- "kind": "enum",
- "name": "UnionIntLiteralPropertyProperty",
- "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property.anonymous",
+ "$id": "152",
+ "kind": "constant",
+ "name": "getContentType27",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "30",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
+ "$id": "153",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "31",
- "kind": "enumvalue",
- "name": "42",
- "value": 42,
- "valueType": {
- "$id": "32",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "enumType": {
- "$ref": "29"
- },
- "decorators": []
- },
- {
- "$id": "33",
- "kind": "enumvalue",
- "name": "43",
- "value": 43,
- "valueType": {
- "$id": "34",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "enumType": {
- "$ref": "29"
- },
- "decorators": []
- }
- ],
- "namespace": "",
- "isFixed": true,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "value": "application/json",
"decorators": []
},
{
- "$id": "35",
- "kind": "enum",
- "name": "UnionFloatLiteralPropertyProperty",
- "crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property.anonymous",
+ "$id": "154",
+ "kind": "constant",
+ "name": "putContentType27",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "36",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
+ "$id": "155",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "37",
- "kind": "enumvalue",
- "name": "43.125",
- "value": 43.125,
- "valueType": {
- "$id": "38",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
- "decorators": []
- },
- "enumType": {
- "$ref": "35"
- },
- "decorators": []
- },
- {
- "$id": "39",
- "kind": "enumvalue",
- "name": "46.875",
- "value": 46.875,
- "valueType": {
- "$id": "40",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
- "decorators": []
- },
- "enumType": {
- "$ref": "35"
- },
- "decorators": []
- }
- ],
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "156",
+ "kind": "constant",
+ "name": "getContentType28",
"namespace": "",
- "isFixed": true,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "usage": "None",
+ "valueType": {
+ "$id": "157",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
"decorators": []
},
{
- "$id": "41",
- "kind": "enum",
- "name": "ExtendedEnum",
- "crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtendedEnum",
+ "$id": "158",
+ "kind": "constant",
+ "name": "putContentType28",
+ "namespace": "",
+ "usage": "None",
"valueType": {
- "$id": "42",
+ "$id": "159",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
- "values": [
- {
- "$id": "43",
- "kind": "enumvalue",
- "name": "EnumValue2",
- "value": "value2",
- "valueType": {
- "$id": "44",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "enumType": {
- "$ref": "41"
- },
- "decorators": []
- }
- ],
- "namespace": "Type.Property.ValueTypes",
- "isFixed": false,
- "isFlags": false,
- "usage": "Input,Output,Json",
+ "value": "application/json",
"decorators": []
}
],
"models": [
{
- "$id": "45",
+ "$id": "160",
"kind": "model",
"name": "BooleanProperty",
"namespace": "Type.Property.ValueTypes",
@@ -431,13 +1323,13 @@
"decorators": [],
"properties": [
{
- "$id": "46",
+ "$id": "161",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "47",
+ "$id": "162",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -450,9 +1342,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanProperty.property",
"serializationOptions": {
- "$id": "48",
+ "$id": "163",
"json": {
- "$id": "49",
+ "$id": "164",
"name": "property"
}
}
@@ -460,7 +1352,7 @@
]
},
{
- "$id": "50",
+ "$id": "165",
"kind": "model",
"name": "StringProperty",
"namespace": "Type.Property.ValueTypes",
@@ -470,13 +1362,13 @@
"decorators": [],
"properties": [
{
- "$id": "51",
+ "$id": "166",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "52",
+ "$id": "167",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -489,9 +1381,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.StringProperty.property",
"serializationOptions": {
- "$id": "53",
+ "$id": "168",
"json": {
- "$id": "54",
+ "$id": "169",
"name": "property"
}
}
@@ -499,7 +1391,7 @@
]
},
{
- "$id": "55",
+ "$id": "170",
"kind": "model",
"name": "BytesProperty",
"namespace": "Type.Property.ValueTypes",
@@ -509,13 +1401,13 @@
"decorators": [],
"properties": [
{
- "$id": "56",
+ "$id": "171",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "57",
+ "$id": "172",
"kind": "bytes",
"name": "bytes",
"encode": "base64",
@@ -529,9 +1421,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.BytesProperty.property",
"serializationOptions": {
- "$id": "58",
+ "$id": "173",
"json": {
- "$id": "59",
+ "$id": "174",
"name": "property"
}
}
@@ -539,7 +1431,7 @@
]
},
{
- "$id": "60",
+ "$id": "175",
"kind": "model",
"name": "IntProperty",
"namespace": "Type.Property.ValueTypes",
@@ -549,13 +1441,13 @@
"decorators": [],
"properties": [
{
- "$id": "61",
+ "$id": "176",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "62",
+ "$id": "177",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -568,9 +1460,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.IntProperty.property",
"serializationOptions": {
- "$id": "63",
+ "$id": "178",
"json": {
- "$id": "64",
+ "$id": "179",
"name": "property"
}
}
@@ -578,7 +1470,7 @@
]
},
{
- "$id": "65",
+ "$id": "180",
"kind": "model",
"name": "FloatProperty",
"namespace": "Type.Property.ValueTypes",
@@ -588,13 +1480,13 @@
"decorators": [],
"properties": [
{
- "$id": "66",
+ "$id": "181",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "67",
+ "$id": "182",
"kind": "float32",
"name": "float32",
"crossLanguageDefinitionId": "TypeSpec.float32",
@@ -607,9 +1499,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatProperty.property",
"serializationOptions": {
- "$id": "68",
+ "$id": "183",
"json": {
- "$id": "69",
+ "$id": "184",
"name": "property"
}
}
@@ -617,7 +1509,7 @@
]
},
{
- "$id": "70",
+ "$id": "185",
"kind": "model",
"name": "DecimalProperty",
"namespace": "Type.Property.ValueTypes",
@@ -627,13 +1519,13 @@
"decorators": [],
"properties": [
{
- "$id": "71",
+ "$id": "186",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "72",
+ "$id": "187",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -646,9 +1538,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.DecimalProperty.property",
"serializationOptions": {
- "$id": "73",
+ "$id": "188",
"json": {
- "$id": "74",
+ "$id": "189",
"name": "property"
}
}
@@ -656,7 +1548,7 @@
]
},
{
- "$id": "75",
+ "$id": "190",
"kind": "model",
"name": "Decimal128Property",
"namespace": "Type.Property.ValueTypes",
@@ -666,13 +1558,13 @@
"decorators": [],
"properties": [
{
- "$id": "76",
+ "$id": "191",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "77",
+ "$id": "192",
"kind": "decimal128",
"name": "decimal128",
"crossLanguageDefinitionId": "TypeSpec.decimal128",
@@ -685,9 +1577,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128Property.property",
"serializationOptions": {
- "$id": "78",
+ "$id": "193",
"json": {
- "$id": "79",
+ "$id": "194",
"name": "property"
}
}
@@ -695,7 +1587,7 @@
]
},
{
- "$id": "80",
+ "$id": "195",
"kind": "model",
"name": "DatetimeProperty",
"namespace": "Type.Property.ValueTypes",
@@ -705,18 +1597,18 @@
"decorators": [],
"properties": [
{
- "$id": "81",
+ "$id": "196",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "82",
+ "$id": "197",
"kind": "utcDateTime",
"name": "utcDateTime",
"encode": "rfc3339",
"wireType": {
- "$id": "83",
+ "$id": "198",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -732,9 +1624,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.DatetimeProperty.property",
"serializationOptions": {
- "$id": "84",
+ "$id": "199",
"json": {
- "$id": "85",
+ "$id": "200",
"name": "property"
}
}
@@ -742,7 +1634,7 @@
]
},
{
- "$id": "86",
+ "$id": "201",
"kind": "model",
"name": "DurationProperty",
"namespace": "Type.Property.ValueTypes",
@@ -752,18 +1644,18 @@
"decorators": [],
"properties": [
{
- "$id": "87",
+ "$id": "202",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "88",
+ "$id": "203",
"kind": "duration",
"name": "duration",
"encode": "ISO8601",
"wireType": {
- "$id": "89",
+ "$id": "204",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -779,9 +1671,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.DurationProperty.property",
"serializationOptions": {
- "$id": "90",
+ "$id": "205",
"json": {
- "$id": "91",
+ "$id": "206",
"name": "property"
}
}
@@ -789,7 +1681,7 @@
]
},
{
- "$id": "92",
+ "$id": "207",
"kind": "model",
"name": "EnumProperty",
"namespace": "Type.Property.ValueTypes",
@@ -799,7 +1691,7 @@
"decorators": [],
"properties": [
{
- "$id": "93",
+ "$id": "208",
"kind": "property",
"name": "property",
"serializedName": "property",
@@ -814,9 +1706,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.EnumProperty.property",
"serializationOptions": {
- "$id": "94",
+ "$id": "209",
"json": {
- "$id": "95",
+ "$id": "210",
"name": "property"
}
}
@@ -824,7 +1716,7 @@
]
},
{
- "$id": "96",
+ "$id": "211",
"kind": "model",
"name": "ExtensibleEnumProperty",
"namespace": "Type.Property.ValueTypes",
@@ -834,7 +1726,7 @@
"decorators": [],
"properties": [
{
- "$id": "97",
+ "$id": "212",
"kind": "property",
"name": "property",
"serializedName": "property",
@@ -849,9 +1741,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnumProperty.property",
"serializationOptions": {
- "$id": "98",
+ "$id": "213",
"json": {
- "$id": "99",
+ "$id": "214",
"name": "property"
}
}
@@ -859,7 +1751,7 @@
]
},
{
- "$id": "100",
+ "$id": "215",
"kind": "model",
"name": "ModelProperty",
"namespace": "Type.Property.ValueTypes",
@@ -869,13 +1761,13 @@
"decorators": [],
"properties": [
{
- "$id": "101",
+ "$id": "216",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "102",
+ "$id": "217",
"kind": "model",
"name": "InnerModel",
"namespace": "Type.Property.ValueTypes",
@@ -885,13 +1777,13 @@
"decorators": [],
"properties": [
{
- "$id": "103",
+ "$id": "218",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Required string property",
"type": {
- "$id": "104",
+ "$id": "219",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -904,9 +1796,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.InnerModel.property",
"serializationOptions": {
- "$id": "105",
+ "$id": "220",
"json": {
- "$id": "106",
+ "$id": "221",
"name": "property"
}
}
@@ -920,9 +1812,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.ModelProperty.property",
"serializationOptions": {
- "$id": "107",
+ "$id": "222",
"json": {
- "$id": "108",
+ "$id": "223",
"name": "property"
}
}
@@ -930,10 +1822,10 @@
]
},
{
- "$ref": "102"
+ "$ref": "217"
},
{
- "$id": "109",
+ "$id": "224",
"kind": "model",
"name": "CollectionsStringProperty",
"namespace": "Type.Property.ValueTypes",
@@ -943,17 +1835,17 @@
"decorators": [],
"properties": [
{
- "$id": "110",
+ "$id": "225",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "111",
+ "$id": "226",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "112",
+ "$id": "227",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -969,9 +1861,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsStringProperty.property",
"serializationOptions": {
- "$id": "113",
+ "$id": "228",
"json": {
- "$id": "114",
+ "$id": "229",
"name": "property"
}
}
@@ -979,7 +1871,7 @@
]
},
{
- "$id": "115",
+ "$id": "230",
"kind": "model",
"name": "CollectionsIntProperty",
"namespace": "Type.Property.ValueTypes",
@@ -989,17 +1881,17 @@
"decorators": [],
"properties": [
{
- "$id": "116",
+ "$id": "231",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "117",
+ "$id": "232",
"kind": "array",
"name": "Array1",
"valueType": {
- "$id": "118",
+ "$id": "233",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
@@ -1015,9 +1907,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsIntProperty.property",
"serializationOptions": {
- "$id": "119",
+ "$id": "234",
"json": {
- "$id": "120",
+ "$id": "235",
"name": "property"
}
}
@@ -1025,7 +1917,7 @@
]
},
{
- "$id": "121",
+ "$id": "236",
"kind": "model",
"name": "CollectionsModelProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1035,17 +1927,17 @@
"decorators": [],
"properties": [
{
- "$id": "122",
+ "$id": "237",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "123",
+ "$id": "238",
"kind": "array",
"name": "ArrayInnerModel",
"valueType": {
- "$ref": "102"
+ "$ref": "217"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1057,9 +1949,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModelProperty.property",
"serializationOptions": {
- "$id": "124",
+ "$id": "239",
"json": {
- "$id": "125",
+ "$id": "240",
"name": "property"
}
}
@@ -1067,7 +1959,7 @@
]
},
{
- "$id": "126",
+ "$id": "241",
"kind": "model",
"name": "DictionaryStringProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1077,23 +1969,23 @@
"decorators": [],
"properties": [
{
- "$id": "127",
+ "$id": "242",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "128",
+ "$id": "243",
"kind": "dict",
"keyType": {
- "$id": "129",
+ "$id": "244",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
"valueType": {
- "$id": "130",
+ "$id": "245",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1108,9 +2000,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryStringProperty.property",
"serializationOptions": {
- "$id": "131",
+ "$id": "246",
"json": {
- "$id": "132",
+ "$id": "247",
"name": "property"
}
}
@@ -1118,7 +2010,7 @@
]
},
{
- "$id": "133",
+ "$id": "248",
"kind": "model",
"name": "NeverProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1129,7 +2021,7 @@
"properties": []
},
{
- "$id": "134",
+ "$id": "249",
"kind": "model",
"name": "UnknownStringProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1139,13 +2031,13 @@
"decorators": [],
"properties": [
{
- "$id": "135",
+ "$id": "250",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "136",
+ "$id": "251",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1158,9 +2050,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownStringProperty.property",
"serializationOptions": {
- "$id": "137",
+ "$id": "252",
"json": {
- "$id": "138",
+ "$id": "253",
"name": "property"
}
}
@@ -1168,7 +2060,7 @@
]
},
{
- "$id": "139",
+ "$id": "254",
"kind": "model",
"name": "UnknownIntProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1178,13 +2070,13 @@
"decorators": [],
"properties": [
{
- "$id": "140",
+ "$id": "255",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "141",
+ "$id": "256",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1197,9 +2089,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownIntProperty.property",
"serializationOptions": {
- "$id": "142",
+ "$id": "257",
"json": {
- "$id": "143",
+ "$id": "258",
"name": "property"
}
}
@@ -1207,7 +2099,7 @@
]
},
{
- "$id": "144",
+ "$id": "259",
"kind": "model",
"name": "UnknownDictProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1217,13 +2109,13 @@
"decorators": [],
"properties": [
{
- "$id": "145",
+ "$id": "260",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "146",
+ "$id": "261",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1236,9 +2128,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDictProperty.property",
"serializationOptions": {
- "$id": "147",
+ "$id": "262",
"json": {
- "$id": "148",
+ "$id": "263",
"name": "property"
}
}
@@ -1246,7 +2138,7 @@
]
},
{
- "$id": "149",
+ "$id": "264",
"kind": "model",
"name": "UnknownArrayProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1256,13 +2148,13 @@
"decorators": [],
"properties": [
{
- "$id": "150",
+ "$id": "265",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "151",
+ "$id": "266",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -1275,9 +2167,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArrayProperty.property",
"serializationOptions": {
- "$id": "152",
+ "$id": "267",
"json": {
- "$id": "153",
+ "$id": "268",
"name": "property"
}
}
@@ -1285,7 +2177,7 @@
]
},
{
- "$id": "154",
+ "$id": "269",
"kind": "model",
"name": "StringLiteralProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1295,19 +2187,13 @@
"decorators": [],
"properties": [
{
- "$id": "155",
+ "$id": "270",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "156",
- "kind": "constant",
- "valueType": {
- "$ref": "14"
- },
- "value": "hello",
- "decorators": []
+ "$ref": "36"
},
"optional": false,
"readOnly": false,
@@ -1316,9 +2202,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteralProperty.property",
"serializationOptions": {
- "$id": "157",
+ "$id": "271",
"json": {
- "$id": "158",
+ "$id": "272",
"name": "property"
}
}
@@ -1326,7 +2212,7 @@
]
},
{
- "$id": "159",
+ "$id": "273",
"kind": "model",
"name": "IntLiteralProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1336,19 +2222,13 @@
"decorators": [],
"properties": [
{
- "$id": "160",
+ "$id": "274",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "161",
- "kind": "constant",
- "valueType": {
- "$ref": "17"
- },
- "value": 42,
- "decorators": []
+ "$ref": "38"
},
"optional": false,
"readOnly": false,
@@ -1357,9 +2237,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteralProperty.property",
"serializationOptions": {
- "$id": "162",
+ "$id": "275",
"json": {
- "$id": "163",
+ "$id": "276",
"name": "property"
}
}
@@ -1367,7 +2247,7 @@
]
},
{
- "$id": "164",
+ "$id": "277",
"kind": "model",
"name": "FloatLiteralProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1377,19 +2257,13 @@
"decorators": [],
"properties": [
{
- "$id": "165",
+ "$id": "278",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "166",
- "kind": "constant",
- "valueType": {
- "$ref": "20"
- },
- "value": 43.125,
- "decorators": []
+ "$ref": "40"
},
"optional": false,
"readOnly": false,
@@ -1398,9 +2272,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteralProperty.property",
"serializationOptions": {
- "$id": "167",
+ "$id": "279",
"json": {
- "$id": "168",
+ "$id": "280",
"name": "property"
}
}
@@ -1408,7 +2282,7 @@
]
},
{
- "$id": "169",
+ "$id": "281",
"kind": "model",
"name": "BooleanLiteralProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1418,23 +2292,13 @@
"decorators": [],
"properties": [
{
- "$id": "170",
+ "$id": "282",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "171",
- "kind": "constant",
- "valueType": {
- "$id": "172",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
- "decorators": []
- },
- "value": true,
- "decorators": []
+ "$ref": "42"
},
"optional": false,
"readOnly": false,
@@ -1443,9 +2307,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteralProperty.property",
"serializationOptions": {
- "$id": "173",
+ "$id": "283",
"json": {
- "$id": "174",
+ "$id": "284",
"name": "property"
}
}
@@ -1453,7 +2317,7 @@
]
},
{
- "$id": "175",
+ "$id": "285",
"kind": "model",
"name": "UnionStringLiteralProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1463,13 +2327,13 @@
"decorators": [],
"properties": [
{
- "$id": "176",
+ "$id": "286",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$ref": "23"
+ "$ref": "14"
},
"optional": false,
"readOnly": false,
@@ -1478,9 +2342,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteralProperty.property",
"serializationOptions": {
- "$id": "177",
+ "$id": "287",
"json": {
- "$id": "178",
+ "$id": "288",
"name": "property"
}
}
@@ -1488,7 +2352,7 @@
]
},
{
- "$id": "179",
+ "$id": "289",
"kind": "model",
"name": "UnionIntLiteralProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1498,13 +2362,13 @@
"decorators": [],
"properties": [
{
- "$id": "180",
+ "$id": "290",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$ref": "29"
+ "$ref": "20"
},
"optional": false,
"readOnly": false,
@@ -1513,9 +2377,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteralProperty.property",
"serializationOptions": {
- "$id": "181",
+ "$id": "291",
"json": {
- "$id": "182",
+ "$id": "292",
"name": "property"
}
}
@@ -1523,7 +2387,7 @@
]
},
{
- "$id": "183",
+ "$id": "293",
"kind": "model",
"name": "UnionFloatLiteralProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1533,13 +2397,13 @@
"decorators": [],
"properties": [
{
- "$id": "184",
+ "$id": "294",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$ref": "35"
+ "$ref": "26"
},
"optional": false,
"readOnly": false,
@@ -1548,9 +2412,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteralProperty.property",
"serializationOptions": {
- "$id": "185",
+ "$id": "295",
"json": {
- "$id": "186",
+ "$id": "296",
"name": "property"
}
}
@@ -1558,7 +2422,7 @@
]
},
{
- "$id": "187",
+ "$id": "297",
"kind": "model",
"name": "UnionEnumValueProperty",
"namespace": "Type.Property.ValueTypes",
@@ -1568,18 +2432,26 @@
"decorators": [],
"properties": [
{
- "$id": "188",
+ "$id": "298",
"kind": "property",
"name": "property",
"serializedName": "property",
"doc": "Property",
"type": {
- "$id": "189",
- "kind": "constant",
+ "$id": "299",
+ "kind": "enumvalue",
+ "name": "EnumValue2",
+ "value": "value2",
"valueType": {
- "$ref": "41"
+ "$id": "300",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "enumType": {
+ "$ref": "32"
},
- "value": "value2",
"decorators": []
},
"optional": false,
@@ -1589,9 +2461,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValueProperty.property",
"serializationOptions": {
- "$id": "190",
+ "$id": "301",
"json": {
- "$id": "191",
+ "$id": "302",
"name": "property"
}
}
@@ -1601,7 +2473,7 @@
],
"clients": [
{
- "$id": "192",
+ "$id": "303",
"kind": "client",
"name": "ValueTypesClient",
"namespace": "Type.Property.ValueTypes",
@@ -1609,12 +2481,12 @@
"methods": [],
"parameters": [
{
- "$id": "193",
+ "$id": "304",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "194",
+ "$id": "305",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1628,9 +2500,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "195",
+ "$id": "306",
"type": {
- "$id": "196",
+ "$id": "307",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1644,41 +2516,31 @@
"apiVersions": [],
"children": [
{
- "$id": "197",
+ "$id": "308",
"kind": "client",
"name": "Boolean",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "198",
+ "$id": "309",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "199",
+ "$id": "310",
"name": "get",
"resourceName": "Boolean",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "200",
+ "$id": "311",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "201",
- "kind": "constant",
- "valueType": {
- "$id": "202",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -1693,12 +2555,12 @@
],
"responses": [
{
- "$id": "203",
+ "$id": "312",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "45"
+ "$ref": "160"
},
"headers": [],
"isErrorResponse": false,
@@ -1718,11 +2580,11 @@
},
"parameters": [
{
- "$id": "204",
+ "$id": "313",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "201"
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -1736,9 +2598,9 @@
}
],
"response": {
- "$id": "205",
+ "$id": "314",
"type": {
- "$ref": "45"
+ "$ref": "160"
}
},
"isOverride": false,
@@ -1747,36 +2609,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean.get"
},
{
- "$id": "206",
+ "$id": "315",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "207",
+ "$id": "316",
"name": "put",
"resourceName": "Boolean",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "208",
+ "$id": "317",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "209",
- "kind": "constant",
- "valueType": {
- "$id": "210",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -1789,12 +2641,12 @@
"skipUrlEncoding": false
},
{
- "$id": "211",
+ "$id": "318",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "45"
+ "$ref": "160"
},
"location": "Body",
"isApiVersion": false,
@@ -1809,7 +2661,7 @@
],
"responses": [
{
- "$id": "212",
+ "$id": "319",
"statusCodes": [
204
],
@@ -1831,12 +2683,12 @@
},
"parameters": [
{
- "$id": "213",
+ "$id": "320",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "45"
+ "$ref": "160"
},
"location": "Body",
"isApiVersion": false,
@@ -1849,12 +2701,12 @@
"skipUrlEncoding": false
},
{
- "$id": "214",
+ "$id": "321",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "209"
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -1868,7 +2720,7 @@
}
],
"response": {
- "$id": "215"
+ "$id": "322"
},
"isOverride": false,
"generateConvenient": true,
@@ -1878,12 +2730,12 @@
],
"parameters": [
{
- "$id": "216",
+ "$id": "323",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "217",
+ "$id": "324",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1897,9 +2749,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "218",
+ "$id": "325",
"type": {
- "$id": "219",
+ "$id": "326",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1912,45 +2764,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Boolean",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "220",
+ "$id": "327",
"kind": "client",
"name": "String",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "221",
+ "$id": "328",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "222",
+ "$id": "329",
"name": "get",
"resourceName": "String",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "223",
+ "$id": "330",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "224",
- "kind": "constant",
- "valueType": {
- "$id": "225",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -1965,12 +2807,12 @@
],
"responses": [
{
- "$id": "226",
+ "$id": "331",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "50"
+ "$ref": "165"
},
"headers": [],
"isErrorResponse": false,
@@ -1990,11 +2832,11 @@
},
"parameters": [
{
- "$id": "227",
+ "$id": "332",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "224"
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -2008,9 +2850,9 @@
}
],
"response": {
- "$id": "228",
+ "$id": "333",
"type": {
- "$ref": "50"
+ "$ref": "165"
}
},
"isOverride": false,
@@ -2019,36 +2861,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.String.get"
},
{
- "$id": "229",
+ "$id": "334",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "230",
+ "$id": "335",
"name": "put",
"resourceName": "String",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "231",
+ "$id": "336",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "232",
- "kind": "constant",
- "valueType": {
- "$id": "233",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -2061,12 +2893,12 @@
"skipUrlEncoding": false
},
{
- "$id": "234",
+ "$id": "337",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "50"
+ "$ref": "165"
},
"location": "Body",
"isApiVersion": false,
@@ -2081,7 +2913,7 @@
],
"responses": [
{
- "$id": "235",
+ "$id": "338",
"statusCodes": [
204
],
@@ -2103,12 +2935,12 @@
},
"parameters": [
{
- "$id": "236",
+ "$id": "339",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "50"
+ "$ref": "165"
},
"location": "Body",
"isApiVersion": false,
@@ -2121,12 +2953,12 @@
"skipUrlEncoding": false
},
{
- "$id": "237",
+ "$id": "340",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "232"
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -2140,7 +2972,7 @@
}
],
"response": {
- "$id": "238"
+ "$id": "341"
},
"isOverride": false,
"generateConvenient": true,
@@ -2150,12 +2982,12 @@
],
"parameters": [
{
- "$id": "239",
+ "$id": "342",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "240",
+ "$id": "343",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2169,9 +3001,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "241",
+ "$id": "344",
"type": {
- "$id": "242",
+ "$id": "345",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2184,45 +3016,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.String",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "243",
+ "$id": "346",
"kind": "client",
"name": "Bytes",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "244",
+ "$id": "347",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "245",
+ "$id": "348",
"name": "get",
"resourceName": "Bytes",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "246",
+ "$id": "349",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "247",
- "kind": "constant",
- "valueType": {
- "$id": "248",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -2237,12 +3059,12 @@
],
"responses": [
{
- "$id": "249",
+ "$id": "350",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "55"
+ "$ref": "170"
},
"headers": [],
"isErrorResponse": false,
@@ -2262,11 +3084,11 @@
},
"parameters": [
{
- "$id": "250",
+ "$id": "351",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "247"
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -2280,9 +3102,9 @@
}
],
"response": {
- "$id": "251",
+ "$id": "352",
"type": {
- "$ref": "55"
+ "$ref": "170"
}
},
"isOverride": false,
@@ -2291,36 +3113,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes.get"
},
{
- "$id": "252",
+ "$id": "353",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "253",
+ "$id": "354",
"name": "put",
"resourceName": "Bytes",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "254",
+ "$id": "355",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "255",
- "kind": "constant",
- "valueType": {
- "$id": "256",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -2333,12 +3145,12 @@
"skipUrlEncoding": false
},
{
- "$id": "257",
+ "$id": "356",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "55"
+ "$ref": "170"
},
"location": "Body",
"isApiVersion": false,
@@ -2353,7 +3165,7 @@
],
"responses": [
{
- "$id": "258",
+ "$id": "357",
"statusCodes": [
204
],
@@ -2375,12 +3187,12 @@
},
"parameters": [
{
- "$id": "259",
+ "$id": "358",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "55"
+ "$ref": "170"
},
"location": "Body",
"isApiVersion": false,
@@ -2393,12 +3205,12 @@
"skipUrlEncoding": false
},
{
- "$id": "260",
+ "$id": "359",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "255"
+ "$ref": "54"
},
"location": "Header",
"isApiVersion": false,
@@ -2412,7 +3224,7 @@
}
],
"response": {
- "$id": "261"
+ "$id": "360"
},
"isOverride": false,
"generateConvenient": true,
@@ -2422,12 +3234,12 @@
],
"parameters": [
{
- "$id": "262",
+ "$id": "361",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "263",
+ "$id": "362",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2441,9 +3253,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "264",
+ "$id": "363",
"type": {
- "$id": "265",
+ "$id": "364",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2456,45 +3268,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Bytes",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "266",
+ "$id": "365",
"kind": "client",
"name": "Int",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "267",
+ "$id": "366",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "268",
+ "$id": "367",
"name": "get",
"resourceName": "Int",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "269",
+ "$id": "368",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "270",
- "kind": "constant",
- "valueType": {
- "$id": "271",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -2509,12 +3311,12 @@
],
"responses": [
{
- "$id": "272",
+ "$id": "369",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "60"
+ "$ref": "175"
},
"headers": [],
"isErrorResponse": false,
@@ -2534,11 +3336,11 @@
},
"parameters": [
{
- "$id": "273",
+ "$id": "370",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "270"
+ "$ref": "56"
},
"location": "Header",
"isApiVersion": false,
@@ -2552,9 +3354,9 @@
}
],
"response": {
- "$id": "274",
+ "$id": "371",
"type": {
- "$ref": "60"
+ "$ref": "175"
}
},
"isOverride": false,
@@ -2563,36 +3365,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Int.get"
},
{
- "$id": "275",
+ "$id": "372",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "276",
+ "$id": "373",
"name": "put",
"resourceName": "Int",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "277",
+ "$id": "374",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "278",
- "kind": "constant",
- "valueType": {
- "$id": "279",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -2605,12 +3397,12 @@
"skipUrlEncoding": false
},
{
- "$id": "280",
+ "$id": "375",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "60"
+ "$ref": "175"
},
"location": "Body",
"isApiVersion": false,
@@ -2625,7 +3417,7 @@
],
"responses": [
{
- "$id": "281",
+ "$id": "376",
"statusCodes": [
204
],
@@ -2647,12 +3439,12 @@
},
"parameters": [
{
- "$id": "282",
+ "$id": "377",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "60"
+ "$ref": "175"
},
"location": "Body",
"isApiVersion": false,
@@ -2665,12 +3457,12 @@
"skipUrlEncoding": false
},
{
- "$id": "283",
+ "$id": "378",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "278"
+ "$ref": "58"
},
"location": "Header",
"isApiVersion": false,
@@ -2684,7 +3476,7 @@
}
],
"response": {
- "$id": "284"
+ "$id": "379"
},
"isOverride": false,
"generateConvenient": true,
@@ -2694,12 +3486,12 @@
],
"parameters": [
{
- "$id": "285",
+ "$id": "380",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "286",
+ "$id": "381",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2713,9 +3505,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "287",
+ "$id": "382",
"type": {
- "$id": "288",
+ "$id": "383",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2728,45 +3520,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Int",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "289",
+ "$id": "384",
"kind": "client",
"name": "Float",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "290",
+ "$id": "385",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "291",
+ "$id": "386",
"name": "get",
"resourceName": "Float",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "292",
+ "$id": "387",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "293",
- "kind": "constant",
- "valueType": {
- "$id": "294",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -2781,12 +3563,12 @@
],
"responses": [
{
- "$id": "295",
+ "$id": "388",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "65"
+ "$ref": "180"
},
"headers": [],
"isErrorResponse": false,
@@ -2806,11 +3588,11 @@
},
"parameters": [
{
- "$id": "296",
+ "$id": "389",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "293"
+ "$ref": "60"
},
"location": "Header",
"isApiVersion": false,
@@ -2824,9 +3606,9 @@
}
],
"response": {
- "$id": "297",
+ "$id": "390",
"type": {
- "$ref": "65"
+ "$ref": "180"
}
},
"isOverride": false,
@@ -2835,36 +3617,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Float.get"
},
{
- "$id": "298",
+ "$id": "391",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "299",
+ "$id": "392",
"name": "put",
"resourceName": "Float",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "300",
+ "$id": "393",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "301",
- "kind": "constant",
- "valueType": {
- "$id": "302",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -2877,12 +3649,12 @@
"skipUrlEncoding": false
},
{
- "$id": "303",
+ "$id": "394",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "65"
+ "$ref": "180"
},
"location": "Body",
"isApiVersion": false,
@@ -2897,7 +3669,7 @@
],
"responses": [
{
- "$id": "304",
+ "$id": "395",
"statusCodes": [
204
],
@@ -2919,12 +3691,12 @@
},
"parameters": [
{
- "$id": "305",
+ "$id": "396",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "65"
+ "$ref": "180"
},
"location": "Body",
"isApiVersion": false,
@@ -2937,12 +3709,12 @@
"skipUrlEncoding": false
},
{
- "$id": "306",
+ "$id": "397",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "301"
+ "$ref": "62"
},
"location": "Header",
"isApiVersion": false,
@@ -2956,7 +3728,7 @@
}
],
"response": {
- "$id": "307"
+ "$id": "398"
},
"isOverride": false,
"generateConvenient": true,
@@ -2966,12 +3738,12 @@
],
"parameters": [
{
- "$id": "308",
+ "$id": "399",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "309",
+ "$id": "400",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2985,9 +3757,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "310",
+ "$id": "401",
"type": {
- "$id": "311",
+ "$id": "402",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3000,45 +3772,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Float",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "312",
+ "$id": "403",
"kind": "client",
"name": "Decimal",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "313",
+ "$id": "404",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "314",
+ "$id": "405",
"name": "get",
"resourceName": "Decimal",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "315",
+ "$id": "406",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "316",
- "kind": "constant",
- "valueType": {
- "$id": "317",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -3053,12 +3815,12 @@
],
"responses": [
{
- "$id": "318",
+ "$id": "407",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "70"
+ "$ref": "185"
},
"headers": [],
"isErrorResponse": false,
@@ -3078,11 +3840,11 @@
},
"parameters": [
{
- "$id": "319",
+ "$id": "408",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "316"
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -3096,9 +3858,9 @@
}
],
"response": {
- "$id": "320",
+ "$id": "409",
"type": {
- "$ref": "70"
+ "$ref": "185"
}
},
"isOverride": false,
@@ -3107,36 +3869,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal.get"
},
{
- "$id": "321",
+ "$id": "410",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "322",
+ "$id": "411",
"name": "put",
"resourceName": "Decimal",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "323",
+ "$id": "412",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "324",
- "kind": "constant",
- "valueType": {
- "$id": "325",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -3149,12 +3901,12 @@
"skipUrlEncoding": false
},
{
- "$id": "326",
+ "$id": "413",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "70"
+ "$ref": "185"
},
"location": "Body",
"isApiVersion": false,
@@ -3169,7 +3921,7 @@
],
"responses": [
{
- "$id": "327",
+ "$id": "414",
"statusCodes": [
204
],
@@ -3191,12 +3943,12 @@
},
"parameters": [
{
- "$id": "328",
+ "$id": "415",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "70"
+ "$ref": "185"
},
"location": "Body",
"isApiVersion": false,
@@ -3209,12 +3961,12 @@
"skipUrlEncoding": false
},
{
- "$id": "329",
+ "$id": "416",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "324"
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -3228,7 +3980,7 @@
}
],
"response": {
- "$id": "330"
+ "$id": "417"
},
"isOverride": false,
"generateConvenient": true,
@@ -3238,12 +3990,12 @@
],
"parameters": [
{
- "$id": "331",
+ "$id": "418",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "332",
+ "$id": "419",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3257,9 +4009,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "333",
+ "$id": "420",
"type": {
- "$id": "334",
+ "$id": "421",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3272,45 +4024,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "335",
+ "$id": "422",
"kind": "client",
"name": "Decimal128",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "336",
+ "$id": "423",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "337",
+ "$id": "424",
"name": "get",
"resourceName": "Decimal128",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "338",
+ "$id": "425",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "339",
- "kind": "constant",
- "valueType": {
- "$id": "340",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -3325,12 +4067,12 @@
],
"responses": [
{
- "$id": "341",
+ "$id": "426",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "75"
+ "$ref": "190"
},
"headers": [],
"isErrorResponse": false,
@@ -3350,11 +4092,11 @@
},
"parameters": [
{
- "$id": "342",
+ "$id": "427",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "339"
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -3368,9 +4110,9 @@
}
],
"response": {
- "$id": "343",
+ "$id": "428",
"type": {
- "$ref": "75"
+ "$ref": "190"
}
},
"isOverride": false,
@@ -3379,36 +4121,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128.get"
},
{
- "$id": "344",
+ "$id": "429",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "345",
+ "$id": "430",
"name": "put",
"resourceName": "Decimal128",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "346",
+ "$id": "431",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "347",
- "kind": "constant",
- "valueType": {
- "$id": "348",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -3421,12 +4153,12 @@
"skipUrlEncoding": false
},
{
- "$id": "349",
+ "$id": "432",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "75"
+ "$ref": "190"
},
"location": "Body",
"isApiVersion": false,
@@ -3441,7 +4173,7 @@
],
"responses": [
{
- "$id": "350",
+ "$id": "433",
"statusCodes": [
204
],
@@ -3463,12 +4195,12 @@
},
"parameters": [
{
- "$id": "351",
+ "$id": "434",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "75"
+ "$ref": "190"
},
"location": "Body",
"isApiVersion": false,
@@ -3481,12 +4213,12 @@
"skipUrlEncoding": false
},
{
- "$id": "352",
+ "$id": "435",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "347"
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -3500,7 +4232,7 @@
}
],
"response": {
- "$id": "353"
+ "$id": "436"
},
"isOverride": false,
"generateConvenient": true,
@@ -3510,12 +4242,12 @@
],
"parameters": [
{
- "$id": "354",
+ "$id": "437",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "355",
+ "$id": "438",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3529,9 +4261,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "356",
+ "$id": "439",
"type": {
- "$id": "357",
+ "$id": "440",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3544,45 +4276,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Decimal128",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "358",
+ "$id": "441",
"kind": "client",
"name": "Datetime",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "359",
+ "$id": "442",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "360",
+ "$id": "443",
"name": "get",
"resourceName": "Datetime",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "361",
+ "$id": "444",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "362",
- "kind": "constant",
- "valueType": {
- "$id": "363",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -3597,12 +4319,12 @@
],
"responses": [
{
- "$id": "364",
+ "$id": "445",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "80"
+ "$ref": "195"
},
"headers": [],
"isErrorResponse": false,
@@ -3622,11 +4344,11 @@
},
"parameters": [
{
- "$id": "365",
+ "$id": "446",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "362"
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -3640,9 +4362,9 @@
}
],
"response": {
- "$id": "366",
+ "$id": "447",
"type": {
- "$ref": "80"
+ "$ref": "195"
}
},
"isOverride": false,
@@ -3651,36 +4373,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime.get"
},
{
- "$id": "367",
+ "$id": "448",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "368",
+ "$id": "449",
"name": "put",
"resourceName": "Datetime",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "369",
+ "$id": "450",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "370",
- "kind": "constant",
- "valueType": {
- "$id": "371",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -3693,12 +4405,12 @@
"skipUrlEncoding": false
},
{
- "$id": "372",
+ "$id": "451",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "80"
+ "$ref": "195"
},
"location": "Body",
"isApiVersion": false,
@@ -3713,7 +4425,7 @@
],
"responses": [
{
- "$id": "373",
+ "$id": "452",
"statusCodes": [
204
],
@@ -3735,12 +4447,12 @@
},
"parameters": [
{
- "$id": "374",
+ "$id": "453",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "80"
+ "$ref": "195"
},
"location": "Body",
"isApiVersion": false,
@@ -3753,12 +4465,12 @@
"skipUrlEncoding": false
},
{
- "$id": "375",
+ "$id": "454",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "370"
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -3772,7 +4484,7 @@
}
],
"response": {
- "$id": "376"
+ "$id": "455"
},
"isOverride": false,
"generateConvenient": true,
@@ -3782,12 +4494,12 @@
],
"parameters": [
{
- "$id": "377",
+ "$id": "456",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "378",
+ "$id": "457",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3801,9 +4513,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "379",
+ "$id": "458",
"type": {
- "$id": "380",
+ "$id": "459",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3816,45 +4528,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Datetime",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "381",
+ "$id": "460",
"kind": "client",
"name": "Duration",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "382",
+ "$id": "461",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "383",
+ "$id": "462",
"name": "get",
"resourceName": "Duration",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "384",
+ "$id": "463",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "385",
- "kind": "constant",
- "valueType": {
- "$id": "386",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -3869,12 +4571,12 @@
],
"responses": [
{
- "$id": "387",
+ "$id": "464",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "86"
+ "$ref": "201"
},
"headers": [],
"isErrorResponse": false,
@@ -3894,11 +4596,11 @@
},
"parameters": [
{
- "$id": "388",
+ "$id": "465",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "385"
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -3912,9 +4614,9 @@
}
],
"response": {
- "$id": "389",
+ "$id": "466",
"type": {
- "$ref": "86"
+ "$ref": "201"
}
},
"isOverride": false,
@@ -3923,36 +4625,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration.get"
},
{
- "$id": "390",
+ "$id": "467",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "391",
+ "$id": "468",
"name": "put",
"resourceName": "Duration",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "392",
+ "$id": "469",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "393",
- "kind": "constant",
- "valueType": {
- "$id": "394",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -3965,12 +4657,12 @@
"skipUrlEncoding": false
},
{
- "$id": "395",
+ "$id": "470",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "86"
+ "$ref": "201"
},
"location": "Body",
"isApiVersion": false,
@@ -3985,7 +4677,7 @@
],
"responses": [
{
- "$id": "396",
+ "$id": "471",
"statusCodes": [
204
],
@@ -4007,12 +4699,12 @@
},
"parameters": [
{
- "$id": "397",
+ "$id": "472",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "86"
+ "$ref": "201"
},
"location": "Body",
"isApiVersion": false,
@@ -4025,12 +4717,12 @@
"skipUrlEncoding": false
},
{
- "$id": "398",
+ "$id": "473",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "393"
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -4044,7 +4736,7 @@
}
],
"response": {
- "$id": "399"
+ "$id": "474"
},
"isOverride": false,
"generateConvenient": true,
@@ -4054,12 +4746,12 @@
],
"parameters": [
{
- "$id": "400",
+ "$id": "475",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "401",
+ "$id": "476",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4073,9 +4765,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "402",
+ "$id": "477",
"type": {
- "$id": "403",
+ "$id": "478",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4088,45 +4780,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Duration",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "404",
+ "$id": "479",
"kind": "client",
"name": "Enum",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "405",
+ "$id": "480",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "406",
+ "$id": "481",
"name": "get",
"resourceName": "Enum",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "407",
+ "$id": "482",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "408",
- "kind": "constant",
- "valueType": {
- "$id": "409",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -4141,12 +4823,12 @@
],
"responses": [
{
- "$id": "410",
+ "$id": "483",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "92"
+ "$ref": "207"
},
"headers": [],
"isErrorResponse": false,
@@ -4166,11 +4848,11 @@
},
"parameters": [
{
- "$id": "411",
+ "$id": "484",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "408"
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -4184,9 +4866,9 @@
}
],
"response": {
- "$id": "412",
+ "$id": "485",
"type": {
- "$ref": "92"
+ "$ref": "207"
}
},
"isOverride": false,
@@ -4195,36 +4877,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum.get"
},
{
- "$id": "413",
+ "$id": "486",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "414",
+ "$id": "487",
"name": "put",
"resourceName": "Enum",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "415",
+ "$id": "488",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "416",
- "kind": "constant",
- "valueType": {
- "$id": "417",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -4237,12 +4909,12 @@
"skipUrlEncoding": false
},
{
- "$id": "418",
+ "$id": "489",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "92"
+ "$ref": "207"
},
"location": "Body",
"isApiVersion": false,
@@ -4257,7 +4929,7 @@
],
"responses": [
{
- "$id": "419",
+ "$id": "490",
"statusCodes": [
204
],
@@ -4279,12 +4951,12 @@
},
"parameters": [
{
- "$id": "420",
+ "$id": "491",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "92"
+ "$ref": "207"
},
"location": "Body",
"isApiVersion": false,
@@ -4297,12 +4969,12 @@
"skipUrlEncoding": false
},
{
- "$id": "421",
+ "$id": "492",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "416"
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -4316,7 +4988,7 @@
}
],
"response": {
- "$id": "422"
+ "$id": "493"
},
"isOverride": false,
"generateConvenient": true,
@@ -4326,12 +4998,12 @@
],
"parameters": [
{
- "$id": "423",
+ "$id": "494",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "424",
+ "$id": "495",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4345,9 +5017,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "425",
+ "$id": "496",
"type": {
- "$id": "426",
+ "$id": "497",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4360,45 +5032,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Enum",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "427",
+ "$id": "498",
"kind": "client",
"name": "ExtensibleEnum",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "428",
+ "$id": "499",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "429",
+ "$id": "500",
"name": "get",
"resourceName": "ExtensibleEnum",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "430",
+ "$id": "501",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "431",
- "kind": "constant",
- "valueType": {
- "$id": "432",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -4413,12 +5075,12 @@
],
"responses": [
{
- "$id": "433",
+ "$id": "502",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "96"
+ "$ref": "211"
},
"headers": [],
"isErrorResponse": false,
@@ -4438,11 +5100,11 @@
},
"parameters": [
{
- "$id": "434",
+ "$id": "503",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "431"
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -4456,9 +5118,9 @@
}
],
"response": {
- "$id": "435",
+ "$id": "504",
"type": {
- "$ref": "96"
+ "$ref": "211"
}
},
"isOverride": false,
@@ -4467,36 +5129,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum.get"
},
{
- "$id": "436",
+ "$id": "505",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "437",
+ "$id": "506",
"name": "put",
"resourceName": "ExtensibleEnum",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "438",
+ "$id": "507",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "439",
- "kind": "constant",
- "valueType": {
- "$id": "440",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "86"
},
"location": "Header",
"isApiVersion": false,
@@ -4509,12 +5161,12 @@
"skipUrlEncoding": false
},
{
- "$id": "441",
+ "$id": "508",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "96"
+ "$ref": "211"
},
"location": "Body",
"isApiVersion": false,
@@ -4529,7 +5181,7 @@
],
"responses": [
{
- "$id": "442",
+ "$id": "509",
"statusCodes": [
204
],
@@ -4551,12 +5203,12 @@
},
"parameters": [
{
- "$id": "443",
+ "$id": "510",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "96"
+ "$ref": "211"
},
"location": "Body",
"isApiVersion": false,
@@ -4569,12 +5221,12 @@
"skipUrlEncoding": false
},
{
- "$id": "444",
+ "$id": "511",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "439"
+ "$ref": "86"
},
"location": "Header",
"isApiVersion": false,
@@ -4588,7 +5240,7 @@
}
],
"response": {
- "$id": "445"
+ "$id": "512"
},
"isOverride": false,
"generateConvenient": true,
@@ -4598,12 +5250,12 @@
],
"parameters": [
{
- "$id": "446",
+ "$id": "513",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "447",
+ "$id": "514",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4617,9 +5269,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "448",
+ "$id": "515",
"type": {
- "$id": "449",
+ "$id": "516",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4632,45 +5284,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.ExtensibleEnum",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "450",
+ "$id": "517",
"kind": "client",
"name": "Model",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "451",
+ "$id": "518",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "452",
+ "$id": "519",
"name": "get",
"resourceName": "Model",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "453",
+ "$id": "520",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "454",
- "kind": "constant",
- "valueType": {
- "$id": "455",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -4685,12 +5327,12 @@
],
"responses": [
{
- "$id": "456",
+ "$id": "521",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "100"
+ "$ref": "215"
},
"headers": [],
"isErrorResponse": false,
@@ -4710,11 +5352,11 @@
},
"parameters": [
{
- "$id": "457",
+ "$id": "522",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "454"
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -4728,9 +5370,9 @@
}
],
"response": {
- "$id": "458",
+ "$id": "523",
"type": {
- "$ref": "100"
+ "$ref": "215"
}
},
"isOverride": false,
@@ -4739,36 +5381,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Model.get"
},
{
- "$id": "459",
+ "$id": "524",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "460",
+ "$id": "525",
"name": "put",
"resourceName": "Model",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "461",
+ "$id": "526",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "462",
- "kind": "constant",
- "valueType": {
- "$id": "463",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -4781,12 +5413,12 @@
"skipUrlEncoding": false
},
{
- "$id": "464",
+ "$id": "527",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "100"
+ "$ref": "215"
},
"location": "Body",
"isApiVersion": false,
@@ -4801,7 +5433,7 @@
],
"responses": [
{
- "$id": "465",
+ "$id": "528",
"statusCodes": [
204
],
@@ -4823,12 +5455,12 @@
},
"parameters": [
{
- "$id": "466",
+ "$id": "529",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "100"
+ "$ref": "215"
},
"location": "Body",
"isApiVersion": false,
@@ -4841,12 +5473,12 @@
"skipUrlEncoding": false
},
{
- "$id": "467",
+ "$id": "530",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "462"
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -4860,7 +5492,7 @@
}
],
"response": {
- "$id": "468"
+ "$id": "531"
},
"isOverride": false,
"generateConvenient": true,
@@ -4870,12 +5502,12 @@
],
"parameters": [
{
- "$id": "469",
+ "$id": "532",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "470",
+ "$id": "533",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4889,9 +5521,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "471",
+ "$id": "534",
"type": {
- "$id": "472",
+ "$id": "535",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4904,45 +5536,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Model",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "473",
+ "$id": "536",
"kind": "client",
"name": "CollectionsString",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "474",
+ "$id": "537",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "475",
+ "$id": "538",
"name": "get",
"resourceName": "CollectionsString",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "476",
+ "$id": "539",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "477",
- "kind": "constant",
- "valueType": {
- "$id": "478",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -4957,12 +5579,12 @@
],
"responses": [
{
- "$id": "479",
+ "$id": "540",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "109"
+ "$ref": "224"
},
"headers": [],
"isErrorResponse": false,
@@ -4982,11 +5604,11 @@
},
"parameters": [
{
- "$id": "480",
+ "$id": "541",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "477"
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -5000,9 +5622,9 @@
}
],
"response": {
- "$id": "481",
+ "$id": "542",
"type": {
- "$ref": "109"
+ "$ref": "224"
}
},
"isOverride": false,
@@ -5011,36 +5633,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString.get"
},
{
- "$id": "482",
+ "$id": "543",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "483",
+ "$id": "544",
"name": "put",
"resourceName": "CollectionsString",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "484",
+ "$id": "545",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "485",
- "kind": "constant",
- "valueType": {
- "$id": "486",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -5053,12 +5665,12 @@
"skipUrlEncoding": false
},
{
- "$id": "487",
+ "$id": "546",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "109"
+ "$ref": "224"
},
"location": "Body",
"isApiVersion": false,
@@ -5073,7 +5685,7 @@
],
"responses": [
{
- "$id": "488",
+ "$id": "547",
"statusCodes": [
204
],
@@ -5095,12 +5707,12 @@
},
"parameters": [
{
- "$id": "489",
+ "$id": "548",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "109"
+ "$ref": "224"
},
"location": "Body",
"isApiVersion": false,
@@ -5113,12 +5725,12 @@
"skipUrlEncoding": false
},
{
- "$id": "490",
+ "$id": "549",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "485"
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -5132,7 +5744,7 @@
}
],
"response": {
- "$id": "491"
+ "$id": "550"
},
"isOverride": false,
"generateConvenient": true,
@@ -5142,12 +5754,12 @@
],
"parameters": [
{
- "$id": "492",
+ "$id": "551",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "493",
+ "$id": "552",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5161,9 +5773,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "494",
+ "$id": "553",
"type": {
- "$id": "495",
+ "$id": "554",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5176,45 +5788,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsString",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "496",
+ "$id": "555",
"kind": "client",
"name": "CollectionsInt",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "497",
+ "$id": "556",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "498",
+ "$id": "557",
"name": "get",
"resourceName": "CollectionsInt",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "499",
+ "$id": "558",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "500",
- "kind": "constant",
- "valueType": {
- "$id": "501",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -5229,12 +5831,12 @@
],
"responses": [
{
- "$id": "502",
+ "$id": "559",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "115"
+ "$ref": "230"
},
"headers": [],
"isErrorResponse": false,
@@ -5254,11 +5856,11 @@
},
"parameters": [
{
- "$id": "503",
+ "$id": "560",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "500"
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -5272,9 +5874,9 @@
}
],
"response": {
- "$id": "504",
+ "$id": "561",
"type": {
- "$ref": "115"
+ "$ref": "230"
}
},
"isOverride": false,
@@ -5283,36 +5885,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt.get"
},
{
- "$id": "505",
+ "$id": "562",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "506",
+ "$id": "563",
"name": "put",
"resourceName": "CollectionsInt",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "507",
+ "$id": "564",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "508",
- "kind": "constant",
- "valueType": {
- "$id": "509",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -5325,12 +5917,12 @@
"skipUrlEncoding": false
},
{
- "$id": "510",
+ "$id": "565",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "115"
+ "$ref": "230"
},
"location": "Body",
"isApiVersion": false,
@@ -5345,7 +5937,7 @@
],
"responses": [
{
- "$id": "511",
+ "$id": "566",
"statusCodes": [
204
],
@@ -5367,12 +5959,12 @@
},
"parameters": [
{
- "$id": "512",
+ "$id": "567",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "115"
+ "$ref": "230"
},
"location": "Body",
"isApiVersion": false,
@@ -5385,12 +5977,12 @@
"skipUrlEncoding": false
},
{
- "$id": "513",
+ "$id": "568",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "508"
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -5404,7 +5996,7 @@
}
],
"response": {
- "$id": "514"
+ "$id": "569"
},
"isOverride": false,
"generateConvenient": true,
@@ -5414,12 +6006,12 @@
],
"parameters": [
{
- "$id": "515",
+ "$id": "570",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "516",
+ "$id": "571",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5433,9 +6025,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "517",
+ "$id": "572",
"type": {
- "$id": "518",
+ "$id": "573",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5448,45 +6040,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsInt",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "519",
+ "$id": "574",
"kind": "client",
"name": "CollectionsModel",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "520",
+ "$id": "575",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "521",
+ "$id": "576",
"name": "get",
"resourceName": "CollectionsModel",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "522",
+ "$id": "577",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "523",
- "kind": "constant",
- "valueType": {
- "$id": "524",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -5501,12 +6083,12 @@
],
"responses": [
{
- "$id": "525",
+ "$id": "578",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "121"
+ "$ref": "236"
},
"headers": [],
"isErrorResponse": false,
@@ -5526,11 +6108,11 @@
},
"parameters": [
{
- "$id": "526",
+ "$id": "579",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "523"
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -5544,9 +6126,9 @@
}
],
"response": {
- "$id": "527",
+ "$id": "580",
"type": {
- "$ref": "121"
+ "$ref": "236"
}
},
"isOverride": false,
@@ -5555,36 +6137,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel.get"
},
{
- "$id": "528",
+ "$id": "581",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "529",
+ "$id": "582",
"name": "put",
"resourceName": "CollectionsModel",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "530",
+ "$id": "583",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "531",
- "kind": "constant",
- "valueType": {
- "$id": "532",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -5597,12 +6169,12 @@
"skipUrlEncoding": false
},
{
- "$id": "533",
+ "$id": "584",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "121"
+ "$ref": "236"
},
"location": "Body",
"isApiVersion": false,
@@ -5617,7 +6189,7 @@
],
"responses": [
{
- "$id": "534",
+ "$id": "585",
"statusCodes": [
204
],
@@ -5639,12 +6211,12 @@
},
"parameters": [
{
- "$id": "535",
+ "$id": "586",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "121"
+ "$ref": "236"
},
"location": "Body",
"isApiVersion": false,
@@ -5657,12 +6229,12 @@
"skipUrlEncoding": false
},
{
- "$id": "536",
+ "$id": "587",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "531"
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -5676,7 +6248,7 @@
}
],
"response": {
- "$id": "537"
+ "$id": "588"
},
"isOverride": false,
"generateConvenient": true,
@@ -5686,12 +6258,12 @@
],
"parameters": [
{
- "$id": "538",
+ "$id": "589",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "539",
+ "$id": "590",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5705,9 +6277,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "540",
+ "$id": "591",
"type": {
- "$id": "541",
+ "$id": "592",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5720,45 +6292,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.CollectionsModel",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "542",
+ "$id": "593",
"kind": "client",
"name": "DictionaryString",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "543",
+ "$id": "594",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "544",
+ "$id": "595",
"name": "get",
"resourceName": "DictionaryString",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "545",
+ "$id": "596",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "546",
- "kind": "constant",
- "valueType": {
- "$id": "547",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "104"
},
"location": "Header",
"isApiVersion": false,
@@ -5773,12 +6335,12 @@
],
"responses": [
{
- "$id": "548",
+ "$id": "597",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "126"
+ "$ref": "241"
},
"headers": [],
"isErrorResponse": false,
@@ -5798,11 +6360,11 @@
},
"parameters": [
{
- "$id": "549",
+ "$id": "598",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "546"
+ "$ref": "104"
},
"location": "Header",
"isApiVersion": false,
@@ -5816,9 +6378,9 @@
}
],
"response": {
- "$id": "550",
+ "$id": "599",
"type": {
- "$ref": "126"
+ "$ref": "241"
}
},
"isOverride": false,
@@ -5827,36 +6389,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString.get"
},
{
- "$id": "551",
+ "$id": "600",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "552",
+ "$id": "601",
"name": "put",
"resourceName": "DictionaryString",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "553",
+ "$id": "602",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "554",
- "kind": "constant",
- "valueType": {
- "$id": "555",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "106"
},
"location": "Header",
"isApiVersion": false,
@@ -5869,12 +6421,12 @@
"skipUrlEncoding": false
},
{
- "$id": "556",
+ "$id": "603",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "126"
+ "$ref": "241"
},
"location": "Body",
"isApiVersion": false,
@@ -5889,7 +6441,7 @@
],
"responses": [
{
- "$id": "557",
+ "$id": "604",
"statusCodes": [
204
],
@@ -5911,12 +6463,12 @@
},
"parameters": [
{
- "$id": "558",
+ "$id": "605",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "126"
+ "$ref": "241"
},
"location": "Body",
"isApiVersion": false,
@@ -5929,12 +6481,12 @@
"skipUrlEncoding": false
},
{
- "$id": "559",
+ "$id": "606",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "554"
+ "$ref": "106"
},
"location": "Header",
"isApiVersion": false,
@@ -5948,7 +6500,7 @@
}
],
"response": {
- "$id": "560"
+ "$id": "607"
},
"isOverride": false,
"generateConvenient": true,
@@ -5958,12 +6510,12 @@
],
"parameters": [
{
- "$id": "561",
+ "$id": "608",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "562",
+ "$id": "609",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -5977,9 +6529,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "563",
+ "$id": "610",
"type": {
- "$id": "564",
+ "$id": "611",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -5992,45 +6544,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.DictionaryString",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "565",
+ "$id": "612",
"kind": "client",
"name": "Never",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "566",
+ "$id": "613",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "567",
+ "$id": "614",
"name": "get",
"resourceName": "Never",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "568",
+ "$id": "615",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "569",
- "kind": "constant",
- "valueType": {
- "$id": "570",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "108"
},
"location": "Header",
"isApiVersion": false,
@@ -6045,12 +6587,12 @@
],
"responses": [
{
- "$id": "571",
+ "$id": "616",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "133"
+ "$ref": "248"
},
"headers": [],
"isErrorResponse": false,
@@ -6070,11 +6612,11 @@
},
"parameters": [
{
- "$id": "572",
+ "$id": "617",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "569"
+ "$ref": "108"
},
"location": "Header",
"isApiVersion": false,
@@ -6088,9 +6630,9 @@
}
],
"response": {
- "$id": "573",
+ "$id": "618",
"type": {
- "$ref": "133"
+ "$ref": "248"
}
},
"isOverride": false,
@@ -6099,36 +6641,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Never.get"
},
{
- "$id": "574",
+ "$id": "619",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "575",
+ "$id": "620",
"name": "put",
"resourceName": "Never",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "576",
+ "$id": "621",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "577",
- "kind": "constant",
- "valueType": {
- "$id": "578",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "110"
},
"location": "Header",
"isApiVersion": false,
@@ -6141,12 +6673,12 @@
"skipUrlEncoding": false
},
{
- "$id": "579",
+ "$id": "622",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "133"
+ "$ref": "248"
},
"location": "Body",
"isApiVersion": false,
@@ -6161,7 +6693,7 @@
],
"responses": [
{
- "$id": "580",
+ "$id": "623",
"statusCodes": [
204
],
@@ -6183,12 +6715,12 @@
},
"parameters": [
{
- "$id": "581",
+ "$id": "624",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "133"
+ "$ref": "248"
},
"location": "Body",
"isApiVersion": false,
@@ -6201,12 +6733,12 @@
"skipUrlEncoding": false
},
{
- "$id": "582",
+ "$id": "625",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "577"
+ "$ref": "110"
},
"location": "Header",
"isApiVersion": false,
@@ -6220,7 +6752,7 @@
}
],
"response": {
- "$id": "583"
+ "$id": "626"
},
"isOverride": false,
"generateConvenient": true,
@@ -6230,12 +6762,12 @@
],
"parameters": [
{
- "$id": "584",
+ "$id": "627",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "585",
+ "$id": "628",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -6249,9 +6781,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "586",
+ "$id": "629",
"type": {
- "$id": "587",
+ "$id": "630",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6264,45 +6796,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.Never",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "588",
+ "$id": "631",
"kind": "client",
"name": "UnknownString",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "589",
+ "$id": "632",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "590",
+ "$id": "633",
"name": "get",
"resourceName": "UnknownString",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "591",
+ "$id": "634",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "592",
- "kind": "constant",
- "valueType": {
- "$id": "593",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "112"
},
"location": "Header",
"isApiVersion": false,
@@ -6317,12 +6839,12 @@
],
"responses": [
{
- "$id": "594",
+ "$id": "635",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "134"
+ "$ref": "249"
},
"headers": [],
"isErrorResponse": false,
@@ -6342,11 +6864,11 @@
},
"parameters": [
{
- "$id": "595",
+ "$id": "636",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "592"
+ "$ref": "112"
},
"location": "Header",
"isApiVersion": false,
@@ -6360,9 +6882,9 @@
}
],
"response": {
- "$id": "596",
+ "$id": "637",
"type": {
- "$ref": "134"
+ "$ref": "249"
}
},
"isOverride": false,
@@ -6371,36 +6893,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString.get"
},
{
- "$id": "597",
+ "$id": "638",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "598",
+ "$id": "639",
"name": "put",
"resourceName": "UnknownString",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "599",
+ "$id": "640",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "600",
- "kind": "constant",
- "valueType": {
- "$id": "601",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "114"
},
"location": "Header",
"isApiVersion": false,
@@ -6413,12 +6925,12 @@
"skipUrlEncoding": false
},
{
- "$id": "602",
+ "$id": "641",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "134"
+ "$ref": "249"
},
"location": "Body",
"isApiVersion": false,
@@ -6433,7 +6945,7 @@
],
"responses": [
{
- "$id": "603",
+ "$id": "642",
"statusCodes": [
204
],
@@ -6455,12 +6967,12 @@
},
"parameters": [
{
- "$id": "604",
+ "$id": "643",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "134"
+ "$ref": "249"
},
"location": "Body",
"isApiVersion": false,
@@ -6473,12 +6985,12 @@
"skipUrlEncoding": false
},
{
- "$id": "605",
+ "$id": "644",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "600"
+ "$ref": "114"
},
"location": "Header",
"isApiVersion": false,
@@ -6492,7 +7004,7 @@
}
],
"response": {
- "$id": "606"
+ "$id": "645"
},
"isOverride": false,
"generateConvenient": true,
@@ -6502,12 +7014,12 @@
],
"parameters": [
{
- "$id": "607",
+ "$id": "646",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "608",
+ "$id": "647",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -6521,9 +7033,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "609",
+ "$id": "648",
"type": {
- "$id": "610",
+ "$id": "649",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6536,45 +7048,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownString",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "611",
+ "$id": "650",
"kind": "client",
"name": "UnknownInt",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "612",
+ "$id": "651",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "613",
+ "$id": "652",
"name": "get",
"resourceName": "UnknownInt",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "614",
+ "$id": "653",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "615",
- "kind": "constant",
- "valueType": {
- "$id": "616",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "116"
},
"location": "Header",
"isApiVersion": false,
@@ -6589,12 +7091,12 @@
],
"responses": [
{
- "$id": "617",
+ "$id": "654",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "139"
+ "$ref": "254"
},
"headers": [],
"isErrorResponse": false,
@@ -6614,11 +7116,11 @@
},
"parameters": [
{
- "$id": "618",
+ "$id": "655",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "615"
+ "$ref": "116"
},
"location": "Header",
"isApiVersion": false,
@@ -6632,9 +7134,9 @@
}
],
"response": {
- "$id": "619",
+ "$id": "656",
"type": {
- "$ref": "139"
+ "$ref": "254"
}
},
"isOverride": false,
@@ -6643,36 +7145,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt.get"
},
{
- "$id": "620",
+ "$id": "657",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "621",
+ "$id": "658",
"name": "put",
"resourceName": "UnknownInt",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "622",
+ "$id": "659",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "623",
- "kind": "constant",
- "valueType": {
- "$id": "624",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "118"
},
"location": "Header",
"isApiVersion": false,
@@ -6685,12 +7177,12 @@
"skipUrlEncoding": false
},
{
- "$id": "625",
+ "$id": "660",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "139"
+ "$ref": "254"
},
"location": "Body",
"isApiVersion": false,
@@ -6705,7 +7197,7 @@
],
"responses": [
{
- "$id": "626",
+ "$id": "661",
"statusCodes": [
204
],
@@ -6727,12 +7219,12 @@
},
"parameters": [
{
- "$id": "627",
+ "$id": "662",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "139"
+ "$ref": "254"
},
"location": "Body",
"isApiVersion": false,
@@ -6745,12 +7237,12 @@
"skipUrlEncoding": false
},
{
- "$id": "628",
+ "$id": "663",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "623"
+ "$ref": "118"
},
"location": "Header",
"isApiVersion": false,
@@ -6764,7 +7256,7 @@
}
],
"response": {
- "$id": "629"
+ "$id": "664"
},
"isOverride": false,
"generateConvenient": true,
@@ -6774,12 +7266,12 @@
],
"parameters": [
{
- "$id": "630",
+ "$id": "665",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "631",
+ "$id": "666",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -6793,9 +7285,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "632",
+ "$id": "667",
"type": {
- "$id": "633",
+ "$id": "668",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -6808,45 +7300,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownInt",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "634",
+ "$id": "669",
"kind": "client",
"name": "UnknownDict",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "635",
+ "$id": "670",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "636",
+ "$id": "671",
"name": "get",
"resourceName": "UnknownDict",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "637",
+ "$id": "672",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "638",
- "kind": "constant",
- "valueType": {
- "$id": "639",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "120"
},
"location": "Header",
"isApiVersion": false,
@@ -6861,12 +7343,12 @@
],
"responses": [
{
- "$id": "640",
+ "$id": "673",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "144"
+ "$ref": "259"
},
"headers": [],
"isErrorResponse": false,
@@ -6886,11 +7368,11 @@
},
"parameters": [
{
- "$id": "641",
+ "$id": "674",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "638"
+ "$ref": "120"
},
"location": "Header",
"isApiVersion": false,
@@ -6904,9 +7386,9 @@
}
],
"response": {
- "$id": "642",
+ "$id": "675",
"type": {
- "$ref": "144"
+ "$ref": "259"
}
},
"isOverride": false,
@@ -6915,36 +7397,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict.get"
},
{
- "$id": "643",
+ "$id": "676",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "644",
+ "$id": "677",
"name": "put",
"resourceName": "UnknownDict",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "645",
+ "$id": "678",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "646",
- "kind": "constant",
- "valueType": {
- "$id": "647",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "122"
},
"location": "Header",
"isApiVersion": false,
@@ -6957,12 +7429,12 @@
"skipUrlEncoding": false
},
{
- "$id": "648",
+ "$id": "679",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "144"
+ "$ref": "259"
},
"location": "Body",
"isApiVersion": false,
@@ -6977,7 +7449,7 @@
],
"responses": [
{
- "$id": "649",
+ "$id": "680",
"statusCodes": [
204
],
@@ -6999,12 +7471,12 @@
},
"parameters": [
{
- "$id": "650",
+ "$id": "681",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "144"
+ "$ref": "259"
},
"location": "Body",
"isApiVersion": false,
@@ -7017,12 +7489,12 @@
"skipUrlEncoding": false
},
{
- "$id": "651",
+ "$id": "682",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "646"
+ "$ref": "122"
},
"location": "Header",
"isApiVersion": false,
@@ -7036,7 +7508,7 @@
}
],
"response": {
- "$id": "652"
+ "$id": "683"
},
"isOverride": false,
"generateConvenient": true,
@@ -7046,12 +7518,12 @@
],
"parameters": [
{
- "$id": "653",
+ "$id": "684",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "654",
+ "$id": "685",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7065,9 +7537,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "655",
+ "$id": "686",
"type": {
- "$id": "656",
+ "$id": "687",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7080,45 +7552,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownDict",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "657",
+ "$id": "688",
"kind": "client",
"name": "UnknownArray",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "658",
+ "$id": "689",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "659",
+ "$id": "690",
"name": "get",
"resourceName": "UnknownArray",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "660",
+ "$id": "691",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "661",
- "kind": "constant",
- "valueType": {
- "$id": "662",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "124"
},
"location": "Header",
"isApiVersion": false,
@@ -7133,12 +7595,12 @@
],
"responses": [
{
- "$id": "663",
+ "$id": "692",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "149"
+ "$ref": "264"
},
"headers": [],
"isErrorResponse": false,
@@ -7158,11 +7620,11 @@
},
"parameters": [
{
- "$id": "664",
+ "$id": "693",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "661"
+ "$ref": "124"
},
"location": "Header",
"isApiVersion": false,
@@ -7176,9 +7638,9 @@
}
],
"response": {
- "$id": "665",
+ "$id": "694",
"type": {
- "$ref": "149"
+ "$ref": "264"
}
},
"isOverride": false,
@@ -7187,36 +7649,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray.get"
},
{
- "$id": "666",
+ "$id": "695",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "667",
+ "$id": "696",
"name": "put",
"resourceName": "UnknownArray",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "668",
+ "$id": "697",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "669",
- "kind": "constant",
- "valueType": {
- "$id": "670",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "126"
},
"location": "Header",
"isApiVersion": false,
@@ -7229,12 +7681,12 @@
"skipUrlEncoding": false
},
{
- "$id": "671",
+ "$id": "698",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "149"
+ "$ref": "264"
},
"location": "Body",
"isApiVersion": false,
@@ -7249,7 +7701,7 @@
],
"responses": [
{
- "$id": "672",
+ "$id": "699",
"statusCodes": [
204
],
@@ -7271,12 +7723,12 @@
},
"parameters": [
{
- "$id": "673",
+ "$id": "700",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "149"
+ "$ref": "264"
},
"location": "Body",
"isApiVersion": false,
@@ -7289,12 +7741,12 @@
"skipUrlEncoding": false
},
{
- "$id": "674",
+ "$id": "701",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "669"
+ "$ref": "126"
},
"location": "Header",
"isApiVersion": false,
@@ -7308,7 +7760,7 @@
}
],
"response": {
- "$id": "675"
+ "$id": "702"
},
"isOverride": false,
"generateConvenient": true,
@@ -7318,12 +7770,12 @@
],
"parameters": [
{
- "$id": "676",
+ "$id": "703",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "677",
+ "$id": "704",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7337,9 +7789,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "678",
+ "$id": "705",
"type": {
- "$id": "679",
+ "$id": "706",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7352,45 +7804,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnknownArray",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "680",
+ "$id": "707",
"kind": "client",
"name": "StringLiteral",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "681",
+ "$id": "708",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "682",
+ "$id": "709",
"name": "get",
"resourceName": "StringLiteral",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "683",
+ "$id": "710",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "684",
- "kind": "constant",
- "valueType": {
- "$id": "685",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "128"
},
"location": "Header",
"isApiVersion": false,
@@ -7405,12 +7847,12 @@
],
"responses": [
{
- "$id": "686",
+ "$id": "711",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "154"
+ "$ref": "269"
},
"headers": [],
"isErrorResponse": false,
@@ -7430,11 +7872,11 @@
},
"parameters": [
{
- "$id": "687",
+ "$id": "712",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "684"
+ "$ref": "128"
},
"location": "Header",
"isApiVersion": false,
@@ -7448,9 +7890,9 @@
}
],
"response": {
- "$id": "688",
+ "$id": "713",
"type": {
- "$ref": "154"
+ "$ref": "269"
}
},
"isOverride": false,
@@ -7459,36 +7901,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral.get"
},
{
- "$id": "689",
+ "$id": "714",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "690",
+ "$id": "715",
"name": "put",
"resourceName": "StringLiteral",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "691",
+ "$id": "716",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "692",
- "kind": "constant",
- "valueType": {
- "$id": "693",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "130"
},
"location": "Header",
"isApiVersion": false,
@@ -7501,12 +7933,12 @@
"skipUrlEncoding": false
},
{
- "$id": "694",
+ "$id": "717",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "154"
+ "$ref": "269"
},
"location": "Body",
"isApiVersion": false,
@@ -7521,7 +7953,7 @@
],
"responses": [
{
- "$id": "695",
+ "$id": "718",
"statusCodes": [
204
],
@@ -7543,12 +7975,12 @@
},
"parameters": [
{
- "$id": "696",
+ "$id": "719",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "154"
+ "$ref": "269"
},
"location": "Body",
"isApiVersion": false,
@@ -7561,12 +7993,12 @@
"skipUrlEncoding": false
},
{
- "$id": "697",
+ "$id": "720",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "692"
+ "$ref": "130"
},
"location": "Header",
"isApiVersion": false,
@@ -7580,7 +8012,7 @@
}
],
"response": {
- "$id": "698"
+ "$id": "721"
},
"isOverride": false,
"generateConvenient": true,
@@ -7590,12 +8022,12 @@
],
"parameters": [
{
- "$id": "699",
+ "$id": "722",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "700",
+ "$id": "723",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7609,9 +8041,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "701",
+ "$id": "724",
"type": {
- "$id": "702",
+ "$id": "725",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7624,45 +8056,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.StringLiteral",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "703",
+ "$id": "726",
"kind": "client",
"name": "IntLiteral",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "704",
+ "$id": "727",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "705",
+ "$id": "728",
"name": "get",
"resourceName": "IntLiteral",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "706",
+ "$id": "729",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "707",
- "kind": "constant",
- "valueType": {
- "$id": "708",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "132"
},
"location": "Header",
"isApiVersion": false,
@@ -7677,12 +8099,12 @@
],
"responses": [
{
- "$id": "709",
+ "$id": "730",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "159"
+ "$ref": "273"
},
"headers": [],
"isErrorResponse": false,
@@ -7702,11 +8124,11 @@
},
"parameters": [
{
- "$id": "710",
+ "$id": "731",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "707"
+ "$ref": "132"
},
"location": "Header",
"isApiVersion": false,
@@ -7720,9 +8142,9 @@
}
],
"response": {
- "$id": "711",
+ "$id": "732",
"type": {
- "$ref": "159"
+ "$ref": "273"
}
},
"isOverride": false,
@@ -7731,36 +8153,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral.get"
},
{
- "$id": "712",
+ "$id": "733",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "713",
+ "$id": "734",
"name": "put",
"resourceName": "IntLiteral",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "714",
+ "$id": "735",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "715",
- "kind": "constant",
- "valueType": {
- "$id": "716",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "134"
},
"location": "Header",
"isApiVersion": false,
@@ -7773,12 +8185,12 @@
"skipUrlEncoding": false
},
{
- "$id": "717",
+ "$id": "736",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "159"
+ "$ref": "273"
},
"location": "Body",
"isApiVersion": false,
@@ -7793,7 +8205,7 @@
],
"responses": [
{
- "$id": "718",
+ "$id": "737",
"statusCodes": [
204
],
@@ -7815,12 +8227,12 @@
},
"parameters": [
{
- "$id": "719",
+ "$id": "738",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "159"
+ "$ref": "273"
},
"location": "Body",
"isApiVersion": false,
@@ -7833,12 +8245,12 @@
"skipUrlEncoding": false
},
{
- "$id": "720",
+ "$id": "739",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "715"
+ "$ref": "134"
},
"location": "Header",
"isApiVersion": false,
@@ -7852,7 +8264,7 @@
}
],
"response": {
- "$id": "721"
+ "$id": "740"
},
"isOverride": false,
"generateConvenient": true,
@@ -7862,12 +8274,12 @@
],
"parameters": [
{
- "$id": "722",
+ "$id": "741",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "723",
+ "$id": "742",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -7881,9 +8293,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "724",
+ "$id": "743",
"type": {
- "$id": "725",
+ "$id": "744",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -7896,45 +8308,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.IntLiteral",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "726",
+ "$id": "745",
"kind": "client",
"name": "FloatLiteral",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "727",
+ "$id": "746",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "728",
+ "$id": "747",
"name": "get",
"resourceName": "FloatLiteral",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "729",
+ "$id": "748",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "730",
- "kind": "constant",
- "valueType": {
- "$id": "731",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "136"
},
"location": "Header",
"isApiVersion": false,
@@ -7949,12 +8351,12 @@
],
"responses": [
{
- "$id": "732",
+ "$id": "749",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "164"
+ "$ref": "277"
},
"headers": [],
"isErrorResponse": false,
@@ -7974,11 +8376,11 @@
},
"parameters": [
{
- "$id": "733",
+ "$id": "750",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "730"
+ "$ref": "136"
},
"location": "Header",
"isApiVersion": false,
@@ -7992,9 +8394,9 @@
}
],
"response": {
- "$id": "734",
+ "$id": "751",
"type": {
- "$ref": "164"
+ "$ref": "277"
}
},
"isOverride": false,
@@ -8003,36 +8405,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral.get"
},
{
- "$id": "735",
+ "$id": "752",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "736",
+ "$id": "753",
"name": "put",
"resourceName": "FloatLiteral",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "737",
+ "$id": "754",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "738",
- "kind": "constant",
- "valueType": {
- "$id": "739",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "138"
},
"location": "Header",
"isApiVersion": false,
@@ -8045,12 +8437,12 @@
"skipUrlEncoding": false
},
{
- "$id": "740",
+ "$id": "755",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "164"
+ "$ref": "277"
},
"location": "Body",
"isApiVersion": false,
@@ -8065,7 +8457,7 @@
],
"responses": [
{
- "$id": "741",
+ "$id": "756",
"statusCodes": [
204
],
@@ -8087,12 +8479,12 @@
},
"parameters": [
{
- "$id": "742",
+ "$id": "757",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "164"
+ "$ref": "277"
},
"location": "Body",
"isApiVersion": false,
@@ -8105,12 +8497,12 @@
"skipUrlEncoding": false
},
{
- "$id": "743",
+ "$id": "758",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "738"
+ "$ref": "138"
},
"location": "Header",
"isApiVersion": false,
@@ -8124,7 +8516,7 @@
}
],
"response": {
- "$id": "744"
+ "$id": "759"
},
"isOverride": false,
"generateConvenient": true,
@@ -8134,12 +8526,12 @@
],
"parameters": [
{
- "$id": "745",
+ "$id": "760",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "746",
+ "$id": "761",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8153,9 +8545,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "747",
+ "$id": "762",
"type": {
- "$id": "748",
+ "$id": "763",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8168,45 +8560,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.FloatLiteral",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "749",
+ "$id": "764",
"kind": "client",
"name": "BooleanLiteral",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "750",
+ "$id": "765",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "751",
+ "$id": "766",
"name": "get",
"resourceName": "BooleanLiteral",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "752",
+ "$id": "767",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "753",
- "kind": "constant",
- "valueType": {
- "$id": "754",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "140"
},
"location": "Header",
"isApiVersion": false,
@@ -8221,12 +8603,12 @@
],
"responses": [
{
- "$id": "755",
+ "$id": "768",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "169"
+ "$ref": "281"
},
"headers": [],
"isErrorResponse": false,
@@ -8246,11 +8628,11 @@
},
"parameters": [
{
- "$id": "756",
+ "$id": "769",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "753"
+ "$ref": "140"
},
"location": "Header",
"isApiVersion": false,
@@ -8264,9 +8646,9 @@
}
],
"response": {
- "$id": "757",
+ "$id": "770",
"type": {
- "$ref": "169"
+ "$ref": "281"
}
},
"isOverride": false,
@@ -8275,36 +8657,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral.get"
},
{
- "$id": "758",
+ "$id": "771",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "759",
+ "$id": "772",
"name": "put",
"resourceName": "BooleanLiteral",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "760",
+ "$id": "773",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "761",
- "kind": "constant",
- "valueType": {
- "$id": "762",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "142"
},
"location": "Header",
"isApiVersion": false,
@@ -8317,12 +8689,12 @@
"skipUrlEncoding": false
},
{
- "$id": "763",
+ "$id": "774",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "169"
+ "$ref": "281"
},
"location": "Body",
"isApiVersion": false,
@@ -8337,7 +8709,7 @@
],
"responses": [
{
- "$id": "764",
+ "$id": "775",
"statusCodes": [
204
],
@@ -8359,12 +8731,12 @@
},
"parameters": [
{
- "$id": "765",
+ "$id": "776",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "169"
+ "$ref": "281"
},
"location": "Body",
"isApiVersion": false,
@@ -8377,12 +8749,12 @@
"skipUrlEncoding": false
},
{
- "$id": "766",
+ "$id": "777",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "761"
+ "$ref": "142"
},
"location": "Header",
"isApiVersion": false,
@@ -8396,7 +8768,7 @@
}
],
"response": {
- "$id": "767"
+ "$id": "778"
},
"isOverride": false,
"generateConvenient": true,
@@ -8406,12 +8778,12 @@
],
"parameters": [
{
- "$id": "768",
+ "$id": "779",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "769",
+ "$id": "780",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8425,9 +8797,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "770",
+ "$id": "781",
"type": {
- "$id": "771",
+ "$id": "782",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8440,45 +8812,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.BooleanLiteral",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "772",
+ "$id": "783",
"kind": "client",
"name": "UnionStringLiteral",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "773",
+ "$id": "784",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "774",
+ "$id": "785",
"name": "get",
"resourceName": "UnionStringLiteral",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "775",
+ "$id": "786",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "776",
- "kind": "constant",
- "valueType": {
- "$id": "777",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "144"
},
"location": "Header",
"isApiVersion": false,
@@ -8493,12 +8855,12 @@
],
"responses": [
{
- "$id": "778",
+ "$id": "787",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "175"
+ "$ref": "285"
},
"headers": [],
"isErrorResponse": false,
@@ -8518,11 +8880,11 @@
},
"parameters": [
{
- "$id": "779",
+ "$id": "788",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "776"
+ "$ref": "144"
},
"location": "Header",
"isApiVersion": false,
@@ -8536,9 +8898,9 @@
}
],
"response": {
- "$id": "780",
+ "$id": "789",
"type": {
- "$ref": "175"
+ "$ref": "285"
}
},
"isOverride": false,
@@ -8547,36 +8909,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral.get"
},
{
- "$id": "781",
+ "$id": "790",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "782",
+ "$id": "791",
"name": "put",
"resourceName": "UnionStringLiteral",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "783",
+ "$id": "792",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "784",
- "kind": "constant",
- "valueType": {
- "$id": "785",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "146"
},
"location": "Header",
"isApiVersion": false,
@@ -8589,12 +8941,12 @@
"skipUrlEncoding": false
},
{
- "$id": "786",
+ "$id": "793",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "175"
+ "$ref": "285"
},
"location": "Body",
"isApiVersion": false,
@@ -8609,7 +8961,7 @@
],
"responses": [
{
- "$id": "787",
+ "$id": "794",
"statusCodes": [
204
],
@@ -8631,12 +8983,12 @@
},
"parameters": [
{
- "$id": "788",
+ "$id": "795",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "175"
+ "$ref": "285"
},
"location": "Body",
"isApiVersion": false,
@@ -8649,12 +9001,12 @@
"skipUrlEncoding": false
},
{
- "$id": "789",
+ "$id": "796",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "784"
+ "$ref": "146"
},
"location": "Header",
"isApiVersion": false,
@@ -8668,7 +9020,7 @@
}
],
"response": {
- "$id": "790"
+ "$id": "797"
},
"isOverride": false,
"generateConvenient": true,
@@ -8678,12 +9030,12 @@
],
"parameters": [
{
- "$id": "791",
+ "$id": "798",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "792",
+ "$id": "799",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8697,9 +9049,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "793",
+ "$id": "800",
"type": {
- "$id": "794",
+ "$id": "801",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8712,45 +9064,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionStringLiteral",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "795",
+ "$id": "802",
"kind": "client",
"name": "UnionIntLiteral",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "796",
+ "$id": "803",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "797",
+ "$id": "804",
"name": "get",
"resourceName": "UnionIntLiteral",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "798",
+ "$id": "805",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "799",
- "kind": "constant",
- "valueType": {
- "$id": "800",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "148"
},
"location": "Header",
"isApiVersion": false,
@@ -8765,12 +9107,12 @@
],
"responses": [
{
- "$id": "801",
+ "$id": "806",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "179"
+ "$ref": "289"
},
"headers": [],
"isErrorResponse": false,
@@ -8790,11 +9132,11 @@
},
"parameters": [
{
- "$id": "802",
+ "$id": "807",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "799"
+ "$ref": "148"
},
"location": "Header",
"isApiVersion": false,
@@ -8808,9 +9150,9 @@
}
],
"response": {
- "$id": "803",
+ "$id": "808",
"type": {
- "$ref": "179"
+ "$ref": "289"
}
},
"isOverride": false,
@@ -8819,36 +9161,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral.get"
},
{
- "$id": "804",
+ "$id": "809",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "805",
+ "$id": "810",
"name": "put",
"resourceName": "UnionIntLiteral",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "806",
+ "$id": "811",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "807",
- "kind": "constant",
- "valueType": {
- "$id": "808",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "150"
},
"location": "Header",
"isApiVersion": false,
@@ -8861,12 +9193,12 @@
"skipUrlEncoding": false
},
{
- "$id": "809",
+ "$id": "812",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "179"
+ "$ref": "289"
},
"location": "Body",
"isApiVersion": false,
@@ -8881,7 +9213,7 @@
],
"responses": [
{
- "$id": "810",
+ "$id": "813",
"statusCodes": [
204
],
@@ -8903,12 +9235,12 @@
},
"parameters": [
{
- "$id": "811",
+ "$id": "814",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "179"
+ "$ref": "289"
},
"location": "Body",
"isApiVersion": false,
@@ -8921,12 +9253,12 @@
"skipUrlEncoding": false
},
{
- "$id": "812",
+ "$id": "815",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "807"
+ "$ref": "150"
},
"location": "Header",
"isApiVersion": false,
@@ -8940,7 +9272,7 @@
}
],
"response": {
- "$id": "813"
+ "$id": "816"
},
"isOverride": false,
"generateConvenient": true,
@@ -8950,12 +9282,12 @@
],
"parameters": [
{
- "$id": "814",
+ "$id": "817",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "815",
+ "$id": "818",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -8969,9 +9301,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "816",
+ "$id": "819",
"type": {
- "$id": "817",
+ "$id": "820",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -8984,45 +9316,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionIntLiteral",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "818",
+ "$id": "821",
"kind": "client",
"name": "UnionFloatLiteral",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "819",
+ "$id": "822",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "820",
+ "$id": "823",
"name": "get",
"resourceName": "UnionFloatLiteral",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "821",
+ "$id": "824",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "822",
- "kind": "constant",
- "valueType": {
- "$id": "823",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "152"
},
"location": "Header",
"isApiVersion": false,
@@ -9037,12 +9359,12 @@
],
"responses": [
{
- "$id": "824",
+ "$id": "825",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "183"
+ "$ref": "293"
},
"headers": [],
"isErrorResponse": false,
@@ -9062,11 +9384,11 @@
},
"parameters": [
{
- "$id": "825",
+ "$id": "826",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "822"
+ "$ref": "152"
},
"location": "Header",
"isApiVersion": false,
@@ -9080,9 +9402,9 @@
}
],
"response": {
- "$id": "826",
+ "$id": "827",
"type": {
- "$ref": "183"
+ "$ref": "293"
}
},
"isOverride": false,
@@ -9091,36 +9413,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral.get"
},
{
- "$id": "827",
+ "$id": "828",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "828",
+ "$id": "829",
"name": "put",
"resourceName": "UnionFloatLiteral",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "829",
+ "$id": "830",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "830",
- "kind": "constant",
- "valueType": {
- "$id": "831",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "154"
},
"location": "Header",
"isApiVersion": false,
@@ -9133,12 +9445,12 @@
"skipUrlEncoding": false
},
{
- "$id": "832",
+ "$id": "831",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "183"
+ "$ref": "293"
},
"location": "Body",
"isApiVersion": false,
@@ -9153,7 +9465,7 @@
],
"responses": [
{
- "$id": "833",
+ "$id": "832",
"statusCodes": [
204
],
@@ -9175,12 +9487,12 @@
},
"parameters": [
{
- "$id": "834",
+ "$id": "833",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "183"
+ "$ref": "293"
},
"location": "Body",
"isApiVersion": false,
@@ -9193,12 +9505,12 @@
"skipUrlEncoding": false
},
{
- "$id": "835",
+ "$id": "834",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "830"
+ "$ref": "154"
},
"location": "Header",
"isApiVersion": false,
@@ -9212,7 +9524,7 @@
}
],
"response": {
- "$id": "836"
+ "$id": "835"
},
"isOverride": false,
"generateConvenient": true,
@@ -9222,12 +9534,12 @@
],
"parameters": [
{
- "$id": "837",
+ "$id": "836",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "838",
+ "$id": "837",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -9241,9 +9553,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "839",
+ "$id": "838",
"type": {
- "$id": "840",
+ "$id": "839",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9256,45 +9568,35 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionFloatLiteral",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
},
{
- "$id": "841",
+ "$id": "840",
"kind": "client",
"name": "UnionEnumValue",
"namespace": "Type.Property.ValueTypes",
"methods": [
{
- "$id": "842",
+ "$id": "841",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "Get call",
"operation": {
- "$id": "843",
+ "$id": "842",
"name": "get",
"resourceName": "UnionEnumValue",
"doc": "Get call",
"accessibility": "public",
"parameters": [
{
- "$id": "844",
+ "$id": "843",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "845",
- "kind": "constant",
- "valueType": {
- "$id": "846",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "156"
},
"location": "Header",
"isApiVersion": false,
@@ -9309,12 +9611,12 @@
],
"responses": [
{
- "$id": "847",
+ "$id": "844",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "187"
+ "$ref": "297"
},
"headers": [],
"isErrorResponse": false,
@@ -9334,11 +9636,11 @@
},
"parameters": [
{
- "$id": "848",
+ "$id": "845",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "845"
+ "$ref": "156"
},
"location": "Header",
"isApiVersion": false,
@@ -9352,9 +9654,9 @@
}
],
"response": {
- "$id": "849",
+ "$id": "846",
"type": {
- "$ref": "187"
+ "$ref": "297"
}
},
"isOverride": false,
@@ -9363,36 +9665,26 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue.get"
},
{
- "$id": "850",
+ "$id": "847",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "Put operation",
"operation": {
- "$id": "851",
+ "$id": "848",
"name": "put",
"resourceName": "UnionEnumValue",
"doc": "Put operation",
"accessibility": "public",
"parameters": [
{
- "$id": "852",
+ "$id": "849",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "853",
- "kind": "constant",
- "valueType": {
- "$id": "854",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "158"
},
"location": "Header",
"isApiVersion": false,
@@ -9405,12 +9697,12 @@
"skipUrlEncoding": false
},
{
- "$id": "855",
+ "$id": "850",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "187"
+ "$ref": "297"
},
"location": "Body",
"isApiVersion": false,
@@ -9425,7 +9717,7 @@
],
"responses": [
{
- "$id": "856",
+ "$id": "851",
"statusCodes": [
204
],
@@ -9447,12 +9739,12 @@
},
"parameters": [
{
- "$id": "857",
+ "$id": "852",
"name": "body",
"nameInRequest": "body",
"doc": "body",
"type": {
- "$ref": "187"
+ "$ref": "297"
},
"location": "Body",
"isApiVersion": false,
@@ -9465,12 +9757,12 @@
"skipUrlEncoding": false
},
{
- "$id": "858",
+ "$id": "853",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "853"
+ "$ref": "158"
},
"location": "Header",
"isApiVersion": false,
@@ -9484,7 +9776,7 @@
}
],
"response": {
- "$id": "859"
+ "$id": "854"
},
"isOverride": false,
"generateConvenient": true,
@@ -9494,12 +9786,12 @@
],
"parameters": [
{
- "$id": "860",
+ "$id": "855",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "861",
+ "$id": "856",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -9513,9 +9805,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "862",
+ "$id": "857",
"type": {
- "$id": "863",
+ "$id": "858",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -9528,7 +9820,7 @@
"crossLanguageDefinitionId": "Type.Property.ValueTypes.UnionEnumValue",
"apiVersions": [],
"parent": {
- "$ref": "192"
+ "$ref": "303"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/src/Type.Scalar.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/src/Type.Scalar.csproj
index d37f59cdcf03..4770ecdd179c 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/src/Type.Scalar.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/scalar/src/Type.Scalar.csproj
@@ -17,6 +17,7 @@
+
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 b1b1e156f06e..fee39b0d3e60 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
@@ -3,22 +3,440 @@
"name": "Type.Scalar",
"apiVersions": [],
"enums": [],
+ "constants": [
+ {
+ "$id": "2",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "3",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "4",
+ "kind": "constant",
+ "name": "GetResponseContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "5",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "6",
+ "kind": "constant",
+ "name": "GetResponseContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "7",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "8",
+ "kind": "constant",
+ "name": "GetResponseContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "9",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "10",
+ "kind": "constant",
+ "name": "getContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "11",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "12",
+ "kind": "constant",
+ "name": "GetResponseContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "13",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "14",
+ "kind": "constant",
+ "name": "GetResponseContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "15",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "16",
+ "kind": "constant",
+ "name": "GetResponseContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "17",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "18",
+ "kind": "constant",
+ "name": "getContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "19",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "20",
+ "kind": "constant",
+ "name": "GetResponseContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "21",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "22",
+ "kind": "constant",
+ "name": "GetResponseContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "23",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "24",
+ "kind": "constant",
+ "name": "GetResponseContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "25",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "26",
+ "kind": "constant",
+ "name": "responseBodyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "27",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "28",
+ "kind": "constant",
+ "name": "GetResponseContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "29",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "30",
+ "kind": "constant",
+ "name": "GetResponseContentType10",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "31",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "32",
+ "kind": "constant",
+ "name": "GetResponseContentType11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "33",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "34",
+ "kind": "constant",
+ "name": "responseBodyContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "35",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "36",
+ "kind": "constant",
+ "name": "GetResponseContentType12",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "37",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "38",
+ "kind": "constant",
+ "name": "GetResponseContentType13",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "39",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "40",
+ "kind": "constant",
+ "name": "GetResponseContentType14",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "41",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "42",
+ "kind": "constant",
+ "name": "prepareVerifyContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "43",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "44",
+ "kind": "constant",
+ "name": "GetResponseContentType15",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "45",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "46",
+ "kind": "constant",
+ "name": "GetResponseContentType16",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "47",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "48",
+ "kind": "constant",
+ "name": "prepareVerifyContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "49",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "50",
+ "kind": "constant",
+ "name": "GetResponseContentType17",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "51",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "52",
+ "kind": "constant",
+ "name": "GetResponseContentType18",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "53",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
"models": [],
"clients": [
{
- "$id": "2",
+ "$id": "54",
"kind": "client",
"name": "ScalarClient",
"namespace": "Type.Scalar",
"methods": [],
"parameters": [
{
- "$id": "3",
+ "$id": "55",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "4",
+ "$id": "56",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -32,9 +450,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "5",
+ "$id": "57",
"type": {
- "$id": "6",
+ "$id": "58",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -48,41 +466,31 @@
"apiVersions": [],
"children": [
{
- "$id": "7",
+ "$id": "59",
"kind": "client",
"name": "String",
"namespace": "Type.Scalar",
"methods": [
{
- "$id": "8",
+ "$id": "60",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "get string value",
"operation": {
- "$id": "9",
+ "$id": "61",
"name": "get",
"resourceName": "String",
"doc": "get string value",
"accessibility": "public",
"parameters": [
{
- "$id": "10",
+ "$id": "62",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "11",
- "kind": "constant",
- "valueType": {
- "$id": "12",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -97,12 +505,12 @@
],
"responses": [
{
- "$id": "13",
+ "$id": "63",
"statusCodes": [
200
],
"bodyType": {
- "$id": "14",
+ "$id": "64",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -110,21 +518,11 @@
},
"headers": [
{
- "$id": "15",
+ "$id": "65",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "16",
- "kind": "constant",
- "valueType": {
- "$id": "17",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "4"
}
}
],
@@ -145,11 +543,11 @@
},
"parameters": [
{
- "$id": "18",
+ "$id": "66",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "11"
+ "$ref": "2"
},
"location": "Header",
"isApiVersion": false,
@@ -163,9 +561,9 @@
}
],
"response": {
- "$id": "19",
+ "$id": "67",
"type": {
- "$ref": "14"
+ "$ref": "64"
}
},
"isOverride": false,
@@ -174,35 +572,25 @@
"crossLanguageDefinitionId": "Type.Scalar.String.get"
},
{
- "$id": "20",
+ "$id": "68",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "put string value",
"operation": {
- "$id": "21",
+ "$id": "69",
"name": "put",
"resourceName": "String",
"doc": "put string value",
"accessibility": "public",
"parameters": [
{
- "$id": "22",
+ "$id": "70",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "23",
- "kind": "constant",
- "valueType": {
- "$id": "24",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "6"
},
"location": "Header",
"isApiVersion": false,
@@ -215,12 +603,12 @@
"skipUrlEncoding": false
},
{
- "$id": "25",
+ "$id": "71",
"name": "body",
"nameInRequest": "body",
"doc": "_",
"type": {
- "$id": "26",
+ "$id": "72",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -239,7 +627,7 @@
],
"responses": [
{
- "$id": "27",
+ "$id": "73",
"statusCodes": [
204
],
@@ -261,21 +649,11 @@
},
"parameters": [
{
- "$id": "28",
+ "$id": "74",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "29",
- "kind": "constant",
- "valueType": {
- "$id": "30",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "8"
},
"location": "Header",
"isApiVersion": false,
@@ -288,12 +666,12 @@
"skipUrlEncoding": false
},
{
- "$id": "31",
+ "$id": "75",
"name": "body",
"nameInRequest": "body",
"doc": "_",
"type": {
- "$id": "32",
+ "$id": "76",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -311,7 +689,7 @@
}
],
"response": {
- "$id": "33"
+ "$id": "77"
},
"isOverride": false,
"generateConvenient": true,
@@ -321,12 +699,12 @@
],
"parameters": [
{
- "$id": "34",
+ "$id": "78",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "35",
+ "$id": "79",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -340,9 +718,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "36",
+ "$id": "80",
"type": {
- "$id": "37",
+ "$id": "81",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -355,45 +733,35 @@
"crossLanguageDefinitionId": "Type.Scalar.String",
"apiVersions": [],
"parent": {
- "$ref": "2"
+ "$ref": "54"
}
},
{
- "$id": "38",
+ "$id": "82",
"kind": "client",
"name": "Boolean",
"namespace": "Type.Scalar",
"methods": [
{
- "$id": "39",
+ "$id": "83",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "get boolean value",
"operation": {
- "$id": "40",
+ "$id": "84",
"name": "get",
"resourceName": "Boolean",
"doc": "get boolean value",
"accessibility": "public",
"parameters": [
{
- "$id": "41",
+ "$id": "85",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "42",
- "kind": "constant",
- "valueType": {
- "$id": "43",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -408,12 +776,12 @@
],
"responses": [
{
- "$id": "44",
+ "$id": "86",
"statusCodes": [
200
],
"bodyType": {
- "$id": "45",
+ "$id": "87",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -421,21 +789,11 @@
},
"headers": [
{
- "$id": "46",
+ "$id": "88",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "47",
- "kind": "constant",
- "valueType": {
- "$id": "48",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "12"
}
}
],
@@ -456,11 +814,11 @@
},
"parameters": [
{
- "$id": "49",
+ "$id": "89",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "42"
+ "$ref": "10"
},
"location": "Header",
"isApiVersion": false,
@@ -474,9 +832,9 @@
}
],
"response": {
- "$id": "50",
+ "$id": "90",
"type": {
- "$ref": "45"
+ "$ref": "87"
}
},
"isOverride": false,
@@ -485,35 +843,25 @@
"crossLanguageDefinitionId": "Type.Scalar.Boolean.get"
},
{
- "$id": "51",
+ "$id": "91",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "put boolean value",
"operation": {
- "$id": "52",
+ "$id": "92",
"name": "put",
"resourceName": "Boolean",
"doc": "put boolean value",
"accessibility": "public",
"parameters": [
{
- "$id": "53",
+ "$id": "93",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "54",
- "kind": "constant",
- "valueType": {
- "$id": "55",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "14"
},
"location": "Header",
"isApiVersion": false,
@@ -526,12 +874,12 @@
"skipUrlEncoding": false
},
{
- "$id": "56",
+ "$id": "94",
"name": "body",
"nameInRequest": "body",
"doc": "_",
"type": {
- "$id": "57",
+ "$id": "95",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -550,7 +898,7 @@
],
"responses": [
{
- "$id": "58",
+ "$id": "96",
"statusCodes": [
204
],
@@ -572,21 +920,11 @@
},
"parameters": [
{
- "$id": "59",
+ "$id": "97",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "60",
- "kind": "constant",
- "valueType": {
- "$id": "61",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "16"
},
"location": "Header",
"isApiVersion": false,
@@ -599,12 +937,12 @@
"skipUrlEncoding": false
},
{
- "$id": "62",
+ "$id": "98",
"name": "body",
"nameInRequest": "body",
"doc": "_",
"type": {
- "$id": "63",
+ "$id": "99",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -622,7 +960,7 @@
}
],
"response": {
- "$id": "64"
+ "$id": "100"
},
"isOverride": false,
"generateConvenient": true,
@@ -632,12 +970,12 @@
],
"parameters": [
{
- "$id": "65",
+ "$id": "101",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "66",
+ "$id": "102",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -651,9 +989,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "67",
+ "$id": "103",
"type": {
- "$id": "68",
+ "$id": "104",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -666,45 +1004,35 @@
"crossLanguageDefinitionId": "Type.Scalar.Boolean",
"apiVersions": [],
"parent": {
- "$ref": "2"
+ "$ref": "54"
}
},
{
- "$id": "69",
+ "$id": "105",
"kind": "client",
"name": "Unknown",
"namespace": "Type.Scalar",
"methods": [
{
- "$id": "70",
+ "$id": "106",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"doc": "get unknown value",
"operation": {
- "$id": "71",
+ "$id": "107",
"name": "get",
"resourceName": "Unknown",
"doc": "get unknown value",
"accessibility": "public",
"parameters": [
{
- "$id": "72",
+ "$id": "108",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "73",
- "kind": "constant",
- "valueType": {
- "$id": "74",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -719,12 +1047,12 @@
],
"responses": [
{
- "$id": "75",
+ "$id": "109",
"statusCodes": [
200
],
"bodyType": {
- "$id": "76",
+ "$id": "110",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -732,21 +1060,11 @@
},
"headers": [
{
- "$id": "77",
+ "$id": "111",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "78",
- "kind": "constant",
- "valueType": {
- "$id": "79",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "20"
}
}
],
@@ -767,11 +1085,11 @@
},
"parameters": [
{
- "$id": "80",
+ "$id": "112",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "73"
+ "$ref": "18"
},
"location": "Header",
"isApiVersion": false,
@@ -785,9 +1103,9 @@
}
],
"response": {
- "$id": "81",
+ "$id": "113",
"type": {
- "$ref": "76"
+ "$ref": "110"
}
},
"isOverride": false,
@@ -796,35 +1114,25 @@
"crossLanguageDefinitionId": "Type.Scalar.Unknown.get"
},
{
- "$id": "82",
+ "$id": "114",
"kind": "basic",
"name": "put",
"accessibility": "public",
"apiVersions": [],
"doc": "put unknown value",
"operation": {
- "$id": "83",
+ "$id": "115",
"name": "put",
"resourceName": "Unknown",
"doc": "put unknown value",
"accessibility": "public",
"parameters": [
{
- "$id": "84",
+ "$id": "116",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "85",
- "kind": "constant",
- "valueType": {
- "$id": "86",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "22"
},
"location": "Header",
"isApiVersion": false,
@@ -837,12 +1145,12 @@
"skipUrlEncoding": false
},
{
- "$id": "87",
+ "$id": "117",
"name": "body",
"nameInRequest": "body",
"doc": "_",
"type": {
- "$id": "88",
+ "$id": "118",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -861,7 +1169,7 @@
],
"responses": [
{
- "$id": "89",
+ "$id": "119",
"statusCodes": [
204
],
@@ -883,21 +1191,11 @@
},
"parameters": [
{
- "$id": "90",
+ "$id": "120",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "91",
- "kind": "constant",
- "valueType": {
- "$id": "92",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "24"
},
"location": "Header",
"isApiVersion": false,
@@ -910,12 +1208,12 @@
"skipUrlEncoding": false
},
{
- "$id": "93",
+ "$id": "121",
"name": "body",
"nameInRequest": "body",
"doc": "_",
"type": {
- "$id": "94",
+ "$id": "122",
"kind": "unknown",
"name": "unknown",
"crossLanguageDefinitionId": "",
@@ -933,7 +1231,7 @@
}
],
"response": {
- "$id": "95"
+ "$id": "123"
},
"isOverride": false,
"generateConvenient": true,
@@ -943,12 +1241,12 @@
],
"parameters": [
{
- "$id": "96",
+ "$id": "124",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "97",
+ "$id": "125",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -962,9 +1260,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "98",
+ "$id": "126",
"type": {
- "$id": "99",
+ "$id": "127",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -977,44 +1275,34 @@
"crossLanguageDefinitionId": "Type.Scalar.Unknown",
"apiVersions": [],
"parent": {
- "$ref": "2"
+ "$ref": "54"
}
},
{
- "$id": "100",
+ "$id": "128",
"kind": "client",
"name": "DecimalType",
"namespace": "Type.Scalar",
"doc": "Decimal type",
"methods": [
{
- "$id": "101",
+ "$id": "129",
"kind": "basic",
"name": "responseBody",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "102",
+ "$id": "130",
"name": "responseBody",
"resourceName": "DecimalType",
"accessibility": "public",
"parameters": [
{
- "$id": "103",
+ "$id": "131",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "104",
- "kind": "constant",
- "valueType": {
- "$id": "105",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -1029,12 +1317,12 @@
],
"responses": [
{
- "$id": "106",
+ "$id": "132",
"statusCodes": [
200
],
"bodyType": {
- "$id": "107",
+ "$id": "133",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -1042,21 +1330,11 @@
},
"headers": [
{
- "$id": "108",
+ "$id": "134",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "109",
- "kind": "constant",
- "valueType": {
- "$id": "110",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "28"
}
}
],
@@ -1077,11 +1355,11 @@
},
"parameters": [
{
- "$id": "111",
+ "$id": "135",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "104"
+ "$ref": "26"
},
"location": "Header",
"isApiVersion": false,
@@ -1095,9 +1373,9 @@
}
],
"response": {
- "$id": "112",
+ "$id": "136",
"type": {
- "$ref": "107"
+ "$ref": "133"
}
},
"isOverride": false,
@@ -1106,33 +1384,23 @@
"crossLanguageDefinitionId": "Type.Scalar.DecimalType.responseBody"
},
{
- "$id": "113",
+ "$id": "137",
"kind": "basic",
"name": "requestBody",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "114",
+ "$id": "138",
"name": "requestBody",
"resourceName": "DecimalType",
"accessibility": "public",
"parameters": [
{
- "$id": "115",
+ "$id": "139",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "116",
- "kind": "constant",
- "valueType": {
- "$id": "117",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "30"
},
"location": "Header",
"isApiVersion": false,
@@ -1145,11 +1413,11 @@
"skipUrlEncoding": false
},
{
- "$id": "118",
+ "$id": "140",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "119",
+ "$id": "141",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -1168,7 +1436,7 @@
],
"responses": [
{
- "$id": "120",
+ "$id": "142",
"statusCodes": [
204
],
@@ -1190,21 +1458,11 @@
},
"parameters": [
{
- "$id": "121",
+ "$id": "143",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "122",
- "kind": "constant",
- "valueType": {
- "$id": "123",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "32"
},
"location": "Header",
"isApiVersion": false,
@@ -1217,11 +1475,11 @@
"skipUrlEncoding": false
},
{
- "$id": "124",
+ "$id": "144",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "125",
+ "$id": "145",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -1239,7 +1497,7 @@
}
],
"response": {
- "$id": "126"
+ "$id": "146"
},
"isOverride": false,
"generateConvenient": true,
@@ -1247,23 +1505,23 @@
"crossLanguageDefinitionId": "Type.Scalar.DecimalType.requestBody"
},
{
- "$id": "127",
+ "$id": "147",
"kind": "basic",
"name": "requestParameter",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "128",
+ "$id": "148",
"name": "requestParameter",
"resourceName": "DecimalType",
"accessibility": "public",
"parameters": [
{
- "$id": "129",
+ "$id": "149",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "130",
+ "$id": "150",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -1282,7 +1540,7 @@
],
"responses": [
{
- "$id": "131",
+ "$id": "151",
"statusCodes": [
204
],
@@ -1301,11 +1559,11 @@
},
"parameters": [
{
- "$id": "132",
+ "$id": "152",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "133",
+ "$id": "153",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -1323,7 +1581,7 @@
}
],
"response": {
- "$id": "134"
+ "$id": "154"
},
"isOverride": false,
"generateConvenient": true,
@@ -1333,12 +1591,12 @@
],
"parameters": [
{
- "$id": "135",
+ "$id": "155",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "136",
+ "$id": "156",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1352,9 +1610,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "137",
+ "$id": "157",
"type": {
- "$id": "138",
+ "$id": "158",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1367,44 +1625,34 @@
"crossLanguageDefinitionId": "Type.Scalar.DecimalType",
"apiVersions": [],
"parent": {
- "$ref": "2"
+ "$ref": "54"
}
},
{
- "$id": "139",
+ "$id": "159",
"kind": "client",
"name": "Decimal128Type",
"namespace": "Type.Scalar",
"doc": "Decimal128 type",
"methods": [
{
- "$id": "140",
+ "$id": "160",
"kind": "basic",
"name": "responseBody",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "141",
+ "$id": "161",
"name": "responseBody",
"resourceName": "Decimal128Type",
"accessibility": "public",
"parameters": [
{
- "$id": "142",
+ "$id": "162",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "143",
- "kind": "constant",
- "valueType": {
- "$id": "144",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -1419,12 +1667,12 @@
],
"responses": [
{
- "$id": "145",
+ "$id": "163",
"statusCodes": [
200
],
"bodyType": {
- "$id": "146",
+ "$id": "164",
"kind": "decimal128",
"name": "decimal128",
"crossLanguageDefinitionId": "TypeSpec.decimal128",
@@ -1432,21 +1680,11 @@
},
"headers": [
{
- "$id": "147",
+ "$id": "165",
"name": "contentType",
"nameInResponse": "content-type",
"type": {
- "$id": "148",
- "kind": "constant",
- "valueType": {
- "$id": "149",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "36"
}
}
],
@@ -1467,11 +1705,11 @@
},
"parameters": [
{
- "$id": "150",
+ "$id": "166",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "143"
+ "$ref": "34"
},
"location": "Header",
"isApiVersion": false,
@@ -1485,9 +1723,9 @@
}
],
"response": {
- "$id": "151",
+ "$id": "167",
"type": {
- "$ref": "146"
+ "$ref": "164"
}
},
"isOverride": false,
@@ -1496,33 +1734,23 @@
"crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.responseBody"
},
{
- "$id": "152",
+ "$id": "168",
"kind": "basic",
"name": "requestBody",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "153",
+ "$id": "169",
"name": "requestBody",
"resourceName": "Decimal128Type",
"accessibility": "public",
"parameters": [
{
- "$id": "154",
+ "$id": "170",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "155",
- "kind": "constant",
- "valueType": {
- "$id": "156",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "38"
},
"location": "Header",
"isApiVersion": false,
@@ -1535,11 +1763,11 @@
"skipUrlEncoding": false
},
{
- "$id": "157",
+ "$id": "171",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "158",
+ "$id": "172",
"kind": "decimal128",
"name": "decimal128",
"crossLanguageDefinitionId": "TypeSpec.decimal128",
@@ -1558,7 +1786,7 @@
],
"responses": [
{
- "$id": "159",
+ "$id": "173",
"statusCodes": [
204
],
@@ -1580,21 +1808,11 @@
},
"parameters": [
{
- "$id": "160",
+ "$id": "174",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "161",
- "kind": "constant",
- "valueType": {
- "$id": "162",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "40"
},
"location": "Header",
"isApiVersion": false,
@@ -1607,11 +1825,11 @@
"skipUrlEncoding": false
},
{
- "$id": "163",
+ "$id": "175",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "164",
+ "$id": "176",
"kind": "decimal128",
"name": "decimal128",
"crossLanguageDefinitionId": "TypeSpec.decimal128",
@@ -1629,7 +1847,7 @@
}
],
"response": {
- "$id": "165"
+ "$id": "177"
},
"isOverride": false,
"generateConvenient": true,
@@ -1637,23 +1855,23 @@
"crossLanguageDefinitionId": "Type.Scalar.Decimal128Type.requestBody"
},
{
- "$id": "166",
+ "$id": "178",
"kind": "basic",
"name": "requestParameter",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "167",
+ "$id": "179",
"name": "requestParameter",
"resourceName": "Decimal128Type",
"accessibility": "public",
"parameters": [
{
- "$id": "168",
+ "$id": "180",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "169",
+ "$id": "181",
"kind": "decimal128",
"name": "decimal128",
"crossLanguageDefinitionId": "TypeSpec.decimal128",
@@ -1672,7 +1890,7 @@
],
"responses": [
{
- "$id": "170",
+ "$id": "182",
"statusCodes": [
204
],
@@ -1691,11 +1909,11 @@
},
"parameters": [
{
- "$id": "171",
+ "$id": "183",
"name": "value",
"nameInRequest": "value",
"type": {
- "$id": "172",
+ "$id": "184",
"kind": "decimal128",
"name": "decimal128",
"crossLanguageDefinitionId": "TypeSpec.decimal128",
@@ -1713,7 +1931,7 @@
}
],
"response": {
- "$id": "173"
+ "$id": "185"
},
"isOverride": false,
"generateConvenient": true,
@@ -1723,12 +1941,12 @@
],
"parameters": [
{
- "$id": "174",
+ "$id": "186",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "175",
+ "$id": "187",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1742,9 +1960,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "176",
+ "$id": "188",
"type": {
- "$id": "177",
+ "$id": "189",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1757,44 +1975,34 @@
"crossLanguageDefinitionId": "Type.Scalar.Decimal128Type",
"apiVersions": [],
"parent": {
- "$ref": "2"
+ "$ref": "54"
}
},
{
- "$id": "178",
+ "$id": "190",
"kind": "client",
"name": "DecimalVerify",
"namespace": "Type.Scalar",
"doc": "Decimal type verification",
"methods": [
{
- "$id": "179",
+ "$id": "191",
"kind": "basic",
"name": "prepareVerify",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "180",
+ "$id": "192",
"name": "prepareVerify",
"resourceName": "DecimalVerify",
"accessibility": "public",
"parameters": [
{
- "$id": "181",
+ "$id": "193",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "182",
- "kind": "constant",
- "valueType": {
- "$id": "183",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -1809,16 +2017,16 @@
],
"responses": [
{
- "$id": "184",
+ "$id": "194",
"statusCodes": [
200
],
"bodyType": {
- "$id": "185",
+ "$id": "195",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "186",
+ "$id": "196",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -1845,11 +2053,11 @@
},
"parameters": [
{
- "$id": "187",
+ "$id": "197",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "182"
+ "$ref": "42"
},
"location": "Header",
"isApiVersion": false,
@@ -1863,9 +2071,9 @@
}
],
"response": {
- "$id": "188",
+ "$id": "198",
"type": {
- "$ref": "185"
+ "$ref": "195"
}
},
"isOverride": false,
@@ -1874,33 +2082,23 @@
"crossLanguageDefinitionId": "Type.Scalar.DecimalVerify.prepareVerify"
},
{
- "$id": "189",
+ "$id": "199",
"kind": "basic",
"name": "verify",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "190",
+ "$id": "200",
"name": "verify",
"resourceName": "DecimalVerify",
"accessibility": "public",
"parameters": [
{
- "$id": "191",
+ "$id": "201",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "192",
- "kind": "constant",
- "valueType": {
- "$id": "193",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "44"
},
"location": "Header",
"isApiVersion": false,
@@ -1913,11 +2111,11 @@
"skipUrlEncoding": false
},
{
- "$id": "194",
+ "$id": "202",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "195",
+ "$id": "203",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -1936,7 +2134,7 @@
],
"responses": [
{
- "$id": "196",
+ "$id": "204",
"statusCodes": [
204
],
@@ -1958,21 +2156,11 @@
},
"parameters": [
{
- "$id": "197",
+ "$id": "205",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "198",
- "kind": "constant",
- "valueType": {
- "$id": "199",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "46"
},
"location": "Header",
"isApiVersion": false,
@@ -1985,11 +2173,11 @@
"skipUrlEncoding": false
},
{
- "$id": "200",
+ "$id": "206",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "201",
+ "$id": "207",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -2007,7 +2195,7 @@
}
],
"response": {
- "$id": "202"
+ "$id": "208"
},
"isOverride": false,
"generateConvenient": true,
@@ -2017,12 +2205,12 @@
],
"parameters": [
{
- "$id": "203",
+ "$id": "209",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "204",
+ "$id": "210",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2036,9 +2224,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "205",
+ "$id": "211",
"type": {
- "$id": "206",
+ "$id": "212",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2051,44 +2239,34 @@
"crossLanguageDefinitionId": "Type.Scalar.DecimalVerify",
"apiVersions": [],
"parent": {
- "$ref": "2"
+ "$ref": "54"
}
},
{
- "$id": "207",
+ "$id": "213",
"kind": "client",
"name": "Decimal128Verify",
"namespace": "Type.Scalar",
"doc": "Decimal128 type verification",
"methods": [
{
- "$id": "208",
+ "$id": "214",
"kind": "basic",
"name": "prepareVerify",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "209",
+ "$id": "215",
"name": "prepareVerify",
"resourceName": "Decimal128Verify",
"accessibility": "public",
"parameters": [
{
- "$id": "210",
+ "$id": "216",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "211",
- "kind": "constant",
- "valueType": {
- "$id": "212",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -2103,16 +2281,16 @@
],
"responses": [
{
- "$id": "213",
+ "$id": "217",
"statusCodes": [
200
],
"bodyType": {
- "$id": "214",
+ "$id": "218",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "215",
+ "$id": "219",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -2139,11 +2317,11 @@
},
"parameters": [
{
- "$id": "216",
+ "$id": "220",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "211"
+ "$ref": "48"
},
"location": "Header",
"isApiVersion": false,
@@ -2157,9 +2335,9 @@
}
],
"response": {
- "$id": "217",
+ "$id": "221",
"type": {
- "$ref": "214"
+ "$ref": "218"
}
},
"isOverride": false,
@@ -2168,33 +2346,23 @@
"crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify.prepareVerify"
},
{
- "$id": "218",
+ "$id": "222",
"kind": "basic",
"name": "verify",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "219",
+ "$id": "223",
"name": "verify",
"resourceName": "Decimal128Verify",
"accessibility": "public",
"parameters": [
{
- "$id": "220",
+ "$id": "224",
"name": "contentType",
"nameInRequest": "Content-Type",
"type": {
- "$id": "221",
- "kind": "constant",
- "valueType": {
- "$id": "222",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "50"
},
"location": "Header",
"isApiVersion": false,
@@ -2207,11 +2375,11 @@
"skipUrlEncoding": false
},
{
- "$id": "223",
+ "$id": "225",
"name": "body",
"nameInRequest": "body",
"type": {
- "$id": "224",
+ "$id": "226",
"kind": "decimal",
"name": "decimal",
"crossLanguageDefinitionId": "TypeSpec.decimal",
@@ -2230,7 +2398,7 @@
],
"responses": [
{
- "$id": "225",
+ "$id": "227",
"statusCodes": [
204
],
@@ -2252,21 +2420,11 @@
},
"parameters": [
{
- "$id": "226",
+ "$id": "228",
"name": "contentType",
"nameInRequest": "content-type",
"type": {
- "$id": "227",
- "kind": "constant",
- "valueType": {
- "$id": "228",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "52"
},
"location": "Header",
"isApiVersion": false,
@@ -2345,7 +2503,7 @@
"crossLanguageDefinitionId": "Type.Scalar.Decimal128Verify",
"apiVersions": [],
"parent": {
- "$ref": "2"
+ "$ref": "54"
}
}
]
diff --git a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/src/Type.Union.csproj b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/src/Type.Union.csproj
index d208c5579422..6d157491a2f0 100644
--- a/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/src/Type.Union.csproj
+++ b/eng/packages/http-client-csharp/generator/TestProjects/Spector/http/type/union/src/Type.Union.csproj
@@ -17,6 +17,7 @@
+
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 2618fe64b84f..54bac85f0a8c 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
@@ -467,9 +467,411 @@
"decorators": []
}
],
- "models": [
+ "constants": [
{
"$id": "54",
+ "kind": "constant",
+ "name": "MixedLiteralsCasesStringLiteral1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "55",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "a",
+ "decorators": []
+ },
+ {
+ "$id": "56",
+ "kind": "constant",
+ "name": "MixedLiteralsCasesStringLiteral2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "57",
+ "kind": "int32",
+ "name": "int32",
+ "crossLanguageDefinitionId": "TypeSpec.int32",
+ "decorators": []
+ },
+ "value": 2,
+ "decorators": []
+ },
+ {
+ "$id": "58",
+ "kind": "constant",
+ "name": "MixedLiteralsCasesStringLiteral3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "59",
+ "kind": "float32",
+ "name": "float32",
+ "crossLanguageDefinitionId": "TypeSpec.float32",
+ "decorators": []
+ },
+ "value": 3.3,
+ "decorators": []
+ },
+ {
+ "$id": "60",
+ "kind": "constant",
+ "name": "MixedLiteralsCasesStringLiteral4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "61",
+ "kind": "boolean",
+ "name": "boolean",
+ "crossLanguageDefinitionId": "TypeSpec.boolean",
+ "decorators": []
+ },
+ "value": true,
+ "decorators": []
+ },
+ {
+ "$id": "62",
+ "kind": "constant",
+ "name": "MixedLiteralsCasesStringLiteral11",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "63",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "a",
+ "decorators": []
+ },
+ {
+ "$id": "64",
+ "kind": "constant",
+ "name": "getContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "65",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "66",
+ "kind": "constant",
+ "name": "sendContentType",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "67",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "68",
+ "kind": "constant",
+ "name": "getContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "69",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "70",
+ "kind": "constant",
+ "name": "sendContentType1",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "71",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "72",
+ "kind": "constant",
+ "name": "getContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "73",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "74",
+ "kind": "constant",
+ "name": "sendContentType2",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "75",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "76",
+ "kind": "constant",
+ "name": "getContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "77",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "78",
+ "kind": "constant",
+ "name": "sendContentType3",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "79",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "80",
+ "kind": "constant",
+ "name": "getContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "81",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "82",
+ "kind": "constant",
+ "name": "sendContentType4",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "83",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "84",
+ "kind": "constant",
+ "name": "getContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "85",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "86",
+ "kind": "constant",
+ "name": "sendContentType5",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "87",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "88",
+ "kind": "constant",
+ "name": "getContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "89",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "90",
+ "kind": "constant",
+ "name": "sendContentType6",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "91",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "92",
+ "kind": "constant",
+ "name": "getContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "93",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "94",
+ "kind": "constant",
+ "name": "sendContentType7",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "95",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "96",
+ "kind": "constant",
+ "name": "getContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "97",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "98",
+ "kind": "constant",
+ "name": "sendContentType8",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "99",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "100",
+ "kind": "constant",
+ "name": "getContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "101",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ },
+ {
+ "$id": "102",
+ "kind": "constant",
+ "name": "sendContentType9",
+ "namespace": "",
+ "usage": "None",
+ "valueType": {
+ "$id": "103",
+ "kind": "string",
+ "name": "string",
+ "crossLanguageDefinitionId": "TypeSpec.string",
+ "decorators": []
+ },
+ "value": "application/json",
+ "decorators": []
+ }
+ ],
+ "models": [
+ {
+ "$id": "104",
"kind": "model",
"name": "GetResponse",
"namespace": "Type.Union",
@@ -478,7 +880,7 @@
"decorators": [],
"properties": [
{
- "$id": "55",
+ "$id": "105",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -492,9 +894,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "56",
+ "$id": "106",
"json": {
- "$id": "57",
+ "$id": "107",
"name": "prop"
}
}
@@ -502,7 +904,7 @@
]
},
{
- "$id": "58",
+ "$id": "108",
"kind": "model",
"name": "SendRequest",
"namespace": "Type.Union",
@@ -511,7 +913,7 @@
"decorators": [],
"properties": [
{
- "$id": "59",
+ "$id": "109",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -525,9 +927,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringsOnly.send.prop",
"serializationOptions": {
- "$id": "60",
+ "$id": "110",
"json": {
- "$id": "61",
+ "$id": "111",
"name": "prop"
}
}
@@ -535,7 +937,7 @@
]
},
{
- "$id": "62",
+ "$id": "112",
"kind": "model",
"name": "GetResponse1",
"namespace": "Type.Union",
@@ -544,7 +946,7 @@
"decorators": [],
"properties": [
{
- "$id": "63",
+ "$id": "113",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -558,9 +960,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "64",
+ "$id": "114",
"json": {
- "$id": "65",
+ "$id": "115",
"name": "prop"
}
}
@@ -568,7 +970,7 @@
]
},
{
- "$id": "66",
+ "$id": "116",
"kind": "model",
"name": "SendRequest1",
"namespace": "Type.Union",
@@ -577,7 +979,7 @@
"decorators": [],
"properties": [
{
- "$id": "67",
+ "$id": "117",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -591,9 +993,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringExtensible.send.prop",
"serializationOptions": {
- "$id": "68",
+ "$id": "118",
"json": {
- "$id": "69",
+ "$id": "119",
"name": "prop"
}
}
@@ -601,7 +1003,7 @@
]
},
{
- "$id": "70",
+ "$id": "120",
"kind": "model",
"name": "GetResponse2",
"namespace": "Type.Union",
@@ -610,7 +1012,7 @@
"decorators": [],
"properties": [
{
- "$id": "71",
+ "$id": "121",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -624,9 +1026,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "72",
+ "$id": "122",
"json": {
- "$id": "73",
+ "$id": "123",
"name": "prop"
}
}
@@ -634,7 +1036,7 @@
]
},
{
- "$id": "74",
+ "$id": "124",
"kind": "model",
"name": "SendRequest2",
"namespace": "Type.Union",
@@ -643,7 +1045,7 @@
"decorators": [],
"properties": [
{
- "$id": "75",
+ "$id": "125",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -657,9 +1059,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.send.prop",
"serializationOptions": {
- "$id": "76",
+ "$id": "126",
"json": {
- "$id": "77",
+ "$id": "127",
"name": "prop"
}
}
@@ -667,7 +1069,7 @@
]
},
{
- "$id": "78",
+ "$id": "128",
"kind": "model",
"name": "GetResponse3",
"namespace": "Type.Union",
@@ -676,7 +1078,7 @@
"decorators": [],
"properties": [
{
- "$id": "79",
+ "$id": "129",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -690,9 +1092,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "80",
+ "$id": "130",
"json": {
- "$id": "81",
+ "$id": "131",
"name": "prop"
}
}
@@ -700,7 +1102,7 @@
]
},
{
- "$id": "82",
+ "$id": "132",
"kind": "model",
"name": "SendRequest3",
"namespace": "Type.Union",
@@ -709,7 +1111,7 @@
"decorators": [],
"properties": [
{
- "$id": "83",
+ "$id": "133",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -723,9 +1125,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.IntsOnly.send.prop",
"serializationOptions": {
- "$id": "84",
+ "$id": "134",
"json": {
- "$id": "85",
+ "$id": "135",
"name": "prop"
}
}
@@ -733,7 +1135,7 @@
]
},
{
- "$id": "86",
+ "$id": "136",
"kind": "model",
"name": "GetResponse4",
"namespace": "Type.Union",
@@ -742,7 +1144,7 @@
"decorators": [],
"properties": [
{
- "$id": "87",
+ "$id": "137",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -756,9 +1158,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "88",
+ "$id": "138",
"json": {
- "$id": "89",
+ "$id": "139",
"name": "prop"
}
}
@@ -766,7 +1168,7 @@
]
},
{
- "$id": "90",
+ "$id": "140",
"kind": "model",
"name": "SendRequest4",
"namespace": "Type.Union",
@@ -775,7 +1177,7 @@
"decorators": [],
"properties": [
{
- "$id": "91",
+ "$id": "141",
"kind": "property",
"name": "prop",
"serializedName": "prop",
@@ -789,9 +1191,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.FloatsOnly.send.prop",
"serializationOptions": {
- "$id": "92",
+ "$id": "142",
"json": {
- "$id": "93",
+ "$id": "143",
"name": "prop"
}
}
@@ -799,7 +1201,7 @@
]
},
{
- "$id": "94",
+ "$id": "144",
"kind": "model",
"name": "GetResponse5",
"namespace": "Type.Union",
@@ -808,17 +1210,17 @@
"decorators": [],
"properties": [
{
- "$id": "95",
+ "$id": "145",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$id": "96",
+ "$id": "146",
"kind": "union",
"name": "GetResponseProp4",
"variantTypes": [
{
- "$id": "97",
+ "$id": "147",
"kind": "model",
"name": "Cat",
"namespace": "Type.Union",
@@ -827,12 +1229,12 @@
"decorators": [],
"properties": [
{
- "$id": "98",
+ "$id": "148",
"kind": "property",
"name": "name",
"serializedName": "name",
"type": {
- "$id": "99",
+ "$id": "149",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -845,9 +1247,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Cat.name",
"serializationOptions": {
- "$id": "100",
+ "$id": "150",
"json": {
- "$id": "101",
+ "$id": "151",
"name": "name"
}
}
@@ -855,7 +1257,7 @@
]
},
{
- "$id": "102",
+ "$id": "152",
"kind": "model",
"name": "Dog",
"namespace": "Type.Union",
@@ -864,12 +1266,12 @@
"decorators": [],
"properties": [
{
- "$id": "103",
+ "$id": "153",
"kind": "property",
"name": "bark",
"serializedName": "bark",
"type": {
- "$id": "104",
+ "$id": "154",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -882,9 +1284,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.Dog.bark",
"serializationOptions": {
- "$id": "105",
+ "$id": "155",
"json": {
- "$id": "106",
+ "$id": "156",
"name": "bark"
}
}
@@ -902,9 +1304,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "107",
+ "$id": "157",
"json": {
- "$id": "108",
+ "$id": "158",
"name": "prop"
}
}
@@ -912,13 +1314,13 @@
]
},
{
- "$ref": "97"
+ "$ref": "147"
},
{
- "$ref": "102"
+ "$ref": "152"
},
{
- "$id": "109",
+ "$id": "159",
"kind": "model",
"name": "SendRequest5",
"namespace": "Type.Union",
@@ -927,12 +1329,12 @@
"decorators": [],
"properties": [
{
- "$id": "110",
+ "$id": "160",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$ref": "96"
+ "$ref": "146"
},
"optional": false,
"readOnly": false,
@@ -941,9 +1343,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.ModelsOnly.send.prop",
"serializationOptions": {
- "$id": "111",
+ "$id": "161",
"json": {
- "$id": "112",
+ "$id": "162",
"name": "prop"
}
}
@@ -951,7 +1353,7 @@
]
},
{
- "$id": "113",
+ "$id": "163",
"kind": "model",
"name": "GetResponse6",
"namespace": "Type.Union",
@@ -960,12 +1362,12 @@
"decorators": [],
"properties": [
{
- "$id": "114",
+ "$id": "164",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$id": "115",
+ "$id": "165",
"kind": "model",
"name": "EnumsOnlyCases",
"namespace": "Type.Union",
@@ -974,7 +1376,7 @@
"decorators": [],
"properties": [
{
- "$id": "116",
+ "$id": "166",
"kind": "property",
"name": "lr",
"serializedName": "lr",
@@ -989,15 +1391,15 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.lr",
"serializationOptions": {
- "$id": "117",
+ "$id": "167",
"json": {
- "$id": "118",
+ "$id": "168",
"name": "lr"
}
}
},
{
- "$id": "119",
+ "$id": "169",
"kind": "property",
"name": "ud",
"serializedName": "ud",
@@ -1012,9 +1414,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.EnumsOnlyCases.ud",
"serializationOptions": {
- "$id": "120",
+ "$id": "170",
"json": {
- "$id": "121",
+ "$id": "171",
"name": "ud"
}
}
@@ -1028,9 +1430,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "122",
+ "$id": "172",
"json": {
- "$id": "123",
+ "$id": "173",
"name": "prop"
}
}
@@ -1038,10 +1440,10 @@
]
},
{
- "$ref": "115"
+ "$ref": "165"
},
{
- "$id": "124",
+ "$id": "174",
"kind": "model",
"name": "SendRequest6",
"namespace": "Type.Union",
@@ -1050,12 +1452,12 @@
"decorators": [],
"properties": [
{
- "$id": "125",
+ "$id": "175",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$ref": "115"
+ "$ref": "165"
},
"optional": false,
"readOnly": false,
@@ -1064,9 +1466,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.EnumsOnly.send.prop",
"serializationOptions": {
- "$id": "126",
+ "$id": "176",
"json": {
- "$id": "127",
+ "$id": "177",
"name": "prop"
}
}
@@ -1074,7 +1476,7 @@
]
},
{
- "$id": "128",
+ "$id": "178",
"kind": "model",
"name": "GetResponse7",
"namespace": "Type.Union",
@@ -1083,12 +1485,12 @@
"decorators": [],
"properties": [
{
- "$id": "129",
+ "$id": "179",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$id": "130",
+ "$id": "180",
"kind": "model",
"name": "StringAndArrayCases",
"namespace": "Type.Union",
@@ -1097,29 +1499,29 @@
"decorators": [],
"properties": [
{
- "$id": "131",
+ "$id": "181",
"kind": "property",
"name": "string",
"serializedName": "string",
"doc": "This should be receive/send the string variant",
"type": {
- "$id": "132",
+ "$id": "182",
"kind": "union",
"name": "StringAndArrayCasesString",
"variantTypes": [
{
- "$id": "133",
+ "$id": "183",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
{
- "$id": "134",
+ "$id": "184",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "135",
+ "$id": "185",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1139,37 +1541,37 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.string",
"serializationOptions": {
- "$id": "136",
+ "$id": "186",
"json": {
- "$id": "137",
+ "$id": "187",
"name": "string"
}
}
},
{
- "$id": "138",
+ "$id": "188",
"kind": "property",
"name": "array",
"serializedName": "array",
"doc": "This should be receive/send the array variant",
"type": {
- "$id": "139",
+ "$id": "189",
"kind": "union",
"name": "StringAndArrayCasesArray",
"variantTypes": [
{
- "$id": "140",
+ "$id": "190",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
"decorators": []
},
{
- "$id": "141",
+ "$id": "191",
"kind": "array",
"name": "Array",
"valueType": {
- "$id": "142",
+ "$id": "192",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string",
@@ -1189,9 +1591,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringAndArrayCases.array",
"serializationOptions": {
- "$id": "143",
+ "$id": "193",
"json": {
- "$id": "144",
+ "$id": "194",
"name": "array"
}
}
@@ -1205,9 +1607,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "145",
+ "$id": "195",
"json": {
- "$id": "146",
+ "$id": "196",
"name": "prop"
}
}
@@ -1215,10 +1617,10 @@
]
},
{
- "$ref": "130"
+ "$ref": "180"
},
{
- "$id": "147",
+ "$id": "197",
"kind": "model",
"name": "SendRequest7",
"namespace": "Type.Union",
@@ -1227,12 +1629,12 @@
"decorators": [],
"properties": [
{
- "$id": "148",
+ "$id": "198",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$ref": "130"
+ "$ref": "180"
},
"optional": false,
"readOnly": false,
@@ -1241,9 +1643,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.StringAndArray.send.prop",
"serializationOptions": {
- "$id": "149",
+ "$id": "199",
"json": {
- "$id": "150",
+ "$id": "200",
"name": "prop"
}
}
@@ -1251,7 +1653,7 @@
]
},
{
- "$id": "151",
+ "$id": "201",
"kind": "model",
"name": "GetResponse8",
"namespace": "Type.Union",
@@ -1260,12 +1662,12 @@
"decorators": [],
"properties": [
{
- "$id": "152",
+ "$id": "202",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$id": "153",
+ "$id": "203",
"kind": "model",
"name": "MixedLiteralsCases",
"namespace": "Type.Union",
@@ -1274,67 +1676,27 @@
"decorators": [],
"properties": [
{
- "$id": "154",
+ "$id": "204",
"kind": "property",
"name": "stringLiteral",
"serializedName": "stringLiteral",
"doc": "This should be receive/send the \"a\" variant",
"type": {
- "$id": "155",
+ "$id": "205",
"kind": "union",
"name": "MixedLiteralsCasesStringLiteral",
"variantTypes": [
{
- "$id": "156",
- "kind": "constant",
- "valueType": {
- "$id": "157",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "a",
- "decorators": []
- },
- {
- "$id": "158",
- "kind": "constant",
- "valueType": {
- "$id": "159",
- "kind": "int32",
- "name": "int32",
- "crossLanguageDefinitionId": "TypeSpec.int32",
- "decorators": []
- },
- "value": 2,
- "decorators": []
+ "$ref": "54"
},
{
- "$id": "160",
- "kind": "constant",
- "valueType": {
- "$id": "161",
- "kind": "float32",
- "name": "float32",
- "crossLanguageDefinitionId": "TypeSpec.float32",
- "decorators": []
- },
- "value": 3.3,
- "decorators": []
+ "$ref": "56"
},
{
- "$id": "162",
- "kind": "constant",
- "valueType": {
- "$id": "163",
- "kind": "boolean",
- "name": "boolean",
- "crossLanguageDefinitionId": "TypeSpec.boolean",
- "decorators": []
- },
- "value": true,
- "decorators": []
+ "$ref": "58"
+ },
+ {
+ "$ref": "60"
}
],
"namespace": "",
@@ -1347,21 +1709,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.stringLiteral",
"serializationOptions": {
- "$id": "164",
+ "$id": "206",
"json": {
- "$id": "165",
+ "$id": "207",
"name": "stringLiteral"
}
}
},
{
- "$id": "166",
+ "$id": "208",
"kind": "property",
"name": "intLiteral",
"serializedName": "intLiteral",
"doc": "This should be receive/send the 2 variant",
"type": {
- "$ref": "155"
+ "$ref": "205"
},
"optional": false,
"readOnly": false,
@@ -1370,21 +1732,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.intLiteral",
"serializationOptions": {
- "$id": "167",
+ "$id": "209",
"json": {
- "$id": "168",
+ "$id": "210",
"name": "intLiteral"
}
}
},
{
- "$id": "169",
+ "$id": "211",
"kind": "property",
"name": "floatLiteral",
"serializedName": "floatLiteral",
"doc": "This should be receive/send the 3.3 variant",
"type": {
- "$ref": "155"
+ "$ref": "205"
},
"optional": false,
"readOnly": false,
@@ -1393,21 +1755,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.floatLiteral",
"serializationOptions": {
- "$id": "170",
+ "$id": "212",
"json": {
- "$id": "171",
+ "$id": "213",
"name": "floatLiteral"
}
}
},
{
- "$id": "172",
+ "$id": "214",
"kind": "property",
"name": "booleanLiteral",
"serializedName": "booleanLiteral",
"doc": "This should be receive/send the true variant",
"type": {
- "$ref": "155"
+ "$ref": "205"
},
"optional": false,
"readOnly": false,
@@ -1416,9 +1778,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedLiteralsCases.booleanLiteral",
"serializationOptions": {
- "$id": "173",
+ "$id": "215",
"json": {
- "$id": "174",
+ "$id": "216",
"name": "booleanLiteral"
}
}
@@ -1432,9 +1794,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "175",
+ "$id": "217",
"json": {
- "$id": "176",
+ "$id": "218",
"name": "prop"
}
}
@@ -1442,10 +1804,10 @@
]
},
{
- "$ref": "153"
+ "$ref": "203"
},
{
- "$id": "177",
+ "$id": "219",
"kind": "model",
"name": "SendRequest8",
"namespace": "Type.Union",
@@ -1454,12 +1816,12 @@
"decorators": [],
"properties": [
{
- "$id": "178",
+ "$id": "220",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$ref": "153"
+ "$ref": "203"
},
"optional": false,
"readOnly": false,
@@ -1468,9 +1830,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedLiterals.send.prop",
"serializationOptions": {
- "$id": "179",
+ "$id": "221",
"json": {
- "$id": "180",
+ "$id": "222",
"name": "prop"
}
}
@@ -1478,7 +1840,7 @@
]
},
{
- "$id": "181",
+ "$id": "223",
"kind": "model",
"name": "GetResponse9",
"namespace": "Type.Union",
@@ -1487,12 +1849,12 @@
"decorators": [],
"properties": [
{
- "$id": "182",
+ "$id": "224",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$id": "183",
+ "$id": "225",
"kind": "model",
"name": "MixedTypesCases",
"namespace": "Type.Union",
@@ -1501,41 +1863,31 @@
"decorators": [],
"properties": [
{
- "$id": "184",
+ "$id": "226",
"kind": "property",
"name": "model",
"serializedName": "model",
"doc": "This should be receive/send the Cat variant",
"type": {
- "$id": "185",
+ "$id": "227",
"kind": "union",
"name": "MixedTypesCasesModel",
"variantTypes": [
{
- "$ref": "97"
+ "$ref": "147"
},
{
- "$id": "186",
- "kind": "constant",
- "valueType": {
- "$id": "187",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "a",
- "decorators": []
+ "$ref": "62"
},
{
- "$id": "188",
+ "$id": "228",
"kind": "int32",
"name": "int32",
"crossLanguageDefinitionId": "TypeSpec.int32",
"decorators": []
},
{
- "$id": "189",
+ "$id": "229",
"kind": "boolean",
"name": "boolean",
"crossLanguageDefinitionId": "TypeSpec.boolean",
@@ -1552,21 +1904,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedTypesCases.model",
"serializationOptions": {
- "$id": "190",
+ "$id": "230",
"json": {
- "$id": "191",
+ "$id": "231",
"name": "model"
}
}
},
{
- "$id": "192",
+ "$id": "232",
"kind": "property",
"name": "literal",
"serializedName": "literal",
"doc": "This should be receive/send the \"a\" variant",
"type": {
- "$ref": "185"
+ "$ref": "227"
},
"optional": false,
"readOnly": false,
@@ -1575,21 +1927,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedTypesCases.literal",
"serializationOptions": {
- "$id": "193",
+ "$id": "233",
"json": {
- "$id": "194",
+ "$id": "234",
"name": "literal"
}
}
},
{
- "$id": "195",
+ "$id": "235",
"kind": "property",
"name": "int",
"serializedName": "int",
"doc": "This should be receive/send the int variant",
"type": {
- "$ref": "185"
+ "$ref": "227"
},
"optional": false,
"readOnly": false,
@@ -1598,21 +1950,21 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedTypesCases.int",
"serializationOptions": {
- "$id": "196",
+ "$id": "236",
"json": {
- "$id": "197",
+ "$id": "237",
"name": "int"
}
}
},
{
- "$id": "198",
+ "$id": "238",
"kind": "property",
"name": "boolean",
"serializedName": "boolean",
"doc": "This should be receive/send the boolean variant",
"type": {
- "$ref": "185"
+ "$ref": "227"
},
"optional": false,
"readOnly": false,
@@ -1621,25 +1973,25 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedTypesCases.boolean",
"serializationOptions": {
- "$id": "199",
+ "$id": "239",
"json": {
- "$id": "200",
+ "$id": "240",
"name": "boolean"
}
}
},
{
- "$id": "201",
+ "$id": "241",
"kind": "property",
"name": "array",
"serializedName": "array",
"doc": "This should be receive/send 4 element with Cat, \"a\", int, and boolean",
"type": {
- "$id": "202",
+ "$id": "242",
"kind": "array",
"name": "Array1",
"valueType": {
- "$ref": "185"
+ "$ref": "227"
},
"crossLanguageDefinitionId": "TypeSpec.Array",
"decorators": []
@@ -1651,9 +2003,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedTypesCases.array",
"serializationOptions": {
- "$id": "203",
+ "$id": "243",
"json": {
- "$id": "204",
+ "$id": "244",
"name": "array"
}
}
@@ -1667,9 +2019,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.get.Response.anonymous.prop",
"serializationOptions": {
- "$id": "205",
+ "$id": "245",
"json": {
- "$id": "206",
+ "$id": "246",
"name": "prop"
}
}
@@ -1677,10 +2029,10 @@
]
},
{
- "$ref": "183"
+ "$ref": "225"
},
{
- "$id": "207",
+ "$id": "247",
"kind": "model",
"name": "SendRequest9",
"namespace": "Type.Union",
@@ -1689,12 +2041,12 @@
"decorators": [],
"properties": [
{
- "$id": "208",
+ "$id": "248",
"kind": "property",
"name": "prop",
"serializedName": "prop",
"type": {
- "$ref": "183"
+ "$ref": "225"
},
"optional": false,
"readOnly": false,
@@ -1703,9 +2055,9 @@
"decorators": [],
"crossLanguageDefinitionId": "Type.Union.MixedTypes.send.prop",
"serializationOptions": {
- "$id": "209",
+ "$id": "249",
"json": {
- "$id": "210",
+ "$id": "250",
"name": "prop"
}
}
@@ -1715,7 +2067,7 @@
],
"clients": [
{
- "$id": "211",
+ "$id": "251",
"kind": "client",
"name": "UnionClient",
"namespace": "Type.Union",
@@ -1723,12 +2075,12 @@
"methods": [],
"parameters": [
{
- "$id": "212",
+ "$id": "252",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "213",
+ "$id": "253",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -1742,9 +2094,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "214",
+ "$id": "254",
"type": {
- "$id": "215",
+ "$id": "255",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -1758,40 +2110,30 @@
"apiVersions": [],
"children": [
{
- "$id": "216",
+ "$id": "256",
"kind": "client",
"name": "StringsOnly",
"namespace": "Type.Union",
"doc": "Describe union of string \"a\" | \"b\" | \"c\"",
"methods": [
{
- "$id": "217",
+ "$id": "257",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "218",
+ "$id": "258",
"name": "get",
"resourceName": "StringsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "219",
+ "$id": "259",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "220",
- "kind": "constant",
- "valueType": {
- "$id": "221",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -1806,12 +2148,12 @@
],
"responses": [
{
- "$id": "222",
+ "$id": "260",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "54"
+ "$ref": "104"
},
"headers": [],
"isErrorResponse": false,
@@ -1831,11 +2173,11 @@
},
"parameters": [
{
- "$id": "223",
+ "$id": "261",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "220"
+ "$ref": "64"
},
"location": "Header",
"isApiVersion": false,
@@ -1849,9 +2191,9 @@
}
],
"response": {
- "$id": "224",
+ "$id": "262",
"type": {
- "$ref": "54"
+ "$ref": "104"
}
},
"isOverride": false,
@@ -1860,34 +2202,24 @@
"crossLanguageDefinitionId": "Type.Union.StringsOnly.get"
},
{
- "$id": "225",
+ "$id": "263",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "226",
+ "$id": "264",
"name": "send",
"resourceName": "StringsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "227",
+ "$id": "265",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "228",
- "kind": "constant",
- "valueType": {
- "$id": "229",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -1900,11 +2232,11 @@
"skipUrlEncoding": false
},
{
- "$id": "230",
+ "$id": "266",
"name": "sendRequest",
"nameInRequest": "sendRequest",
"type": {
- "$ref": "58"
+ "$ref": "108"
},
"location": "Body",
"isApiVersion": false,
@@ -1919,7 +2251,7 @@
],
"responses": [
{
- "$id": "231",
+ "$id": "267",
"statusCodes": [
204
],
@@ -1941,7 +2273,7 @@
},
"parameters": [
{
- "$id": "232",
+ "$id": "268",
"name": "prop",
"nameInRequest": "prop",
"type": {
@@ -1958,12 +2290,12 @@
"skipUrlEncoding": false
},
{
- "$id": "233",
+ "$id": "269",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "228"
+ "$ref": "66"
},
"location": "Header",
"isApiVersion": false,
@@ -1977,7 +2309,7 @@
}
],
"response": {
- "$id": "234"
+ "$id": "270"
},
"isOverride": false,
"generateConvenient": true,
@@ -1987,12 +2319,12 @@
],
"parameters": [
{
- "$id": "235",
+ "$id": "271",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "236",
+ "$id": "272",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2006,9 +2338,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "237",
+ "$id": "273",
"type": {
- "$id": "238",
+ "$id": "274",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2021,44 +2353,34 @@
"crossLanguageDefinitionId": "Type.Union.StringsOnly",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "239",
+ "$id": "275",
"kind": "client",
"name": "StringExtensible",
"namespace": "Type.Union",
"doc": "Describe union of string string | \"b\" | \"c\"",
"methods": [
{
- "$id": "240",
+ "$id": "276",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "241",
+ "$id": "277",
"name": "get",
"resourceName": "StringExtensible",
"accessibility": "public",
"parameters": [
{
- "$id": "242",
+ "$id": "278",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "243",
- "kind": "constant",
- "valueType": {
- "$id": "244",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -2073,12 +2395,12 @@
],
"responses": [
{
- "$id": "245",
+ "$id": "279",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "62"
+ "$ref": "112"
},
"headers": [],
"isErrorResponse": false,
@@ -2098,11 +2420,11 @@
},
"parameters": [
{
- "$id": "246",
+ "$id": "280",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "243"
+ "$ref": "68"
},
"location": "Header",
"isApiVersion": false,
@@ -2116,9 +2438,9 @@
}
],
"response": {
- "$id": "247",
+ "$id": "281",
"type": {
- "$ref": "62"
+ "$ref": "112"
}
},
"isOverride": false,
@@ -2127,34 +2449,24 @@
"crossLanguageDefinitionId": "Type.Union.StringExtensible.get"
},
{
- "$id": "248",
+ "$id": "282",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "249",
+ "$id": "283",
"name": "send",
"resourceName": "StringExtensible",
"accessibility": "public",
"parameters": [
{
- "$id": "250",
+ "$id": "284",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "251",
- "kind": "constant",
- "valueType": {
- "$id": "252",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -2167,11 +2479,11 @@
"skipUrlEncoding": false
},
{
- "$id": "253",
+ "$id": "285",
"name": "sendRequest1",
"nameInRequest": "sendRequest1",
"type": {
- "$ref": "66"
+ "$ref": "116"
},
"location": "Body",
"isApiVersion": false,
@@ -2186,7 +2498,7 @@
],
"responses": [
{
- "$id": "254",
+ "$id": "286",
"statusCodes": [
204
],
@@ -2208,7 +2520,7 @@
},
"parameters": [
{
- "$id": "255",
+ "$id": "287",
"name": "prop",
"nameInRequest": "prop",
"type": {
@@ -2225,12 +2537,12 @@
"skipUrlEncoding": false
},
{
- "$id": "256",
+ "$id": "288",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "251"
+ "$ref": "70"
},
"location": "Header",
"isApiVersion": false,
@@ -2244,7 +2556,7 @@
}
],
"response": {
- "$id": "257"
+ "$id": "289"
},
"isOverride": false,
"generateConvenient": true,
@@ -2254,12 +2566,12 @@
],
"parameters": [
{
- "$id": "258",
+ "$id": "290",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "259",
+ "$id": "291",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2273,9 +2585,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "260",
+ "$id": "292",
"type": {
- "$id": "261",
+ "$id": "293",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2288,44 +2600,34 @@
"crossLanguageDefinitionId": "Type.Union.StringExtensible",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "262",
+ "$id": "294",
"kind": "client",
"name": "StringExtensibleNamed",
"namespace": "Type.Union",
"doc": "Describe union of string string | \"b\" | \"c\" but where the union is named and some of the variants are named",
"methods": [
{
- "$id": "263",
+ "$id": "295",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "264",
+ "$id": "296",
"name": "get",
"resourceName": "StringExtensibleNamed",
"accessibility": "public",
"parameters": [
{
- "$id": "265",
+ "$id": "297",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "266",
- "kind": "constant",
- "valueType": {
- "$id": "267",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -2340,12 +2642,12 @@
],
"responses": [
{
- "$id": "268",
+ "$id": "298",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "70"
+ "$ref": "120"
},
"headers": [],
"isErrorResponse": false,
@@ -2365,11 +2667,11 @@
},
"parameters": [
{
- "$id": "269",
+ "$id": "299",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "266"
+ "$ref": "72"
},
"location": "Header",
"isApiVersion": false,
@@ -2383,9 +2685,9 @@
}
],
"response": {
- "$id": "270",
+ "$id": "300",
"type": {
- "$ref": "70"
+ "$ref": "120"
}
},
"isOverride": false,
@@ -2394,34 +2696,24 @@
"crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed.get"
},
{
- "$id": "271",
+ "$id": "301",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "272",
+ "$id": "302",
"name": "send",
"resourceName": "StringExtensibleNamed",
"accessibility": "public",
"parameters": [
{
- "$id": "273",
+ "$id": "303",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "274",
- "kind": "constant",
- "valueType": {
- "$id": "275",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -2434,11 +2726,11 @@
"skipUrlEncoding": false
},
{
- "$id": "276",
+ "$id": "304",
"name": "sendRequest2",
"nameInRequest": "sendRequest2",
"type": {
- "$ref": "74"
+ "$ref": "124"
},
"location": "Body",
"isApiVersion": false,
@@ -2453,7 +2745,7 @@
],
"responses": [
{
- "$id": "277",
+ "$id": "305",
"statusCodes": [
204
],
@@ -2475,7 +2767,7 @@
},
"parameters": [
{
- "$id": "278",
+ "$id": "306",
"name": "prop",
"nameInRequest": "prop",
"type": {
@@ -2492,12 +2784,12 @@
"skipUrlEncoding": false
},
{
- "$id": "279",
+ "$id": "307",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "274"
+ "$ref": "74"
},
"location": "Header",
"isApiVersion": false,
@@ -2511,7 +2803,7 @@
}
],
"response": {
- "$id": "280"
+ "$id": "308"
},
"isOverride": false,
"generateConvenient": true,
@@ -2521,12 +2813,12 @@
],
"parameters": [
{
- "$id": "281",
+ "$id": "309",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "282",
+ "$id": "310",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2540,9 +2832,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "283",
+ "$id": "311",
"type": {
- "$id": "284",
+ "$id": "312",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2555,44 +2847,34 @@
"crossLanguageDefinitionId": "Type.Union.StringExtensibleNamed",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "285",
+ "$id": "313",
"kind": "client",
"name": "IntsOnly",
"namespace": "Type.Union",
"doc": "Describe union of integer 1 | 2 | 3",
"methods": [
{
- "$id": "286",
+ "$id": "314",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "287",
+ "$id": "315",
"name": "get",
"resourceName": "IntsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "288",
+ "$id": "316",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "289",
- "kind": "constant",
- "valueType": {
- "$id": "290",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -2607,12 +2889,12 @@
],
"responses": [
{
- "$id": "291",
+ "$id": "317",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "78"
+ "$ref": "128"
},
"headers": [],
"isErrorResponse": false,
@@ -2632,11 +2914,11 @@
},
"parameters": [
{
- "$id": "292",
+ "$id": "318",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "289"
+ "$ref": "76"
},
"location": "Header",
"isApiVersion": false,
@@ -2650,9 +2932,9 @@
}
],
"response": {
- "$id": "293",
+ "$id": "319",
"type": {
- "$ref": "78"
+ "$ref": "128"
}
},
"isOverride": false,
@@ -2661,34 +2943,24 @@
"crossLanguageDefinitionId": "Type.Union.IntsOnly.get"
},
{
- "$id": "294",
+ "$id": "320",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "295",
+ "$id": "321",
"name": "send",
"resourceName": "IntsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "296",
+ "$id": "322",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "297",
- "kind": "constant",
- "valueType": {
- "$id": "298",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -2701,11 +2973,11 @@
"skipUrlEncoding": false
},
{
- "$id": "299",
+ "$id": "323",
"name": "sendRequest3",
"nameInRequest": "sendRequest3",
"type": {
- "$ref": "82"
+ "$ref": "132"
},
"location": "Body",
"isApiVersion": false,
@@ -2720,7 +2992,7 @@
],
"responses": [
{
- "$id": "300",
+ "$id": "324",
"statusCodes": [
204
],
@@ -2742,7 +3014,7 @@
},
"parameters": [
{
- "$id": "301",
+ "$id": "325",
"name": "prop",
"nameInRequest": "prop",
"type": {
@@ -2759,12 +3031,12 @@
"skipUrlEncoding": false
},
{
- "$id": "302",
+ "$id": "326",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "297"
+ "$ref": "78"
},
"location": "Header",
"isApiVersion": false,
@@ -2778,7 +3050,7 @@
}
],
"response": {
- "$id": "303"
+ "$id": "327"
},
"isOverride": false,
"generateConvenient": true,
@@ -2788,12 +3060,12 @@
],
"parameters": [
{
- "$id": "304",
+ "$id": "328",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "305",
+ "$id": "329",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -2807,9 +3079,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "306",
+ "$id": "330",
"type": {
- "$id": "307",
+ "$id": "331",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -2822,44 +3094,34 @@
"crossLanguageDefinitionId": "Type.Union.IntsOnly",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "308",
+ "$id": "332",
"kind": "client",
"name": "FloatsOnly",
"namespace": "Type.Union",
"doc": "Describe union of floats 1.1 | 2.2 | 3.3",
"methods": [
{
- "$id": "309",
+ "$id": "333",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "310",
+ "$id": "334",
"name": "get",
"resourceName": "FloatsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "311",
+ "$id": "335",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "312",
- "kind": "constant",
- "valueType": {
- "$id": "313",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -2874,12 +3136,12 @@
],
"responses": [
{
- "$id": "314",
+ "$id": "336",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "86"
+ "$ref": "136"
},
"headers": [],
"isErrorResponse": false,
@@ -2899,11 +3161,11 @@
},
"parameters": [
{
- "$id": "315",
+ "$id": "337",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "312"
+ "$ref": "80"
},
"location": "Header",
"isApiVersion": false,
@@ -2917,9 +3179,9 @@
}
],
"response": {
- "$id": "316",
+ "$id": "338",
"type": {
- "$ref": "86"
+ "$ref": "136"
}
},
"isOverride": false,
@@ -2928,34 +3190,24 @@
"crossLanguageDefinitionId": "Type.Union.FloatsOnly.get"
},
{
- "$id": "317",
+ "$id": "339",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "318",
+ "$id": "340",
"name": "send",
"resourceName": "FloatsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "319",
+ "$id": "341",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "320",
- "kind": "constant",
- "valueType": {
- "$id": "321",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -2968,11 +3220,11 @@
"skipUrlEncoding": false
},
{
- "$id": "322",
+ "$id": "342",
"name": "sendRequest4",
"nameInRequest": "sendRequest4",
"type": {
- "$ref": "90"
+ "$ref": "140"
},
"location": "Body",
"isApiVersion": false,
@@ -2987,7 +3239,7 @@
],
"responses": [
{
- "$id": "323",
+ "$id": "343",
"statusCodes": [
204
],
@@ -3009,7 +3261,7 @@
},
"parameters": [
{
- "$id": "324",
+ "$id": "344",
"name": "prop",
"nameInRequest": "prop",
"type": {
@@ -3026,12 +3278,12 @@
"skipUrlEncoding": false
},
{
- "$id": "325",
+ "$id": "345",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "320"
+ "$ref": "82"
},
"location": "Header",
"isApiVersion": false,
@@ -3045,7 +3297,7 @@
}
],
"response": {
- "$id": "326"
+ "$id": "346"
},
"isOverride": false,
"generateConvenient": true,
@@ -3055,12 +3307,12 @@
],
"parameters": [
{
- "$id": "327",
+ "$id": "347",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "328",
+ "$id": "348",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3074,9 +3326,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "329",
+ "$id": "349",
"type": {
- "$id": "330",
+ "$id": "350",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3089,44 +3341,34 @@
"crossLanguageDefinitionId": "Type.Union.FloatsOnly",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "331",
+ "$id": "351",
"kind": "client",
"name": "ModelsOnly",
"namespace": "Type.Union",
"doc": "Describe union of models",
"methods": [
{
- "$id": "332",
+ "$id": "352",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "333",
+ "$id": "353",
"name": "get",
"resourceName": "ModelsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "334",
+ "$id": "354",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "335",
- "kind": "constant",
- "valueType": {
- "$id": "336",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -3141,12 +3383,12 @@
],
"responses": [
{
- "$id": "337",
+ "$id": "355",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "94"
+ "$ref": "144"
},
"headers": [],
"isErrorResponse": false,
@@ -3166,11 +3408,11 @@
},
"parameters": [
{
- "$id": "338",
+ "$id": "356",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "335"
+ "$ref": "84"
},
"location": "Header",
"isApiVersion": false,
@@ -3184,9 +3426,9 @@
}
],
"response": {
- "$id": "339",
+ "$id": "357",
"type": {
- "$ref": "94"
+ "$ref": "144"
}
},
"isOverride": false,
@@ -3195,34 +3437,24 @@
"crossLanguageDefinitionId": "Type.Union.ModelsOnly.get"
},
{
- "$id": "340",
+ "$id": "358",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "341",
+ "$id": "359",
"name": "send",
"resourceName": "ModelsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "342",
+ "$id": "360",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "343",
- "kind": "constant",
- "valueType": {
- "$id": "344",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "86"
},
"location": "Header",
"isApiVersion": false,
@@ -3235,11 +3467,11 @@
"skipUrlEncoding": false
},
{
- "$id": "345",
+ "$id": "361",
"name": "sendRequest5",
"nameInRequest": "sendRequest5",
"type": {
- "$ref": "109"
+ "$ref": "159"
},
"location": "Body",
"isApiVersion": false,
@@ -3254,7 +3486,7 @@
],
"responses": [
{
- "$id": "346",
+ "$id": "362",
"statusCodes": [
204
],
@@ -3276,11 +3508,11 @@
},
"parameters": [
{
- "$id": "347",
+ "$id": "363",
"name": "prop",
"nameInRequest": "prop",
"type": {
- "$ref": "96"
+ "$ref": "146"
},
"location": "Body",
"isApiVersion": false,
@@ -3293,12 +3525,12 @@
"skipUrlEncoding": false
},
{
- "$id": "348",
+ "$id": "364",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "343"
+ "$ref": "86"
},
"location": "Header",
"isApiVersion": false,
@@ -3312,7 +3544,7 @@
}
],
"response": {
- "$id": "349"
+ "$id": "365"
},
"isOverride": false,
"generateConvenient": true,
@@ -3322,12 +3554,12 @@
],
"parameters": [
{
- "$id": "350",
+ "$id": "366",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "351",
+ "$id": "367",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3341,9 +3573,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "352",
+ "$id": "368",
"type": {
- "$id": "353",
+ "$id": "369",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3356,44 +3588,34 @@
"crossLanguageDefinitionId": "Type.Union.ModelsOnly",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "354",
+ "$id": "370",
"kind": "client",
"name": "EnumsOnly",
"namespace": "Type.Union",
"doc": "Describe union of 2 different enums",
"methods": [
{
- "$id": "355",
+ "$id": "371",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "356",
+ "$id": "372",
"name": "get",
"resourceName": "EnumsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "357",
+ "$id": "373",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "358",
- "kind": "constant",
- "valueType": {
- "$id": "359",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -3408,12 +3630,12 @@
],
"responses": [
{
- "$id": "360",
+ "$id": "374",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "113"
+ "$ref": "163"
},
"headers": [],
"isErrorResponse": false,
@@ -3433,11 +3655,11 @@
},
"parameters": [
{
- "$id": "361",
+ "$id": "375",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "358"
+ "$ref": "88"
},
"location": "Header",
"isApiVersion": false,
@@ -3451,9 +3673,9 @@
}
],
"response": {
- "$id": "362",
+ "$id": "376",
"type": {
- "$ref": "113"
+ "$ref": "163"
}
},
"isOverride": false,
@@ -3462,34 +3684,24 @@
"crossLanguageDefinitionId": "Type.Union.EnumsOnly.get"
},
{
- "$id": "363",
+ "$id": "377",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "364",
+ "$id": "378",
"name": "send",
"resourceName": "EnumsOnly",
"accessibility": "public",
"parameters": [
{
- "$id": "365",
+ "$id": "379",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "366",
- "kind": "constant",
- "valueType": {
- "$id": "367",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -3502,11 +3714,11 @@
"skipUrlEncoding": false
},
{
- "$id": "368",
+ "$id": "380",
"name": "sendRequest6",
"nameInRequest": "sendRequest6",
"type": {
- "$ref": "124"
+ "$ref": "174"
},
"location": "Body",
"isApiVersion": false,
@@ -3521,7 +3733,7 @@
],
"responses": [
{
- "$id": "369",
+ "$id": "381",
"statusCodes": [
204
],
@@ -3543,11 +3755,11 @@
},
"parameters": [
{
- "$id": "370",
+ "$id": "382",
"name": "prop",
"nameInRequest": "prop",
"type": {
- "$ref": "115"
+ "$ref": "165"
},
"location": "Body",
"isApiVersion": false,
@@ -3560,12 +3772,12 @@
"skipUrlEncoding": false
},
{
- "$id": "371",
+ "$id": "383",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "366"
+ "$ref": "90"
},
"location": "Header",
"isApiVersion": false,
@@ -3579,7 +3791,7 @@
}
],
"response": {
- "$id": "372"
+ "$id": "384"
},
"isOverride": false,
"generateConvenient": true,
@@ -3589,12 +3801,12 @@
],
"parameters": [
{
- "$id": "373",
+ "$id": "385",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "374",
+ "$id": "386",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3608,9 +3820,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "375",
+ "$id": "387",
"type": {
- "$id": "376",
+ "$id": "388",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3623,44 +3835,34 @@
"crossLanguageDefinitionId": "Type.Union.EnumsOnly",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "377",
+ "$id": "389",
"kind": "client",
"name": "StringAndArray",
"namespace": "Type.Union",
"doc": "Describe union of a string and an array of strings",
"methods": [
{
- "$id": "378",
+ "$id": "390",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "379",
+ "$id": "391",
"name": "get",
"resourceName": "StringAndArray",
"accessibility": "public",
"parameters": [
{
- "$id": "380",
+ "$id": "392",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "381",
- "kind": "constant",
- "valueType": {
- "$id": "382",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -3675,12 +3877,12 @@
],
"responses": [
{
- "$id": "383",
+ "$id": "393",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "128"
+ "$ref": "178"
},
"headers": [],
"isErrorResponse": false,
@@ -3700,11 +3902,11 @@
},
"parameters": [
{
- "$id": "384",
+ "$id": "394",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "381"
+ "$ref": "92"
},
"location": "Header",
"isApiVersion": false,
@@ -3718,9 +3920,9 @@
}
],
"response": {
- "$id": "385",
+ "$id": "395",
"type": {
- "$ref": "128"
+ "$ref": "178"
}
},
"isOverride": false,
@@ -3729,34 +3931,24 @@
"crossLanguageDefinitionId": "Type.Union.StringAndArray.get"
},
{
- "$id": "386",
+ "$id": "396",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "387",
+ "$id": "397",
"name": "send",
"resourceName": "StringAndArray",
"accessibility": "public",
"parameters": [
{
- "$id": "388",
+ "$id": "398",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "389",
- "kind": "constant",
- "valueType": {
- "$id": "390",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -3769,11 +3961,11 @@
"skipUrlEncoding": false
},
{
- "$id": "391",
+ "$id": "399",
"name": "sendRequest7",
"nameInRequest": "sendRequest7",
"type": {
- "$ref": "147"
+ "$ref": "197"
},
"location": "Body",
"isApiVersion": false,
@@ -3788,7 +3980,7 @@
],
"responses": [
{
- "$id": "392",
+ "$id": "400",
"statusCodes": [
204
],
@@ -3810,11 +4002,11 @@
},
"parameters": [
{
- "$id": "393",
+ "$id": "401",
"name": "prop",
"nameInRequest": "prop",
"type": {
- "$ref": "130"
+ "$ref": "180"
},
"location": "Body",
"isApiVersion": false,
@@ -3827,12 +4019,12 @@
"skipUrlEncoding": false
},
{
- "$id": "394",
+ "$id": "402",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "389"
+ "$ref": "94"
},
"location": "Header",
"isApiVersion": false,
@@ -3846,7 +4038,7 @@
}
],
"response": {
- "$id": "395"
+ "$id": "403"
},
"isOverride": false,
"generateConvenient": true,
@@ -3856,12 +4048,12 @@
],
"parameters": [
{
- "$id": "396",
+ "$id": "404",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "397",
+ "$id": "405",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -3875,9 +4067,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "398",
+ "$id": "406",
"type": {
- "$id": "399",
+ "$id": "407",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -3890,44 +4082,34 @@
"crossLanguageDefinitionId": "Type.Union.StringAndArray",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "400",
+ "$id": "408",
"kind": "client",
"name": "MixedLiterals",
"namespace": "Type.Union",
"doc": "Describe union of floats \"a\" | 2 | 3.3",
"methods": [
{
- "$id": "401",
+ "$id": "409",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "402",
+ "$id": "410",
"name": "get",
"resourceName": "MixedLiterals",
"accessibility": "public",
"parameters": [
{
- "$id": "403",
+ "$id": "411",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "404",
- "kind": "constant",
- "valueType": {
- "$id": "405",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -3942,12 +4124,12 @@
],
"responses": [
{
- "$id": "406",
+ "$id": "412",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "151"
+ "$ref": "201"
},
"headers": [],
"isErrorResponse": false,
@@ -3967,11 +4149,11 @@
},
"parameters": [
{
- "$id": "407",
+ "$id": "413",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "404"
+ "$ref": "96"
},
"location": "Header",
"isApiVersion": false,
@@ -3985,9 +4167,9 @@
}
],
"response": {
- "$id": "408",
+ "$id": "414",
"type": {
- "$ref": "151"
+ "$ref": "201"
}
},
"isOverride": false,
@@ -3996,34 +4178,24 @@
"crossLanguageDefinitionId": "Type.Union.MixedLiterals.get"
},
{
- "$id": "409",
+ "$id": "415",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "410",
+ "$id": "416",
"name": "send",
"resourceName": "MixedLiterals",
"accessibility": "public",
"parameters": [
{
- "$id": "411",
+ "$id": "417",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "412",
- "kind": "constant",
- "valueType": {
- "$id": "413",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -4036,11 +4208,11 @@
"skipUrlEncoding": false
},
{
- "$id": "414",
+ "$id": "418",
"name": "sendRequest8",
"nameInRequest": "sendRequest8",
"type": {
- "$ref": "177"
+ "$ref": "219"
},
"location": "Body",
"isApiVersion": false,
@@ -4055,7 +4227,7 @@
],
"responses": [
{
- "$id": "415",
+ "$id": "419",
"statusCodes": [
204
],
@@ -4077,11 +4249,11 @@
},
"parameters": [
{
- "$id": "416",
+ "$id": "420",
"name": "prop",
"nameInRequest": "prop",
"type": {
- "$ref": "153"
+ "$ref": "203"
},
"location": "Body",
"isApiVersion": false,
@@ -4094,12 +4266,12 @@
"skipUrlEncoding": false
},
{
- "$id": "417",
+ "$id": "421",
"name": "contentType",
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "412"
+ "$ref": "98"
},
"location": "Header",
"isApiVersion": false,
@@ -4113,7 +4285,7 @@
}
],
"response": {
- "$id": "418"
+ "$id": "422"
},
"isOverride": false,
"generateConvenient": true,
@@ -4123,12 +4295,12 @@
],
"parameters": [
{
- "$id": "419",
+ "$id": "423",
"name": "endpoint",
"nameInRequest": "endpoint",
"doc": "Service host",
"type": {
- "$id": "420",
+ "$id": "424",
"kind": "url",
"name": "url",
"crossLanguageDefinitionId": "TypeSpec.url"
@@ -4142,9 +4314,9 @@
"explode": false,
"kind": "Client",
"defaultValue": {
- "$id": "421",
+ "$id": "425",
"type": {
- "$id": "422",
+ "$id": "426",
"kind": "string",
"name": "string",
"crossLanguageDefinitionId": "TypeSpec.string"
@@ -4157,44 +4329,34 @@
"crossLanguageDefinitionId": "Type.Union.MixedLiterals",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
},
{
- "$id": "423",
+ "$id": "427",
"kind": "client",
"name": "MixedTypes",
"namespace": "Type.Union",
"doc": "Describe union of floats \"a\" | 2 | 3.3",
"methods": [
{
- "$id": "424",
+ "$id": "428",
"kind": "basic",
"name": "get",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "425",
+ "$id": "429",
"name": "get",
"resourceName": "MixedTypes",
"accessibility": "public",
"parameters": [
{
- "$id": "426",
+ "$id": "430",
"name": "accept",
"nameInRequest": "Accept",
"type": {
- "$id": "427",
- "kind": "constant",
- "valueType": {
- "$id": "428",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -4209,12 +4371,12 @@
],
"responses": [
{
- "$id": "429",
+ "$id": "431",
"statusCodes": [
200
],
"bodyType": {
- "$ref": "181"
+ "$ref": "223"
},
"headers": [],
"isErrorResponse": false,
@@ -4234,11 +4396,11 @@
},
"parameters": [
{
- "$id": "430",
+ "$id": "432",
"name": "accept",
"nameInRequest": "accept",
"type": {
- "$ref": "427"
+ "$ref": "100"
},
"location": "Header",
"isApiVersion": false,
@@ -4252,9 +4414,9 @@
}
],
"response": {
- "$id": "431",
+ "$id": "433",
"type": {
- "$ref": "181"
+ "$ref": "223"
}
},
"isOverride": false,
@@ -4263,34 +4425,24 @@
"crossLanguageDefinitionId": "Type.Union.MixedTypes.get"
},
{
- "$id": "432",
+ "$id": "434",
"kind": "basic",
"name": "send",
"accessibility": "public",
"apiVersions": [],
"operation": {
- "$id": "433",
+ "$id": "435",
"name": "send",
"resourceName": "MixedTypes",
"accessibility": "public",
"parameters": [
{
- "$id": "434",
+ "$id": "436",
"name": "contentType",
"nameInRequest": "Content-Type",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$id": "435",
- "kind": "constant",
- "valueType": {
- "$id": "436",
- "kind": "string",
- "name": "string",
- "crossLanguageDefinitionId": "TypeSpec.string",
- "decorators": []
- },
- "value": "application/json",
- "decorators": []
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -4307,7 +4459,7 @@
"name": "sendRequest9",
"nameInRequest": "sendRequest9",
"type": {
- "$ref": "207"
+ "$ref": "247"
},
"location": "Body",
"isApiVersion": false,
@@ -4348,7 +4500,7 @@
"name": "prop",
"nameInRequest": "prop",
"type": {
- "$ref": "183"
+ "$ref": "225"
},
"location": "Body",
"isApiVersion": false,
@@ -4366,7 +4518,7 @@
"nameInRequest": "contentType",
"doc": "Body parameter's content type. Known values are application/json",
"type": {
- "$ref": "435"
+ "$ref": "102"
},
"location": "Header",
"isApiVersion": false,
@@ -4424,7 +4576,7 @@
"crossLanguageDefinitionId": "Type.Union.MixedTypes",
"apiVersions": [],
"parent": {
- "$ref": "211"
+ "$ref": "251"
}
}
]
diff --git a/eng/packages/http-client-csharp/package-lock.json b/eng/packages/http-client-csharp/package-lock.json
index aa06db142e8c..038265d29f7b 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.20250509.1"
+ "@typespec/http-client-csharp": "1.0.0-alpha.20250522.1"
},
"devDependencies": {
"@azure-tools/azure-http-specs": "0.1.0-alpha.17",
@@ -2314,9 +2314,9 @@
}
},
"node_modules/@typespec/http-client-csharp": {
- "version": "1.0.0-alpha.20250509.1",
- "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250509.1.tgz",
- "integrity": "sha512-O6fVeLEivLBDtLP+87ZTm5GU1bQuaLJ2aekTzb3W4VwKgAvXu3dbwc9czloVQ7pa+HBCMTQ8REtZUln0tNdnrg==",
+ "version": "1.0.0-alpha.20250522.1",
+ "resolved": "https://registry.npmjs.org/@typespec/http-client-csharp/-/http-client-csharp-1.0.0-alpha.20250522.1.tgz",
+ "integrity": "sha512-IvF7OSzv3NwzQmJvfANn5LL7kDqjuBYYYb7XtdUW9cYlW5PxF3pV3uGIRC1NKmCabj1WA020RPcVzpalKyPkiw==",
"license": "MIT",
"dependencies": {
"json-serialize-refs": "0.1.0-0"
diff --git a/eng/packages/http-client-csharp/package.json b/eng/packages/http-client-csharp/package.json
index 9158ce98bbc4..9e39d503cdd4 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.20250509.1"
+ "@typespec/http-client-csharp": "1.0.0-alpha.20250522.1"
},
"devDependencies": {
"@azure-tools/azure-http-specs": "0.1.0-alpha.17",
diff --git a/eng/pipelines/templates/stages/archetype-sdk-client.yml b/eng/pipelines/templates/stages/archetype-sdk-client.yml
index 3e95fd6f0633..44979aacc793 100644
--- a/eng/pipelines/templates/stages/archetype-sdk-client.yml
+++ b/eng/pipelines/templates/stages/archetype-sdk-client.yml
@@ -104,7 +104,10 @@ extends:
ServiceDirectory: ${{ parameters.ServiceDirectory }}
DependsOn:
- Build
- Artifacts: ${{ parameters.Artifacts }}
+ Artifacts:
+ - ${{ each artifact in parameters.Artifacts }}:
+ - ${{ if ne(artifact.createReleaseStage, 'false') }}:
+ - ${{ artifact }}
${{ if eq(parameters.ServiceDirectory, 'template') }}:
TestPipeline: true
ArtifactName: packages
diff --git a/eng/pipelines/templates/variables/globals.yml b/eng/pipelines/templates/variables/globals.yml
index e11db6a426c9..fbe47906a123 100644
--- a/eng/pipelines/templates/variables/globals.yml
+++ b/eng/pipelines/templates/variables/globals.yml
@@ -22,5 +22,5 @@ variables:
AdditionalTestFilters: "Placeholder!=DefaultIgnoreMe"
# Docs publishing variables for repo/owner
- DocRepoOwner: 'Azure'
+ DocRepoOwner: 'MicrosoftDocs'
DocRepoName: 'azure-docs-sdk-dotnet'
diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/MetadataEntityResource.Serialization.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/MetadataEntityResource.Serialization.cs
index 02b17ac159a1..42ca20c6fa1a 100644
--- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/MetadataEntityResource.Serialization.cs
+++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/MetadataEntityResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.Advisor
{
public partial class MetadataEntityResource : IJsonModel
{
+ private static MetadataEntityData s_dataDeserializationInstance;
+ private static MetadataEntityData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- MetadataEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ MetadataEntityData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAdvisorContext.Default);
MetadataEntityData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAdvisorContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseResource.Serialization.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseResource.Serialization.cs
index d0bd61cfac91..3eeca7b4e573 100644
--- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseResource.Serialization.cs
+++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/ResourceRecommendationBaseResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.Advisor
{
public partial class ResourceRecommendationBaseResource : IJsonModel
{
+ private static ResourceRecommendationBaseData s_dataDeserializationInstance;
+ private static ResourceRecommendationBaseData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- ResourceRecommendationBaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ ResourceRecommendationBaseData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAdvisorContext.Default);
ResourceRecommendationBaseData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAdvisorContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractResource.Serialization.cs b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractResource.Serialization.cs
index 7c2d79e920cb..02fab453c97a 100644
--- a/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractResource.Serialization.cs
+++ b/sdk/advisor/Azure.ResourceManager.Advisor/src/Generated/SuppressionContractResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.Advisor
{
public partial class SuppressionContractResource : IJsonModel
{
+ private static SuppressionContractData s_dataDeserializationInstance;
+ private static SuppressionContractData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- SuppressionContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ SuppressionContractData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAdvisorContext.Default);
SuppressionContractData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAdvisorContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceResource.Serialization.cs b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceResource.Serialization.cs
index a689bf1b95d5..2849d1f0cddf 100644
--- a/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceResource.Serialization.cs
+++ b/sdk/agricultureplatform/Azure.ResourceManager.AgriculturePlatform/src/Generated/AgricultureServiceResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.AgriculturePlatform
{
public partial class AgricultureServiceResource : IJsonModel
{
+ private static AgricultureServiceData s_dataDeserializationInstance;
+ private static AgricultureServiceData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- AgricultureServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ AgricultureServiceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAgriculturePlatformContext.Default);
AgricultureServiceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAgriculturePlatformContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionResource.Serialization.cs
index 6520a2e413ea..30e7377cde7b 100644
--- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionResource.Serialization.cs
+++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateEndpointConnectionResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.AgFoodPlatform
{
public partial class AgFoodPlatformPrivateEndpointConnectionResource : IJsonModel
{
+ private static AgFoodPlatformPrivateEndpointConnectionData s_dataDeserializationInstance;
+ private static AgFoodPlatformPrivateEndpointConnectionData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- AgFoodPlatformPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ AgFoodPlatformPrivateEndpointConnectionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAgFoodPlatformContext.Default);
AgFoodPlatformPrivateEndpointConnectionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAgFoodPlatformContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateLinkResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateLinkResource.Serialization.cs
index 59b06fc84b78..2af8b5122a62 100644
--- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateLinkResource.Serialization.cs
+++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/AgFoodPlatformPrivateLinkResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.AgFoodPlatform
{
public partial class AgFoodPlatformPrivateLinkResource : IJsonModel
{
+ private static AgFoodPlatformPrivateLinkResourceData s_dataDeserializationInstance;
+ private static AgFoodPlatformPrivateLinkResourceData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- AgFoodPlatformPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ AgFoodPlatformPrivateLinkResourceData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAgFoodPlatformContext.Default);
AgFoodPlatformPrivateLinkResourceData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAgFoodPlatformContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionResource.Serialization.cs
index 7b7d6e83f020..439f112e764e 100644
--- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionResource.Serialization.cs
+++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/ExtensionResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.AgFoodPlatform
{
public partial class ExtensionResource : IJsonModel
{
+ private static ExtensionData s_dataDeserializationInstance;
+ private static ExtensionData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- ExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ ExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAgFoodPlatformContext.Default);
ExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAgFoodPlatformContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatResource.Serialization.cs
index 306429e6d4b8..ac5924faf0fa 100644
--- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatResource.Serialization.cs
+++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.AgFoodPlatform
{
public partial class FarmBeatResource : IJsonModel
{
+ private static FarmBeatData s_dataDeserializationInstance;
+ private static FarmBeatData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- FarmBeatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ FarmBeatData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAgFoodPlatformContext.Default);
FarmBeatData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAgFoodPlatformContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatsExtensionResource.Serialization.cs b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatsExtensionResource.Serialization.cs
index ca82a359ef0e..4225b741f752 100644
--- a/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatsExtensionResource.Serialization.cs
+++ b/sdk/agrifood/Azure.ResourceManager.AgFoodPlatform/src/Generated/FarmBeatsExtensionResource.Serialization.cs
@@ -13,14 +13,17 @@ namespace Azure.ResourceManager.AgFoodPlatform
{
public partial class FarmBeatsExtensionResource : IJsonModel
{
+ private static FarmBeatsExtensionData s_dataDeserializationInstance;
+ private static FarmBeatsExtensionData DataDeserializationInstance => s_dataDeserializationInstance ??= new();
+
void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) => ((IJsonModel)Data).Write(writer, options);
- FarmBeatsExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)Data).Create(ref reader, options);
+ FarmBeatsExtensionData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) => ((IJsonModel)DataDeserializationInstance).Create(ref reader, options);
BinaryData IPersistableModel.Write(ModelReaderWriterOptions options) => ModelReaderWriter.Write(Data, options, AzureResourceManagerAgFoodPlatformContext.Default);
FarmBeatsExtensionData IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options) => ModelReaderWriter.Read(data, options, AzureResourceManagerAgFoodPlatformContext.Default);
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)Data).GetFormatFromOptions(options);
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => ((IPersistableModel)DataDeserializationInstance).GetFormatFromOptions(options);
}
}
diff --git a/sdk/ai/Azure.AI.Agents.Persistent/CHANGELOG.md b/sdk/ai/Azure.AI.Agents.Persistent/CHANGELOG.md
index 963104bd0160..d0e2114ba242 100644
--- a/sdk/ai/Azure.AI.Agents.Persistent/CHANGELOG.md
+++ b/sdk/ai/Azure.AI.Agents.Persistent/CHANGELOG.md
@@ -1,6 +1,6 @@
# Release History
-## 1.0.0-beta.2 (Unreleased)
+## 1.1.0-beta.2 (Unreleased)
### Features Added
@@ -10,6 +10,29 @@
### Other Changes
+## 1.1.0-beta.1 (2025-05-21)
+
+### Features Added
+- Set API version to 2025-05-15-preview.
+- Added Bing Custom search tool.
+- Added Sharepoint grounding tool.
+- Added Microsoft Fabric tool.
+
+## 1.0.0 (2025-05-15)
+
+### Features Added
+- First stable release of Azure AI Agents Persistent client library.
+
+## 1.0.0-beta.2 (2025-05-14)
+
+### Breaking Changes
+- ThreadRunSteps methods were moved to Runs.
+- VectorStoreFileBatches and VectorStoreFiles methods were moved to VectorStores.
+- The AzureAISearchResource was replaced by AzureAISearchToolResource.
+
+### Sample updates
+- Added sample demonstrating uploading single file to vector store and listing run steps.
+
## 1.0.0-beta.1 (2025-05-09)
### Features Added
diff --git a/sdk/ai/Azure.AI.Agents.Persistent/README.md b/sdk/ai/Azure.AI.Agents.Persistent/README.md
index 41e39372e568..426a44f9cc9a 100644
--- a/sdk/ai/Azure.AI.Agents.Persistent/README.md
+++ b/sdk/ai/Azure.AI.Agents.Persistent/README.md
@@ -2,7 +2,10 @@
Use the AI Agents client library to:
-* **Develop Agents using the Azure AI Agents Service**, leveraging an extensive ecosystem of models, tools, and capabilities from OpenAI, Microsoft, and other LLM providers. The Azure AI Agents Service enables the building of Agents for a wide range of generative AI use cases. The package is currently in preview.
+* **Develop Agents using the Azure AI Agents Service**, leveraging an extensive ecosystem of models, tools, and capabilities from OpenAI, Microsoft, and other LLM providers. The Azure AI Agents Service enables the building of Agents for a wide range of generative AI use cases.
+* **Note:** While this package can be used independently, we recommend using the Azure AI Projects client library (Azure.AI.Projects) for an enhanced experience.
+The Projects library provides simplified access to advanced functionality, such as creating and managing agents, enumerating AI models, working with datasets and
+managing search indexes, evaluating generative AI performance, and enabling OpenTelemetry tracing.
[Product documentation][product_doc]
| [Samples][samples]
@@ -318,10 +321,11 @@ To enable your Agent to perform search through Bing search API, you use `BingGro
Here is an example:
```C# Snippet:AgentsBingGrounding_GetConnection
-BingGroundingSearchConfigurationList configurationList = new(
- [new BingGroundingSearchConfiguration(connectionId)]
+BingGroundingToolDefinition bingGroundingTool = new(
+ new BingGroundingSearchToolParameters(
+ [new BingGroundingSearchConfiguration(connectionId)]
+ )
);
-BingGroundingToolDefinition bingGroundingTool = new(configurationList);
```
```C# Snippet:AgentsBingGroundingAsync_CreateAgent
PersistentAgent agent = await agentClient.Administration.CreateAgentAsync(
@@ -908,8 +912,8 @@ This project has adopted the [Microsoft Open Source Code of Conduct][code_of_con
[RequestFailedException]: https://learn.microsoft.com/dotnet/api/azure.requestfailedexception?view=azure-dotnet
[samples]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent/tests/Samples
-[api_ref_docs]: https://learn.microsoft.com/dotnet/api/azure.ai.projects?view=azure-dotnet-preview
-[nuget]: https://www.nuget.org/packages/Azure.AI.Projects
+[api_ref_docs]: https://learn.microsoft.com/dotnet/api/overview/azure/ai.agents.persistent-readme
+[nuget]: https://www.nuget.org/packages/Azure.AI.Agents.Persistent/
[source_code]: https://github.com/Azure/azure-sdk-for-net/tree/main/sdk/ai/Azure.AI.Agents.Persistent
[product_doc]: https://learn.microsoft.com/azure/ai-studio/
[azure_identity]: https://learn.microsoft.com/dotnet/api/overview/azure/identity-readme?view=azure-dotnet
diff --git a/sdk/ai/Azure.AI.Agents.Persistent/api/Azure.AI.Agents.Persistent.net8.0.cs b/sdk/ai/Azure.AI.Agents.Persistent/api/Azure.AI.Agents.Persistent.net8.0.cs
index d2062ef40320..7dbff5b0db16 100644
--- a/sdk/ai/Azure.AI.Agents.Persistent/api/Azure.AI.Agents.Persistent.net8.0.cs
+++ b/sdk/ai/Azure.AI.Agents.Persistent/api/Azure.AI.Agents.Persistent.net8.0.cs
@@ -121,6 +121,44 @@ 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 BingCustomSearchConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingCustomSearchConfiguration(string connectionId, string instanceName) { }
+ public string ConnectionId { get { throw null; } set { } }
+ public long? Count { get { throw null; } set { } }
+ public string Freshness { get { throw null; } set { } }
+ public string InstanceName { get { throw null; } set { } }
+ public string Market { get { throw null; } set { } }
+ public string SetLang { get { throw null; } set { } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Agents.Persistent.BingCustomSearchConfiguration 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.Persistent.BingCustomSearchConfiguration 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 BingCustomSearchToolDefinition : Azure.AI.Agents.Persistent.ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingCustomSearchToolDefinition(Azure.AI.Agents.Persistent.BingCustomSearchToolParameters bingCustomSearch) { }
+ public Azure.AI.Agents.Persistent.BingCustomSearchToolParameters BingCustomSearch { get { throw null; } set { } }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Agents.Persistent.BingCustomSearchToolDefinition 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.Persistent.BingCustomSearchToolDefinition 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 BingCustomSearchToolParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public BingCustomSearchToolParameters(System.Collections.Generic.IEnumerable searchConfigurations) { }
+ public System.Collections.Generic.IList SearchConfigurations { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Agents.Persistent.BingCustomSearchToolParameters 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.Persistent.BingCustomSearchToolParameters 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 BingGroundingSearchConfiguration : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public BingGroundingSearchConfiguration(string connectionId) { }
@@ -136,21 +174,21 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
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 BingGroundingSearchConfigurationList : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ public partial class BingGroundingSearchToolParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
- public BingGroundingSearchConfigurationList(System.Collections.Generic.IEnumerable searchConfigurations) { }
+ public BingGroundingSearchToolParameters(System.Collections.Generic.IEnumerable searchConfigurations) { }
public System.Collections.Generic.IList SearchConfigurations { get { throw null; } }
protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
- Azure.AI.Agents.Persistent.BingGroundingSearchConfigurationList 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.Persistent.BingGroundingSearchConfigurationList 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.Persistent.BingGroundingSearchToolParameters 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.Persistent.BingGroundingSearchToolParameters 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 BingGroundingToolDefinition : Azure.AI.Agents.Persistent.ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
- public BingGroundingToolDefinition(Azure.AI.Agents.Persistent.BingGroundingSearchConfigurationList bingGrounding) { }
- public Azure.AI.Agents.Persistent.BingGroundingSearchConfigurationList BingGrounding { get { throw null; } set { } }
+ public BingGroundingToolDefinition(Azure.AI.Agents.Persistent.BingGroundingSearchToolParameters bingGrounding) { }
+ public Azure.AI.Agents.Persistent.BingGroundingSearchToolParameters BingGrounding { get { throw null; } set { } }
protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
Azure.AI.Agents.Persistent.BingGroundingToolDefinition 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) { }
@@ -238,6 +276,17 @@ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter write
public static bool operator !=(Azure.AI.Agents.Persistent.ErrorEvent left, Azure.AI.Agents.Persistent.ErrorEvent right) { throw null; }
public override string ToString() { throw null; }
}
+ public partial class FabricDataAgentToolParameters : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public FabricDataAgentToolParameters() { }
+ public System.Collections.Generic.IList ConnectionList { get { throw null; } }
+ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Agents.Persistent.FabricDataAgentToolParameters 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.Persistent.FabricDataAgentToolParameters 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 FileSearchRankingOptions : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
{
public FileSearchRankingOptions(string ranker, float scoreThreshold) { }
@@ -896,6 +945,17 @@ protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer
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 MicrosoftFabricToolDefinition : Azure.AI.Agents.Persistent.ToolDefinition, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel
+ {
+ public MicrosoftFabricToolDefinition(Azure.AI.Agents.Persistent.FabricDataAgentToolParameters fabricDataagent) { }
+ public Azure.AI.Agents.Persistent.FabricDataAgentToolParameters FabricDataagent { get { throw null; } set { } }
+ protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { }
+ Azure.AI.Agents.Persistent.MicrosoftFabricToolDefinition System.ClientModel.Primitives.IJsonModel