diff --git a/sdk/apicenter/azure.ApiCenter/tsp-location.yaml b/sdk/apicenter/azure.ApiCenter/tsp-location.yaml new file mode 100644 index 000000000000..4fc897108940 --- /dev/null +++ b/sdk/apicenter/azure.ApiCenter/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/apicenter/ApiCenter.DataApi +commit: 8261d8a6b88b202026ece5cef460cb7696b16b3a +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/Configuration.json b/sdk/appconfiguration/Azure.Data.AppConfiguration/Configuration.json new file mode 100644 index 000000000000..cfbe79f737bb --- /dev/null +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/Configuration.json @@ -0,0 +1,12 @@ +{ + "output-folder": ".", + "namespace": "Azure.Data.AppConfiguration", + "library-name": "Azure.Data.AppConfiguration", + "model-namespace": false, + "flavor": "azure", + "use-model-reader-writer": true, + "shared-source-folders": [ + "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Generator.Shared", + "../../TempTypeSpecFiles/node_modules/@autorest/csharp/Azure.Core.Shared" + ] +} diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/src/autorest.md b/sdk/appconfiguration/Azure.Data.AppConfiguration/src/autorest.md deleted file mode 100644 index af1f2ccf84c9..000000000000 --- a/sdk/appconfiguration/Azure.Data.AppConfiguration/src/autorest.md +++ /dev/null @@ -1,55 +0,0 @@ -# Azure SDK Code Generation for Data Plane - -Run `dotnet build /t:GenerateCode` to generate code. - -### AutoRest Configuration -> see https://aka.ms/autorest -``` yaml -input-file: -- https://github.com/Azure/azure-rest-api-specs/blob/c1af3ab8e803da2f40fc90217a6d023bc13b677f/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2023-11-01/appconfiguration.json -namespace: Azure.Data.AppConfiguration -title: ConfigurationClient -``` - -### Change Endpoint type to Uri -``` yaml -directive: - from: swagger-document - where: $.parameters.Endpoint - transform: $.format = "url" - ``` - -### Modify operation names -``` yaml -directive: -- rename-operation: - from: PutKeyValue - to: SetConfigurationSetting -- rename-operation: - from: DeleteKeyValue - to: DeleteConfigurationSetting -- rename-operation: - from: GetKeyValue - to: GetConfigurationSetting -- rename-operation: - from: GetKeyValues - to: GetConfigurationSettings -- rename-operation: - from: PutLock - to: CreateReadOnlyLock -- rename-operation: - from: DeleteLock - to: DeleteReadOnlyLock -- rename-operation: - from: UpdateSnapshot - to: UpdateSnapshotStatus -``` - -### Internalize protocol methods -``` yaml -directive: - from: swagger-document - where: $.paths.*.* - transform: > - $["x-accessibility"] = "internal" -``` diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/tsp-location.yaml b/sdk/appconfiguration/Azure.Data.AppConfiguration/tsp-location.yaml new file mode 100644 index 000000000000..fc8c6f68a48e --- /dev/null +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/tsp-location.yaml @@ -0,0 +1,4 @@ +directory: specification/appconfiguration/AppConfiguration +commit: 8261d8a6b88b202026ece5cef460cb7696b16b3a +repo: Azure/azure-rest-api-specs +additionalDirectories: diff --git a/sdk/appconfiguration/Azure.Data.AppConfiguration/tspCodeModel.json b/sdk/appconfiguration/Azure.Data.AppConfiguration/tspCodeModel.json new file mode 100644 index 000000000000..2277826b0b4c --- /dev/null +++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/tspCodeModel.json @@ -0,0 +1,13481 @@ +{ + "$id": "1", + "Name": "AzureAppConfiguration", + "ApiVersions": [ + "2023-11-01" + ], + "Enums": [ + { + "$id": "2", + "kind": "enum", + "name": "GetKeysResponseContentType", + "crossLanguageDefinitionId": "getKeys.ResponseContentType.anonymous", + "valueType": { + "$id": "3", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "4", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.keyset+json", + "value": "application/vnd.microsoft.appconfig.keyset+json", + "valueType": { + "$id": "5", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "decorators": [] + }, + { + "$id": "6", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "7", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "2" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "8", + "kind": "enum", + "name": "KeyValueFields", + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueFields", + "valueType": { + "$id": "9", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "10", + "kind": "enumvalue", + "name": "key", + "value": "key", + "valueType": { + "$id": "11", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "8" + }, + "description": "Key field.", + "decorators": [] + }, + { + "$id": "12", + "kind": "enumvalue", + "name": "label", + "value": "label", + "valueType": { + "$id": "13", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "8" + }, + "description": "Label field.", + "decorators": [] + }, + { + "$id": "14", + "kind": "enumvalue", + "name": "content_type", + "value": "content_type", + "valueType": { + "$id": "15", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "8" + }, + "description": "Content type field.", + "decorators": [] + }, + { + "$id": "16", + "kind": "enumvalue", + "name": "value", + "value": "value", + "valueType": { + "$id": "17", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "8" + }, + "description": "Value field.", + "decorators": [] + }, + { + "$id": "18", + "kind": "enumvalue", + "name": "last_modified", + "value": "last_modified", + "valueType": { + "$id": "19", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "8" + }, + "description": "Last modified field.", + "decorators": [] + }, + { + "$id": "20", + "kind": "enumvalue", + "name": "tags", + "value": "tags", + "valueType": { + "$id": "21", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "8" + }, + "description": "Tags field.", + "decorators": [] + }, + { + "$id": "22", + "kind": "enumvalue", + "name": "locked", + "value": "locked", + "valueType": { + "$id": "23", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "8" + }, + "description": "Locked field.", + "decorators": [] + }, + { + "$id": "24", + "kind": "enumvalue", + "name": "etag", + "value": "etag", + "valueType": { + "$id": "25", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "8" + }, + "description": "Etag field.", + "decorators": [] + } + ], + "description": "Key-value fields.", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "26", + "kind": "enum", + "name": "GetKeyValuesResponseContentType", + "crossLanguageDefinitionId": "getKeyValues.ResponseContentType.anonymous", + "valueType": { + "$id": "27", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "28", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kvset+json", + "value": "application/vnd.microsoft.appconfig.kvset+json", + "valueType": { + "$id": "29", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "26" + }, + "decorators": [] + }, + { + "$id": "30", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "31", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "26" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "32", + "kind": "enum", + "name": "GetKeyValueResponseContentType", + "crossLanguageDefinitionId": "getKeyValue.ResponseContentType.anonymous", + "valueType": { + "$id": "33", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "34", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kv+json", + "value": "application/vnd.microsoft.appconfig.kv+json", + "valueType": { + "$id": "35", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "32" + }, + "decorators": [] + }, + { + "$id": "36", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "37", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "32" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "38", + "kind": "enum", + "name": "PutKeyValueRequestContentType", + "crossLanguageDefinitionId": "putKeyValue.RequestContentType.anonymous", + "valueType": { + "$id": "39", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "40", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kv+json", + "value": "application/vnd.microsoft.appconfig.kv+json", + "valueType": { + "$id": "41", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "38" + }, + "decorators": [] + }, + { + "$id": "42", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kvset+json", + "value": "application/vnd.microsoft.appconfig.kvset+json", + "valueType": { + "$id": "43", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "38" + }, + "decorators": [] + }, + { + "$id": "44", + "kind": "enumvalue", + "name": "application/json", + "value": "application/json", + "valueType": { + "$id": "45", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "38" + }, + "decorators": [] + }, + { + "$id": "46", + "kind": "enumvalue", + "name": "text/json", + "value": "text/json", + "valueType": { + "$id": "47", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "38" + }, + "decorators": [] + }, + { + "$id": "48", + "kind": "enumvalue", + "name": "application/*+json", + "value": "application/*+json", + "valueType": { + "$id": "49", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "38" + }, + "decorators": [] + }, + { + "$id": "50", + "kind": "enumvalue", + "name": "application/json-patch+json", + "value": "application/json-patch+json", + "valueType": { + "$id": "51", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "38" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "52", + "kind": "enum", + "name": "PutKeyValueResponseContentType", + "crossLanguageDefinitionId": "putKeyValue.ResponseContentType.anonymous", + "valueType": { + "$id": "53", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "54", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kv+json", + "value": "application/vnd.microsoft.appconfig.kv+json", + "valueType": { + "$id": "55", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "52" + }, + "decorators": [] + }, + { + "$id": "56", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "57", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "52" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "58", + "kind": "enum", + "name": "DeleteKeyValueResponseContentType", + "crossLanguageDefinitionId": "deleteKeyValue.ResponseContentType.anonymous", + "valueType": { + "$id": "59", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "60", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kv+json", + "value": "application/vnd.microsoft.appconfig.kv+json", + "valueType": { + "$id": "61", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "58" + }, + "decorators": [] + }, + { + "$id": "62", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "63", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "58" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "64", + "kind": "enum", + "name": "SnapshotFields", + "crossLanguageDefinitionId": "AzureAppConfiguration.SnapshotFields", + "valueType": { + "$id": "65", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "66", + "kind": "enumvalue", + "name": "name", + "value": "name", + "valueType": { + "$id": "67", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Name field.", + "decorators": [] + }, + { + "$id": "68", + "kind": "enumvalue", + "name": "status", + "value": "status", + "valueType": { + "$id": "69", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Status field.", + "decorators": [] + }, + { + "$id": "70", + "kind": "enumvalue", + "name": "filters", + "value": "filters", + "valueType": { + "$id": "71", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Filters field.", + "decorators": [] + }, + { + "$id": "72", + "kind": "enumvalue", + "name": "composition_type", + "value": "composition_type", + "valueType": { + "$id": "73", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Composition type field.", + "decorators": [] + }, + { + "$id": "74", + "kind": "enumvalue", + "name": "created", + "value": "created", + "valueType": { + "$id": "75", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Created field.", + "decorators": [] + }, + { + "$id": "76", + "kind": "enumvalue", + "name": "expires", + "value": "expires", + "valueType": { + "$id": "77", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Expires field.", + "decorators": [] + }, + { + "$id": "78", + "kind": "enumvalue", + "name": "retention_period", + "value": "retention_period", + "valueType": { + "$id": "79", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Retention period field.", + "decorators": [] + }, + { + "$id": "80", + "kind": "enumvalue", + "name": "size", + "value": "size", + "valueType": { + "$id": "81", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Size field.", + "decorators": [] + }, + { + "$id": "82", + "kind": "enumvalue", + "name": "items_count", + "value": "items_count", + "valueType": { + "$id": "83", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Items count field.", + "decorators": [] + }, + { + "$id": "84", + "kind": "enumvalue", + "name": "tags", + "value": "tags", + "valueType": { + "$id": "85", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Tags field.", + "decorators": [] + }, + { + "$id": "86", + "kind": "enumvalue", + "name": "etag", + "value": "etag", + "valueType": { + "$id": "87", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "64" + }, + "description": "Etag field.", + "decorators": [] + } + ], + "description": "Snapshot fields.", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "88", + "kind": "enum", + "name": "SnapshotStatus", + "crossLanguageDefinitionId": "AzureAppConfiguration.SnapshotStatus", + "valueType": { + "$id": "89", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "90", + "kind": "enumvalue", + "name": "provisioning", + "value": "provisioning", + "valueType": { + "$id": "91", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "88" + }, + "description": "Provisioning", + "decorators": [] + }, + { + "$id": "92", + "kind": "enumvalue", + "name": "ready", + "value": "ready", + "valueType": { + "$id": "93", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "88" + }, + "description": "Ready", + "decorators": [] + }, + { + "$id": "94", + "kind": "enumvalue", + "name": "archived", + "value": "archived", + "valueType": { + "$id": "95", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "88" + }, + "description": "Archived", + "decorators": [] + }, + { + "$id": "96", + "kind": "enumvalue", + "name": "failed", + "value": "failed", + "valueType": { + "$id": "97", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "88" + }, + "description": "Failed", + "decorators": [] + } + ], + "description": "Snapshot status.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,JsonMergePatch,Json", + "decorators": [] + }, + { + "$id": "98", + "kind": "enum", + "name": "CompositionType", + "crossLanguageDefinitionId": "AzureAppConfiguration.CompositionType", + "valueType": { + "$id": "99", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "100", + "kind": "enumvalue", + "name": "key", + "value": "key", + "valueType": { + "$id": "101", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "98" + }, + "description": "The 'key' composition type.", + "decorators": [] + }, + { + "$id": "102", + "kind": "enumvalue", + "name": "key_label", + "value": "key_label", + "valueType": { + "$id": "103", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "98" + }, + "description": "The 'key_label' composition type.", + "decorators": [] + } + ], + "description": "Composition types.", + "isFixed": false, + "isFlags": false, + "usage": "Input,Output,Json", + "decorators": [] + }, + { + "$id": "104", + "kind": "enum", + "name": "GetSnapshotsResponseContentType", + "crossLanguageDefinitionId": "getSnapshots.ResponseContentType.anonymous", + "valueType": { + "$id": "105", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "106", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.snapshotset+json", + "value": "application/vnd.microsoft.appconfig.snapshotset+json", + "valueType": { + "$id": "107", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "104" + }, + "decorators": [] + }, + { + "$id": "108", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "109", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "104" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "110", + "kind": "enum", + "name": "GetSnapshotResponseContentType", + "crossLanguageDefinitionId": "getSnapshot.ResponseContentType.anonymous", + "valueType": { + "$id": "111", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "112", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.snapshot+json", + "value": "application/vnd.microsoft.appconfig.snapshot+json", + "valueType": { + "$id": "113", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "110" + }, + "decorators": [] + }, + { + "$id": "114", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "115", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "110" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "116", + "kind": "enum", + "name": "OperationState", + "crossLanguageDefinitionId": "Azure.Core.Foundations.OperationState", + "valueType": { + "$id": "117", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "118", + "kind": "enumvalue", + "name": "NotStarted", + "value": "NotStarted", + "valueType": { + "$id": "119", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "116" + }, + "description": "The operation has not started.", + "decorators": [] + }, + { + "$id": "120", + "kind": "enumvalue", + "name": "Running", + "value": "Running", + "valueType": { + "$id": "121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "116" + }, + "description": "The operation is in progress.", + "decorators": [] + }, + { + "$id": "122", + "kind": "enumvalue", + "name": "Succeeded", + "value": "Succeeded", + "valueType": { + "$id": "123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "116" + }, + "description": "The operation has completed successfully.", + "decorators": [] + }, + { + "$id": "124", + "kind": "enumvalue", + "name": "Failed", + "value": "Failed", + "valueType": { + "$id": "125", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "116" + }, + "description": "The operation has failed.", + "decorators": [] + }, + { + "$id": "126", + "kind": "enumvalue", + "name": "Canceled", + "value": "Canceled", + "valueType": { + "$id": "127", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "116" + }, + "description": "The operation has been canceled by the user.", + "decorators": [] + } + ], + "description": "Enum describing allowed operation states.", + "isFixed": false, + "isFlags": false, + "usage": "Output,Json", + "decorators": [] + }, + { + "$id": "128", + "kind": "enum", + "name": "CreateSnapshotRequestContentType", + "crossLanguageDefinitionId": "createSnapshot.RequestContentType.anonymous", + "valueType": { + "$id": "129", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "130", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.snapshot+json", + "value": "application/vnd.microsoft.appconfig.snapshot+json", + "valueType": { + "$id": "131", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "128" + }, + "decorators": [] + }, + { + "$id": "132", + "kind": "enumvalue", + "name": "application/json", + "value": "application/json", + "valueType": { + "$id": "133", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "128" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "134", + "kind": "enum", + "name": "CreateSnapshotResponseContentType", + "crossLanguageDefinitionId": "createSnapshot.ResponseContentType.anonymous", + "valueType": { + "$id": "135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "136", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.snapshot+json", + "value": "application/vnd.microsoft.appconfig.snapshot+json", + "valueType": { + "$id": "137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "134" + }, + "decorators": [] + }, + { + "$id": "138", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "139", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "134" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "140", + "kind": "enum", + "name": "UpdateSnapshotRequestContentType", + "crossLanguageDefinitionId": "updateSnapshot.RequestContentType.anonymous", + "valueType": { + "$id": "141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "142", + "kind": "enumvalue", + "name": "application/merge-patch+json", + "value": "application/merge-patch+json", + "valueType": { + "$id": "143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "140" + }, + "decorators": [] + }, + { + "$id": "144", + "kind": "enumvalue", + "name": "application/json", + "value": "application/json", + "valueType": { + "$id": "145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "140" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "146", + "kind": "enum", + "name": "UpdateSnapshotResponseContentType", + "crossLanguageDefinitionId": "updateSnapshot.ResponseContentType.anonymous", + "valueType": { + "$id": "147", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "148", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.snapshot+json", + "value": "application/vnd.microsoft.appconfig.snapshot+json", + "valueType": { + "$id": "149", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "146" + }, + "decorators": [] + }, + { + "$id": "150", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "151", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "146" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "152", + "kind": "enum", + "name": "LabelFields", + "crossLanguageDefinitionId": "AzureAppConfiguration.LabelFields", + "valueType": { + "$id": "153", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "154", + "kind": "enumvalue", + "name": "name", + "value": "name", + "valueType": { + "$id": "155", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "152" + }, + "description": "Name field.", + "decorators": [] + } + ], + "description": "Label fields.", + "isFixed": false, + "isFlags": false, + "usage": "Input", + "decorators": [] + }, + { + "$id": "156", + "kind": "enum", + "name": "GetLabelsResponseContentType", + "crossLanguageDefinitionId": "getLabels.ResponseContentType.anonymous", + "valueType": { + "$id": "157", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "158", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.labelset+json", + "value": "application/vnd.microsoft.appconfig.labelset+json", + "valueType": { + "$id": "159", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "156" + }, + "decorators": [] + }, + { + "$id": "160", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "161", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "156" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "162", + "kind": "enum", + "name": "PutLockResponseContentType", + "crossLanguageDefinitionId": "putLock.ResponseContentType.anonymous", + "valueType": { + "$id": "163", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "164", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kv+json", + "value": "application/vnd.microsoft.appconfig.kv+json", + "valueType": { + "$id": "165", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "162" + }, + "decorators": [] + }, + { + "$id": "166", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "167", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "162" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "168", + "kind": "enum", + "name": "DeleteLockResponseContentType", + "crossLanguageDefinitionId": "deleteLock.ResponseContentType.anonymous", + "valueType": { + "$id": "169", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "170", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kv+json", + "value": "application/vnd.microsoft.appconfig.kv+json", + "valueType": { + "$id": "171", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "168" + }, + "decorators": [] + }, + { + "$id": "172", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "173", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "168" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "174", + "kind": "enum", + "name": "GetRevisionsResponseContentType", + "crossLanguageDefinitionId": "getRevisions.ResponseContentType.anonymous", + "valueType": { + "$id": "175", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "176", + "kind": "enumvalue", + "name": "application/vnd.microsoft.appconfig.kvset+json", + "value": "application/vnd.microsoft.appconfig.kvset+json", + "valueType": { + "$id": "177", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "174" + }, + "decorators": [] + }, + { + "$id": "178", + "kind": "enumvalue", + "name": "application/problem+json", + "value": "application/problem+json", + "valueType": { + "$id": "179", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "174" + }, + "decorators": [] + } + ], + "isFixed": true, + "isFlags": false, + "usage": "Output", + "decorators": [] + }, + { + "$id": "180", + "kind": "enum", + "name": "Versions", + "crossLanguageDefinitionId": "AzureAppConfiguration.Versions", + "valueType": { + "$id": "181", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "values": [ + { + "$id": "182", + "kind": "enumvalue", + "name": "v2023_11_01", + "value": "2023-11-01", + "valueType": { + "$id": "183", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "enumType": { + "$ref": "180" + }, + "description": "The 2023-11-01 API version", + "decorators": [] + } + ], + "description": "Service API versions", + "isFixed": true, + "isFlags": false, + "usage": "ApiVersionEnum", + "decorators": [] + } + ], + "Models": [ + { + "$id": "184", + "kind": "model", + "name": "KeyListResult", + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyListResult", + "usage": "Output,Json", + "description": "The result of a list request.", + "decorators": [], + "properties": [ + { + "$id": "185", + "kind": "property", + "name": "items", + "serializedName": "items", + "description": "The collection value.", + "type": { + "$id": "186", + "kind": "array", + "name": "ArrayKey", + "valueType": { + "$id": "187", + "kind": "model", + "name": "Key", + "crossLanguageDefinitionId": "AzureAppConfiguration.Key", + "usage": "Output,Json", + "description": "Keys serve as identifiers for key-values and are used to store and retrieve corresponding values.", + "decorators": [], + "properties": [ + { + "$id": "188", + "kind": "property", + "name": "name", + "serializedName": "name", + "description": "The name of the key.", + "type": { + "$id": "189", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Key.name" + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyListResult.items" + }, + { + "$id": "190", + "kind": "property", + "name": "@nextLink", + "serializedName": "@nextLink", + "description": "The URI that can be used to request the next set of paged results.", + "type": { + "$id": "191", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyListResult.@nextLink" + } + ] + }, + { + "$ref": "187" + }, + { + "$id": "192", + "kind": "model", + "name": "Error", + "crossLanguageDefinitionId": "AzureAppConfiguration.Error", + "usage": "Output,Error,Json", + "description": "Azure App Configuration error object.", + "decorators": [], + "properties": [ + { + "$id": "193", + "kind": "property", + "name": "type", + "serializedName": "type", + "description": "The type of the error.", + "type": { + "$id": "194", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Error.type" + }, + { + "$id": "195", + "kind": "property", + "name": "title", + "serializedName": "title", + "description": "A brief summary of the error.", + "type": { + "$id": "196", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Error.title" + }, + { + "$id": "197", + "kind": "property", + "name": "name", + "serializedName": "name", + "description": "The name of the parameter that resulted in the error.", + "type": { + "$id": "198", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Error.name" + }, + { + "$id": "199", + "kind": "property", + "name": "detail", + "serializedName": "detail", + "description": "A detailed description of the error.", + "type": { + "$id": "200", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Error.detail" + }, + { + "$id": "201", + "kind": "property", + "name": "status", + "serializedName": "status", + "description": "The HTTP status code that the error maps to.", + "type": { + "$id": "202", + "kind": "int32", + "name": "int32", + "crossLanguageDefinitionId": "TypeSpec.int32", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Error.status" + } + ] + }, + { + "$id": "203", + "kind": "model", + "name": "KeyValueListResult", + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueListResult", + "usage": "Output,Json", + "description": "The result of a list request.", + "decorators": [], + "properties": [ + { + "$id": "204", + "kind": "property", + "name": "items", + "serializedName": "items", + "description": "The collection value.", + "type": { + "$id": "205", + "kind": "array", + "name": "ArrayKeyValue", + "valueType": { + "$id": "206", + "kind": "model", + "name": "KeyValue", + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue", + "usage": "Input,Output,Json", + "description": "A key-value pair representing application settings.", + "decorators": [], + "properties": [ + { + "$id": "207", + "kind": "property", + "name": "key", + "serializedName": "key", + "description": "The key of the key-value.", + "type": { + "$id": "208", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue.key" + }, + { + "$id": "209", + "kind": "property", + "name": "label", + "serializedName": "label", + "description": "The label the key-value belongs to.", + "type": { + "$id": "210", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue.label" + }, + { + "$id": "211", + "kind": "property", + "name": "contentType", + "serializedName": "content_type", + "description": "The content type of the value stored within the key-value.", + "type": { + "$id": "212", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue.contentType" + }, + { + "$id": "213", + "kind": "property", + "name": "value", + "serializedName": "value", + "description": "The value of the key-value.", + "type": { + "$id": "214", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue.value" + }, + { + "$id": "215", + "kind": "property", + "name": "lastModified", + "serializedName": "last_modified", + "description": "A date representing the last time the key-value was modified.", + "type": { + "$id": "216", + "kind": "offsetDateTime", + "name": "offsetDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "217", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.offsetDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue.lastModified" + }, + { + "$id": "218", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "description": "The tags of the key-value", + "type": { + "$id": "219", + "kind": "dict", + "keyType": { + "$id": "220", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue.tags" + }, + { + "$id": "222", + "kind": "property", + "name": "locked", + "serializedName": "locked", + "description": "Indicates whether the key-value is locked.", + "type": { + "$id": "223", + "kind": "boolean", + "name": "boolean", + "crossLanguageDefinitionId": "TypeSpec.boolean", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue.locked" + }, + { + "$id": "224", + "kind": "property", + "name": "etag", + "serializedName": "etag", + "description": "A value representing the current state of the resource.", + "type": { + "$id": "225", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValue.etag" + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueListResult.items" + }, + { + "$id": "226", + "kind": "property", + "name": "etag", + "serializedName": "etag", + "description": "An identifier representing the returned state of the resource.", + "type": { + "$id": "227", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueListResult.etag" + }, + { + "$id": "228", + "kind": "property", + "name": "@nextLink", + "serializedName": "@nextLink", + "description": "The URI that can be used to request the next set of paged results.", + "type": { + "$id": "229", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueListResult.@nextLink" + } + ] + }, + { + "$ref": "206" + }, + { + "$id": "230", + "kind": "model", + "name": "SnapshotListResult", + "crossLanguageDefinitionId": "AzureAppConfiguration.SnapshotListResult", + "usage": "Output,Json", + "description": "The result of a snapshot list request.", + "decorators": [], + "properties": [ + { + "$id": "231", + "kind": "property", + "name": "items", + "serializedName": "items", + "description": "The collection value.", + "type": { + "$id": "232", + "kind": "array", + "name": "ArraySnapshot", + "valueType": { + "$id": "233", + "kind": "model", + "name": "Snapshot", + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot", + "usage": "Input,Output,Json", + "description": "A snapshot is a named, immutable subset of an App Configuration store's key-values.", + "decorators": [], + "properties": [ + { + "$id": "234", + "kind": "property", + "name": "name", + "serializedName": "name", + "description": "The name of the snapshot.", + "type": { + "$id": "235", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.name" + }, + { + "$id": "236", + "kind": "property", + "name": "status", + "serializedName": "status", + "description": "The current status of the snapshot.", + "type": { + "$ref": "88" + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.status" + }, + { + "$id": "237", + "kind": "property", + "name": "filters", + "serializedName": "filters", + "description": "A list of filters used to filter the key-values included in the snapshot.", + "type": { + "$id": "238", + "kind": "array", + "name": "ArrayKeyValueFilter", + "valueType": { + "$id": "239", + "kind": "model", + "name": "KeyValueFilter", + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueFilter", + "usage": "Input,Output,Json", + "description": "Enables filtering of key-values. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapisnapshots", + "decorators": [], + "properties": [ + { + "$id": "240", + "kind": "property", + "name": "key", + "serializedName": "key", + "description": "Filters key-values by their key field.", + "type": { + "$id": "241", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueFilter.key" + }, + { + "$id": "242", + "kind": "property", + "name": "label", + "serializedName": "label", + "description": "Filters key-values by their label field.", + "type": { + "$id": "243", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueFilter.label" + }, + { + "$id": "244", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "description": "Filters key-values by their tags field.", + "type": { + "$id": "245", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "246", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.KeyValueFilter.tags" + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.filters" + }, + { + "$id": "247", + "kind": "property", + "name": "compositionType", + "serializedName": "composition_type", + "description": "The composition type describes how the key-values within the snapshot are\ncomposed. The 'key' composition type ensures there are no two key-values\ncontaining the same key. The 'key_label' composition type ensures there are no\ntwo key-values containing the same key and label.", + "type": { + "$ref": "98" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.compositionType" + }, + { + "$id": "248", + "kind": "property", + "name": "created", + "serializedName": "created", + "description": "The time that the snapshot was created.", + "type": { + "$id": "249", + "kind": "offsetDateTime", + "name": "offsetDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "250", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.offsetDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.created" + }, + { + "$id": "251", + "kind": "property", + "name": "expires", + "serializedName": "expires", + "description": "The time that the snapshot will expire.", + "type": { + "$id": "252", + "kind": "offsetDateTime", + "name": "offsetDateTime", + "encode": "rfc3339", + "wireType": { + "$id": "253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.offsetDateTime", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.expires" + }, + { + "$id": "254", + "kind": "property", + "name": "retentionPeriod", + "serializedName": "retention_period", + "description": "The amount of time, in seconds, that a snapshot will remain in the archived\nstate before expiring. This property is only writable during the creation of a\nsnapshot. If not specified, the default lifetime of key-value revisions will be\nused.", + "type": { + "$id": "255", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.retentionPeriod" + }, + { + "$id": "256", + "kind": "property", + "name": "size", + "serializedName": "size", + "description": "The size in bytes of the snapshot.", + "type": { + "$id": "257", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.size" + }, + { + "$id": "258", + "kind": "property", + "name": "itemsCount", + "serializedName": "items_count", + "description": "The amount of key-values in the snapshot.", + "type": { + "$id": "259", + "kind": "int64", + "name": "int64", + "crossLanguageDefinitionId": "TypeSpec.int64", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.itemsCount" + }, + { + "$id": "260", + "kind": "property", + "name": "tags", + "serializedName": "tags", + "description": "The tags of the snapshot.", + "type": { + "$id": "261", + "kind": "dict", + "keyType": { + "$id": "262", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "valueType": { + "$id": "263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.tags" + }, + { + "$id": "264", + "kind": "property", + "name": "etag", + "serializedName": "etag", + "description": "A value representing the current state of the snapshot.", + "type": { + "$id": "265", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": true, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Snapshot.etag" + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.SnapshotListResult.items" + }, + { + "$id": "266", + "kind": "property", + "name": "@nextLink", + "serializedName": "@nextLink", + "description": "The URI that can be used to request the next set of paged results.", + "type": { + "$id": "267", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.SnapshotListResult.@nextLink" + } + ] + }, + { + "$ref": "233" + }, + { + "$ref": "239" + }, + { + "$id": "268", + "kind": "model", + "name": "OperationDetails", + "crossLanguageDefinitionId": "AzureAppConfiguration.OperationDetails", + "usage": "Output,Json", + "description": "Details of a long running operation.", + "decorators": [], + "properties": [ + { + "$id": "269", + "kind": "property", + "name": "id", + "serializedName": "id", + "description": "The unique id of the operation.", + "type": { + "$id": "270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.OperationDetails.id" + }, + { + "$id": "271", + "kind": "property", + "name": "status", + "serializedName": "status", + "description": "The current status of the operation", + "type": { + "$ref": "116" + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.OperationDetails.status" + }, + { + "$id": "272", + "kind": "property", + "name": "error", + "serializedName": "error", + "description": "An error, available when the status is `Failed`, describing why the operation\nfailed.", + "type": { + "$id": "273", + "kind": "model", + "name": "ErrorDetail", + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error", + "usage": "Output,Json", + "description": "The error object.", + "decorators": [], + "properties": [ + { + "$id": "274", + "kind": "property", + "name": "code", + "serializedName": "code", + "description": "One of a server-defined set of error codes.", + "type": { + "$id": "275", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.code" + }, + { + "$id": "276", + "kind": "property", + "name": "message", + "serializedName": "message", + "description": "A human-readable representation of the error.", + "type": { + "$id": "277", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": false, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.message" + }, + { + "$id": "278", + "kind": "property", + "name": "target", + "serializedName": "target", + "description": "The target of the error.", + "type": { + "$id": "279", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.target" + }, + { + "$id": "280", + "kind": "property", + "name": "details", + "serializedName": "details", + "description": "An array of details about specific errors that led to this reported error.", + "type": { + "$id": "281", + "kind": "array", + "name": "ArrayError", + "valueType": { + "$ref": "273" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.details" + }, + { + "$id": "282", + "kind": "property", + "name": "innererror", + "serializedName": "innererror", + "description": "An object containing more specific information than the current object about the error.", + "type": { + "$id": "283", + "kind": "model", + "name": "InnerError", + "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError", + "usage": "Output,Json", + "description": "An object containing more specific information about the error. As per Microsoft One API guidelines - https://github.com/Microsoft/api-guidelines/blob/vNext/Guidelines.md#7102-error-condition-responses.", + "decorators": [], + "properties": [ + { + "$id": "284", + "kind": "property", + "name": "code", + "serializedName": "code", + "description": "One of a server-defined set of error codes.", + "type": { + "$id": "285", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.code" + }, + { + "$id": "286", + "kind": "property", + "name": "innererror", + "serializedName": "innererror", + "description": "Inner error.", + "type": { + "$ref": "283" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.InnerError.innererror" + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "Azure.Core.Foundations.Error.innererror" + } + ] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.OperationDetails.error" + } + ] + }, + { + "$ref": "273" + }, + { + "$ref": "283" + }, + { + "$id": "287", + "kind": "model", + "name": "SnapshotUpdateParameters", + "crossLanguageDefinitionId": "AzureAppConfiguration.SnapshotUpdateParameters", + "usage": "Input,JsonMergePatch,Json", + "description": "Parameters used to update a snapshot.", + "decorators": [], + "properties": [ + { + "$id": "288", + "kind": "property", + "name": "status", + "serializedName": "status", + "description": "The desired status of the snapshot.", + "type": { + "$ref": "88" + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.SnapshotUpdateParameters.status" + } + ] + }, + { + "$id": "289", + "kind": "model", + "name": "LabelListResult", + "crossLanguageDefinitionId": "AzureAppConfiguration.LabelListResult", + "usage": "Output,Json", + "description": "The result of a list request.", + "decorators": [], + "properties": [ + { + "$id": "290", + "kind": "property", + "name": "items", + "serializedName": "items", + "description": "The collection value.", + "type": { + "$id": "291", + "kind": "array", + "name": "ArrayLabel", + "valueType": { + "$id": "292", + "kind": "model", + "name": "Label", + "crossLanguageDefinitionId": "AzureAppConfiguration.Label", + "usage": "Output,Json", + "description": "Labels are used to group key-values.", + "decorators": [], + "properties": [ + { + "$id": "293", + "kind": "property", + "name": "name", + "serializedName": "name", + "description": "The name of the label.", + "type": { + "$id": "294", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.Label.name" + } + ] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.LabelListResult.items" + }, + { + "$id": "295", + "kind": "property", + "name": "@nextLink", + "serializedName": "@nextLink", + "description": "The URI that can be used to request the next set of paged results.", + "type": { + "$id": "296", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "optional": true, + "readOnly": false, + "discriminator": false, + "flatten": false, + "decorators": [], + "crossLanguageDefinitionId": "AzureAppConfiguration.LabelListResult.@nextLink" + } + ] + }, + { + "$ref": "292" + } + ], + "Clients": [ + { + "$id": "297", + "Name": "AzureAppConfigurationClient", + "Description": "Azure App Configuration REST API", + "Operations": [ + { + "$id": "298", + "Name": "getKeys", + "ResourceName": "Key", + "Summary": "Gets a list of keys.", + "Description": "Gets a list of keys.", + "Accessibility": "public", + "Parameters": [ + { + "$id": "299", + "Name": "endpoint", + "NameInRequest": "endpoint", + "Type": { + "$id": "300", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url" + }, + "Location": "Uri", + "IsApiVersion": false, + "IsResourceParameter": false, + "IsContentType": false, + "IsRequired": true, + "IsEndpoint": true, + "SkipUrlEncoding": false, + "Explode": false, + "Kind": "Client" + }, + { + "$id": "301", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "302", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "303", + "Type": { + "$id": "304", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "305", + "Name": "name", + "NameInRequest": "name", + "Description": "A filter for the name of the returned keys.", + "Type": { + "$id": "306", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "307", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "308", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "309", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "310", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "311", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "312", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "313", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "315", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "184" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "316", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "318", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "2" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.keyset+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/keys", + "BufferResponse": true, + "Paging": { + "$id": "319", + "ItemName": "items", + "NextLinkName": "@nextLink" + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.getKeys", + "Decorators": [], + "Examples": [ + { + "$id": "320", + "kind": "http", + "name": "Gets a list of keys.", + "description": "Gets a list of keys.", + "filePath": "2023-11-01/GetKeys.json", + "parameters": [ + { + "$id": "321", + "parameter": { + "$ref": "301" + }, + "value": { + "$id": "322", + "kind": "string", + "type": { + "$ref": "302" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "323", + "response": { + "$ref": "315" + }, + "statusCode": 200, + "bodyValue": { + "$id": "324", + "kind": "model", + "type": { + "$ref": "184" + }, + "value": { + "$id": "325", + "items": { + "$id": "326", + "kind": "array", + "type": { + "$ref": "186" + }, + "value": [ + { + "$id": "327", + "kind": "model", + "type": { + "$ref": "187" + }, + "value": { + "$id": "328", + "name": { + "$id": "329", + "kind": "string", + "type": { + "$ref": "189" + }, + "value": "MaxRequests" + } + } + }, + { + "$id": "330", + "kind": "model", + "type": { + "$ref": "187" + }, + "value": { + "$id": "331", + "name": { + "$id": "332", + "kind": "string", + "type": { + "$ref": "189" + }, + "value": "RequestTimeout" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + { + "$id": "333", + "Name": "checkKeys", + "ResourceName": "AzureAppConfiguration", + "Summary": "Requests the headers and status of the given resource.", + "Description": "Requests the headers and status of the given resource.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "334", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "336", + "Type": { + "$id": "337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "338", + "Name": "name", + "NameInRequest": "name", + "Description": "A filter for the name of the returned keys.", + "Type": { + "$id": "339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "340", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "341", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "342", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "343", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "344", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "345", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "346", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "347", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "348", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "349", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "350", + "kind": "constant", + "valueType": { + "$id": "351", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "352", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "353", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "354", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "HEAD", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/keys", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.checkKeys", + "Decorators": [], + "Examples": [ + { + "$id": "355", + "kind": "http", + "name": "Check keys", + "description": "Check keys", + "filePath": "2023-11-01/CheckKeys.json", + "parameters": [ + { + "$id": "356", + "parameter": { + "$ref": "334" + }, + "value": { + "$id": "357", + "kind": "string", + "type": { + "$ref": "335" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "358", + "response": { + "$ref": "352" + }, + "statusCode": 200 + } + ] + } + ] + }, + { + "$id": "359", + "Name": "getKeyValues", + "ResourceName": "KeyValue", + "Summary": "Gets a list of key-values.", + "Description": "Gets a list of key-values.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "360", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "361", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "362", + "Type": { + "$id": "363", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "364", + "Name": "key", + "NameInRequest": "key", + "Description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering", + "Type": { + "$id": "365", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "366", + "Name": "label", + "NameInRequest": "label", + "Description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering", + "Type": { + "$id": "367", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "368", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "369", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "370", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "371", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "372", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "373", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "374", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "375", + "kind": "array", + "name": "ArrayKeyValueFields", + "valueType": { + "$ref": "8" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "376", + "Name": "snapshot", + "NameInRequest": "snapshot", + "Description": "A filter used get key-values for a snapshot. The value should be the name of\nthe snapshot. Not valid when used with 'key' and 'label' filters.", + "Type": { + "$id": "377", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "378", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "379", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "380", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "381", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "382", + "Name": "tags", + "NameInRequest": "tags", + "Description": "A filter used to query by tags. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering", + "Type": { + "$id": "383", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "384", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "385", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "386", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "387", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "203" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "388", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "389", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "390", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "391", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "392", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "26" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.kvset+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/kv", + "BufferResponse": true, + "Paging": { + "$id": "393", + "ItemName": "items", + "NextLinkName": "@nextLink" + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.getKeyValues", + "Decorators": [], + "Examples": [ + { + "$id": "394", + "kind": "http", + "name": "Gets a list of key-values.", + "description": "Gets a list of key-values.", + "filePath": "2023-11-01/GetKeyValues.json", + "parameters": [ + { + "$id": "395", + "parameter": { + "$ref": "360" + }, + "value": { + "$id": "396", + "kind": "string", + "type": { + "$ref": "361" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "397", + "response": { + "$ref": "387" + }, + "statusCode": 200, + "bodyValue": { + "$id": "398", + "kind": "model", + "type": { + "$ref": "203" + }, + "value": { + "$id": "399", + "items": { + "$id": "400", + "kind": "array", + "type": { + "$ref": "205" + }, + "value": [ + { + "$id": "401", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "402", + "etag": { + "$id": "403", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "CTgHR5UrDKNj2nsoGWDOipST9Pv" + }, + "key": { + "$id": "404", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Background" + }, + "label": { + "$id": "405", + "kind": "string", + "type": { + "$ref": "210" + }, + "value": "Asset1" + }, + "value": { + "$id": "406", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "blue" + }, + "tags": { + "$id": "407", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "408" + } + }, + "locked": { + "$id": "409", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "410", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-03-04T17:12:23+00:00" + } + } + }, + { + "$id": "411", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "412", + "etag": { + "$id": "413", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "UTSN1zePHbBQ0npbRB6elGRRuH7" + }, + "key": { + "$id": "414", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "MaxLogFiles" + }, + "label": { + "$id": "415", + "kind": "string", + "type": { + "$ref": "210" + }, + "value": "Asset1" + }, + "value": { + "$id": "416", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "50" + }, + "tags": { + "$id": "417", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "418" + } + }, + "locked": { + "$id": "419", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "420", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-03-04T17:12:23+00:00" + } + } + }, + { + "$id": "421", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "422", + "etag": { + "$id": "423", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "7XpB48ET4VAlB9068ft6fKMyA3m" + }, + "key": { + "$id": "424", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "425", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World" + }, + "tags": { + "$id": "426", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "427" + } + }, + "locked": { + "$id": "428", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "429", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-06-20T16:52:23+00:00" + } + } + }, + { + "$id": "430", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "431", + "etag": { + "$id": "432", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "fAFm4jkGNB1hsIr4o0S5hnhCCvY" + }, + "key": { + "$id": "433", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "WebDemo:Settings:BackgroundColor" + }, + "value": { + "$id": "434", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "blue" + }, + "tags": { + "$id": "435", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "436" + } + }, + "locked": { + "$id": "437", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "438", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-06-20T15:48:01+00:00" + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "439", + "kind": "http", + "name": "Gets a list of key-values using the If-Match header.", + "description": "Gets a list of key-values using the If-Match header.", + "filePath": "2023-11-01/GetKeyValues_IfMatch.json", + "parameters": [ + { + "$id": "440", + "parameter": { + "$ref": "360" + }, + "value": { + "$id": "441", + "kind": "string", + "type": { + "$ref": "361" + }, + "value": "2023-11-01" + } + }, + { + "$id": "442", + "parameter": { + "$ref": "378" + }, + "value": { + "$id": "443", + "kind": "string", + "type": { + "$ref": "379" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "444", + "response": { + "$ref": "387" + }, + "statusCode": 200, + "bodyValue": { + "$id": "445", + "kind": "model", + "type": { + "$ref": "203" + }, + "value": { + "$id": "446", + "items": { + "$id": "447", + "kind": "array", + "type": { + "$ref": "205" + }, + "value": [ + { + "$id": "448", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "449", + "etag": { + "$id": "450", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "CTgHR5UrDKNj2nsoGWDOipST9Pv" + }, + "key": { + "$id": "451", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Background" + }, + "label": { + "$id": "452", + "kind": "string", + "type": { + "$ref": "210" + }, + "value": "Asset1" + }, + "value": { + "$id": "453", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "blue" + }, + "tags": { + "$id": "454", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "455" + } + }, + "locked": { + "$id": "456", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "457", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-03-04T17:12:23+00:00" + } + } + }, + { + "$id": "458", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "459", + "etag": { + "$id": "460", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "UTSN1zePHbBQ0npbRB6elGRRuH7" + }, + "key": { + "$id": "461", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "MaxLogFiles" + }, + "label": { + "$id": "462", + "kind": "string", + "type": { + "$ref": "210" + }, + "value": "Asset1" + }, + "value": { + "$id": "463", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "50" + }, + "tags": { + "$id": "464", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "465" + } + }, + "locked": { + "$id": "466", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "467", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-03-04T17:12:23+00:00" + } + } + }, + { + "$id": "468", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "469", + "etag": { + "$id": "470", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "7XpB48ET4VAlB9068ft6fKMyA3m" + }, + "key": { + "$id": "471", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "472", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World" + }, + "tags": { + "$id": "473", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "474" + } + }, + "locked": { + "$id": "475", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "476", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-06-20T16:52:23+00:00" + } + } + }, + { + "$id": "477", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "478", + "etag": { + "$id": "479", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "fAFm4jkGNB1hsIr4o0S5hnhCCvY" + }, + "key": { + "$id": "480", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "WebDemo:Settings:BackgroundColor" + }, + "value": { + "$id": "481", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "blue" + }, + "tags": { + "$id": "482", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "483" + } + }, + "locked": { + "$id": "484", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "485", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-06-20T15:48:01+00:00" + } + } + } + ] + } + } + } + } + ] + }, + { + "$id": "486", + "kind": "http", + "name": "Gets a list of key-values using the If-None-Match header.", + "description": "Gets a list of key-values using the If-None-Match header.", + "filePath": "2023-11-01/GetKeyValues_IfNoneMatch.json", + "parameters": [ + { + "$id": "487", + "parameter": { + "$ref": "360" + }, + "value": { + "$id": "488", + "kind": "string", + "type": { + "$ref": "361" + }, + "value": "2023-11-01" + } + }, + { + "$id": "489", + "parameter": { + "$ref": "380" + }, + "value": { + "$id": "490", + "kind": "string", + "type": { + "$ref": "381" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV5" + } + } + ], + "responses": [ + { + "$id": "491", + "response": { + "$ref": "387" + }, + "statusCode": 200, + "bodyValue": { + "$id": "492", + "kind": "model", + "type": { + "$ref": "203" + }, + "value": { + "$id": "493", + "items": { + "$id": "494", + "kind": "array", + "type": { + "$ref": "205" + }, + "value": [ + { + "$id": "495", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "496", + "etag": { + "$id": "497", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "CTgHR5UrDKNj2nsoGWDOipST9Pv" + }, + "key": { + "$id": "498", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Background" + }, + "label": { + "$id": "499", + "kind": "string", + "type": { + "$ref": "210" + }, + "value": "Asset1" + }, + "value": { + "$id": "500", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "blue" + }, + "tags": { + "$id": "501", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "502" + } + }, + "locked": { + "$id": "503", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "504", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-03-04T17:12:23+00:00" + } + } + }, + { + "$id": "505", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "506", + "etag": { + "$id": "507", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "UTSN1zePHbBQ0npbRB6elGRRuH7" + }, + "key": { + "$id": "508", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "MaxLogFiles" + }, + "label": { + "$id": "509", + "kind": "string", + "type": { + "$ref": "210" + }, + "value": "Asset1" + }, + "value": { + "$id": "510", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "50" + }, + "tags": { + "$id": "511", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "512" + } + }, + "locked": { + "$id": "513", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "514", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-03-04T17:12:23+00:00" + } + } + }, + { + "$id": "515", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "516", + "etag": { + "$id": "517", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "7XpB48ET4VAlB9068ft6fKMyA3m" + }, + "key": { + "$id": "518", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "519", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World" + }, + "tags": { + "$id": "520", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "521" + } + }, + "locked": { + "$id": "522", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "523", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-06-20T16:52:23+00:00" + } + } + }, + { + "$id": "524", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "525", + "etag": { + "$id": "526", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "fAFm4jkGNB1hsIr4o0S5hnhCCvY" + }, + "key": { + "$id": "527", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "WebDemo:Settings:BackgroundColor" + }, + "value": { + "$id": "528", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "blue" + }, + "tags": { + "$id": "529", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "530" + } + }, + "locked": { + "$id": "531", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "532", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-06-20T15:48:01+00:00" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + { + "$id": "533", + "Name": "checkKeyValues", + "ResourceName": "AzureAppConfiguration", + "Summary": "Requests the headers and status of the given resource.", + "Description": "Requests the headers and status of the given resource.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "534", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "535", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "536", + "Type": { + "$id": "537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "538", + "Name": "key", + "NameInRequest": "key", + "Description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering", + "Type": { + "$id": "539", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "540", + "Name": "label", + "NameInRequest": "label", + "Description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering", + "Type": { + "$id": "541", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "542", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "543", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "544", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "545", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "546", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "547", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "548", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "549", + "kind": "array", + "name": "ArrayKeyValueFields", + "valueType": { + "$ref": "8" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "550", + "Name": "snapshot", + "NameInRequest": "snapshot", + "Description": "A filter used get key-values for a snapshot. Not valid when used with 'key' and 'label' filters.", + "Type": { + "$id": "551", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "552", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "553", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "554", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "555", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "556", + "Name": "tags", + "NameInRequest": "tags", + "Description": "A filter used to query by tags. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering", + "Type": { + "$id": "557", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "558", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "559", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "560", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "561", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "562", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "563", + "kind": "constant", + "valueType": { + "$id": "564", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "565", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "566", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "567", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "568", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "569", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "HEAD", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/kv", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.checkKeyValues", + "Decorators": [], + "Examples": [ + { + "$id": "570", + "kind": "http", + "name": "Requests the headers and status of the given resource.", + "description": "Requests the headers and status of the given resource.", + "filePath": "2023-11-01/CheckKeyValues.json", + "parameters": [ + { + "$id": "571", + "parameter": { + "$ref": "534" + }, + "value": { + "$id": "572", + "kind": "string", + "type": { + "$ref": "535" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "573", + "response": { + "$ref": "565" + }, + "statusCode": 200 + } + ] + }, + { + "$id": "574", + "kind": "http", + "name": "Requests the headers and status of the given resource using the If-Match header.", + "description": "Requests the headers and status of the given resource using the If-Match header.", + "filePath": "2023-11-01/CheckKeyValues_IfMatch.json", + "parameters": [ + { + "$id": "575", + "parameter": { + "$ref": "534" + }, + "value": { + "$id": "576", + "kind": "string", + "type": { + "$ref": "535" + }, + "value": "2023-11-01" + } + }, + { + "$id": "577", + "parameter": { + "$ref": "552" + }, + "value": { + "$id": "578", + "kind": "string", + "type": { + "$ref": "553" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "579", + "response": { + "$ref": "565" + }, + "statusCode": 200 + } + ] + }, + { + "$id": "580", + "kind": "http", + "name": "Requests the headers and status of the given resource using the If-None-Match header.", + "description": "Requests the headers and status of the given resource using the If-None-Match header.", + "filePath": "2023-11-01/CheckKeyValues_IfNoneMatch.json", + "parameters": [ + { + "$id": "581", + "parameter": { + "$ref": "534" + }, + "value": { + "$id": "582", + "kind": "string", + "type": { + "$ref": "535" + }, + "value": "2023-11-01" + } + }, + { + "$id": "583", + "parameter": { + "$ref": "554" + }, + "value": { + "$id": "584", + "kind": "string", + "type": { + "$ref": "555" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "585", + "response": { + "$ref": "565" + }, + "statusCode": 200 + } + ] + } + ] + }, + { + "$id": "586", + "Name": "getKeyValue", + "ResourceName": "AzureAppConfiguration", + "Summary": "Gets a single key-value.", + "Description": "Gets a single key-value.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "587", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "588", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "589", + "Type": { + "$id": "590", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "591", + "Name": "key", + "NameInRequest": "key", + "Description": "The key of the key-value.", + "Type": { + "$id": "592", + "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": "593", + "Name": "label", + "NameInRequest": "label", + "Description": "The label of the key-value to retrieve.", + "Type": { + "$id": "594", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "595", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "596", + "kind": "array", + "name": "ArrayKeyValueFields", + "valueType": { + "$ref": "8" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "597", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "598", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "599", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "600", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "601", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "602", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "603", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "604", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "605", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "606", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "607", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "608", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "609", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "610", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "206" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "611", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "612", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "613", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + }, + { + "$id": "614", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "615", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "616", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "617", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "618", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "32" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/kv/{key}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.getKeyValue", + "Decorators": [], + "Examples": [ + { + "$id": "619", + "kind": "http", + "name": "Gets a single key-value.", + "description": "Gets a single key-value.", + "filePath": "2023-11-01/GetKeyValue.json", + "parameters": [ + { + "$id": "620", + "parameter": { + "$ref": "587" + }, + "value": { + "$id": "621", + "kind": "string", + "type": { + "$ref": "588" + }, + "value": "2023-11-01" + } + }, + { + "$id": "622", + "parameter": { + "$ref": "591" + }, + "value": { + "$id": "623", + "kind": "string", + "type": { + "$ref": "592" + }, + "value": "Message" + } + } + ], + "responses": [ + { + "$id": "624", + "response": { + "$ref": "610" + }, + "statusCode": 200, + "bodyValue": { + "$id": "625", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "626", + "etag": { + "$id": "627", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "7XpB48ET4VAlB9068ft6fKMyA3m" + }, + "key": { + "$id": "628", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "629", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "630", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "631" + } + }, + "locked": { + "$id": "632", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "633", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + }, + { + "$id": "634", + "kind": "http", + "name": "Gets a single key-value using the If-Match header.", + "description": "Gets a single key-value using the If-Match header.", + "filePath": "2023-11-01/GetKeyValue_IfMatch.json", + "parameters": [ + { + "$id": "635", + "parameter": { + "$ref": "587" + }, + "value": { + "$id": "636", + "kind": "string", + "type": { + "$ref": "588" + }, + "value": "2023-11-01" + } + }, + { + "$id": "637", + "parameter": { + "$ref": "591" + }, + "value": { + "$id": "638", + "kind": "string", + "type": { + "$ref": "592" + }, + "value": "Message" + } + }, + { + "$id": "639", + "parameter": { + "$ref": "601" + }, + "value": { + "$id": "640", + "kind": "string", + "type": { + "$ref": "602" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "641", + "response": { + "$ref": "610" + }, + "statusCode": 200, + "bodyValue": { + "$id": "642", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "643", + "etag": { + "$id": "644", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV5" + }, + "key": { + "$id": "645", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "646", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "647", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "648" + } + }, + "locked": { + "$id": "649", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "650", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + }, + { + "$id": "651", + "kind": "http", + "name": "Gets a single key-value using the If-None-Match header.", + "description": "Gets a single key-value using the If-None-Match header.", + "filePath": "2023-11-01/GetKeyValue_IfNoneMatch.json", + "parameters": [ + { + "$id": "652", + "parameter": { + "$ref": "587" + }, + "value": { + "$id": "653", + "kind": "string", + "type": { + "$ref": "588" + }, + "value": "2023-11-01" + } + }, + { + "$id": "654", + "parameter": { + "$ref": "591" + }, + "value": { + "$id": "655", + "kind": "string", + "type": { + "$ref": "592" + }, + "value": "Message" + } + }, + { + "$id": "656", + "parameter": { + "$ref": "603" + }, + "value": { + "$id": "657", + "kind": "string", + "type": { + "$ref": "604" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV5" + } + } + ], + "responses": [ + { + "$id": "658", + "response": { + "$ref": "610" + }, + "statusCode": 200, + "bodyValue": { + "$id": "659", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "660", + "etag": { + "$id": "661", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "7XpB48ET4VAlB9068ft6fKMyA3m" + }, + "key": { + "$id": "662", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "663", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "664", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "665" + } + }, + "locked": { + "$id": "666", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "667", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + } + ] + }, + { + "$id": "668", + "Name": "putKeyValue", + "ResourceName": "AzureAppConfiguration", + "Summary": "Creates a key-value.", + "Description": "Creates a key-value.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "669", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "670", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "671", + "Type": { + "$id": "672", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "673", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "38" + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "674", + "Name": "key", + "NameInRequest": "key", + "Description": "The key of the key-value to create.", + "Type": { + "$id": "675", + "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": "676", + "Name": "label", + "NameInRequest": "label", + "Description": "The label of the key-value to create.", + "Type": { + "$id": "677", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "678", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "679", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "680", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "681", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "682", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "683", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "684", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "685", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "686", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "687", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "688", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "689", + "Name": "entity", + "NameInRequest": "entity", + "Description": "The key-value to create.", + "Type": { + "$ref": "206" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "690", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "206" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "691", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "692", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "693", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "694", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "695", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "52" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/kv/{key}", + "RequestMediaTypes": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/vnd.microsoft.appconfig.kvset+json", + "application/json", + "text/json", + "application/*+json", + "application/json-patch+json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.putKeyValue", + "Decorators": [], + "Examples": [ + { + "$id": "696", + "kind": "http", + "name": "Creates a key-value.", + "description": "Creates a key-value.", + "filePath": "2023-11-01/PutKeyValue.json", + "parameters": [ + { + "$id": "697", + "parameter": { + "$ref": "669" + }, + "value": { + "$id": "698", + "kind": "string", + "type": { + "$ref": "670" + }, + "value": "2023-11-01" + } + }, + { + "$id": "699", + "parameter": { + "$ref": "674" + }, + "value": { + "$id": "700", + "kind": "string", + "type": { + "$ref": "675" + }, + "value": "Message" + } + } + ], + "responses": [ + { + "$id": "701", + "response": { + "$ref": "690" + }, + "statusCode": 200, + "bodyValue": { + "$id": "702", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "703", + "etag": { + "$id": "704", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "tnIHBkDYQwtdNMLoWtr5aybkKwL" + }, + "key": { + "$id": "705", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "706", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "707", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "708" + } + }, + "locked": { + "$id": "709", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "710", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + }, + { + "$id": "711", + "kind": "http", + "name": "Creates a key-value with the If-Match header.", + "description": "Creates a key-value with the If-Match header.", + "filePath": "2023-11-01/PutKeyValue_IfMatch.json", + "parameters": [ + { + "$id": "712", + "parameter": { + "$ref": "669" + }, + "value": { + "$id": "713", + "kind": "string", + "type": { + "$ref": "670" + }, + "value": "2023-11-01" + } + }, + { + "$id": "714", + "parameter": { + "$ref": "674" + }, + "value": { + "$id": "715", + "kind": "string", + "type": { + "$ref": "675" + }, + "value": "Message" + } + }, + { + "$id": "716", + "parameter": { + "$ref": "680" + }, + "value": { + "$id": "717", + "kind": "string", + "type": { + "$ref": "681" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "718", + "response": { + "$ref": "690" + }, + "statusCode": 200, + "bodyValue": { + "$id": "719", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "720", + "etag": { + "$id": "721", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV5" + }, + "key": { + "$id": "722", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "723", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "724", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "725" + } + }, + "locked": { + "$id": "726", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "727", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + } + ] + }, + { + "$id": "728", + "Name": "deleteKeyValue", + "ResourceName": "AzureAppConfiguration", + "Summary": "Deletes a key-value.", + "Description": "Deletes a key-value.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "729", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "730", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "731", + "Type": { + "$id": "732", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "733", + "Name": "key", + "NameInRequest": "key", + "Description": "The key of the key-value to delete.", + "Type": { + "$id": "734", + "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": "735", + "Name": "label", + "NameInRequest": "label", + "Description": "The label of the key-value to delete.", + "Type": { + "$id": "736", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "737", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "738", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "739", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "740", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "741", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "742", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "743", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "744", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "745", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "746", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "206" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "747", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "748", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "749", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "750", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "751", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "58" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ] + }, + { + "$id": "752", + "StatusCodes": [ + 204 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "753", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "754", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "DELETE", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/kv/{key}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.deleteKeyValue", + "Decorators": [], + "Examples": [ + { + "$id": "755", + "kind": "http", + "name": "Deletes a key-value.", + "description": "Deletes a key-value.", + "filePath": "2023-11-01/DeleteKeyValue.json", + "parameters": [ + { + "$id": "756", + "parameter": { + "$ref": "729" + }, + "value": { + "$id": "757", + "kind": "string", + "type": { + "$ref": "730" + }, + "value": "2023-11-01" + } + }, + { + "$id": "758", + "parameter": { + "$ref": "733" + }, + "value": { + "$id": "759", + "kind": "string", + "type": { + "$ref": "734" + }, + "value": "Message" + } + } + ], + "responses": [ + { + "$id": "760", + "response": { + "$ref": "746" + }, + "statusCode": 200, + "bodyValue": { + "$id": "761", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "762", + "etag": { + "$id": "763", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "7XpB48ET4VAlB9068ft6fKMyA3m" + }, + "key": { + "$id": "764", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "765", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "766", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "767" + } + }, + "locked": { + "$id": "768", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "769", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + }, + { + "$id": "770", + "response": { + "$ref": "752" + }, + "statusCode": 204 + } + ] + }, + { + "$id": "771", + "kind": "http", + "name": "Deletes a key-value using If-Match header", + "description": "Deletes a key-value using If-Match header", + "filePath": "2023-11-01/DeleteKeyValue_IfMatch.json", + "parameters": [ + { + "$id": "772", + "parameter": { + "$ref": "729" + }, + "value": { + "$id": "773", + "kind": "string", + "type": { + "$ref": "730" + }, + "value": "2023-11-01" + } + }, + { + "$id": "774", + "parameter": { + "$ref": "733" + }, + "value": { + "$id": "775", + "kind": "string", + "type": { + "$ref": "734" + }, + "value": "Message" + } + }, + { + "$id": "776", + "parameter": { + "$ref": "739" + }, + "value": { + "$id": "777", + "kind": "string", + "type": { + "$ref": "740" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "778", + "response": { + "$ref": "746" + }, + "statusCode": 200, + "bodyValue": { + "$id": "779", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "780", + "etag": { + "$id": "781", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV5" + }, + "key": { + "$id": "782", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "783", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "784", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "785" + } + }, + "locked": { + "$id": "786", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "787", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + }, + { + "$id": "788", + "response": { + "$ref": "752" + }, + "statusCode": 204 + } + ] + } + ] + }, + { + "$id": "789", + "Name": "checkKeyValue", + "ResourceName": "AzureAppConfiguration", + "Summary": "Requests the headers and status of the given resource.", + "Description": "Requests the headers and status of the given resource.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "790", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "791", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "792", + "Type": { + "$id": "793", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "794", + "Name": "key", + "NameInRequest": "key", + "Description": "The key of the key-value to retrieve.", + "Type": { + "$id": "795", + "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": "796", + "Name": "label", + "NameInRequest": "label", + "Description": "The label of the key-value to retrieve.", + "Type": { + "$id": "797", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "798", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "799", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "800", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "801", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "802", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "803", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "804", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "805", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "806", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "807", + "kind": "array", + "name": "ArrayKeyValueFields", + "valueType": { + "$ref": "8" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "808", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "809", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "810", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "811", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "812", + "kind": "constant", + "valueType": { + "$id": "813", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "814", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "815", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "816", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "817", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "818", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "HEAD", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/kv/{key}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.checkKeyValue", + "Decorators": [], + "Examples": [ + { + "$id": "819", + "kind": "http", + "name": "Requests the headers and status of the given resource.", + "description": "Requests the headers and status of the given resource.", + "filePath": "2023-11-01/CheckKeyValue.json", + "parameters": [ + { + "$id": "820", + "parameter": { + "$ref": "790" + }, + "value": { + "$id": "821", + "kind": "string", + "type": { + "$ref": "791" + }, + "value": "2023-11-01" + } + }, + { + "$id": "822", + "parameter": { + "$ref": "794" + }, + "value": { + "$id": "823", + "kind": "string", + "type": { + "$ref": "795" + }, + "value": "Message" + } + } + ], + "responses": [ + { + "$id": "824", + "response": { + "$ref": "814" + }, + "statusCode": 200 + } + ] + }, + { + "$id": "825", + "kind": "http", + "name": "Requests the headers and status of the given resource using the If-Match header.", + "description": "Requests the headers and status of the given resource using the If-Match header.", + "filePath": "2023-11-01/CheckKeyValue_IfMatch.json", + "parameters": [ + { + "$id": "826", + "parameter": { + "$ref": "790" + }, + "value": { + "$id": "827", + "kind": "string", + "type": { + "$ref": "791" + }, + "value": "2023-11-01" + } + }, + { + "$id": "828", + "parameter": { + "$ref": "794" + }, + "value": { + "$id": "829", + "kind": "string", + "type": { + "$ref": "795" + }, + "value": "Message" + } + }, + { + "$id": "830", + "parameter": { + "$ref": "802" + }, + "value": { + "$id": "831", + "kind": "string", + "type": { + "$ref": "803" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "832", + "response": { + "$ref": "814" + }, + "statusCode": 200 + } + ] + }, + { + "$id": "833", + "kind": "http", + "name": "Requests the headers and status of the given resource using the If-None-Match header.", + "description": "Requests the headers and status of the given resource using the If-None-Match header.", + "filePath": "2023-11-01/CheckKeyValue_IfNoneMatch.json", + "parameters": [ + { + "$id": "834", + "parameter": { + "$ref": "790" + }, + "value": { + "$id": "835", + "kind": "string", + "type": { + "$ref": "791" + }, + "value": "2023-11-01" + } + }, + { + "$id": "836", + "parameter": { + "$ref": "794" + }, + "value": { + "$id": "837", + "kind": "string", + "type": { + "$ref": "795" + }, + "value": "Message" + } + }, + { + "$id": "838", + "parameter": { + "$ref": "804" + }, + "value": { + "$id": "839", + "kind": "string", + "type": { + "$ref": "805" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV5" + } + } + ], + "responses": [ + { + "$id": "840", + "response": { + "$ref": "814" + }, + "statusCode": 200 + } + ] + } + ] + }, + { + "$id": "841", + "Name": "getSnapshots", + "ResourceName": "Snapshot", + "Summary": "Gets a list of key-value snapshots.", + "Description": "Gets a list of key-value snapshots.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "842", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "843", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "844", + "Type": { + "$id": "845", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "846", + "Name": "name", + "NameInRequest": "name", + "Description": "A filter for the name of the returned snapshots.", + "Type": { + "$id": "847", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "848", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "849", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "850", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "851", + "kind": "array", + "name": "ArraySnapshotFields", + "valueType": { + "$ref": "64" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "852", + "Name": "status", + "NameInRequest": "status", + "Description": "Used to filter returned snapshots by their status property.", + "Type": { + "$id": "853", + "kind": "array", + "name": "ArraySnapshotStatus", + "valueType": { + "$ref": "88" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "854", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "855", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "856", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "857", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "858", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "230" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "859", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "860", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "861", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "104" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.snapshotset+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/snapshots", + "BufferResponse": true, + "Paging": { + "$id": "862", + "ItemName": "items", + "NextLinkName": "@nextLink" + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.getSnapshots", + "Decorators": [], + "Examples": [ + { + "$id": "863", + "kind": "http", + "name": "Gets a list of key-value snapshots.", + "description": "Gets a list of key-value snapshots.", + "filePath": "2023-11-01/GetSnapshots.json", + "parameters": [ + { + "$id": "864", + "parameter": { + "$ref": "842" + }, + "value": { + "$id": "865", + "kind": "string", + "type": { + "$ref": "843" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "866", + "response": { + "$ref": "858" + }, + "statusCode": 200, + "bodyValue": { + "$id": "867", + "kind": "model", + "type": { + "$ref": "230" + }, + "value": { + "$id": "868", + "items": { + "$id": "869", + "kind": "array", + "type": { + "$ref": "232" + }, + "value": [ + { + "$id": "870", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "871", + "etag": { + "$id": "872", + "kind": "string", + "type": { + "$ref": "265" + }, + "value": "4f6dd610dd5e4deebc7fbaef685fb903" + }, + "name": { + "$id": "873", + "kind": "string", + "type": { + "$ref": "235" + }, + "value": "Prod-2022-08-01" + }, + "status": { + "$id": "874", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "ready" + }, + "filters": { + "$id": "875", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "876", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "877", + "key": { + "$id": "878", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "879", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "created": { + "$id": "880", + "kind": "string", + "type": { + "$ref": "249" + }, + "value": "2022-08-01T22:19:40+00:00" + }, + "size": { + "$id": "881", + "kind": "number", + "type": { + "$ref": "257" + }, + "value": 100000 + }, + "items_count": { + "$id": "882", + "kind": "number", + "type": { + "$ref": "259" + }, + "value": 71 + }, + "retention_period": { + "$id": "883", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 2592000 + }, + "tags": { + "$id": "884", + "kind": "dict", + "type": { + "$ref": "261" + }, + "value": { + "$id": "885", + "release": { + "$id": "886", + "kind": "string", + "type": { + "$ref": "263" + }, + "value": "{link/id}" + } + } + } + } + } + ] + } + } + } + } + ] + } + ] + }, + { + "$id": "887", + "Name": "checkSnapshots", + "ResourceName": "AzureAppConfiguration", + "Summary": "Requests the headers and status of the given resource.", + "Description": "Requests the headers and status of the given resource.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "888", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "889", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "890", + "Type": { + "$id": "891", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "892", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "893", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "894", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "895", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "896", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "897", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "898", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "899", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "900", + "kind": "constant", + "valueType": { + "$id": "901", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "902", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "903", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "904", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "HEAD", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/snapshots", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.checkSnapshots", + "Decorators": [], + "Examples": [ + { + "$id": "905", + "kind": "http", + "name": "Requests the headers and status of the given resource.", + "description": "Requests the headers and status of the given resource.", + "filePath": "2023-11-01/CheckSnapshots.json", + "parameters": [ + { + "$id": "906", + "parameter": { + "$ref": "888" + }, + "value": { + "$id": "907", + "kind": "string", + "type": { + "$ref": "889" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "908", + "response": { + "$ref": "902" + }, + "statusCode": 200 + } + ] + } + ] + }, + { + "$id": "909", + "Name": "getSnapshot", + "ResourceName": "Snapshot", + "Summary": "Gets a single key-value snapshot.", + "Description": "Gets a single key-value snapshot.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "910", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "911", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "912", + "Type": { + "$id": "913", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "914", + "Name": "name", + "NameInRequest": "name", + "Description": "The name of the snapshot.", + "Type": { + "$id": "915", + "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": "916", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "917", + "kind": "array", + "name": "ArraySnapshotFields", + "valueType": { + "$ref": "64" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "918", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "919", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "920", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "921", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "922", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "923", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "924", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "925", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "926", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "927", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "928", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "929", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "233" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "930", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "931", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "932", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "933", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "934", + "Name": "link", + "NameInResponse": "Link", + "Description": "Includes links to related resources.", + "Type": { + "$id": "935", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "936", + "Name": "clientRequestId", + "NameInResponse": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "937", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "938", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + } + }, + { + "$id": "939", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "110" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/snapshots/{name}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.getSnapshot", + "Decorators": [], + "Examples": [ + { + "$id": "940", + "kind": "http", + "name": "Gets a single key-value snapshot.", + "description": "Gets a single key-value snapshot.", + "filePath": "2023-11-01/GetSnapshot.json", + "parameters": [ + { + "$id": "941", + "parameter": { + "$ref": "910" + }, + "value": { + "$id": "942", + "kind": "string", + "type": { + "$ref": "911" + }, + "value": "2023-11-01" + } + }, + { + "$id": "943", + "parameter": { + "$ref": "914" + }, + "value": { + "$id": "944", + "kind": "string", + "type": { + "$ref": "915" + }, + "value": "Prod-2022-08-01" + } + } + ], + "responses": [ + { + "$id": "945", + "response": { + "$ref": "929" + }, + "statusCode": 200, + "bodyValue": { + "$id": "946", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "947", + "etag": { + "$id": "948", + "kind": "string", + "type": { + "$ref": "265" + }, + "value": "4f6dd610dd5e4deebc7fbaef685fb903" + }, + "name": { + "$id": "949", + "kind": "string", + "type": { + "$ref": "235" + }, + "value": "Prod-2022-08-01" + }, + "status": { + "$id": "950", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "ready" + }, + "filters": { + "$id": "951", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "952", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "953", + "key": { + "$id": "954", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "955", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "created": { + "$id": "956", + "kind": "string", + "type": { + "$ref": "249" + }, + "value": "2022-08-01T22:19:40+00:00" + }, + "size": { + "$id": "957", + "kind": "number", + "type": { + "$ref": "257" + }, + "value": 100000 + }, + "items_count": { + "$id": "958", + "kind": "number", + "type": { + "$ref": "259" + }, + "value": 71 + }, + "retention_period": { + "$id": "959", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 2592000 + }, + "tags": { + "$id": "960", + "kind": "dict", + "type": { + "$ref": "261" + }, + "value": { + "$id": "961", + "release": { + "$id": "962", + "kind": "string", + "type": { + "$ref": "263" + }, + "value": "{link/id}" + } + } + } + } + } + } + ] + }, + { + "$id": "963", + "kind": "http", + "name": "Gets a single key-value snapshot failed.", + "description": "Gets a single key-value snapshot failed.", + "filePath": "2023-11-01/GetSnapshot_Failed.json", + "parameters": [ + { + "$id": "964", + "parameter": { + "$ref": "910" + }, + "value": { + "$id": "965", + "kind": "string", + "type": { + "$ref": "911" + }, + "value": "2023-11-01" + } + }, + { + "$id": "966", + "parameter": { + "$ref": "914" + }, + "value": { + "$id": "967", + "kind": "string", + "type": { + "$ref": "915" + }, + "value": "Prod-2022-08-01" + } + }, + { + "$id": "968", + "parameter": { + "$ref": "920" + }, + "value": { + "$id": "969", + "kind": "string", + "type": { + "$ref": "921" + }, + "value": "\"4f6dd610dd5e4deebc7fbaef685fb903\"" + } + } + ], + "responses": [ + { + "$id": "970", + "response": { + "$ref": "929" + }, + "statusCode": 200, + "bodyValue": { + "$id": "971", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "972", + "etag": { + "$id": "973", + "kind": "string", + "type": { + "$ref": "265" + }, + "value": "4f6dd610dd5e4deebc7fbaef685fb903" + }, + "name": { + "$id": "974", + "kind": "string", + "type": { + "$ref": "235" + }, + "value": "Prod-2022-08-01" + }, + "status": { + "$id": "975", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "failed" + }, + "filters": { + "$id": "976", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "977", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "978", + "key": { + "$id": "979", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "980", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "created": { + "$id": "981", + "kind": "string", + "type": { + "$ref": "249" + }, + "value": "2022-08-01T22:19:40+00:00" + }, + "size": { + "$id": "982", + "kind": "number", + "type": { + "$ref": "257" + }, + "value": 0 + }, + "items_count": { + "$id": "983", + "kind": "number", + "type": { + "$ref": "259" + }, + "value": 0 + }, + "retention_period": { + "$id": "984", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 2592000 + }, + "tags": { + "$id": "985", + "kind": "dict", + "type": { + "$ref": "261" + }, + "value": { + "$id": "986", + "release": { + "$id": "987", + "kind": "string", + "type": { + "$ref": "263" + }, + "value": "{link/id}" + } + } + } + } + } + } + ] + }, + { + "$id": "988", + "kind": "http", + "name": "Gets a single key-value snapshot using If-Match header.", + "description": "Gets a single key-value snapshot using If-Match header.", + "filePath": "2023-11-01/GetSnapshot_IfMatch.json", + "parameters": [ + { + "$id": "989", + "parameter": { + "$ref": "910" + }, + "value": { + "$id": "990", + "kind": "string", + "type": { + "$ref": "911" + }, + "value": "2023-11-01" + } + }, + { + "$id": "991", + "parameter": { + "$ref": "914" + }, + "value": { + "$id": "992", + "kind": "string", + "type": { + "$ref": "915" + }, + "value": "Prod-2022-08-01" + } + }, + { + "$id": "993", + "parameter": { + "$ref": "920" + }, + "value": { + "$id": "994", + "kind": "string", + "type": { + "$ref": "921" + }, + "value": "\"4f6dd610dd5e4deebc7fbaef685fb903\"" + } + } + ], + "responses": [ + { + "$id": "995", + "response": { + "$ref": "929" + }, + "statusCode": 200, + "bodyValue": { + "$id": "996", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "997", + "etag": { + "$id": "998", + "kind": "string", + "type": { + "$ref": "265" + }, + "value": "4f6dd610dd5e4deebc7fbaef685fb903" + }, + "name": { + "$id": "999", + "kind": "string", + "type": { + "$ref": "235" + }, + "value": "Prod-2022-08-01" + }, + "status": { + "$id": "1000", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "ready" + }, + "filters": { + "$id": "1001", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "1002", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "1003", + "key": { + "$id": "1004", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "1005", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "created": { + "$id": "1006", + "kind": "string", + "type": { + "$ref": "249" + }, + "value": "2022-08-01T22:19:40+00:00" + }, + "size": { + "$id": "1007", + "kind": "number", + "type": { + "$ref": "257" + }, + "value": 100000 + }, + "items_count": { + "$id": "1008", + "kind": "number", + "type": { + "$ref": "259" + }, + "value": 71 + }, + "retention_period": { + "$id": "1009", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 2592000 + }, + "tags": { + "$id": "1010", + "kind": "dict", + "type": { + "$ref": "261" + }, + "value": { + "$id": "1011", + "release": { + "$id": "1012", + "kind": "string", + "type": { + "$ref": "263" + }, + "value": "{link/id}" + } + } + } + } + } + } + ] + }, + { + "$id": "1013", + "kind": "http", + "name": "Gets a single key-value snapshot using If-None-Match header.", + "description": "Gets a single key-value snapshot using If-None-Match header.", + "filePath": "2023-11-01/GetSnapshot_IfNoneMatch.json", + "parameters": [ + { + "$id": "1014", + "parameter": { + "$ref": "910" + }, + "value": { + "$id": "1015", + "kind": "string", + "type": { + "$ref": "911" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1016", + "parameter": { + "$ref": "914" + }, + "value": { + "$id": "1017", + "kind": "string", + "type": { + "$ref": "915" + }, + "value": "Prod-2022-08-01" + } + }, + { + "$id": "1018", + "parameter": { + "$ref": "922" + }, + "value": { + "$id": "1019", + "kind": "string", + "type": { + "$ref": "923" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "1020", + "response": { + "$ref": "929" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1021", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "1022", + "etag": { + "$id": "1023", + "kind": "string", + "type": { + "$ref": "265" + }, + "value": "4f6dd610dd5e4deebc7fbaef685fb903" + }, + "name": { + "$id": "1024", + "kind": "string", + "type": { + "$ref": "235" + }, + "value": "Prod-2022-08-01" + }, + "status": { + "$id": "1025", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "ready" + }, + "filters": { + "$id": "1026", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "1027", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "1028", + "key": { + "$id": "1029", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "1030", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "created": { + "$id": "1031", + "kind": "string", + "type": { + "$ref": "249" + }, + "value": "2022-08-01T22:19:40+00:00" + }, + "size": { + "$id": "1032", + "kind": "number", + "type": { + "$ref": "257" + }, + "value": 100000 + }, + "items_count": { + "$id": "1033", + "kind": "number", + "type": { + "$ref": "259" + }, + "value": 71 + }, + "retention_period": { + "$id": "1034", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 2592000 + }, + "tags": { + "$id": "1035", + "kind": "dict", + "type": { + "$ref": "261" + }, + "value": { + "$id": "1036", + "release": { + "$id": "1037", + "kind": "string", + "type": { + "$ref": "263" + }, + "value": "{link/id}" + } + } + } + } + } + } + ] + } + ] + }, + { + "$id": "1038", + "Name": "getOperationDetails", + "ResourceName": "AzureAppConfiguration", + "Summary": "Gets the state of a long running operation.", + "Description": "Gets the state of a long running operation.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1039", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1040", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1041", + "Type": { + "$id": "1042", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1043", + "Name": "snapshot", + "NameInRequest": "snapshot", + "Description": "Snapshot identifier for the long running operation.", + "Type": { + "$id": "1044", + "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": "1045", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1046", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1047", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1048", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1049", + "kind": "constant", + "valueType": { + "$id": "1050", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1051", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "268" + }, + "BodyMediaType": "Json", + "Headers": [], + "IsErrorResponse": false, + "ContentTypes": [ + "application/json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/operations", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.getOperationDetails", + "Decorators": [], + "Examples": [ + { + "$id": "1052", + "kind": "http", + "name": "Gets the state of a long running operation.", + "description": "Gets the state of a long running operation.", + "filePath": "2023-11-01/GetOperationStatus.json", + "parameters": [ + { + "$id": "1053", + "parameter": { + "$ref": "1039" + }, + "value": { + "$id": "1054", + "kind": "string", + "type": { + "$ref": "1040" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1055", + "parameter": { + "$ref": "1043" + }, + "value": { + "$id": "1056", + "kind": "string", + "type": { + "$ref": "1044" + }, + "value": "Prod-2022-08-01" + } + } + ], + "responses": [ + { + "$id": "1057", + "response": { + "$ref": "1051" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1058", + "kind": "model", + "type": { + "$ref": "268" + }, + "value": { + "$id": "1059", + "id": { + "$id": "1060", + "kind": "string", + "type": { + "$ref": "270" + }, + "value": "4yghgV_8lJJ5t7_kxhMpsyNCyjmZE5Q6zU0pXOp7Jvs" + }, + "status": { + "$id": "1061", + "kind": "string", + "type": { + "$ref": "116" + }, + "value": "Running" + } + } + } + } + ] + } + ] + }, + { + "$id": "1062", + "Name": "createSnapshot", + "ResourceName": "Snapshot", + "Summary": "Creates a key-value snapshot.", + "Description": "Creates a key-value snapshot.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1063", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1064", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1065", + "Type": { + "$id": "1066", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1067", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "128" + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1068", + "Name": "name", + "NameInRequest": "name", + "Description": "The name of the key-value snapshot to create.", + "Type": { + "$id": "1069", + "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": "1070", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1071", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1072", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1073", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1074", + "Name": "entity", + "NameInRequest": "entity", + "Description": "The key-value snapshot to create.", + "Type": { + "$ref": "233" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1075", + "StatusCodes": [ + 201 + ], + "BodyType": { + "$ref": "233" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1076", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1077", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1078", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "1079", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1080", + "Name": "link", + "NameInResponse": "Link", + "Description": "Includes links to related resources.", + "Type": { + "$id": "1081", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1082", + "Name": "operationLocation", + "NameInResponse": "Operation-Location", + "Description": "The location for monitoring the operation state.", + "Type": { + "$id": "1083", + "kind": "url", + "name": "ResourceLocation", + "crossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation", + "baseType": { + "$id": "1084", + "kind": "url", + "name": "url", + "crossLanguageDefinitionId": "TypeSpec.url", + "decorators": [] + }, + "decorators": [] + } + }, + { + "$id": "1085", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "134" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/snapshots/{name}", + "RequestMediaTypes": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/json" + ], + "BufferResponse": true, + "LongRunning": { + "$id": "1086", + "FinalStateVia": 2, + "FinalResponse": { + "$id": "1087", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "233" + }, + "BodyMediaType": "Json" + } + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.createSnapshot", + "Decorators": [], + "Examples": [ + { + "$id": "1088", + "kind": "http", + "name": "Creates a key-value snapshot.", + "description": "Creates a key-value snapshot.", + "filePath": "2023-11-01/CreateSnapshot.json", + "parameters": [ + { + "$id": "1089", + "parameter": { + "$ref": "1063" + }, + "value": { + "$id": "1090", + "kind": "string", + "type": { + "$ref": "1064" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1091", + "parameter": { + "$ref": "1068" + }, + "value": { + "$id": "1092", + "kind": "string", + "type": { + "$ref": "1069" + }, + "value": "Prod-2022-08-01" + } + }, + { + "$id": "1093", + "parameter": { + "$ref": "1074" + }, + "value": { + "$id": "1094", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "1095", + "filters": { + "$id": "1096", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "1097", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "1098", + "key": { + "$id": "1099", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "1100", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "retention_period": { + "$id": "1101", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 3600 + } + } + } + } + ], + "responses": [ + { + "$id": "1102", + "response": { + "$ref": "1075" + }, + "statusCode": 201, + "bodyValue": { + "$id": "1103", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "1104", + "etag": { + "$id": "1105", + "kind": "string", + "type": { + "$ref": "265" + }, + "value": "4f6dd610dd5e4deebc7fbaef685fb903" + }, + "name": { + "$id": "1106", + "kind": "string", + "type": { + "$ref": "235" + }, + "value": "Prod-2022-08-01" + }, + "status": { + "$id": "1107", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "provisioning" + }, + "filters": { + "$id": "1108", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "1109", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "1110", + "key": { + "$id": "1111", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "1112", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "created": { + "$id": "1113", + "kind": "string", + "type": { + "$ref": "249" + }, + "value": "2022-08-01T22:19:40+00:00" + }, + "size": { + "$id": "1114", + "kind": "number", + "type": { + "$ref": "257" + }, + "value": 0 + }, + "items_count": { + "$id": "1115", + "kind": "number", + "type": { + "$ref": "259" + }, + "value": 0 + }, + "retention_period": { + "$id": "1116", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 3600 + }, + "tags": { + "$id": "1117", + "kind": "dict", + "type": { + "$ref": "261" + }, + "value": { + "$id": "1118" + } + } + } + } + } + ] + } + ] + }, + { + "$id": "1119", + "Name": "updateSnapshot", + "ResourceName": "AzureAppConfiguration", + "Summary": "Updates the state of a key-value snapshot.", + "Description": "Updates the state of a key-value snapshot.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1120", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1121", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1122", + "Type": { + "$id": "1123", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1124", + "Name": "contentType", + "NameInRequest": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "140" + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": true, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1125", + "Name": "name", + "NameInRequest": "name", + "Description": "The name of the key-value snapshot to update.", + "Type": { + "$id": "1126", + "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": "1127", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1128", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1129", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "1130", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1131", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "1132", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1133", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1134", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1135", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1136", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1137", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1138", + "Name": "entity", + "NameInRequest": "entity", + "Description": "The parameters used to update the snapshot.", + "Type": { + "$ref": "287" + }, + "Location": "Body", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1139", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "233" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1140", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1141", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1142", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "1143", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1144", + "Name": "link", + "NameInResponse": "Link", + "Description": "Includes links to related resources.", + "Type": { + "$id": "1145", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1146", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "146" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "PATCH", + "RequestBodyMediaType": "Json", + "Uri": "{endpoint}", + "Path": "/snapshots/{name}", + "RequestMediaTypes": [ + "application/merge-patch+json", + "application/json" + ], + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": false, + "CrossLanguageDefinitionId": "AzureAppConfiguration.updateSnapshot", + "Decorators": [], + "Examples": [ + { + "$id": "1147", + "kind": "http", + "name": "Updates the state of a key-value snapshot.", + "description": "Updates the state of a key-value snapshot.", + "filePath": "2023-11-01/UpdateSnapshot.json", + "parameters": [ + { + "$id": "1148", + "parameter": { + "$ref": "1120" + }, + "value": { + "$id": "1149", + "kind": "string", + "type": { + "$ref": "1121" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1150", + "parameter": { + "$ref": "1125" + }, + "value": { + "$id": "1151", + "kind": "string", + "type": { + "$ref": "1126" + }, + "value": "Prod-2022-08-01" + } + }, + { + "$id": "1152", + "parameter": { + "$ref": "1138" + }, + "value": { + "$id": "1153", + "kind": "model", + "type": { + "$ref": "287" + }, + "value": { + "$id": "1154", + "status": { + "$id": "1155", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "archived" + } + } + } + } + ], + "responses": [ + { + "$id": "1156", + "response": { + "$ref": "1139" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1157", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "1158", + "etag": { + "$id": "1159", + "kind": "string", + "type": { + "$ref": "265" + }, + "value": "4f6dd610dd5e4deebc7fbaef685fb903" + }, + "name": { + "$id": "1160", + "kind": "string", + "type": { + "$ref": "235" + }, + "value": "Prod-2022-08-01" + }, + "status": { + "$id": "1161", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "archived" + }, + "filters": { + "$id": "1162", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "1163", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "1164", + "key": { + "$id": "1165", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "1166", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "created": { + "$id": "1167", + "kind": "string", + "type": { + "$ref": "249" + }, + "value": "2022-08-01T22:19:40+00:00" + }, + "expires": { + "$id": "1168", + "kind": "string", + "type": { + "$ref": "252" + }, + "value": "2022-09-01T22:19:40+00:00" + }, + "size": { + "$id": "1169", + "kind": "number", + "type": { + "$ref": "257" + }, + "value": 10000 + }, + "items_count": { + "$id": "1170", + "kind": "number", + "type": { + "$ref": "259" + }, + "value": 70 + }, + "retention_period": { + "$id": "1171", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 2592000 + }, + "tags": { + "$id": "1172", + "kind": "dict", + "type": { + "$ref": "261" + }, + "value": { + "$id": "1173" + } + } + } + } + } + ] + }, + { + "$id": "1174", + "kind": "http", + "name": "Updates the state of a key-value snapshot using the If-Match header.", + "description": "Updates the state of a key-value snapshot using the If-Match header.", + "filePath": "2023-11-01/UpdateSnapshot_IfMatch.json", + "parameters": [ + { + "$id": "1175", + "parameter": { + "$ref": "1120" + }, + "value": { + "$id": "1176", + "kind": "string", + "type": { + "$ref": "1121" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1177", + "parameter": { + "$ref": "1125" + }, + "value": { + "$id": "1178", + "kind": "string", + "type": { + "$ref": "1126" + }, + "value": "Prod-2022-08-01" + } + }, + { + "$id": "1179", + "parameter": { + "$ref": "1138" + }, + "value": { + "$id": "1180", + "kind": "model", + "type": { + "$ref": "287" + }, + "value": { + "$id": "1181", + "status": { + "$id": "1182", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "archived" + } + } + } + }, + { + "$id": "1183", + "parameter": { + "$ref": "1129" + }, + "value": { + "$id": "1184", + "kind": "string", + "type": { + "$ref": "1130" + }, + "value": "\"4f6dd610dd5e4deebc7fbaef685fb903\"" + } + } + ], + "responses": [ + { + "$id": "1185", + "response": { + "$ref": "1139" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1186", + "kind": "model", + "type": { + "$ref": "233" + }, + "value": { + "$id": "1187", + "etag": { + "$id": "1188", + "kind": "string", + "type": { + "$ref": "265" + }, + "value": "4f6dd610dd5e4deebc7fbaef685fb903" + }, + "name": { + "$id": "1189", + "kind": "string", + "type": { + "$ref": "235" + }, + "value": "Prod-2022-08-01" + }, + "status": { + "$id": "1190", + "kind": "string", + "type": { + "$ref": "88" + }, + "value": "archived" + }, + "filters": { + "$id": "1191", + "kind": "array", + "type": { + "$ref": "238" + }, + "value": [ + { + "$id": "1192", + "kind": "model", + "type": { + "$ref": "239" + }, + "value": { + "$id": "1193", + "key": { + "$id": "1194", + "kind": "string", + "type": { + "$ref": "241" + }, + "value": "app1/*" + }, + "label": { + "$id": "1195", + "kind": "string", + "type": { + "$ref": "243" + }, + "value": "Production" + } + } + } + ] + }, + "created": { + "$id": "1196", + "kind": "string", + "type": { + "$ref": "249" + }, + "value": "2022-08-01T22:19:40+00:00" + }, + "expires": { + "$id": "1197", + "kind": "string", + "type": { + "$ref": "252" + }, + "value": "2022-09-01T22:19:40+00:00" + }, + "size": { + "$id": "1198", + "kind": "number", + "type": { + "$ref": "257" + }, + "value": 10000 + }, + "items_count": { + "$id": "1199", + "kind": "number", + "type": { + "$ref": "259" + }, + "value": 70 + }, + "retention_period": { + "$id": "1200", + "kind": "number", + "type": { + "$ref": "255" + }, + "value": 2592000 + }, + "tags": { + "$id": "1201", + "kind": "dict", + "type": { + "$ref": "261" + }, + "value": { + "$id": "1202" + } + } + } + } + } + ] + } + ] + }, + { + "$id": "1203", + "Name": "checkSnapshot", + "ResourceName": "AzureAppConfiguration", + "Summary": "Requests the headers and status of the given resource.", + "Description": "Requests the headers and status of the given resource.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1204", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1205", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1206", + "Type": { + "$id": "1207", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1208", + "Name": "name", + "NameInRequest": "name", + "Description": "The name of the key-value snapshot to check.", + "Type": { + "$id": "1209", + "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": "1210", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1211", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1212", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "1213", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1214", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "1215", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1216", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1217", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1218", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1219", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1220", + "kind": "constant", + "valueType": { + "$id": "1221", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1222", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1223", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1224", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1225", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "1226", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1227", + "Name": "link", + "NameInResponse": "Link", + "Description": "Includes links to related resources.", + "Type": { + "$id": "1228", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "HEAD", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/snapshots/{name}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.checkSnapshot", + "Decorators": [], + "Examples": [ + { + "$id": "1229", + "kind": "http", + "name": "Requests the headers and status of the given resource.", + "description": "Requests the headers and status of the given resource.", + "filePath": "2023-11-01/CheckSnapshot.json", + "parameters": [ + { + "$id": "1230", + "parameter": { + "$ref": "1204" + }, + "value": { + "$id": "1231", + "kind": "string", + "type": { + "$ref": "1205" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1232", + "parameter": { + "$ref": "1208" + }, + "value": { + "$id": "1233", + "kind": "string", + "type": { + "$ref": "1209" + }, + "value": "Prod-2022-08-01" + } + } + ], + "responses": [ + { + "$id": "1234", + "response": { + "$ref": "1222" + }, + "statusCode": 200 + } + ] + }, + { + "$id": "1235", + "kind": "http", + "name": "Requests the headers and status of the given resource using If-Match header.", + "description": "Requests the headers and status of the given resource using If-Match header.", + "filePath": "2023-11-01/CheckSnapshot_IfMatch.json", + "parameters": [ + { + "$id": "1236", + "parameter": { + "$ref": "1204" + }, + "value": { + "$id": "1237", + "kind": "string", + "type": { + "$ref": "1205" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1238", + "parameter": { + "$ref": "1208" + }, + "value": { + "$id": "1239", + "kind": "string", + "type": { + "$ref": "1209" + }, + "value": "Prod-2022-08-01" + } + }, + { + "$id": "1240", + "parameter": { + "$ref": "1212" + }, + "value": { + "$id": "1241", + "kind": "string", + "type": { + "$ref": "1213" + }, + "value": "\"4f6dd610dd5e4deebc7fbaef685fb903\"" + } + } + ], + "responses": [ + { + "$id": "1242", + "response": { + "$ref": "1222" + }, + "statusCode": 200 + } + ] + }, + { + "$id": "1243", + "kind": "http", + "name": "Requests the headers and status of the given resource using If-None-Match header", + "description": "Requests the headers and status of the given resource using If-None-Match header", + "filePath": "2023-11-01/CheckSnapshot_IfNoneMatch.json", + "parameters": [ + { + "$id": "1244", + "parameter": { + "$ref": "1204" + }, + "value": { + "$id": "1245", + "kind": "string", + "type": { + "$ref": "1205" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1246", + "parameter": { + "$ref": "1208" + }, + "value": { + "$id": "1247", + "kind": "string", + "type": { + "$ref": "1209" + }, + "value": "Prod-2022-08-01" + } + }, + { + "$id": "1248", + "parameter": { + "$ref": "1214" + }, + "value": { + "$id": "1249", + "kind": "string", + "type": { + "$ref": "1215" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "1250", + "response": { + "$ref": "1222" + }, + "statusCode": 200 + } + ] + } + ] + }, + { + "$id": "1251", + "Name": "getLabels", + "ResourceName": "AzureAppConfiguration", + "Summary": "Gets a list of labels.", + "Description": "Gets a list of labels.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1252", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1253", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1254", + "Type": { + "$id": "1255", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1256", + "Name": "name", + "NameInRequest": "name", + "Description": "A filter for the name of the returned labels.", + "Type": { + "$id": "1257", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1258", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1259", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1260", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "1261", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1262", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "1263", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1264", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "1265", + "kind": "array", + "name": "ArrayLabelFields", + "valueType": { + "$ref": "152" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1266", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1267", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1268", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1269", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1270", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1271", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "289" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1272", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1273", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1274", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "156" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.labelset+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/labels", + "BufferResponse": true, + "Paging": { + "$id": "1275", + "ItemName": "items", + "NextLinkName": "@nextLink" + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.getLabels", + "Decorators": [], + "Examples": [ + { + "$id": "1276", + "kind": "http", + "name": "Gets a list of labels.", + "description": "Gets a list of labels.", + "filePath": "2023-11-01/GetLabels.json", + "parameters": [ + { + "$id": "1277", + "parameter": { + "$ref": "1252" + }, + "value": { + "$id": "1278", + "kind": "string", + "type": { + "$ref": "1253" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "1279", + "response": { + "$ref": "1271" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1280", + "kind": "model", + "type": { + "$ref": "289" + }, + "value": { + "$id": "1281", + "items": { + "$id": "1282", + "kind": "array", + "type": { + "$ref": "291" + }, + "value": [ + { + "$id": "1283", + "kind": "model", + "type": { + "$ref": "292" + }, + "value": { + "$id": "1284" + } + }, + { + "$id": "1285", + "kind": "model", + "type": { + "$ref": "292" + }, + "value": { + "$id": "1286", + "name": { + "$id": "1287", + "kind": "string", + "type": { + "$ref": "294" + }, + "value": "Asset1" + } + } + }, + { + "$id": "1288", + "kind": "model", + "type": { + "$ref": "292" + }, + "value": { + "$id": "1289", + "name": { + "$id": "1290", + "kind": "string", + "type": { + "$ref": "294" + }, + "value": "Asset1/devCi" + } + } + }, + { + "$id": "1291", + "kind": "model", + "type": { + "$ref": "292" + }, + "value": { + "$id": "1292", + "name": { + "$id": "1293", + "kind": "string", + "type": { + "$ref": "294" + }, + "value": "Asset1/devCi/branch1" + } + } + }, + { + "$id": "1294", + "kind": "model", + "type": { + "$ref": "292" + }, + "value": { + "$id": "1295", + "name": { + "$id": "1296", + "kind": "string", + "type": { + "$ref": "294" + }, + "value": "WestUs" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + { + "$id": "1297", + "Name": "checkLabels", + "ResourceName": "AzureAppConfiguration", + "Summary": "Requests the headers and status of the given resource.", + "Description": "Requests the headers and status of the given resource.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1298", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1299", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1300", + "Type": { + "$id": "1301", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1302", + "Name": "name", + "NameInRequest": "name", + "Description": "A filter for the name of the returned labels.", + "Type": { + "$id": "1303", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1304", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1305", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1306", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "1307", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1308", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "1309", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1310", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "1311", + "kind": "array", + "name": "ArrayLabelFields", + "valueType": { + "$ref": "152" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1312", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1313", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1314", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1315", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1316", + "kind": "constant", + "valueType": { + "$id": "1317", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1318", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1319", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1320", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "HEAD", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/labels", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.checkLabels", + "Decorators": [], + "Examples": [ + { + "$id": "1321", + "kind": "http", + "name": "Requests the headers and status of the given resource.", + "description": "Requests the headers and status of the given resource.", + "filePath": "2023-11-01/CheckLabels.json", + "parameters": [ + { + "$id": "1322", + "parameter": { + "$ref": "1298" + }, + "value": { + "$id": "1323", + "kind": "string", + "type": { + "$ref": "1299" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "1324", + "response": { + "$ref": "1318" + }, + "statusCode": 200 + } + ] + } + ] + }, + { + "$id": "1325", + "Name": "putLock", + "ResourceName": "AzureAppConfiguration", + "Summary": "Locks a key-value.", + "Description": "Locks a key-value.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1326", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1327", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1328", + "Type": { + "$id": "1329", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1330", + "Name": "key", + "NameInRequest": "key", + "Description": "The key of the key-value to lock.", + "Type": { + "$id": "1331", + "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": "1332", + "Name": "label", + "NameInRequest": "label", + "Description": "The label, if any, of the key-value to lock.", + "Type": { + "$id": "1333", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1334", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1335", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1336", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "1337", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1338", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "1339", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1340", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1341", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1342", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1343", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1344", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1345", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "206" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1346", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1347", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1348", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "1349", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1350", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "162" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "PUT", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/locks/{key}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.putLock", + "Decorators": [], + "Examples": [ + { + "$id": "1351", + "kind": "http", + "name": "Locks a key-value.", + "description": "Locks a key-value.", + "filePath": "2023-11-01/PutLock.json", + "parameters": [ + { + "$id": "1352", + "parameter": { + "$ref": "1326" + }, + "value": { + "$id": "1353", + "kind": "string", + "type": { + "$ref": "1327" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1354", + "parameter": { + "$ref": "1330" + }, + "value": { + "$id": "1355", + "kind": "string", + "type": { + "$ref": "1331" + }, + "value": "Message" + } + } + ], + "responses": [ + { + "$id": "1356", + "response": { + "$ref": "1345" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1357", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "1358", + "etag": { + "$id": "1359", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV4" + }, + "key": { + "$id": "1360", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "1361", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "1362", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1363" + } + }, + "locked": { + "$id": "1364", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": true + }, + "last_modified": { + "$id": "1365", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + }, + { + "$id": "1366", + "kind": "http", + "name": "Locks a key-value using If-Match header.", + "description": "Locks a key-value using If-Match header.", + "filePath": "2023-11-01/PutLock_IfMatch.json", + "parameters": [ + { + "$id": "1367", + "parameter": { + "$ref": "1326" + }, + "value": { + "$id": "1368", + "kind": "string", + "type": { + "$ref": "1327" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1369", + "parameter": { + "$ref": "1330" + }, + "value": { + "$id": "1370", + "kind": "string", + "type": { + "$ref": "1331" + }, + "value": "Message" + } + }, + { + "$id": "1371", + "parameter": { + "$ref": "1336" + }, + "value": { + "$id": "1372", + "kind": "string", + "type": { + "$ref": "1337" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "1373", + "response": { + "$ref": "1345" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1374", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "1375", + "etag": { + "$id": "1376", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV5" + }, + "key": { + "$id": "1377", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "1378", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "1379", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1380" + } + }, + "locked": { + "$id": "1381", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": true + }, + "last_modified": { + "$id": "1382", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + } + ] + }, + { + "$id": "1383", + "Name": "deleteLock", + "ResourceName": "AzureAppConfiguration", + "Summary": "Unlocks a key-value.", + "Description": "Unlocks a key-value.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1384", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1385", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1386", + "Type": { + "$id": "1387", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1388", + "Name": "key", + "NameInRequest": "key", + "Description": "The key of the key-value to unlock.", + "Type": { + "$id": "1389", + "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": "1390", + "Name": "label", + "NameInRequest": "label", + "Description": "The label, if any, of the key-value to unlock.", + "Type": { + "$id": "1391", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1392", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1393", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1394", + "Name": "ifMatch", + "NameInRequest": "If-Match", + "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.", + "Type": { + "$id": "1395", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1396", + "Name": "ifNoneMatch", + "NameInRequest": "If-None-Match", + "Description": "Used to perform an operation only if the targeted resource's etag does not\nmatch the value provided.", + "Type": { + "$id": "1397", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1398", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1399", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1400", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1401", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1402", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1403", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "206" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1404", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1405", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1406", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "1407", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1408", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "168" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "DELETE", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/locks/{key}", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.deleteLock", + "Decorators": [], + "Examples": [ + { + "$id": "1409", + "kind": "http", + "name": "Unlocks a key-value.", + "description": "Unlocks a key-value.", + "filePath": "2023-11-01/DeleteLock.json", + "parameters": [ + { + "$id": "1410", + "parameter": { + "$ref": "1384" + }, + "value": { + "$id": "1411", + "kind": "string", + "type": { + "$ref": "1385" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1412", + "parameter": { + "$ref": "1388" + }, + "value": { + "$id": "1413", + "kind": "string", + "type": { + "$ref": "1389" + }, + "value": "Message" + } + } + ], + "responses": [ + { + "$id": "1414", + "response": { + "$ref": "1403" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1415", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "1416", + "etag": { + "$id": "1417", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "0BGYCoQ6iNdp5NtQ7N8shrobo6s" + }, + "key": { + "$id": "1418", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "1419", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "1420", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1421" + } + }, + "locked": { + "$id": "1422", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "1423", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + }, + { + "$id": "1424", + "kind": "http", + "name": "Unlocks a key-value using If-Match header.", + "description": "Unlocks a key-value using If-Match header.", + "filePath": "2023-11-01/DeleteLock_IfMatch.json", + "parameters": [ + { + "$id": "1425", + "parameter": { + "$ref": "1384" + }, + "value": { + "$id": "1426", + "kind": "string", + "type": { + "$ref": "1385" + }, + "value": "2023-11-01" + } + }, + { + "$id": "1427", + "parameter": { + "$ref": "1388" + }, + "value": { + "$id": "1428", + "kind": "string", + "type": { + "$ref": "1389" + }, + "value": "Message" + } + }, + { + "$id": "1429", + "parameter": { + "$ref": "1394" + }, + "value": { + "$id": "1430", + "kind": "string", + "type": { + "$ref": "1395" + }, + "value": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + ], + "responses": [ + { + "$id": "1431", + "response": { + "$ref": "1403" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1432", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "1433", + "etag": { + "$id": "1434", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV5" + }, + "key": { + "$id": "1435", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "1436", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "1437", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1438" + } + }, + "locked": { + "$id": "1439", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "1440", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + } + } + ] + } + ] + }, + { + "$id": "1441", + "Name": "getRevisions", + "ResourceName": "AzureAppConfiguration", + "Summary": "Gets a list of key-value revisions.", + "Description": "Gets a list of key-value revisions.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1442", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1443", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1444", + "Type": { + "$id": "1445", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1446", + "Name": "key", + "NameInRequest": "key", + "Description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions", + "Type": { + "$id": "1447", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1448", + "Name": "label", + "NameInRequest": "label", + "Description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions", + "Type": { + "$id": "1449", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1450", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1451", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1452", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "1453", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1454", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "1455", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1456", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "1457", + "kind": "array", + "name": "ArrayKeyValueFields", + "valueType": { + "$ref": "8" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1458", + "Name": "tags", + "NameInRequest": "tags", + "Description": "A filter used to query by tags. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions", + "Type": { + "$id": "1459", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "1460", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1461", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1462", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1463", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1464", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1465", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1466", + "StatusCodes": [ + 200 + ], + "BodyType": { + "$ref": "203" + }, + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1467", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1468", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1469", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "1470", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1471", + "Name": "contentType", + "NameInResponse": "Content-Type", + "Description": "Content-Type header", + "Type": { + "$ref": "174" + } + } + ], + "IsErrorResponse": false, + "ContentTypes": [ + "application/vnd.microsoft.appconfig.kvset+json", + "application/problem+json" + ] + } + ], + "HttpMethod": "GET", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/revisions", + "BufferResponse": true, + "Paging": { + "$id": "1472", + "ItemName": "items", + "NextLinkName": "@nextLink" + }, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.getRevisions", + "Decorators": [], + "Examples": [ + { + "$id": "1473", + "kind": "http", + "name": "Gets a list of key-value revisions.", + "description": "Gets a list of key-value revisions.", + "filePath": "2023-11-01/GetRevisions.json", + "parameters": [ + { + "$id": "1474", + "parameter": { + "$ref": "1442" + }, + "value": { + "$id": "1475", + "kind": "string", + "type": { + "$ref": "1443" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "1476", + "response": { + "$ref": "1466" + }, + "statusCode": 200, + "bodyValue": { + "$id": "1477", + "kind": "model", + "type": { + "$ref": "203" + }, + "value": { + "$id": "1478", + "items": { + "$id": "1479", + "kind": "array", + "type": { + "$ref": "205" + }, + "value": [ + { + "$id": "1480", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "1481", + "etag": { + "$id": "1482", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "0BGYCoQ6iNdp5NtQ7N8shrobo6s" + }, + "key": { + "$id": "1483", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "1484", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "1485", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1486" + } + }, + "locked": { + "$id": "1487", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "1488", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:32+00:00" + } + } + }, + { + "$id": "1489", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "1490", + "etag": { + "$id": "1491", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "L10qpBghN693OaxydgTkLmrBbV4" + }, + "key": { + "$id": "1492", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "1493", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "A new message." + }, + "tags": { + "$id": "1494", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1495" + } + }, + "locked": { + "$id": "1496", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "1497", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:52:20+00:00" + } + } + }, + { + "$id": "1498", + "kind": "model", + "type": { + "$ref": "206" + }, + "value": { + "$id": "1499", + "etag": { + "$id": "1500", + "kind": "string", + "type": { + "$ref": "225" + }, + "value": "tnIHBkDYQwtdNMLoWtr5aybkKwL" + }, + "key": { + "$id": "1501", + "kind": "string", + "type": { + "$ref": "208" + }, + "value": "Message" + }, + "value": { + "$id": "1502", + "kind": "string", + "type": { + "$ref": "214" + }, + "value": "Hello World!" + }, + "tags": { + "$id": "1503", + "kind": "dict", + "type": { + "$ref": "219" + }, + "value": { + "$id": "1504" + } + }, + "locked": { + "$id": "1505", + "kind": "boolean", + "type": { + "$ref": "223" + }, + "value": false + }, + "last_modified": { + "$id": "1506", + "kind": "string", + "type": { + "$ref": "216" + }, + "value": "2019-08-27T16:50:47+00:00" + } + } + } + ] + } + } + } + } + ] + } + ] + }, + { + "$id": "1507", + "Name": "checkRevisions", + "ResourceName": "AzureAppConfiguration", + "Summary": "Requests the headers and status of the given resource.", + "Description": "Requests the headers and status of the given resource.", + "Accessibility": "public", + "Parameters": [ + { + "$ref": "299" + }, + { + "$id": "1508", + "Name": "apiVersion", + "NameInRequest": "api-version", + "Description": "The API version to use for this operation.", + "Type": { + "$id": "1509", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": true, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Client", + "DefaultValue": { + "$id": "1510", + "Type": { + "$id": "1511", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string" + }, + "Value": "2023-11-01" + }, + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1512", + "Name": "key", + "NameInRequest": "key", + "Description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions", + "Type": { + "$id": "1513", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1514", + "Name": "label", + "NameInRequest": "label", + "Description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions", + "Type": { + "$id": "1515", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1516", + "Name": "syncToken", + "NameInRequest": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1517", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1518", + "Name": "after", + "NameInRequest": "After", + "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.", + "Type": { + "$id": "1519", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1520", + "Name": "acceptDatetime", + "NameInRequest": "Accept-Datetime", + "Description": "Requests the server to respond with the state of the resource at the specified\ntime.", + "Type": { + "$id": "1521", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1522", + "Name": "select", + "NameInRequest": "$Select", + "Description": "Used to select what fields are present in the returned resource(s).", + "Type": { + "$id": "1523", + "kind": "array", + "name": "ArrayKeyValueFields", + "valueType": { + "$ref": "8" + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "ArraySerializationDelimiter": ",", + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1524", + "Name": "tags", + "NameInRequest": "tags", + "Description": "A filter used to query by tags. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions", + "Type": { + "$id": "1525", + "kind": "array", + "name": "Array", + "valueType": { + "$id": "1526", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "crossLanguageDefinitionId": "TypeSpec.Array", + "decorators": [] + }, + "Location": "Query", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": true, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1527", + "Name": "clientRequestId", + "NameInRequest": "x-ms-client-request-id", + "Description": "An opaque, globally-unique, client-generated string identifier for the request.", + "Type": { + "$id": "1528", + "kind": "string", + "name": "uuid", + "crossLanguageDefinitionId": "Azure.Core.uuid", + "baseType": { + "$id": "1529", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": false, + "Kind": "Method", + "Decorators": [], + "SkipUrlEncoding": false + }, + { + "$id": "1530", + "Name": "accept", + "NameInRequest": "Accept", + "Type": { + "$id": "1531", + "kind": "constant", + "valueType": { + "$id": "1532", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + }, + "value": "application/json", + "decorators": [] + }, + "Location": "Header", + "IsApiVersion": false, + "IsContentType": false, + "IsEndpoint": false, + "Explode": false, + "IsRequired": true, + "Kind": "Constant", + "Decorators": [], + "SkipUrlEncoding": false + } + ], + "Responses": [ + { + "$id": "1533", + "StatusCodes": [ + 200 + ], + "BodyMediaType": "Json", + "Headers": [ + { + "$id": "1534", + "Name": "syncToken", + "NameInResponse": "Sync-Token", + "Description": "Used to guarantee real-time consistency between requests.", + "Type": { + "$id": "1535", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + }, + { + "$id": "1536", + "Name": "etagHeader", + "NameInResponse": "ETag", + "Description": "A value representing the current state of the resource.", + "Type": { + "$id": "1537", + "kind": "string", + "name": "string", + "crossLanguageDefinitionId": "TypeSpec.string", + "decorators": [] + } + } + ], + "IsErrorResponse": false + } + ], + "HttpMethod": "HEAD", + "RequestBodyMediaType": "None", + "Uri": "{endpoint}", + "Path": "/revisions", + "BufferResponse": true, + "GenerateProtocolMethod": true, + "GenerateConvenienceMethod": true, + "CrossLanguageDefinitionId": "AzureAppConfiguration.checkRevisions", + "Decorators": [], + "Examples": [ + { + "$id": "1538", + "kind": "http", + "name": "Requests the headers and status of the given resource.", + "description": "Requests the headers and status of the given resource.", + "filePath": "2023-11-01/CheckRevisions.json", + "parameters": [ + { + "$id": "1539", + "parameter": { + "$ref": "1508" + }, + "value": { + "$id": "1540", + "kind": "string", + "type": { + "$ref": "1509" + }, + "value": "2023-11-01" + } + } + ], + "responses": [ + { + "$id": "1541", + "response": { + "$ref": "1533" + }, + "statusCode": 200 + } + ] + } + ] + } + ], + "Protocol": { + "$id": "1542" + }, + "Parameters": [ + { + "$ref": "299" + } + ], + "Decorators": [] + } + ], + "Auth": { + "$id": "1543", + "ApiKey": { + "$id": "1544", + "Name": "Connection String" + }, + "OAuth2": { + "$id": "1545", + "Scopes": [ + "https://azconfig.io/.default" + ] + } + } +} diff --git a/sdk/face/Azure.AI.Vision.Face/api/Azure.AI.Vision.Face.netstandard2.0.cs b/sdk/face/Azure.AI.Vision.Face/api/Azure.AI.Vision.Face.netstandard2.0.cs index 7394546e904f..b929533c8f99 100644 --- a/sdk/face/Azure.AI.Vision.Face/api/Azure.AI.Vision.Face.netstandard2.0.cs +++ b/sdk/face/Azure.AI.Vision.Face/api/Azure.AI.Vision.Face.netstandard2.0.cs @@ -5,7 +5,6 @@ public partial class AccessoryItem : 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.Vision.Face.AccessoryItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -35,7 +34,6 @@ public partial class AddFaceResult : 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.Vision.Face.AddFaceResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -93,7 +91,6 @@ internal AuditLivenessResponseInfo() { } public Azure.AI.Vision.Face.LivenessResponseBody Body { get { throw null; } } public long LatencyInMilliseconds { get { throw null; } } public int StatusCode { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.AuditLivenessResponseInfo 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.Vision.Face.AuditLivenessResponseInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -108,7 +105,6 @@ internal AuditRequestInfo() { } public string Method { get { throw null; } } public string Url { get { throw null; } } public string UserAgent { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.AuditRequestInfo 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.Vision.Face.AuditRequestInfo System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -148,7 +144,6 @@ public partial class BlurProperties : 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.Vision.Face.BlurProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -165,7 +160,6 @@ public CreateLivenessSessionContent(Azure.AI.Vision.Face.LivenessOperationMode l public Azure.AI.Vision.Face.LivenessOperationMode LivenessOperationMode { get { throw null; } } public Azure.AI.Vision.Face.LivenessModel? LivenessSingleModalModel { get { throw null; } set { } } public bool? SendResultsToClient { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.CreateLivenessSessionContent 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.Vision.Face.CreateLivenessSessionContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -177,7 +171,6 @@ public partial class CreateLivenessSessionResult : System.ClientModel.Primitives internal CreateLivenessSessionResult() { } public string AuthToken { get { throw null; } } public string SessionId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.CreateLivenessSessionResult 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.Vision.Face.CreateLivenessSessionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -196,7 +189,6 @@ public CreateLivenessWithVerifySessionContent(Azure.AI.Vision.Face.LivenessOpera public bool? ReturnVerifyImageHash { get { throw null; } set { } } public bool? SendResultsToClient { get { throw null; } set { } } public float? VerifyConfidenceThreshold { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.CreateLivenessWithVerifySessionContent 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.Vision.Face.CreateLivenessWithVerifySessionContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -209,7 +201,6 @@ internal CreateLivenessWithVerifySessionResult() { } public string AuthToken { get { throw null; } } public string SessionId { get { throw null; } } public Azure.AI.Vision.Face.LivenessWithVerifyImage VerifyImage { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.CreateLivenessWithVerifySessionResult 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.Vision.Face.CreateLivenessWithVerifySessionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -220,7 +211,6 @@ public partial class CreatePersonResult : System.ClientModel.Primitives.IJsonMod { internal CreatePersonResult() { } public System.Guid PersonId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.CreatePersonResult 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.Vision.Face.CreatePersonResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -251,7 +241,6 @@ public partial class ExposureProperties : System.ClientModel.Primitives.IJsonMod internal ExposureProperties() { } public Azure.AI.Vision.Face.ExposureLevel ExposureLevel { get { throw null; } } public float Value { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.ExposureProperties 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.Vision.Face.ExposureProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -285,7 +274,6 @@ internal FaceAttributes() { } public Azure.AI.Vision.Face.OcclusionProperties Occlusion { get { throw null; } } public Azure.AI.Vision.Face.QualityForRecognition? QualityForRecognition { get { throw null; } } public float? Smile { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceAttributes 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.Vision.Face.FaceAttributes System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -413,7 +401,6 @@ internal FaceDetectionResult() { } public Azure.AI.Vision.Face.FaceLandmarks FaceLandmarks { get { throw null; } } public Azure.AI.Vision.Face.FaceRectangle FaceRectangle { get { throw null; } } public Azure.AI.Vision.Face.FaceRecognitionModel? RecognitionModel { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceDetectionResult 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.Vision.Face.FaceDetectionResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -426,7 +413,6 @@ internal FaceFindSimilarResult() { } public float Confidence { get { throw null; } } public System.Guid? FaceId { get { throw null; } } public System.Guid? PersistedFaceId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceFindSimilarResult 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.Vision.Face.FaceFindSimilarResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -438,7 +424,6 @@ public partial class FaceGroupingResult : System.ClientModel.Primitives.IJsonMod internal FaceGroupingResult() { } public System.Collections.Generic.IReadOnlyList> Groups { get { throw null; } } public System.Collections.Generic.IReadOnlyList MessyGroup { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceGroupingResult 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.Vision.Face.FaceGroupingResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -450,7 +435,6 @@ public partial class FaceIdentificationCandidate : System.ClientModel.Primitives internal FaceIdentificationCandidate() { } public float Confidence { get { throw null; } } public System.Guid PersonId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceIdentificationCandidate 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.Vision.Face.FaceIdentificationCandidate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -462,7 +446,6 @@ public partial class FaceIdentificationResult : System.ClientModel.Primitives.IJ internal FaceIdentificationResult() { } public System.Collections.Generic.IReadOnlyList Candidates { get { throw null; } } public System.Guid FaceId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceIdentificationResult 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.Vision.Face.FaceIdentificationResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -518,7 +501,6 @@ internal FaceLandmarks() { } public Azure.AI.Vision.Face.LandmarkCoordinate UnderLipTop { get { throw null; } } public Azure.AI.Vision.Face.LandmarkCoordinate UpperLipBottom { get { throw null; } } public Azure.AI.Vision.Face.LandmarkCoordinate UpperLipTop { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceLandmarks 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.Vision.Face.FaceLandmarks System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -591,7 +573,6 @@ internal FaceRectangle() { } public int Left { get { throw null; } } public int Top { get { throw null; } } public int Width { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceRectangle 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.Vision.Face.FaceRectangle System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -676,7 +657,6 @@ internal FaceTrainingResult() { } public System.DateTimeOffset LastSuccessfulTrainingDateTime { get { throw null; } } public string Message { get { throw null; } } public Azure.AI.Vision.Face.FaceOperationStatus Status { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceTrainingResult 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.Vision.Face.FaceTrainingResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -688,7 +668,6 @@ public partial class FaceVerificationResult : System.ClientModel.Primitives.IJso internal FaceVerificationResult() { } public float Confidence { get { throw null; } } public bool IsIdentical { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FaceVerificationResult 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.Vision.Face.FaceVerificationResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -701,7 +680,6 @@ internal FacialHair() { } public float Beard { get { throw null; } } public float Moustache { get { throw null; } } public float Sideburns { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.FacialHair 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.Vision.Face.FacialHair System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -751,7 +729,6 @@ public partial class HairColor : 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.Vision.Face.HairColor System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -788,7 +765,6 @@ internal HairProperties() { } public float Bald { get { throw null; } } public System.Collections.Generic.IReadOnlyList HairColor { get { throw null; } } public bool Invisible { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.HairProperties 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.Vision.Face.HairProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -801,7 +777,6 @@ internal HeadPose() { } public float Pitch { get { throw null; } } public float Roll { get { throw null; } } public float Yaw { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.HeadPose 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.Vision.Face.HeadPose System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -813,7 +788,6 @@ public partial class LandmarkCoordinate : System.ClientModel.Primitives.IJsonMod internal LandmarkCoordinate() { } public float X { get { throw null; } } public float Y { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LandmarkCoordinate 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.Vision.Face.LandmarkCoordinate System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -827,7 +801,6 @@ internal LargeFaceList() { } public string Name { get { throw null; } } public Azure.AI.Vision.Face.FaceRecognitionModel? RecognitionModel { get { throw null; } } public string UserData { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LargeFaceList 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.Vision.Face.LargeFaceList System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -888,7 +861,6 @@ public partial class LargeFaceListFace : System.ClientModel.Primitives.IJsonMode internal LargeFaceListFace() { } public System.Guid PersistedFaceId { get { throw null; } } public string UserData { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LargeFaceListFace 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.Vision.Face.LargeFaceListFace System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -902,7 +874,6 @@ internal LargePersonGroup() { } public string Name { get { throw null; } } public Azure.AI.Vision.Face.FaceRecognitionModel? RecognitionModel { get { throw null; } } public string UserData { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LargePersonGroup 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.Vision.Face.LargePersonGroup System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -977,7 +948,6 @@ internal LargePersonGroupPerson() { } public System.Collections.Generic.IReadOnlyList PersistedFaceIds { get { throw null; } } public System.Guid PersonId { get { throw null; } } public string UserData { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LargePersonGroupPerson 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.Vision.Face.LargePersonGroupPerson System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -989,7 +959,6 @@ public partial class LargePersonGroupPersonFace : System.ClientModel.Primitives. internal LargePersonGroupPersonFace() { } public System.Guid PersistedFaceId { get { throw null; } } public string UserData { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LargePersonGroupPersonFace 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.Vision.Face.LargePersonGroupPersonFace System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1039,7 +1008,6 @@ internal LivenessOutputsTarget() { } public string FileName { get { throw null; } } public Azure.AI.Vision.Face.FaceImageType ImageType { get { throw null; } } public int TimeOffsetWithinFile { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LivenessOutputsTarget 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.Vision.Face.LivenessOutputsTarget System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1054,7 +1022,6 @@ internal LivenessResponseBody() { } public Azure.AI.Vision.Face.LivenessModel? ModelVersionUsed { get { throw null; } } public Azure.AI.Vision.Face.LivenessOutputsTarget Target { get { throw null; } } public Azure.AI.Vision.Face.LivenessWithVerifyOutputs VerifyResult { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LivenessResponseBody 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.Vision.Face.LivenessResponseBody System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1072,7 +1039,6 @@ internal LivenessSession() { } public bool SessionExpired { get { throw null; } } public System.DateTimeOffset? SessionStartDateTime { get { throw null; } } public Azure.AI.Vision.Face.FaceSessionStatus Status { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LivenessSession 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.Vision.Face.LivenessSession System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1092,7 +1058,6 @@ internal LivenessSessionAuditEntry() { } public string SessionId { get { throw null; } } public string SessionImageId { get { throw null; } } public string VerifyImageHash { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LivenessSessionAuditEntry 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.Vision.Face.LivenessSessionAuditEntry System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1108,7 +1073,6 @@ internal LivenessSessionItem() { } public string Id { get { throw null; } } public bool SessionExpired { get { throw null; } } public System.DateTimeOffset? SessionStartDateTime { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LivenessSessionItem 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.Vision.Face.LivenessSessionItem System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1120,7 +1084,6 @@ public partial class LivenessWithVerifyImage : System.ClientModel.Primitives.IJs internal LivenessWithVerifyImage() { } public Azure.AI.Vision.Face.FaceRectangle FaceRectangle { get { throw null; } } public Azure.AI.Vision.Face.QualityForRecognition QualityForRecognition { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LivenessWithVerifyImage 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.Vision.Face.LivenessWithVerifyImage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1133,7 +1096,6 @@ internal LivenessWithVerifyOutputs() { } public bool IsIdentical { get { throw null; } } public float MatchConfidence { get { throw null; } } public Azure.AI.Vision.Face.LivenessWithVerifyImage VerifyImage { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LivenessWithVerifyOutputs 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.Vision.Face.LivenessWithVerifyOutputs System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1151,7 +1113,6 @@ internal LivenessWithVerifySession() { } public bool SessionExpired { get { throw null; } } public System.DateTimeOffset? SessionStartDateTime { get { throw null; } } public Azure.AI.Vision.Face.FaceSessionStatus Status { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.LivenessWithVerifySession 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.Vision.Face.LivenessWithVerifySession System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1163,7 +1124,6 @@ public partial class MaskProperties : 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.Vision.Face.MaskProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1214,7 +1174,6 @@ public partial class NoiseProperties : System.ClientModel.Primitives.IJsonModel< internal NoiseProperties() { } public Azure.AI.Vision.Face.NoiseLevel NoiseLevel { get { throw null; } } public float Value { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.NoiseProperties 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.Vision.Face.NoiseProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1227,7 +1186,6 @@ internal OcclusionProperties() { } public bool EyeOccluded { get { throw null; } } public bool ForeheadOccluded { get { throw null; } } public bool MouthOccluded { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.AI.Vision.Face.OcclusionProperties 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.Vision.Face.OcclusionProperties System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/AccessoryItem.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/AccessoryItem.Serialization.cs index f2d1f5992418..f8f5f5b54de0 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/AccessoryItem.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/AccessoryItem.Serialization.cs @@ -18,15 +18,6 @@ public partial class AccessoryItem : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AccessoryItem)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("type"u8); writer.WriteStringValue(Type.ToString()); writer.WritePropertyName("confidence"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } AccessoryItem IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceFromUrlRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceFromUrlRequest.Serialization.cs index 2718047703d3..4068e6fba19a 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceFromUrlRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceFromUrlRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class AddFaceFromUrlRequest : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AddFaceFromUrlRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("url"u8); writer.WriteStringValue(Uri.AbsoluteUri); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -51,6 +43,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } AddFaceFromUrlRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceFromUrlRequest1.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceFromUrlRequest1.Serialization.cs index 8e2dafb12fb8..6afe63d8fb43 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceFromUrlRequest1.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceFromUrlRequest1.Serialization.cs @@ -18,15 +18,6 @@ internal partial class AddFaceFromUrlRequest1 : IUtf8JsonSerializable, IJsonMode void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AddFaceFromUrlRequest1)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("url"u8); writer.WriteStringValue(Uri.AbsoluteUri); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -51,6 +43,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } AddFaceFromUrlRequest1 IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceResult.Serialization.cs index 7ba40eae8f1b..716408b25a91 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/AddFaceResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class AddFaceResult : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AddFaceResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("persistedFaceId"u8); writer.WriteStringValue(PersistedFaceId); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -51,6 +43,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } AddFaceResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/AuditLivenessResponseInfo.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/AuditLivenessResponseInfo.Serialization.cs index 52dec9c3870d..1c321539b72b 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/AuditLivenessResponseInfo.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/AuditLivenessResponseInfo.Serialization.cs @@ -18,15 +18,6 @@ public partial class AuditLivenessResponseInfo : IUtf8JsonSerializable, IJsonMod void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AuditLivenessResponseInfo)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("body"u8); writer.WriteObjectValue(Body, options); writer.WritePropertyName("statusCode"u8); @@ -55,6 +47,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } AuditLivenessResponseInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/AuditRequestInfo.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/AuditRequestInfo.Serialization.cs index 66533f9170d9..1990a1f1cb02 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/AuditRequestInfo.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/AuditRequestInfo.Serialization.cs @@ -18,15 +18,6 @@ public partial class AuditRequestInfo : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(AuditRequestInfo)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("url"u8); writer.WriteStringValue(Url); writer.WritePropertyName("method"u8); @@ -65,6 +57,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } AuditRequestInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/BlurProperties.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/BlurProperties.Serialization.cs index ce12157122c0..31d2641534f7 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/BlurProperties.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/BlurProperties.Serialization.cs @@ -18,15 +18,6 @@ public partial class BlurProperties : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(BlurProperties)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("blurLevel"u8); writer.WriteStringValue(BlurLevel.ToString()); writer.WritePropertyName("value"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } BlurProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionContent.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionContent.Serialization.cs index d3cf3fa9ac98..b32ad1822811 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionContent.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionContent.Serialization.cs @@ -18,15 +18,6 @@ public partial class CreateLivenessSessionContent : IUtf8JsonSerializable, IJson void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreateLivenessSessionContent)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("livenessOperationMode"u8); writer.WriteStringValue(LivenessOperationMode.ToString()); if (Optional.IsDefined(SendResultsToClient)) @@ -81,6 +73,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreateLivenessSessionContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionResult.Serialization.cs index 438a65f6179a..3d9edb2101d4 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessSessionResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class CreateLivenessSessionResult : IUtf8JsonSerializable, IJsonM void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreateLivenessSessionResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("sessionId"u8); writer.WriteStringValue(SessionId); writer.WritePropertyName("authToken"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreateLivenessSessionResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionContent.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionContent.Serialization.cs index ffcb60dcdbce..443812ef9cf0 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionContent.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionContent.Serialization.cs @@ -18,15 +18,6 @@ public partial class CreateLivenessWithVerifySessionContent : IUtf8JsonSerializa void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreateLivenessWithVerifySessionContent)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("livenessOperationMode"u8); writer.WriteStringValue(LivenessOperationMode.ToString()); if (Optional.IsDefined(SendResultsToClient)) @@ -91,6 +83,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreateLivenessWithVerifySessionContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionMultipartContent.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionMultipartContent.Serialization.cs index 79534220c83d..cccaed59a390 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionMultipartContent.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionMultipartContent.Serialization.cs @@ -19,15 +19,6 @@ internal partial class CreateLivenessWithVerifySessionMultipartContent : IUtf8Js void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -35,6 +26,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreateLivenessWithVerifySessionMultipartContent)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("Parameters"u8); writer.WriteObjectValue(Parameters, options); writer.WritePropertyName("VerifyImage"u8); @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreateLivenessWithVerifySessionMultipartContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionResult.Serialization.cs index 3d7966b973a1..282402586b8d 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateLivenessWithVerifySessionResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class CreateLivenessWithVerifySessionResult : IUtf8JsonSerializab void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreateLivenessWithVerifySessionResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("sessionId"u8); writer.WriteStringValue(SessionId); writer.WritePropertyName("authToken"u8); @@ -58,6 +50,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreateLivenessWithVerifySessionResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreatePersonRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreatePersonRequest.Serialization.cs index 7803680fe7c8..682c4f08d863 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreatePersonRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreatePersonRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class CreatePersonRequest : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreatePersonRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); if (Optional.IsDefined(UserData)) @@ -56,6 +48,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreatePersonRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreatePersonResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreatePersonResult.Serialization.cs index 47aa9f2ebb19..e0afa23647b8 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreatePersonResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreatePersonResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class CreatePersonResult : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreatePersonResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("personId"u8); writer.WriteStringValue(PersonId); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -51,6 +43,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreatePersonResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateRequest.Serialization.cs index ce92ac9cfbf3..5dddb239ac5c 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class CreateRequest : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreateRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); if (Optional.IsDefined(UserData)) @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreateRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateRequest1.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateRequest1.Serialization.cs index 804e9a7da513..2d7461262254 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateRequest1.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/CreateRequest1.Serialization.cs @@ -18,15 +18,6 @@ internal partial class CreateRequest1 : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CreateRequest1)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); if (Optional.IsDefined(UserData)) @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CreateRequest1 IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/DetectFromSessionImageRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/DetectFromSessionImageRequest.Serialization.cs index 1a20aa88c8f8..df96544d127a 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/DetectFromSessionImageRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/DetectFromSessionImageRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class DetectFromSessionImageRequest : IUtf8JsonSerializable, IJ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DetectFromSessionImageRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("sessionImageId"u8); writer.WriteStringValue(SessionImageId); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -51,6 +43,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } DetectFromSessionImageRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/DetectFromUrlRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/DetectFromUrlRequest.Serialization.cs index 39789f810edf..561e0b5b6677 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/DetectFromUrlRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/DetectFromUrlRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class DetectFromUrlRequest : IUtf8JsonSerializable, IJsonModel< void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DetectFromUrlRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("url"u8); writer.WriteStringValue(Uri.AbsoluteUri); if (options.Format != "W" && _serializedAdditionalRawData != null) @@ -51,6 +43,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } DetectFromUrlRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/ExposureProperties.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/ExposureProperties.Serialization.cs index 6f54de101c2f..bf051597e0f8 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/ExposureProperties.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/ExposureProperties.Serialization.cs @@ -18,15 +18,6 @@ public partial class ExposureProperties : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ExposureProperties)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("exposureLevel"u8); writer.WriteStringValue(ExposureLevel.ToString()); writer.WritePropertyName("value"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } ExposureProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceAttributes.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceAttributes.Serialization.cs index 7f459a0d714d..be4288ee3749 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceAttributes.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceAttributes.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceAttributes : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceAttributes)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Age)) { writer.WritePropertyName("age"u8); @@ -119,6 +111,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceAttributes IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceDetectionResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceDetectionResult.Serialization.cs index ea35c637e2da..e82f7d84db5e 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceDetectionResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceDetectionResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceDetectionResult : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceDetectionResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(FaceId)) { writer.WritePropertyName("faceId"u8); @@ -71,6 +63,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceDetectionResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceFindSimilarResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceFindSimilarResult.Serialization.cs index e9dcf93e30fc..63770be44201 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceFindSimilarResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceFindSimilarResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceFindSimilarResult : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceFindSimilarResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("confidence"u8); writer.WriteNumberValue(Confidence); if (Optional.IsDefined(FaceId)) @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceFindSimilarResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceGroupingResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceGroupingResult.Serialization.cs index 01ec254b4d41..01b73022d3ea 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceGroupingResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceGroupingResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceGroupingResult : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceGroupingResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("groups"u8); writer.WriteStartArray(); foreach (var item in Groups) @@ -73,6 +65,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceGroupingResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceIdentificationCandidate.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceIdentificationCandidate.Serialization.cs index fbe6e876b7ce..3d0dcf5633df 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceIdentificationCandidate.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceIdentificationCandidate.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceIdentificationCandidate : IUtf8JsonSerializable, IJsonM void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceIdentificationCandidate)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("personId"u8); writer.WriteStringValue(PersonId); writer.WritePropertyName("confidence"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceIdentificationCandidate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceIdentificationResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceIdentificationResult.Serialization.cs index 191bb1628e60..edee38653822 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceIdentificationResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceIdentificationResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceIdentificationResult : IUtf8JsonSerializable, IJsonMode void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceIdentificationResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceId"u8); writer.WriteStringValue(FaceId); writer.WritePropertyName("candidates"u8); @@ -58,6 +50,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceIdentificationResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceLandmarks.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceLandmarks.Serialization.cs index 1113703a7a0e..dc8450fcf2b9 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceLandmarks.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceLandmarks.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceLandmarks : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceLandmarks)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("pupilLeft"u8); writer.WriteObjectValue(PupilLeft, options); writer.WritePropertyName("pupilRight"u8); @@ -103,6 +95,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceLandmarks IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceRectangle.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceRectangle.Serialization.cs index 131ef50cf10a..90d9e61f3d88 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceRectangle.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceRectangle.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceRectangle : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceRectangle)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("top"u8); writer.WriteNumberValue(Top); writer.WritePropertyName("left"u8); @@ -57,6 +49,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceRectangle IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceTrainingResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceTrainingResult.Serialization.cs index 79a0baa43bd5..3baf11bb5f72 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceTrainingResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceTrainingResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceTrainingResult : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceTrainingResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("status"u8); writer.WriteStringValue(Status.ToString()); writer.WritePropertyName("createdDateTime"u8); @@ -62,6 +54,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceTrainingResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceVerificationResult.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceVerificationResult.Serialization.cs index 5dcf123043ca..8ba4c2b48de1 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceVerificationResult.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FaceVerificationResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class FaceVerificationResult : IUtf8JsonSerializable, IJsonModel< void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FaceVerificationResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("isIdentical"u8); writer.WriteBooleanValue(IsIdentical); writer.WritePropertyName("confidence"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FaceVerificationResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FacialHair.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FacialHair.Serialization.cs index 02826e5bf27e..c6b6eeec36a1 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FacialHair.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FacialHair.Serialization.cs @@ -18,15 +18,6 @@ public partial class FacialHair : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FacialHair)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("moustache"u8); writer.WriteNumberValue(Moustache); writer.WritePropertyName("beard"u8); @@ -55,6 +47,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FacialHair IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FindSimilarFromLargeFaceListRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FindSimilarFromLargeFaceListRequest.Serialization.cs index 62b0b76ae78d..dedc938a5798 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FindSimilarFromLargeFaceListRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FindSimilarFromLargeFaceListRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class FindSimilarFromLargeFaceListRequest : IUtf8JsonSerializab void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FindSimilarFromLargeFaceListRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceId"u8); writer.WriteStringValue(FaceId); if (Optional.IsDefined(MaxNumOfCandidatesReturned)) @@ -63,6 +55,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FindSimilarFromLargeFaceListRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/FindSimilarRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/FindSimilarRequest.Serialization.cs index 4a84d370de4f..335aa756efce 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/FindSimilarRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/FindSimilarRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class FindSimilarRequest : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FindSimilarRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceId"u8); writer.WriteStringValue(FaceId); if (Optional.IsDefined(MaxNumOfCandidatesReturned)) @@ -68,6 +60,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FindSimilarRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/GroupRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/GroupRequest.Serialization.cs index a0121f4118d7..5896c1a1d872 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/GroupRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/GroupRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class GroupRequest : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(GroupRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceIds"u8); writer.WriteStartArray(); foreach (var item in FaceIds) @@ -56,6 +48,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } GroupRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/HairColor.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/HairColor.Serialization.cs index 401c2ca0cade..94129722b51c 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/HairColor.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/HairColor.Serialization.cs @@ -18,15 +18,6 @@ public partial class HairColor : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(HairColor)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("color"u8); writer.WriteStringValue(Color.ToString()); writer.WritePropertyName("confidence"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } HairColor IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/HairProperties.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/HairProperties.Serialization.cs index 2cf2e1514045..8e45029e1f63 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/HairProperties.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/HairProperties.Serialization.cs @@ -18,15 +18,6 @@ public partial class HairProperties : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(HairProperties)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("bald"u8); writer.WriteNumberValue(Bald); writer.WritePropertyName("invisible"u8); @@ -60,6 +52,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } HairProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/HeadPose.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/HeadPose.Serialization.cs index 77a40a88adc3..9627fa488522 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/HeadPose.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/HeadPose.Serialization.cs @@ -18,15 +18,6 @@ public partial class HeadPose : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(HeadPose)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("pitch"u8); writer.WriteNumberValue(Pitch); writer.WritePropertyName("roll"u8); @@ -55,6 +47,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } HeadPose IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/IdentifyFromLargePersonGroupRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/IdentifyFromLargePersonGroupRequest.Serialization.cs index 80cb66602251..44d5b2573408 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/IdentifyFromLargePersonGroupRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/IdentifyFromLargePersonGroupRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class IdentifyFromLargePersonGroupRequest : IUtf8JsonSerializab void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(IdentifyFromLargePersonGroupRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceIds"u8); writer.WriteStartArray(); foreach (var item in FaceIds) @@ -68,6 +60,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } IdentifyFromLargePersonGroupRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LandmarkCoordinate.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LandmarkCoordinate.Serialization.cs index 0d7d4002f50e..fda4a7e3e76c 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LandmarkCoordinate.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LandmarkCoordinate.Serialization.cs @@ -18,15 +18,6 @@ public partial class LandmarkCoordinate : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LandmarkCoordinate)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("x"u8); writer.WriteNumberValue(X); writer.WritePropertyName("y"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LandmarkCoordinate IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargeFaceList.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargeFaceList.Serialization.cs index 9f3347fb35ca..d52d68e0bc12 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargeFaceList.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargeFaceList.Serialization.cs @@ -18,15 +18,6 @@ public partial class LargeFaceList : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LargeFaceList)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); if (Optional.IsDefined(UserData)) @@ -66,6 +58,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LargeFaceList IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargeFaceListFace.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargeFaceListFace.Serialization.cs index 862debd28f49..2f9621a39bbc 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargeFaceListFace.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargeFaceListFace.Serialization.cs @@ -18,15 +18,6 @@ public partial class LargeFaceListFace : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LargeFaceListFace)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (options.Format != "W") { writer.WritePropertyName("persistedFaceId"u8); @@ -59,6 +51,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LargeFaceListFace IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroup.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroup.Serialization.cs index 4087e90e1478..0a39ef9f4066 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroup.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroup.Serialization.cs @@ -18,15 +18,6 @@ public partial class LargePersonGroup : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LargePersonGroup)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); if (Optional.IsDefined(UserData)) @@ -66,6 +58,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LargePersonGroup IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroupPerson.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroupPerson.Serialization.cs index feb6e6020c09..eb363bd7f27c 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroupPerson.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroupPerson.Serialization.cs @@ -18,15 +18,6 @@ public partial class LargePersonGroupPerson : IUtf8JsonSerializable, IJsonModel< void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LargePersonGroupPerson)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (options.Format != "W") { writer.WritePropertyName("personId"u8); @@ -71,6 +63,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LargePersonGroupPerson IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroupPersonFace.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroupPersonFace.Serialization.cs index 3917852001da..a602eb3457e0 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroupPersonFace.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LargePersonGroupPersonFace.Serialization.cs @@ -18,15 +18,6 @@ public partial class LargePersonGroupPersonFace : IUtf8JsonSerializable, IJsonMo void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LargePersonGroupPersonFace)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (options.Format != "W") { writer.WritePropertyName("persistedFaceId"u8); @@ -59,6 +51,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LargePersonGroupPersonFace IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessOutputsTarget.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessOutputsTarget.Serialization.cs index 0209b90744f9..f836f261ef50 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessOutputsTarget.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessOutputsTarget.Serialization.cs @@ -18,15 +18,6 @@ public partial class LivenessOutputsTarget : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LivenessOutputsTarget)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceRectangle"u8); writer.WriteObjectValue(FaceRectangle, options); writer.WritePropertyName("fileName"u8); @@ -57,6 +49,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LivenessOutputsTarget IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessResponseBody.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessResponseBody.Serialization.cs index 8f16749b1abd..092cb634cafc 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessResponseBody.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessResponseBody.Serialization.cs @@ -18,15 +18,6 @@ public partial class LivenessResponseBody : IUtf8JsonSerializable, IJsonModel
  • ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LivenessResponseBody)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(LivenessDecision)) { writer.WritePropertyName("livenessDecision"u8); @@ -66,6 +58,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } #endif } + writer.WriteEndObject(); } LivenessResponseBody IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSession.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSession.Serialization.cs index d246e8c5b8e3..c55c1e05f9dd 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSession.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSession.Serialization.cs @@ -18,15 +18,6 @@ public partial class LivenessSession : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LivenessSession)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (options.Format != "W") { writer.WritePropertyName("id"u8); @@ -80,6 +72,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LivenessSession IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSessionAuditEntry.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSessionAuditEntry.Serialization.cs index 1c696b7056ac..203873526c05 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSessionAuditEntry.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSessionAuditEntry.Serialization.cs @@ -18,15 +18,6 @@ public partial class LivenessSessionAuditEntry : IUtf8JsonSerializable, IJsonMod void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LivenessSessionAuditEntry)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("id"u8); writer.WriteNumberValue(Id); writer.WritePropertyName("sessionId"u8); @@ -75,6 +67,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LivenessSessionAuditEntry IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSessionItem.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSessionItem.Serialization.cs index 453bf02974ef..b6a246ecab3c 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSessionItem.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessSessionItem.Serialization.cs @@ -18,15 +18,6 @@ public partial class LivenessSessionItem : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LivenessSessionItem)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (options.Format != "W") { writer.WritePropertyName("id"u8); @@ -73,6 +65,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LivenessSessionItem IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifyImage.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifyImage.Serialization.cs index df2fa817889b..74f0209588bb 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifyImage.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifyImage.Serialization.cs @@ -18,15 +18,6 @@ public partial class LivenessWithVerifyImage : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LivenessWithVerifyImage)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceRectangle"u8); writer.WriteObjectValue(FaceRectangle, options); writer.WritePropertyName("qualityForRecognition"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LivenessWithVerifyImage IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifyOutputs.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifyOutputs.Serialization.cs index 200d8861c932..723538b6f3e0 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifyOutputs.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifyOutputs.Serialization.cs @@ -18,15 +18,6 @@ public partial class LivenessWithVerifyOutputs : IUtf8JsonSerializable, IJsonMod void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LivenessWithVerifyOutputs)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("verifyImage"u8); writer.WriteObjectValue(VerifyImage, options); writer.WritePropertyName("matchConfidence"u8); @@ -55,6 +47,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LivenessWithVerifyOutputs IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifySession.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifySession.Serialization.cs index 667ff29fe29b..49201dd5552d 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifySession.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/LivenessWithVerifySession.Serialization.cs @@ -18,15 +18,6 @@ public partial class LivenessWithVerifySession : IUtf8JsonSerializable, IJsonMod void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(LivenessWithVerifySession)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (options.Format != "W") { writer.WritePropertyName("id"u8); @@ -80,6 +72,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } LivenessWithVerifySession IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/MaskProperties.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/MaskProperties.Serialization.cs index 29c608541228..279293e0b1bc 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/MaskProperties.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/MaskProperties.Serialization.cs @@ -18,15 +18,6 @@ public partial class MaskProperties : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(MaskProperties)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("noseAndMouthCovered"u8); writer.WriteBooleanValue(NoseAndMouthCovered); writer.WritePropertyName("type"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } MaskProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/NoiseProperties.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/NoiseProperties.Serialization.cs index 1c508412a9bb..601e419f59ad 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/NoiseProperties.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/NoiseProperties.Serialization.cs @@ -18,15 +18,6 @@ public partial class NoiseProperties : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(NoiseProperties)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("noiseLevel"u8); writer.WriteStringValue(NoiseLevel.ToString()); writer.WritePropertyName("value"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } NoiseProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/OcclusionProperties.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/OcclusionProperties.Serialization.cs index 34cb05863d18..beef90070b67 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/OcclusionProperties.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/OcclusionProperties.Serialization.cs @@ -18,15 +18,6 @@ public partial class OcclusionProperties : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(OcclusionProperties)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("foreheadOccluded"u8); writer.WriteBooleanValue(ForeheadOccluded); writer.WritePropertyName("eyeOccluded"u8); @@ -55,6 +47,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } OcclusionProperties IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/VerifyFaceToFaceRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/VerifyFaceToFaceRequest.Serialization.cs index 9305d1a2e12a..db1cddfe5c5d 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/VerifyFaceToFaceRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/VerifyFaceToFaceRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class VerifyFaceToFaceRequest : IUtf8JsonSerializable, IJsonMod void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(VerifyFaceToFaceRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceId1"u8); writer.WriteStringValue(FaceId1); writer.WritePropertyName("faceId2"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } VerifyFaceToFaceRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/src/Generated/VerifyFromLargePersonGroupRequest.Serialization.cs b/sdk/face/Azure.AI.Vision.Face/src/Generated/VerifyFromLargePersonGroupRequest.Serialization.cs index 96cfb4a3ccba..fa9cc27b3b68 100644 --- a/sdk/face/Azure.AI.Vision.Face/src/Generated/VerifyFromLargePersonGroupRequest.Serialization.cs +++ b/sdk/face/Azure.AI.Vision.Face/src/Generated/VerifyFromLargePersonGroupRequest.Serialization.cs @@ -18,15 +18,6 @@ internal partial class VerifyFromLargePersonGroupRequest : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(VerifyFromLargePersonGroupRequest)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("faceId"u8); writer.WriteStringValue(FaceId); writer.WritePropertyName("largePersonGroupId"u8); @@ -55,6 +47,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } VerifyFromLargePersonGroupRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/face/Azure.AI.Vision.Face/tsp-location.yaml b/sdk/face/Azure.AI.Vision.Face/tsp-location.yaml index 61161a1ab8f3..1d208e68063a 100644 --- a/sdk/face/Azure.AI.Vision.Face/tsp-location.yaml +++ b/sdk/face/Azure.AI.Vision.Face/tsp-location.yaml @@ -1,5 +1,4 @@ directory: specification/ai/Face -commit: 601c172aeddbf6072eefc92dc20344d60aa4b886 +commit: 8261d8a6b88b202026ece5cef460cb7696b16b3a repo: Azure/azure-rest-api-specs -additionalDirectories: [] - +additionalDirectories: diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.netstandard2.0.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.netstandard2.0.cs index 2884afa3f79d..749e5f283b09 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.netstandard2.0.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/api/Azure.Health.Insights.RadiologyInsights.netstandard2.0.cs @@ -3,7 +3,6 @@ namespace Azure.Health.Insights.RadiologyInsights public partial class AgeMismatchInference : Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference, System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel { internal AgeMismatchInference() { } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.AgeMismatchInference 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.Health.Insights.RadiologyInsights.AgeMismatchInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -15,7 +14,6 @@ public partial class ClinicalDocumentAuthor : System.ClientModel.Primitives.IJso public ClinicalDocumentAuthor() { } public string FullName { get { throw null; } set { } } public string Id { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.ClinicalDocumentAuthor 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.Health.Insights.RadiologyInsights.ClinicalDocumentAuthor System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -27,7 +25,6 @@ public partial class ClinicalDocumentContent : System.ClientModel.Primitives.IJs public ClinicalDocumentContent(Azure.Health.Insights.RadiologyInsights.DocumentContentSourceType sourceType, string value) { } public Azure.Health.Insights.RadiologyInsights.DocumentContentSourceType SourceType { get { throw null; } set { } } public string Value { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.ClinicalDocumentContent 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.Health.Insights.RadiologyInsights.ClinicalDocumentContent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -84,7 +81,6 @@ internal CompleteOrderDiscrepancyInference() { } public System.Collections.Generic.IReadOnlyList MissingBodyPartMeasurements { get { throw null; } } public System.Collections.Generic.IReadOnlyList MissingBodyParts { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept OrderType { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.CompleteOrderDiscrepancyInference 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.Health.Insights.RadiologyInsights.CompleteOrderDiscrepancyInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -140,7 +136,6 @@ public partial class CriticalResult : 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.Health.Insights.RadiologyInsights.CriticalResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -151,7 +146,6 @@ public partial class CriticalResultInference : Azure.Health.Insights.RadiologyIn { internal CriticalResultInference() { } public Azure.Health.Insights.RadiologyInsights.CriticalResult Result { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.CriticalResultInference 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.Health.Insights.RadiologyInsights.CriticalResultInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -163,7 +157,6 @@ public partial class DocumentAdministrativeMetadata : System.ClientModel.Primiti public DocumentAdministrativeMetadata() { } public string EncounterId { get { throw null; } set { } } public System.Collections.Generic.IList OrderedProcedures { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.DocumentAdministrativeMetadata 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.Health.Insights.RadiologyInsights.DocumentAdministrativeMetadata System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -216,7 +209,6 @@ internal FhirR4Annotation() { } public string AuthorString { get { throw null; } } public string Text { get { throw null; } } public string Time { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Annotation 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.Health.Insights.RadiologyInsights.FhirR4Annotation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -228,7 +220,6 @@ public partial class FhirR4CodeableConcept : Azure.Health.Insights.RadiologyInsi public FhirR4CodeableConcept() { } public System.Collections.Generic.IList Coding { get { throw null; } } public string Text { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept 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.Health.Insights.RadiologyInsights.FhirR4CodeableConcept System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -242,7 +233,6 @@ public FhirR4Coding() { } public string Display { get { throw null; } set { } } public string System { get { throw null; } set { } } public string Version { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Coding 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.Health.Insights.RadiologyInsights.FhirR4Coding System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -273,7 +263,6 @@ internal FhirR4Condition() : base (default(string)) { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Severity { get { throw null; } } public System.Collections.Generic.IReadOnlyList Stage { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept VerificationStatus { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Condition 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.Health.Insights.RadiologyInsights.FhirR4Condition System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -285,7 +274,6 @@ public partial class FhirR4ConditionStage : System.ClientModel.Primitives.IJsonM internal FhirR4ConditionStage() { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Summary { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Type { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4ConditionStage 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.Health.Insights.RadiologyInsights.FhirR4ConditionStage System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -297,7 +285,6 @@ public partial class FhirR4ContactDetail : Azure.Health.Insights.RadiologyInsigh internal FhirR4ContactDetail() { } public string Name { get { throw null; } } public System.Collections.Generic.IReadOnlyList Telecom { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4ContactDetail 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.Health.Insights.RadiologyInsights.FhirR4ContactDetail System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -312,7 +299,6 @@ internal FhirR4ContactPoint() { } public Azure.Health.Insights.RadiologyInsights.ContactPointSystem? System { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.ContactPointUse? Use { get { throw null; } } public string Value { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4ContactPoint 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.Health.Insights.RadiologyInsights.FhirR4ContactPoint System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -326,7 +312,6 @@ protected FhirR4DomainResource(string resourceType) : base (default(string)) { } public System.Collections.Generic.IReadOnlyList Extension { get { throw null; } } public System.Collections.Generic.IReadOnlyList ModifierExtension { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4Narrative Text { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4DomainResource 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.Health.Insights.RadiologyInsights.FhirR4DomainResource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -338,7 +323,6 @@ public partial class FhirR4Element : System.ClientModel.Primitives.IJsonModel Extension { get { throw null; } } public string Id { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Element 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.Health.Insights.RadiologyInsights.FhirR4Element System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -361,7 +345,6 @@ public FhirR4Extension(string url) { } public Azure.Health.Insights.RadiologyInsights.FhirR4SampledData ValueSampledData { get { throw null; } set { } } public string ValueString { get { throw null; } set { } } public System.TimeSpan? ValueTime { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Extension 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.Health.Insights.RadiologyInsights.FhirR4Extension System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -377,7 +360,6 @@ public FhirR4Identifier() { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Type { get { throw null; } set { } } public string Use { get { throw null; } set { } } public string Value { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Identifier 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.Health.Insights.RadiologyInsights.FhirR4Identifier System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -393,7 +375,6 @@ public FhirR4Meta() { } public string Source { get { throw null; } set { } } public System.Collections.Generic.IList Tag { get { throw null; } } public string VersionId { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Meta 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.Health.Insights.RadiologyInsights.FhirR4Meta System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -405,7 +386,6 @@ public partial class FhirR4Narrative : Azure.Health.Insights.RadiologyInsights.F internal FhirR4Narrative() { } public string Div { get { throw null; } } public string Status { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Narrative 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.Health.Insights.RadiologyInsights.FhirR4Narrative System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -445,7 +425,6 @@ internal FhirR4Observation() : base (default(string)) { } public Azure.Health.Insights.RadiologyInsights.FhirR4SampledData ValueSampledData { get { throw null; } } public string ValueString { get { throw null; } } public System.TimeSpan? ValueTime { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Observation 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.Health.Insights.RadiologyInsights.FhirR4Observation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -471,7 +450,6 @@ internal FhirR4ObservationComponent() { } public Azure.Health.Insights.RadiologyInsights.FhirR4SampledData ValueSampledData { get { throw null; } } public string ValueString { get { throw null; } } public System.TimeSpan? ValueTime { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4ObservationComponent 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.Health.Insights.RadiologyInsights.FhirR4ObservationComponent System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -487,7 +465,6 @@ internal FhirR4ObservationReferenceRange() { } public Azure.Health.Insights.RadiologyInsights.FhirR4Quantity Low { get { throw null; } } public string Text { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Type { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4ObservationReferenceRange 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.Health.Insights.RadiologyInsights.FhirR4ObservationReferenceRange System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -499,7 +476,6 @@ public partial class FhirR4Period : Azure.Health.Insights.RadiologyInsights.Fhir public FhirR4Period() { } public string End { get { throw null; } set { } } public string Start { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Period 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.Health.Insights.RadiologyInsights.FhirR4Period System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -514,7 +490,6 @@ public FhirR4Quantity() { } public string System { get { throw null; } set { } } public string Unit { get { throw null; } set { } } public double? Value { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Quantity 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.Health.Insights.RadiologyInsights.FhirR4Quantity System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -526,7 +501,6 @@ public partial class FhirR4Range : Azure.Health.Insights.RadiologyInsights.FhirR public FhirR4Range() { } public Azure.Health.Insights.RadiologyInsights.FhirR4Quantity High { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.FhirR4Quantity Low { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Range 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.Health.Insights.RadiologyInsights.FhirR4Range System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -538,7 +512,6 @@ public partial class FhirR4Ratio : Azure.Health.Insights.RadiologyInsights.FhirR public FhirR4Ratio() { } public Azure.Health.Insights.RadiologyInsights.FhirR4Quantity Denominator { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.FhirR4Quantity Numerator { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Ratio 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.Health.Insights.RadiologyInsights.FhirR4Ratio System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -552,7 +525,6 @@ public FhirR4Reference() { } public Azure.Health.Insights.RadiologyInsights.FhirR4Identifier Identifier { get { throw null; } set { } } public string Reference { get { throw null; } set { } } public string Type { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Reference 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.Health.Insights.RadiologyInsights.FhirR4Reference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -585,7 +557,6 @@ internal FhirR4ResearchStudy() : base (default(string)) { } public Azure.Health.Insights.RadiologyInsights.FhirR4Reference Sponsor { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.ResearchStudyStatusCodeType Status { get { throw null; } } public string Title { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4ResearchStudy 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.Health.Insights.RadiologyInsights.FhirR4ResearchStudy System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -601,7 +572,6 @@ public FhirR4Resource(string resourceType) { } public string Language { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.FhirR4Meta Meta { get { throw null; } set { } } public string ResourceType { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4Resource 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.Health.Insights.RadiologyInsights.FhirR4Resource System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -618,7 +588,6 @@ public FhirR4SampledData(Azure.Health.Insights.RadiologyInsights.FhirR4Quantity public Azure.Health.Insights.RadiologyInsights.FhirR4Quantity Origin { get { throw null; } set { } } public double Period { get { throw null; } set { } } public double? UpperLimit { get { throw null; } set { } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FhirR4SampledData 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.Health.Insights.RadiologyInsights.FhirR4SampledData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -629,7 +598,6 @@ public partial class FindingInference : Azure.Health.Insights.RadiologyInsights. { internal FindingInference() { } public Azure.Health.Insights.RadiologyInsights.FhirR4Observation Finding { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FindingInference 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.Health.Insights.RadiologyInsights.FindingInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -640,7 +608,6 @@ public partial class FindingOptions : 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.Health.Insights.RadiologyInsights.FindingOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -653,7 +620,6 @@ internal FollowupCommunicationInference() { } public System.Collections.Generic.IReadOnlyList CommunicatedAt { get { throw null; } } public System.Collections.Generic.IReadOnlyList Recipient { get { throw null; } } public bool WasAcknowledged { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FollowupCommunicationInference 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.Health.Insights.RadiologyInsights.FollowupCommunicationInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -671,7 +637,6 @@ internal FollowupRecommendationInference() { } public bool IsHedging { get { throw null; } } public bool IsOption { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.ProcedureRecommendation RecommendedProcedure { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FollowupRecommendationInference 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.Health.Insights.RadiologyInsights.FollowupRecommendationInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -684,7 +649,6 @@ public FollowupRecommendationOptions() { } public bool? IncludeRecommendationsInReferences { get { throw null; } set { } } public bool? IncludeRecommendationsWithNoSpecifiedModality { get { throw null; } set { } } public bool? ProvideFocusedSentenceEvidence { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.FollowupRecommendationOptions 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.Health.Insights.RadiologyInsights.FollowupRecommendationOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -696,7 +660,6 @@ public partial class GenericProcedureRecommendation : Azure.Health.Insights.Radi internal GenericProcedureRecommendation() { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Code { get { throw null; } } public string Description { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.GenericProcedureRecommendation 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.Health.Insights.RadiologyInsights.GenericProcedureRecommendation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -748,7 +711,6 @@ internal ImagingProcedure() { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Laterality { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Modality { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes View { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.ImagingProcedure 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.Health.Insights.RadiologyInsights.ImagingProcedure System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -760,7 +722,6 @@ public partial class ImagingProcedureRecommendation : Azure.Health.Insights.Radi internal ImagingProcedureRecommendation() { } public System.Collections.Generic.IReadOnlyList ImagingProcedures { get { throw null; } } public System.Collections.Generic.IReadOnlyList ProcedureCodes { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.ImagingProcedureRecommendation 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.Health.Insights.RadiologyInsights.ImagingProcedureRecommendation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -793,7 +754,6 @@ public partial class LateralityDiscrepancyInference : Azure.Health.Insights.Radi internal LateralityDiscrepancyInference() { } public Azure.Health.Insights.RadiologyInsights.LateralityDiscrepancyType DiscrepancyType { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept LateralityIndication { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.LateralityDiscrepancyInference 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.Health.Insights.RadiologyInsights.LateralityDiscrepancyInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -825,7 +785,6 @@ internal LimitedOrderDiscrepancyInference() { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept OrderType { get { throw null; } } public System.Collections.Generic.IReadOnlyList PresentBodyPartMeasurements { get { throw null; } } public System.Collections.Generic.IReadOnlyList PresentBodyParts { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.LimitedOrderDiscrepancyInference 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.Health.Insights.RadiologyInsights.LimitedOrderDiscrepancyInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -883,7 +842,6 @@ public OrderedProcedure() { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Code { get { throw null; } set { } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IList Extension { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.OrderedProcedure 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.Health.Insights.RadiologyInsights.OrderedProcedure System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -896,7 +854,6 @@ public PatientDetails() { } public System.DateTimeOffset? BirthDate { get { throw null; } set { } } public System.Collections.Generic.IList ClinicalInfo { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.PatientSex? Sex { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.PatientDetails 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.Health.Insights.RadiologyInsights.PatientDetails System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -915,7 +872,6 @@ public PatientDocument(Azure.Health.Insights.RadiologyInsights.ClinicalDocumentC public string Language { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.SpecialtyType? SpecialtyType { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.ClinicalDocumentContentType Type { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.PatientDocument 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.Health.Insights.RadiologyInsights.PatientDocument System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -928,7 +884,6 @@ public PatientEncounter(string id) { } public Azure.Health.Insights.RadiologyInsights.EncounterClass? Class { get { throw null; } set { } } public string Id { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.TimePeriod Period { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.PatientEncounter 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.Health.Insights.RadiologyInsights.PatientEncounter System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -942,7 +897,6 @@ public PatientRecord(string id) { } public System.Collections.Generic.IList Encounters { get { throw null; } } public string Id { get { throw null; } set { } } public System.Collections.Generic.IList PatientDocuments { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.PatientRecord 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.Health.Insights.RadiologyInsights.PatientRecord System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -972,7 +926,6 @@ public abstract partial class ProcedureRecommendation : System.ClientModel.Primi { protected ProcedureRecommendation() { } public System.Collections.Generic.IReadOnlyList Extension { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.ProcedureRecommendation 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.Health.Insights.RadiologyInsights.ProcedureRecommendation System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -984,7 +937,6 @@ public partial class RadiologyCodeWithTypes : System.ClientModel.Primitives.IJso internal RadiologyCodeWithTypes() { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Code { get { throw null; } } public System.Collections.Generic.IReadOnlyList Types { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes 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.Health.Insights.RadiologyInsights.RadiologyCodeWithTypes System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1006,10 +958,11 @@ public RadiologyInsightsClient(System.Uri endpoint, Azure.Core.TokenCredential c } public partial class RadiologyInsightsClientOptions : Azure.Core.ClientOptions { - public RadiologyInsightsClientOptions(Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion version = Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion.V2024_04_01) { } + public RadiologyInsightsClientOptions(Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion version = Azure.Health.Insights.RadiologyInsights.RadiologyInsightsClientOptions.ServiceVersion.V2024_08_01_Preview) { } public enum ServiceVersion { V2024_04_01 = 1, + V2024_08_01_Preview = 2, } } public partial class RadiologyInsightsData : System.ClientModel.Primitives.IJsonModel, System.ClientModel.Primitives.IPersistableModel @@ -1017,7 +970,6 @@ public partial class RadiologyInsightsData : System.ClientModel.Primitives.IJson public RadiologyInsightsData(System.Collections.Generic.IEnumerable patients) { } public Azure.Health.Insights.RadiologyInsights.RadiologyInsightsModelConfiguration Configuration { get { throw null; } set { } } public System.Collections.Generic.IList Patients { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsData 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.Health.Insights.RadiologyInsights.RadiologyInsightsData System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1028,7 +980,6 @@ public abstract partial class RadiologyInsightsInference : System.ClientModel.Pr { protected RadiologyInsightsInference() { } public System.Collections.Generic.IReadOnlyList Extension { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInference 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.Health.Insights.RadiologyInsights.RadiologyInsightsInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1040,7 +991,6 @@ public partial class RadiologyInsightsInferenceOptions : System.ClientModel.Prim public RadiologyInsightsInferenceOptions() { } public Azure.Health.Insights.RadiologyInsights.FindingOptions FindingOptions { get { throw null; } set { } } public Azure.Health.Insights.RadiologyInsights.FollowupRecommendationOptions FollowupRecommendationOptions { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceOptions 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.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceOptions System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1052,7 +1002,6 @@ public partial class RadiologyInsightsInferenceResult : System.ClientModel.Primi internal RadiologyInsightsInferenceResult() { } public string ModelVersion { get { throw null; } } public System.Collections.Generic.IReadOnlyList PatientResults { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceResult 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.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1096,7 +1045,6 @@ public RadiologyInsightsJob() { } public Azure.Health.Insights.RadiologyInsights.RadiologyInsightsInferenceResult Result { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.JobStatus Status { get { throw null; } } public System.DateTimeOffset? UpdatedAt { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsJob 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.Health.Insights.RadiologyInsights.RadiologyInsightsJob System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1111,7 +1059,6 @@ public RadiologyInsightsModelConfiguration() { } public System.Collections.Generic.IList InferenceTypes { get { throw null; } } public string Locale { get { throw null; } set { } } public bool? Verbose { get { throw null; } set { } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsModelConfiguration 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.Health.Insights.RadiologyInsights.RadiologyInsightsModelConfiguration System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1123,7 +1070,6 @@ public partial class RadiologyInsightsPatientResult : System.ClientModel.Primiti internal RadiologyInsightsPatientResult() { } public System.Collections.Generic.IReadOnlyList Inferences { get { throw null; } } public string PatientId { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyInsightsPatientResult 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.Health.Insights.RadiologyInsights.RadiologyInsightsPatientResult System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1136,7 +1082,6 @@ internal RadiologyProcedureInference() { } public System.Collections.Generic.IReadOnlyList ImagingProcedures { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.OrderedProcedure OrderedProcedure { get { throw null; } } public System.Collections.Generic.IReadOnlyList ProcedureCodes { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RadiologyProcedureInference 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.Health.Insights.RadiologyInsights.RadiologyProcedureInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1150,7 +1095,6 @@ internal RecommendationFinding() { } public System.Collections.Generic.IReadOnlyList Extension { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4Observation Finding { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.RecommendationFindingStatusType RecommendationFindingStatus { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.RecommendationFinding 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.Health.Insights.RadiologyInsights.RecommendationFinding System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1183,7 +1127,6 @@ internal ResearchStudyArm() { } public string Description { get { throw null; } } public string Name { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Type { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.ResearchStudyArm 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.Health.Insights.RadiologyInsights.ResearchStudyArm System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1195,7 +1138,6 @@ public partial class ResearchStudyObjective : System.ClientModel.Primitives.IJso internal ResearchStudyObjective() { } public string Name { get { throw null; } } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept Type { get { throw null; } } - protected virtual void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.ResearchStudyObjective 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.Health.Insights.RadiologyInsights.ResearchStudyObjective System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1233,7 +1175,6 @@ public partial class SexMismatchInference : Azure.Health.Insights.RadiologyInsig { internal SexMismatchInference() { } public Azure.Health.Insights.RadiologyInsights.FhirR4CodeableConcept SexIndication { get { throw null; } } - protected override void JsonModelWriteCore(System.Text.Json.Utf8JsonWriter writer, System.ClientModel.Primitives.ModelReaderWriterOptions options) { } Azure.Health.Insights.RadiologyInsights.SexMismatchInference 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.Health.Insights.RadiologyInsights.SexMismatchInference System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } @@ -1263,7 +1204,6 @@ public partial class TimePeriod : 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.Health.Insights.RadiologyInsights.TimePeriod System.ClientModel.Primitives.IPersistableModel.Create(System.BinaryData data, System.ClientModel.Primitives.ModelReaderWriterOptions options) { throw null; } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.Serialization.cs index 51c3b54eaef4..e5381c09c77f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/AgeMismatchInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class AgeMismatchInference : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,35 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(AgeMismatchInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } AgeMismatchInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentAuthor.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentAuthor.Serialization.cs index 1bf8d15b48d0..a994c3a96348 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentAuthor.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentAuthor.Serialization.cs @@ -18,15 +18,6 @@ public partial class ClinicalDocumentAuthor : IUtf8JsonSerializable, IJsonModel< void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ClinicalDocumentAuthor)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Id)) { writer.WritePropertyName("id"u8); @@ -59,6 +51,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } ClinicalDocumentAuthor IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentContent.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentContent.Serialization.cs index d5b02a871176..d4867743e5dd 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentContent.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ClinicalDocumentContent.Serialization.cs @@ -18,15 +18,6 @@ public partial class ClinicalDocumentContent : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ClinicalDocumentContent)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("sourceType"u8); writer.WriteStringValue(SourceType.ToString()); writer.WritePropertyName("value"u8); @@ -53,6 +45,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } ClinicalDocumentContent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.Serialization.cs index 6b1f1ae5a0d3..9a9080533094 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CompleteOrderDiscrepancyInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class CompleteOrderDiscrepancyInference : IUtf8JsonSerializable, void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(CompleteOrderDiscrepancyInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("orderType"u8); writer.WriteObjectValue(OrderType, options); if (Optional.IsCollectionDefined(MissingBodyParts)) @@ -57,6 +48,34 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } CompleteOrderDiscrepancyInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.Serialization.cs index f68c7c373e4a..9d40feeaf567 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class CriticalResult : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(CriticalResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); if (Optional.IsDefined(Finding)) @@ -56,6 +48,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } CriticalResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.Serialization.cs index 2df6197a62ba..a365a6c7bb2b 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/CriticalResultInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class CriticalResultInference : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,9 +25,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(CriticalResultInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("result"u8); writer.WriteObjectValue(Result, options); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } CriticalResultInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.Serialization.cs index 9ae37ac0af92..81297f5d3186 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/DocumentAdministrativeMetadata.Serialization.cs @@ -18,15 +18,6 @@ public partial class DocumentAdministrativeMetadata : IUtf8JsonSerializable, IJs void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(DocumentAdministrativeMetadata)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsCollectionDefined(OrderedProcedures)) { writer.WritePropertyName("orderedProcedures"u8); @@ -64,6 +56,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } DocumentAdministrativeMetadata IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Annotation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Annotation.Serialization.cs index ed3d29d687f7..87bd71e8a99f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Annotation.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Annotation.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Annotation : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Annotation)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(AuthorString)) { writer.WritePropertyName("authorString"u8); @@ -47,6 +38,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("text"u8); writer.WriteStringValue(Text); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Annotation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4CodeableConcept.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4CodeableConcept.Serialization.cs index 1a3a6f6f2451..6f413207e7a7 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4CodeableConcept.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4CodeableConcept.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4CodeableConcept : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4CodeableConcept)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsCollectionDefined(Coding)) { writer.WritePropertyName("coding"u8); @@ -50,6 +41,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("text"u8); writer.WriteStringValue(Text); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4CodeableConcept IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Coding.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Coding.Serialization.cs index 7fa360b4cf83..3b615de8ae1f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Coding.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Coding.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Coding : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Coding)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(System)) { writer.WritePropertyName("system"u8); @@ -55,6 +46,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("display"u8); writer.WriteStringValue(Display); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Coding IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.Serialization.cs index 5442ad8ba568..a8bce61f567e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Condition.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Condition : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Condition)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsCollectionDefined(Identifier)) { writer.WritePropertyName("identifier"u8); @@ -165,6 +156,63 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteObjectValue(Text, options); + } + if (Optional.IsCollectionDefined(Contained)) + { + writer.WritePropertyName("contained"u8); + writer.WriteStartArray(); + foreach (var item in Contained) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(ModifierExtension)) + { + writer.WritePropertyName("modifierExtension"u8); + writer.WriteStartArray(); + foreach (var item in ModifierExtension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta, options); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); @@ -177,6 +225,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } #endif } + writer.WriteEndObject(); } FhirR4Condition IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ConditionStage.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ConditionStage.Serialization.cs index 7370521369fc..5a08ba7f4c2e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ConditionStage.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ConditionStage.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4ConditionStage : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FhirR4ConditionStage)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Summary)) { writer.WritePropertyName("summary"u8); @@ -59,6 +51,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FhirR4ConditionStage IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.Serialization.cs index 70cea72fda7a..619c4e53d474 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactDetail.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4ContactDetail : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4ContactDetail)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(Name)) { writer.WritePropertyName("name"u8); @@ -50,6 +41,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4ContactDetail IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactPoint.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactPoint.Serialization.cs index 9db15e1ec7a4..2de3cfe32e1c 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactPoint.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ContactPoint.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4ContactPoint : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FhirR4ContactPoint)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(System)) { writer.WritePropertyName("system"u8); @@ -74,6 +66,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FhirR4ContactPoint IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4DomainResource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4DomainResource.Serialization.cs index 2543701926c0..07a57af91014 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4DomainResource.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4DomainResource.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4DomainResource : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4DomainResource)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(Text)) { writer.WritePropertyName("text"u8); @@ -70,6 +61,28 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta, options); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); @@ -82,6 +95,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } #endif } + writer.WriteEndObject(); } FhirR4DomainResource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Element.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Element.Serialization.cs index 7ff2697f9be5..6a6eed3c90cb 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Element.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Element.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Element : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FhirR4Element)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Id)) { writer.WritePropertyName("id"u8); @@ -64,6 +56,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FhirR4Element IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.Serialization.cs index bcdd37259105..bf9138a9c0a1 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Extension : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Extension)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("url"u8); writer.WriteStringValue(Url); if (Optional.IsDefined(ValueQuantity)) @@ -97,6 +88,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("valueReference"u8); writer.WriteObjectValue(ValueReference, options); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Extension IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.cs index 7a3d74a4c3ba..7af73b34d0c1 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Extension.cs @@ -12,7 +12,7 @@ namespace Azure.Health.Insights.RadiologyInsights { /// /// Base for all elements - /// Based on [FHIR Element](https://www.hl7.org/fhir/datatypes.html#Element) + /// Based on [FHIR Element](https://www.hl7.org/fhir/R4/element.html) /// public partial class FhirR4Extension : FhirR4Element { diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Identifier.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Identifier.Serialization.cs index 2d467cb3cbb2..1eb0c87d0294 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Identifier.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Identifier.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Identifier : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Identifier)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(Use)) { writer.WritePropertyName("use"u8); @@ -65,6 +56,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("assigner"u8); writer.WriteObjectValue(Assigner, options); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Identifier IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Meta.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Meta.Serialization.cs index 0acab639c4ea..c84840501c90 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Meta.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Meta.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Meta : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FhirR4Meta)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(VersionId)) { writer.WritePropertyName("versionId"u8); @@ -94,6 +86,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FhirR4Meta IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Narrative.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Narrative.Serialization.cs index 73d027c4c2b7..e436f29721c7 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Narrative.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Narrative.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Narrative : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,11 +25,42 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Narrative)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("status"u8); writer.WriteStringValue(Status); writer.WritePropertyName("div"u8); writer.WriteStringValue(Div); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Narrative IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Observation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Observation.Serialization.cs index 4183a09e659c..272281152600 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Observation.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Observation.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Observation : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Observation)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsCollectionDefined(Identifier)) { writer.WritePropertyName("identifier"u8); @@ -219,6 +210,63 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteObjectValue(Text, options); + } + if (Optional.IsCollectionDefined(Contained)) + { + writer.WritePropertyName("contained"u8); + writer.WriteStartArray(); + foreach (var item in Contained) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(ModifierExtension)) + { + writer.WritePropertyName("modifierExtension"u8); + writer.WriteStartArray(); + foreach (var item in ModifierExtension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta, options); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); @@ -231,6 +279,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } #endif } + writer.WriteEndObject(); } FhirR4Observation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ObservationComponent.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ObservationComponent.Serialization.cs index 96cccd8d20d2..f0852e211550 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ObservationComponent.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ObservationComponent.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4ObservationComponent : IUtf8JsonSerializable, IJsonMo void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4ObservationComponent)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("code"u8); writer.WriteObjectValue(Code, options); if (Optional.IsDefined(ValueQuantity)) @@ -122,6 +113,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4ObservationComponent IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ObservationReferenceRange.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ObservationReferenceRange.Serialization.cs index 745581fcb234..067170b19ecb 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ObservationReferenceRange.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ObservationReferenceRange.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4ObservationReferenceRange : IUtf8JsonSerializable, IJ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FhirR4ObservationReferenceRange)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Low)) { writer.WritePropertyName("low"u8); @@ -84,6 +76,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FhirR4ObservationReferenceRange IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Period.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Period.Serialization.cs index 2ccf7aeb0a80..699e269fa747 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Period.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Period.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Period : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Period)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(Start)) { writer.WritePropertyName("start"u8); @@ -45,6 +36,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("end"u8); writer.WriteStringValue(End); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Period IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Quantity.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Quantity.Serialization.cs index cc1f42f82196..aae3a8ce2ccf 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Quantity.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Quantity.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Quantity : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Quantity)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(Value)) { writer.WritePropertyName("value"u8); @@ -60,6 +51,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("code"u8); writer.WriteStringValue(Code); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Quantity IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Range.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Range.Serialization.cs index 7b5ad7dd342e..86d55592753c 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Range.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Range.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Range : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Range)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(Low)) { writer.WritePropertyName("low"u8); @@ -45,6 +36,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("high"u8); writer.WriteObjectValue(High, options); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Range IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Ratio.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Ratio.Serialization.cs index 71734f7c6200..ab721919643f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Ratio.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Ratio.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Ratio : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Ratio)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(Numerator)) { writer.WritePropertyName("numerator"u8); @@ -45,6 +36,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("denominator"u8); writer.WriteObjectValue(Denominator, options); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Ratio IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Reference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Reference.Serialization.cs index c5e9d7291f86..81c1b52d985c 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Reference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Reference.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Reference : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4Reference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(Reference)) { writer.WritePropertyName("reference"u8); @@ -55,6 +46,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("display"u8); writer.WriteStringValue(Display); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4Reference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.Serialization.cs index c8d0693ee2c7..2d2ac4d94ee6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4ResearchStudy.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4ResearchStudy : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4ResearchStudy)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsCollectionDefined(Identifier)) { writer.WritePropertyName("identifier"u8); @@ -217,6 +208,63 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteObjectValue(Text, options); + } + if (Optional.IsCollectionDefined(Contained)) + { + writer.WritePropertyName("contained"u8); + writer.WriteStartArray(); + foreach (var item in Contained) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(ModifierExtension)) + { + writer.WritePropertyName("modifierExtension"u8); + writer.WriteStartArray(); + foreach (var item in ModifierExtension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta, options); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); @@ -229,6 +277,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } #endif } + writer.WriteEndObject(); } FhirR4ResearchStudy IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Resource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Resource.Serialization.cs index 6f27b0cc7442..bda982f80231 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Resource.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4Resource.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4Resource : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FhirR4Resource)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("resourceType"u8); writer.WriteStringValue(ResourceType); if (Optional.IsDefined(Id)) @@ -68,6 +60,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit } #endif } + writer.WriteEndObject(); } FhirR4Resource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4SampledData.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4SampledData.Serialization.cs index c5b801e0e33f..73160b56894b 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4SampledData.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FhirR4SampledData.Serialization.cs @@ -18,15 +18,6 @@ public partial class FhirR4SampledData : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4SampledData)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("origin"u8); writer.WriteObjectValue(Origin, options); writer.WritePropertyName("period"u8); @@ -61,6 +52,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("data"u8); writer.WriteStringValue(Data); } + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FhirR4SampledData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.Serialization.cs index eff204324e6d..b7c75b4d9f74 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class FindingInference : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,9 +25,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FindingInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("finding"u8); writer.WriteObjectValue(Finding, options); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FindingInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.Serialization.cs index b8df958af74d..4d3441233768 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FindingOptions.Serialization.cs @@ -18,15 +18,6 @@ public partial class FindingOptions : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FindingOptions)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(ProvideFocusedSentenceEvidence)) { writer.WritePropertyName("provideFocusedSentenceEvidence"u8); @@ -54,6 +46,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FindingOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.Serialization.cs index 7faff774ea1d..e1197ad265c8 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupCommunicationInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class FollowupCommunicationInference : IUtf8JsonSerializable, IJs void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FollowupCommunicationInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsCollectionDefined(CommunicatedAt)) { writer.WritePropertyName("communicatedAt"u8); @@ -57,6 +48,34 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("wasAcknowledged"u8); writer.WriteBooleanValue(WasAcknowledged); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FollowupCommunicationInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.Serialization.cs index 2417d70d3eca..0946d0695892 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class FollowupRecommendationInference : IUtf8JsonSerializable, IJ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FollowupRecommendationInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(EffectiveAt)) { writer.WritePropertyName("effectiveAt"u8); @@ -65,6 +56,34 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteBooleanValue(IsHedging); writer.WritePropertyName("recommendedProcedure"u8); writer.WriteObjectValue(RecommendedProcedure, options); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } FollowupRecommendationInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.Serialization.cs index db22477d27df..2fb5f24c4526 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/FollowupRecommendationOptions.Serialization.cs @@ -18,15 +18,6 @@ public partial class FollowupRecommendationOptions : IUtf8JsonSerializable, IJso void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(FollowupRecommendationOptions)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(IncludeRecommendationsWithNoSpecifiedModality)) { writer.WritePropertyName("includeRecommendationsWithNoSpecifiedModality"u8); @@ -64,6 +56,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } FollowupRecommendationOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.Serialization.cs index f2e767901dc3..560e11c34818 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/GenericProcedureRecommendation.Serialization.cs @@ -18,15 +18,6 @@ public partial class GenericProcedureRecommendation : IUtf8JsonSerializable, IJs void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(GenericProcedureRecommendation)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("code"u8); writer.WriteObjectValue(Code, options); if (Optional.IsDefined(Description)) @@ -42,6 +33,34 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WritePropertyName("description"u8); writer.WriteStringValue(Description); } + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } GenericProcedureRecommendation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.Serialization.cs index 411501d0f719..2f1549b3ecc5 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedure.Serialization.cs @@ -18,15 +18,6 @@ public partial class ImagingProcedure : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ImagingProcedure)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("modality"u8); writer.WriteObjectValue(Modality, options); writer.WritePropertyName("anatomy"u8); @@ -68,6 +60,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } ImagingProcedure IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.Serialization.cs index 5e37659856a4..b188c8c0b501 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ImagingProcedureRecommendation.Serialization.cs @@ -18,15 +18,6 @@ public partial class ImagingProcedureRecommendation : IUtf8JsonSerializable, IJs void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(ImagingProcedureRecommendation)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsCollectionDefined(ProcedureCodes)) { writer.WritePropertyName("procedureCodes"u8); @@ -52,6 +43,34 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteObjectValue(item, options); } writer.WriteEndArray(); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } ImagingProcedureRecommendation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.Serialization.cs index 4fd66c61d4f1..d092822b359e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LateralityDiscrepancyInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class LateralityDiscrepancyInference : IUtf8JsonSerializable, IJs void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(LateralityDiscrepancyInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsDefined(LateralityIndication)) { writer.WritePropertyName("lateralityIndication"u8); @@ -42,6 +33,34 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WritePropertyName("discrepancyType"u8); writer.WriteStringValue(DiscrepancyType.ToString()); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } LateralityDiscrepancyInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.Serialization.cs index 95535d83f988..55fb4bbfb900 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/LimitedOrderDiscrepancyInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class LimitedOrderDiscrepancyInference : IUtf8JsonSerializable, I void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(LimitedOrderDiscrepancyInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("orderType"u8); writer.WriteObjectValue(OrderType, options); if (Optional.IsCollectionDefined(PresentBodyParts)) @@ -57,6 +48,34 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } writer.WriteEndArray(); } + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } LimitedOrderDiscrepancyInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.Serialization.cs index af6d6e21fe1b..1c0352a6d4ea 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/OrderedProcedure.Serialization.cs @@ -18,15 +18,6 @@ public partial class OrderedProcedure : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(OrderedProcedure)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Code)) { writer.WritePropertyName("code"u8); @@ -69,6 +61,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } OrderedProcedure IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDetails.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDetails.Serialization.cs index 7802051dd325..1bd7233c429f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDetails.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDetails.Serialization.cs @@ -18,15 +18,6 @@ public partial class PatientDetails : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(PatientDetails)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Sex)) { writer.WritePropertyName("sex"u8); @@ -69,6 +61,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } PatientDetails IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.Serialization.cs index da6d9840ddae..478fd3341411 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientDocument.Serialization.cs @@ -18,15 +18,6 @@ public partial class PatientDocument : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(PatientDocument)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("type"u8); writer.WriteStringValue(Type.ToString()); if (Optional.IsDefined(ClinicalType)) @@ -90,6 +82,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } PatientDocument IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientEncounter.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientEncounter.Serialization.cs index 9f6d6abbb6a1..a7f5e227baa1 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientEncounter.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientEncounter.Serialization.cs @@ -18,15 +18,6 @@ public partial class PatientEncounter : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(PatientEncounter)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("id"u8); writer.WriteStringValue(Id); if (Optional.IsDefined(Period)) @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } PatientEncounter IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.Serialization.cs index 1a0678edad89..2c88509101b9 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/PatientRecord.Serialization.cs @@ -18,15 +18,6 @@ public partial class PatientRecord : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(PatientRecord)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("id"u8); writer.WriteStringValue(Id); if (Optional.IsDefined(Details)) @@ -76,6 +68,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } PatientRecord IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.Serialization.cs index 475659402ede..d5408d85a961 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ProcedureRecommendation.Serialization.cs @@ -18,15 +18,6 @@ public partial class ProcedureRecommendation : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ProcedureRecommendation)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("kind"u8); writer.WriteStringValue(Kind); if (Optional.IsCollectionDefined(Extension)) @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } ProcedureRecommendation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.Serialization.cs index 7eb696614999..29c228a91341 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyCodeWithTypes.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyCodeWithTypes : IUtf8JsonSerializable, IJsonModel< void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RadiologyCodeWithTypes)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("code"u8); writer.WriteObjectValue(Code, options); writer.WritePropertyName("types"u8); @@ -58,6 +50,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RadiologyCodeWithTypes IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs index c32d7850c9dc..13d472f0f53b 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsClientOptions.cs @@ -13,13 +13,15 @@ namespace Azure.Health.Insights.RadiologyInsights /// Client options for RadiologyInsightsClient. public partial class RadiologyInsightsClientOptions : ClientOptions { - private const ServiceVersion LatestVersion = ServiceVersion.V2024_04_01; + private const ServiceVersion LatestVersion = ServiceVersion.V2024_08_01_Preview; /// The version of the service to use. public enum ServiceVersion { /// Service version "2024-04-01". V2024_04_01 = 1, + /// Service version "2024-08-01-preview". + V2024_08_01_Preview = 2, } internal string Version { get; } @@ -30,6 +32,7 @@ public RadiologyInsightsClientOptions(ServiceVersion version = LatestVersion) Version = version switch { ServiceVersion.V2024_04_01 => "2024-04-01", + ServiceVersion.V2024_08_01_Preview => "2024-08-01-preview", _ => throw new NotSupportedException() }; } diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.Serialization.cs index dd4fe086c090..5d9424f9216e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsData.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyInsightsData : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RadiologyInsightsData)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("patients"u8); writer.WriteStartArray(); foreach (var item in Patients) @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RadiologyInsightsData IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs index b0ce9a043d8a..2690d85290d6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyInsightsInference : IUtf8JsonSerializable, IJsonMo void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RadiologyInsightsInference)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("kind"u8); writer.WriteStringValue(Kind.ToString()); if (Optional.IsCollectionDefined(Extension)) @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RadiologyInsightsInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs index f360119ce082..a1c8268f62f9 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceOptions.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyInsightsInferenceOptions : IUtf8JsonSerializable, void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RadiologyInsightsInferenceOptions)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(FollowupRecommendationOptions)) { writer.WritePropertyName("followupRecommendationOptions"u8); @@ -59,6 +51,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RadiologyInsightsInferenceOptions IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.Serialization.cs index bcff5ee13ddb..d1014b3e612a 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsInferenceResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyInsightsInferenceResult : IUtf8JsonSerializable, I void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RadiologyInsightsInferenceResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("patientResults"u8); writer.WriteStartArray(); foreach (var item in PatientResults) @@ -58,6 +50,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RadiologyInsightsInferenceResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsJob.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsJob.Serialization.cs index 3ce3376bda86..bfd43098111e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsJob.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsJob.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyInsightsJob : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RadiologyInsightsJob)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(JobData)) { writer.WritePropertyName("jobData"u8); @@ -89,6 +81,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RadiologyInsightsJob IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.Serialization.cs index f2498b95ecec..36f92c0c21b3 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsModelConfiguration.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyInsightsModelConfiguration : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RadiologyInsightsModelConfiguration)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Verbose)) { writer.WritePropertyName("verbose"u8); @@ -79,6 +71,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RadiologyInsightsModelConfiguration IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.Serialization.cs index eb7fb69e7c76..6d30a9789653 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyInsightsPatientResult.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyInsightsPatientResult : IUtf8JsonSerializable, IJs void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RadiologyInsightsPatientResult)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("patientId"u8); writer.WriteStringValue(PatientId); writer.WritePropertyName("inferences"u8); @@ -58,6 +50,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RadiologyInsightsPatientResult IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.Serialization.cs index 73382b565b2c..d9d97563d2e2 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RadiologyProcedureInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class RadiologyProcedureInference : IUtf8JsonSerializable, IJsonM void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(RadiologyProcedureInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); if (Optional.IsCollectionDefined(ProcedureCodes)) { writer.WritePropertyName("procedureCodes"u8); @@ -54,6 +45,34 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri writer.WriteEndArray(); writer.WritePropertyName("orderedProcedure"u8); writer.WriteObjectValue(OrderedProcedure, options); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } RadiologyProcedureInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.Serialization.cs index 603cf7200b57..5f06147e6ff8 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/RecommendationFinding.Serialization.cs @@ -18,15 +18,6 @@ public partial class RecommendationFinding : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(RecommendationFinding)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Finding)) { writer.WritePropertyName("finding"u8); @@ -71,6 +63,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } RecommendationFinding IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyArm.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyArm.Serialization.cs index d2f10c73dc58..05c30c0de016 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyArm.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyArm.Serialization.cs @@ -18,15 +18,6 @@ public partial class ResearchStudyArm : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ResearchStudyArm)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); if (Optional.IsDefined(Type)) @@ -61,6 +53,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } ResearchStudyArm IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyObjective.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyObjective.Serialization.cs index 798aa7e24aec..932da11fa28b 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyObjective.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/ResearchStudyObjective.Serialization.cs @@ -18,15 +18,6 @@ public partial class ResearchStudyObjective : IUtf8JsonSerializable, IJsonModel< void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(ResearchStudyObjective)} does not support writing '{format}' format."); } + writer.WriteStartObject(); writer.WritePropertyName("name"u8); writer.WriteStringValue(Name); if (Optional.IsDefined(Type)) @@ -56,6 +48,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } ResearchStudyObjective IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.Serialization.cs index 00680277ec3c..672f3e911fa1 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/SexMismatchInference.Serialization.cs @@ -18,15 +18,6 @@ public partial class SexMismatchInference : IUtf8JsonSerializable, IJsonModel ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,9 +25,37 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(SexMismatchInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); writer.WritePropertyName("sexIndication"u8); writer.WriteObjectValue(SexIndication, options); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } SexMismatchInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.Serialization.cs index 154658b240d7..016b4703f39f 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/TimePeriod.Serialization.cs @@ -18,15 +18,6 @@ public partial class TimePeriod : IUtf8JsonSerializable, IJsonModel void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,6 +25,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit throw new FormatException($"The model {nameof(TimePeriod)} does not support writing '{format}' format."); } + writer.WriteStartObject(); if (Optional.IsDefined(Start)) { writer.WritePropertyName("start"u8); @@ -59,6 +51,7 @@ protected virtual void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWrit #endif } } + writer.WriteEndObject(); } TimePeriod IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownFhirR4DomainResource.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownFhirR4DomainResource.Serialization.cs index 597554bbfef0..336c195bb96e 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownFhirR4DomainResource.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownFhirR4DomainResource.Serialization.cs @@ -18,15 +18,6 @@ internal partial class UnknownFhirR4DomainResource : IUtf8JsonSerializable, IJso void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,64 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(FhirR4DomainResource)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); + if (Optional.IsDefined(Text)) + { + writer.WritePropertyName("text"u8); + writer.WriteObjectValue(Text, options); + } + if (Optional.IsCollectionDefined(Contained)) + { + writer.WritePropertyName("contained"u8); + writer.WriteStartArray(); + foreach (var item in Contained) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (Optional.IsCollectionDefined(ModifierExtension)) + { + writer.WritePropertyName("modifierExtension"u8); + writer.WriteStartArray(); + foreach (var item in ModifierExtension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + writer.WritePropertyName("resourceType"u8); + writer.WriteStringValue(ResourceType); + if (Optional.IsDefined(Id)) + { + writer.WritePropertyName("id"u8); + writer.WriteStringValue(Id); + } + if (Optional.IsDefined(Meta)) + { + writer.WritePropertyName("meta"u8); + writer.WriteObjectValue(Meta, options); + } + if (Optional.IsDefined(ImplicitRules)) + { + writer.WritePropertyName("implicitRules"u8); + writer.WriteStringValue(ImplicitRules); + } + if (Optional.IsDefined(Language)) + { + writer.WritePropertyName("language"u8); + writer.WriteStringValue(Language); + } foreach (var item in AdditionalProperties) { writer.WritePropertyName(item.Key); @@ -47,6 +95,7 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri } #endif } + writer.WriteEndObject(); } FhirR4DomainResource IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.Serialization.cs index a45e400c8711..4e0bd79d48f8 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownProcedureRecommendation.Serialization.cs @@ -18,15 +18,6 @@ internal partial class UnknownProcedureRecommendation : IUtf8JsonSerializable, I void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,35 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(ProcedureRecommendation)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } ProcedureRecommendation IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.Serialization.cs b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.Serialization.cs index 6562ef66d87c..f04fbdbd18a6 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.Serialization.cs +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/src/Generated/UnknownRadiologyInsightsInference.Serialization.cs @@ -18,15 +18,6 @@ internal partial class UnknownRadiologyInsightsInference : IUtf8JsonSerializable void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions); void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options) - { - writer.WriteStartObject(); - JsonModelWriteCore(writer, options); - writer.WriteEndObject(); - } - - /// The JSON writer. - /// The client options for reading and writing models. - protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWriterOptions options) { var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format; if (format != "J") @@ -34,7 +25,35 @@ protected override void JsonModelWriteCore(Utf8JsonWriter writer, ModelReaderWri throw new FormatException($"The model {nameof(RadiologyInsightsInference)} does not support writing '{format}' format."); } - base.JsonModelWriteCore(writer, options); + writer.WriteStartObject(); + writer.WritePropertyName("kind"u8); + writer.WriteStringValue(Kind.ToString()); + if (Optional.IsCollectionDefined(Extension)) + { + writer.WritePropertyName("extension"u8); + writer.WriteStartArray(); + foreach (var item in Extension) + { + writer.WriteObjectValue(item, options); + } + writer.WriteEndArray(); + } + if (options.Format != "W" && _serializedAdditionalRawData != null) + { + foreach (var item in _serializedAdditionalRawData) + { + writer.WritePropertyName(item.Key); +#if NET6_0_OR_GREATER + writer.WriteRawValue(item.Value); +#else + using (JsonDocument document = JsonDocument.Parse(item.Value)) + { + JsonSerializer.Serialize(writer, document.RootElement); + } +#endif + } + } + writer.WriteEndObject(); } RadiologyInsightsInference IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options) diff --git a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml index 562a61e93e79..c5efe3093aa0 100644 --- a/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml +++ b/sdk/healthinsights/Azure.Health.Insights.RadiologyInsights/tsp-location.yaml @@ -1,7 +1,6 @@ directory: specification/ai/HealthInsights/HealthInsights.RadiologyInsights -additionalDirectories: - - specification/ai/HealthInsights/HealthInsights.OpenAPI - - specification/ai/HealthInsights/HealthInsights.Common -commit: 24f29c2f248b132216ce0529a1e76a1a8c06b7f4 +commit: 8261d8a6b88b202026ece5cef460cb7696b16b3a repo: Azure/azure-rest-api-specs -cleanup: false +additionalDirectories: +- specification/ai/HealthInsights/HealthInsights.Common +- specification/ai/HealthInsights/HealthInsights.OpenAPI