diff --git a/sdk/apicenter/azure.ApiCenter/tsp-location.yaml b/sdk/apicenter/azure.ApiCenter/tsp-location.yaml
new file mode 100644
index 000000000000..a303d224058b
--- /dev/null
+++ b/sdk/apicenter/azure.ApiCenter/tsp-location.yaml
@@ -0,0 +1,4 @@
+directory: specification/apicenter/ApiCenter.DataApi
+commit: a6d181e4aee5ada3e9b76109cff3a7df4c97bf78
+repo: test-repo-billy/azure-rest-api-specs
+additionalDirectories:
diff --git a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/autorest.md b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/autorest.md
index 6b7c086d633b..23105ef9866f 100644
--- a/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/autorest.md
+++ b/sdk/appcomplianceautomation/Azure.ResourceManager.AppComplianceAutomation/src/autorest.md
@@ -8,7 +8,7 @@ azure-arm: true
csharp: true
library-name: AppComplianceAutomation
namespace: Azure.ResourceManager.AppComplianceAutomation
-require: https://github.com/Azure/azure-rest-api-specs/blob/f28f14c35918513bd3c3cf9f30d31ee192602525/specification/appcomplianceautomation/resource-manager/readme.md
+require: /mnt/vss/_work/1/s/azure-rest-api-specs/specification/appcomplianceautomation/resource-manager/readme.md
#tag: package-2024-06
output-folder: $(this-folder)/Generated
clear-output-folder: true
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..93d22b70cdba
--- /dev/null
+++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/tsp-location.yaml
@@ -0,0 +1,4 @@
+directory: specification/appconfiguration/AppConfiguration
+commit: a6d181e4aee5ada3e9b76109cff3a7df4c97bf78
+repo: test-repo-billy/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..1c8c4e05aac5
--- /dev/null
+++ b/sdk/appconfiguration/Azure.Data.AppConfiguration/tspCodeModel.json
@@ -0,0 +1,7370 @@
+{
+ "$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",
+ "Name": "application/vnd.microsoft.appconfig.keyset+json",
+ "Value": "application/vnd.microsoft.appconfig.keyset+json",
+ "Decorators": []
+ },
+ {
+ "$id": "5",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "6",
+ "Kind": "enum",
+ "Name": "KeyValueFields",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.KeyValueFields",
+ "ValueType": {
+ "$id": "7",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "8",
+ "Name": "key",
+ "Value": "key",
+ "Description": "Key field.",
+ "Decorators": []
+ },
+ {
+ "$id": "9",
+ "Name": "label",
+ "Value": "label",
+ "Description": "Label field.",
+ "Decorators": []
+ },
+ {
+ "$id": "10",
+ "Name": "content_type",
+ "Value": "content_type",
+ "Description": "Content type field.",
+ "Decorators": []
+ },
+ {
+ "$id": "11",
+ "Name": "value",
+ "Value": "value",
+ "Description": "Value field.",
+ "Decorators": []
+ },
+ {
+ "$id": "12",
+ "Name": "last_modified",
+ "Value": "last_modified",
+ "Description": "Last modified field.",
+ "Decorators": []
+ },
+ {
+ "$id": "13",
+ "Name": "tags",
+ "Value": "tags",
+ "Description": "Tags field.",
+ "Decorators": []
+ },
+ {
+ "$id": "14",
+ "Name": "locked",
+ "Value": "locked",
+ "Description": "Locked field.",
+ "Decorators": []
+ },
+ {
+ "$id": "15",
+ "Name": "etag",
+ "Value": "etag",
+ "Description": "Etag field.",
+ "Decorators": []
+ }
+ ],
+ "Description": "Key-value fields.",
+ "IsExtensible": true,
+ "Usage": "Input",
+ "Decorators": []
+ },
+ {
+ "$id": "16",
+ "Kind": "enum",
+ "Name": "GetKeyValuesResponseContentType",
+ "CrossLanguageDefinitionId": "getKeyValues.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "17",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "18",
+ "Name": "application/vnd.microsoft.appconfig.kvset+json",
+ "Value": "application/vnd.microsoft.appconfig.kvset+json",
+ "Decorators": []
+ },
+ {
+ "$id": "19",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "20",
+ "Kind": "enum",
+ "Name": "GetKeyValueResponseContentType",
+ "CrossLanguageDefinitionId": "getKeyValue.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "21",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "22",
+ "Name": "application/vnd.microsoft.appconfig.kv+json",
+ "Value": "application/vnd.microsoft.appconfig.kv+json",
+ "Decorators": []
+ },
+ {
+ "$id": "23",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "24",
+ "Kind": "enum",
+ "Name": "PutKeyValueRequestContentType",
+ "CrossLanguageDefinitionId": "putKeyValue.RequestContentType.anonymous",
+ "ValueType": {
+ "$id": "25",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "26",
+ "Name": "application/vnd.microsoft.appconfig.kv+json",
+ "Value": "application/vnd.microsoft.appconfig.kv+json",
+ "Decorators": []
+ },
+ {
+ "$id": "27",
+ "Name": "application/vnd.microsoft.appconfig.kvset+json",
+ "Value": "application/vnd.microsoft.appconfig.kvset+json",
+ "Decorators": []
+ },
+ {
+ "$id": "28",
+ "Name": "application/json",
+ "Value": "application/json",
+ "Decorators": []
+ },
+ {
+ "$id": "29",
+ "Name": "text/json",
+ "Value": "text/json",
+ "Decorators": []
+ },
+ {
+ "$id": "30",
+ "Name": "application/*+json",
+ "Value": "application/*+json",
+ "Decorators": []
+ },
+ {
+ "$id": "31",
+ "Name": "application/json-patch+json",
+ "Value": "application/json-patch+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Input",
+ "Decorators": []
+ },
+ {
+ "$id": "32",
+ "Kind": "enum",
+ "Name": "PutKeyValueResponseContentType",
+ "CrossLanguageDefinitionId": "putKeyValue.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "33",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "34",
+ "Name": "application/vnd.microsoft.appconfig.kv+json",
+ "Value": "application/vnd.microsoft.appconfig.kv+json",
+ "Decorators": []
+ },
+ {
+ "$id": "35",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "36",
+ "Kind": "enum",
+ "Name": "DeleteKeyValueResponseContentType",
+ "CrossLanguageDefinitionId": "deleteKeyValue.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "37",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "38",
+ "Name": "application/vnd.microsoft.appconfig.kv+json",
+ "Value": "application/vnd.microsoft.appconfig.kv+json",
+ "Decorators": []
+ },
+ {
+ "$id": "39",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "40",
+ "Kind": "enum",
+ "Name": "SnapshotFields",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.SnapshotFields",
+ "ValueType": {
+ "$id": "41",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "42",
+ "Name": "name",
+ "Value": "name",
+ "Description": "Name field.",
+ "Decorators": []
+ },
+ {
+ "$id": "43",
+ "Name": "status",
+ "Value": "status",
+ "Description": "Status field.",
+ "Decorators": []
+ },
+ {
+ "$id": "44",
+ "Name": "filters",
+ "Value": "filters",
+ "Description": "Filters field.",
+ "Decorators": []
+ },
+ {
+ "$id": "45",
+ "Name": "composition_type",
+ "Value": "composition_type",
+ "Description": "Composition type field.",
+ "Decorators": []
+ },
+ {
+ "$id": "46",
+ "Name": "created",
+ "Value": "created",
+ "Description": "Created field.",
+ "Decorators": []
+ },
+ {
+ "$id": "47",
+ "Name": "expires",
+ "Value": "expires",
+ "Description": "Expires field.",
+ "Decorators": []
+ },
+ {
+ "$id": "48",
+ "Name": "retention_period",
+ "Value": "retention_period",
+ "Description": "Retention period field.",
+ "Decorators": []
+ },
+ {
+ "$id": "49",
+ "Name": "size",
+ "Value": "size",
+ "Description": "Size field.",
+ "Decorators": []
+ },
+ {
+ "$id": "50",
+ "Name": "items_count",
+ "Value": "items_count",
+ "Description": "Items count field.",
+ "Decorators": []
+ },
+ {
+ "$id": "51",
+ "Name": "tags",
+ "Value": "tags",
+ "Description": "Tags field.",
+ "Decorators": []
+ },
+ {
+ "$id": "52",
+ "Name": "etag",
+ "Value": "etag",
+ "Description": "Etag field.",
+ "Decorators": []
+ }
+ ],
+ "Description": "Snapshot fields.",
+ "IsExtensible": true,
+ "Usage": "Input",
+ "Decorators": []
+ },
+ {
+ "$id": "53",
+ "Kind": "enum",
+ "Name": "SnapshotStatus",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.SnapshotStatus",
+ "ValueType": {
+ "$id": "54",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "55",
+ "Name": "provisioning",
+ "Value": "provisioning",
+ "Description": "Provisioning",
+ "Decorators": []
+ },
+ {
+ "$id": "56",
+ "Name": "ready",
+ "Value": "ready",
+ "Description": "Ready",
+ "Decorators": []
+ },
+ {
+ "$id": "57",
+ "Name": "archived",
+ "Value": "archived",
+ "Description": "Archived",
+ "Decorators": []
+ },
+ {
+ "$id": "58",
+ "Name": "failed",
+ "Value": "failed",
+ "Description": "Failed",
+ "Decorators": []
+ }
+ ],
+ "Description": "Snapshot status.",
+ "IsExtensible": true,
+ "Usage": "Input,Output,JsonMergePatch,Json",
+ "Decorators": []
+ },
+ {
+ "$id": "59",
+ "Kind": "enum",
+ "Name": "CompositionType",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.CompositionType",
+ "ValueType": {
+ "$id": "60",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "61",
+ "Name": "key",
+ "Value": "key",
+ "Description": "The 'key' composition type.",
+ "Decorators": []
+ },
+ {
+ "$id": "62",
+ "Name": "key_label",
+ "Value": "key_label",
+ "Description": "The 'key_label' composition type.",
+ "Decorators": []
+ }
+ ],
+ "Description": "Composition types.",
+ "IsExtensible": true,
+ "Usage": "Input,Output,Json",
+ "Decorators": []
+ },
+ {
+ "$id": "63",
+ "Kind": "enum",
+ "Name": "GetSnapshotsResponseContentType",
+ "CrossLanguageDefinitionId": "getSnapshots.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "64",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "65",
+ "Name": "application/vnd.microsoft.appconfig.snapshotset+json",
+ "Value": "application/vnd.microsoft.appconfig.snapshotset+json",
+ "Decorators": []
+ },
+ {
+ "$id": "66",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "67",
+ "Kind": "enum",
+ "Name": "GetSnapshotResponseContentType",
+ "CrossLanguageDefinitionId": "getSnapshot.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "68",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "69",
+ "Name": "application/vnd.microsoft.appconfig.snapshot+json",
+ "Value": "application/vnd.microsoft.appconfig.snapshot+json",
+ "Decorators": []
+ },
+ {
+ "$id": "70",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "71",
+ "Kind": "enum",
+ "Name": "OperationState",
+ "CrossLanguageDefinitionId": "Azure.Core.Foundations.OperationState",
+ "ValueType": {
+ "$id": "72",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "73",
+ "Name": "NotStarted",
+ "Value": "NotStarted",
+ "Description": "The operation has not started.",
+ "Decorators": []
+ },
+ {
+ "$id": "74",
+ "Name": "Running",
+ "Value": "Running",
+ "Description": "The operation is in progress.",
+ "Decorators": []
+ },
+ {
+ "$id": "75",
+ "Name": "Succeeded",
+ "Value": "Succeeded",
+ "Description": "The operation has completed successfully.",
+ "Decorators": []
+ },
+ {
+ "$id": "76",
+ "Name": "Failed",
+ "Value": "Failed",
+ "Description": "The operation has failed.",
+ "Decorators": []
+ },
+ {
+ "$id": "77",
+ "Name": "Canceled",
+ "Value": "Canceled",
+ "Description": "The operation has been canceled by the user.",
+ "Decorators": []
+ }
+ ],
+ "Description": "Enum describing allowed operation states.",
+ "IsExtensible": true,
+ "Usage": "None",
+ "Decorators": []
+ },
+ {
+ "$id": "78",
+ "Kind": "enum",
+ "Name": "CreateSnapshotRequestContentType",
+ "CrossLanguageDefinitionId": "createSnapshot.RequestContentType.anonymous",
+ "ValueType": {
+ "$id": "79",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "80",
+ "Name": "application/vnd.microsoft.appconfig.snapshot+json",
+ "Value": "application/vnd.microsoft.appconfig.snapshot+json",
+ "Decorators": []
+ },
+ {
+ "$id": "81",
+ "Name": "application/json",
+ "Value": "application/json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Input",
+ "Decorators": []
+ },
+ {
+ "$id": "82",
+ "Kind": "enum",
+ "Name": "CreateSnapshotResponseContentType",
+ "CrossLanguageDefinitionId": "createSnapshot.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "83",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "84",
+ "Name": "application/vnd.microsoft.appconfig.snapshot+json",
+ "Value": "application/vnd.microsoft.appconfig.snapshot+json",
+ "Decorators": []
+ },
+ {
+ "$id": "85",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "86",
+ "Kind": "enum",
+ "Name": "UpdateSnapshotRequestContentType",
+ "CrossLanguageDefinitionId": "updateSnapshot.RequestContentType.anonymous",
+ "ValueType": {
+ "$id": "87",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "88",
+ "Name": "application/merge-patch+json",
+ "Value": "application/merge-patch+json",
+ "Decorators": []
+ },
+ {
+ "$id": "89",
+ "Name": "application/json",
+ "Value": "application/json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Input",
+ "Decorators": []
+ },
+ {
+ "$id": "90",
+ "Kind": "enum",
+ "Name": "UpdateSnapshotResponseContentType",
+ "CrossLanguageDefinitionId": "updateSnapshot.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "91",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "92",
+ "Name": "application/vnd.microsoft.appconfig.snapshot+json",
+ "Value": "application/vnd.microsoft.appconfig.snapshot+json",
+ "Decorators": []
+ },
+ {
+ "$id": "93",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "94",
+ "Kind": "enum",
+ "Name": "LabelFields",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.LabelFields",
+ "ValueType": {
+ "$id": "95",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "96",
+ "Name": "name",
+ "Value": "name",
+ "Description": "Name field.",
+ "Decorators": []
+ }
+ ],
+ "Description": "Label fields.",
+ "IsExtensible": true,
+ "Usage": "Input",
+ "Decorators": []
+ },
+ {
+ "$id": "97",
+ "Kind": "enum",
+ "Name": "GetLabelsResponseContentType",
+ "CrossLanguageDefinitionId": "getLabels.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "98",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "99",
+ "Name": "application/vnd.microsoft.appconfig.labelset+json",
+ "Value": "application/vnd.microsoft.appconfig.labelset+json",
+ "Decorators": []
+ },
+ {
+ "$id": "100",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "101",
+ "Kind": "enum",
+ "Name": "PutLockResponseContentType",
+ "CrossLanguageDefinitionId": "putLock.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "102",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "103",
+ "Name": "application/vnd.microsoft.appconfig.kv+json",
+ "Value": "application/vnd.microsoft.appconfig.kv+json",
+ "Decorators": []
+ },
+ {
+ "$id": "104",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "105",
+ "Kind": "enum",
+ "Name": "DeleteLockResponseContentType",
+ "CrossLanguageDefinitionId": "deleteLock.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "106",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "107",
+ "Name": "application/vnd.microsoft.appconfig.kv+json",
+ "Value": "application/vnd.microsoft.appconfig.kv+json",
+ "Decorators": []
+ },
+ {
+ "$id": "108",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "109",
+ "Kind": "enum",
+ "Name": "GetRevisionsResponseContentType",
+ "CrossLanguageDefinitionId": "getRevisions.ResponseContentType.anonymous",
+ "ValueType": {
+ "$id": "110",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "111",
+ "Name": "application/vnd.microsoft.appconfig.kvset+json",
+ "Value": "application/vnd.microsoft.appconfig.kvset+json",
+ "Decorators": []
+ },
+ {
+ "$id": "112",
+ "Name": "application/problem+json",
+ "Value": "application/problem+json",
+ "Decorators": []
+ }
+ ],
+ "IsExtensible": false,
+ "Usage": "Output",
+ "Decorators": []
+ },
+ {
+ "$id": "113",
+ "Kind": "enum",
+ "Name": "Versions",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.Versions",
+ "ValueType": {
+ "$id": "114",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Values": [
+ {
+ "$id": "115",
+ "Name": "v2023_11_01",
+ "Value": "2023-11-01",
+ "Description": "The 2023-11-01 API version",
+ "Decorators": []
+ }
+ ],
+ "Description": "Service API versions",
+ "IsExtensible": false,
+ "Usage": "ApiVersionEnum",
+ "Decorators": []
+ }
+ ],
+ "Models": [
+ {
+ "$id": "116",
+ "Kind": "model",
+ "Name": "KeyListResult",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.KeyListResult",
+ "Usage": "Output,Json",
+ "Description": "The result of a list request.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "117",
+ "Name": "items",
+ "SerializedName": "items",
+ "Description": "The collection value.",
+ "Type": {
+ "$id": "118",
+ "Kind": "array",
+ "Name": "ArrayKey",
+ "ValueType": {
+ "$id": "119",
+ "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": "120",
+ "Name": "name",
+ "SerializedName": "name",
+ "Description": "The name of the key.",
+ "Type": {
+ "$id": "121",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": true,
+ "IsReadOnly": true,
+ "Decorators": []
+ }
+ ]
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "122",
+ "Name": "@nextLink",
+ "SerializedName": "@nextLink",
+ "Description": "The URI that can be used to request the next set of paged results.",
+ "Type": {
+ "$id": "123",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ {
+ "$ref": "119"
+ },
+ {
+ "$id": "124",
+ "Kind": "model",
+ "Name": "Error",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.Error",
+ "Usage": "Output,Error,Json",
+ "Description": "Azure App Configuration error object.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "125",
+ "Name": "type",
+ "SerializedName": "type",
+ "Description": "The type of the error.",
+ "Type": {
+ "$id": "126",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "127",
+ "Name": "title",
+ "SerializedName": "title",
+ "Description": "A brief summary of the error.",
+ "Type": {
+ "$id": "128",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "129",
+ "Name": "name",
+ "SerializedName": "name",
+ "Description": "The name of the parameter that resulted in the error.",
+ "Type": {
+ "$id": "130",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "131",
+ "Name": "detail",
+ "SerializedName": "detail",
+ "Description": "A detailed description of the error.",
+ "Type": {
+ "$id": "132",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "133",
+ "Name": "status",
+ "SerializedName": "status",
+ "Description": "The HTTP status code that the error maps to.",
+ "Type": {
+ "$id": "134",
+ "Kind": "int32",
+ "Name": "int32",
+ "CrossLanguageDefinitionId": "TypeSpec.int32",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ {
+ "$id": "135",
+ "Kind": "model",
+ "Name": "KeyValueListResult",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.KeyValueListResult",
+ "Usage": "Output,Json",
+ "Description": "The result of a list request.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "136",
+ "Name": "items",
+ "SerializedName": "items",
+ "Description": "The collection value.",
+ "Type": {
+ "$id": "137",
+ "Kind": "array",
+ "Name": "ArrayKeyValue",
+ "ValueType": {
+ "$id": "138",
+ "Kind": "model",
+ "Name": "KeyValue",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.KeyValue",
+ "Usage": "Input,Output,Json",
+ "Description": "A key-value pair representing application settings.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "139",
+ "Name": "key",
+ "SerializedName": "key",
+ "Description": "The key of the key-value.",
+ "Type": {
+ "$id": "140",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": true,
+ "IsReadOnly": true,
+ "Decorators": []
+ },
+ {
+ "$id": "141",
+ "Name": "label",
+ "SerializedName": "label",
+ "Description": "The label the key-value belongs to.",
+ "Type": {
+ "$id": "142",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "143",
+ "Name": "contentType",
+ "SerializedName": "content_type",
+ "Description": "The content type of the value stored within the key-value.",
+ "Type": {
+ "$id": "144",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "145",
+ "Name": "value",
+ "SerializedName": "value",
+ "Description": "The value of the key-value.",
+ "Type": {
+ "$id": "146",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "147",
+ "Name": "lastModified",
+ "SerializedName": "last_modified",
+ "Description": "A date representing the last time the key-value was modified.",
+ "Type": {
+ "$id": "148",
+ "Kind": "offsetDateTime",
+ "Name": "offsetDateTime",
+ "Encode": "rfc3339",
+ "WireType": {
+ "$id": "149",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.offsetDateTime",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "150",
+ "Name": "tags",
+ "SerializedName": "tags",
+ "Description": "The tags of the key-value",
+ "Type": {
+ "$id": "151",
+ "Kind": "dict",
+ "KeyType": {
+ "$id": "152",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "ValueType": {
+ "$id": "153",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "154",
+ "Name": "locked",
+ "SerializedName": "locked",
+ "Description": "Indicates whether the key-value is locked.",
+ "Type": {
+ "$id": "155",
+ "Kind": "boolean",
+ "Name": "boolean",
+ "CrossLanguageDefinitionId": "TypeSpec.boolean",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "156",
+ "Name": "etag",
+ "SerializedName": "etag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "157",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "158",
+ "Name": "etag",
+ "SerializedName": "etag",
+ "Description": "An identifier representing the returned state of the resource.",
+ "Type": {
+ "$id": "159",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "160",
+ "Name": "@nextLink",
+ "SerializedName": "@nextLink",
+ "Description": "The URI that can be used to request the next set of paged results.",
+ "Type": {
+ "$id": "161",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ {
+ "$ref": "138"
+ },
+ {
+ "$id": "162",
+ "Kind": "model",
+ "Name": "SnapshotListResult",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.SnapshotListResult",
+ "Usage": "Output,Json",
+ "Description": "The result of a snapshot list request.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "163",
+ "Name": "items",
+ "SerializedName": "items",
+ "Description": "The collection value.",
+ "Type": {
+ "$id": "164",
+ "Kind": "array",
+ "Name": "ArraySnapshot",
+ "ValueType": {
+ "$id": "165",
+ "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": "166",
+ "Name": "name",
+ "SerializedName": "name",
+ "Description": "The name of the snapshot.",
+ "Type": {
+ "$id": "167",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": true,
+ "IsReadOnly": true,
+ "Decorators": []
+ },
+ {
+ "$id": "168",
+ "Name": "status",
+ "SerializedName": "status",
+ "Description": "The current status of the snapshot.",
+ "Type": {
+ "$ref": "53"
+ },
+ "IsRequired": false,
+ "IsReadOnly": true,
+ "Decorators": []
+ },
+ {
+ "$id": "169",
+ "Name": "filters",
+ "SerializedName": "filters",
+ "Description": "A list of filters used to filter the key-values included in the snapshot.",
+ "Type": {
+ "$id": "170",
+ "Kind": "array",
+ "Name": "ArrayKeyValueFilter",
+ "ValueType": {
+ "$id": "171",
+ "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": "172",
+ "Name": "key",
+ "SerializedName": "key",
+ "Description": "Filters key-values by their key field.",
+ "Type": {
+ "$id": "173",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": true,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "174",
+ "Name": "label",
+ "SerializedName": "label",
+ "Description": "Filters key-values by their label field.",
+ "Type": {
+ "$id": "175",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "176",
+ "Name": "tags",
+ "SerializedName": "tags",
+ "Description": "Filters key-values by their tags field.",
+ "Type": {
+ "$id": "177",
+ "Kind": "array",
+ "Name": "Array",
+ "ValueType": {
+ "$id": "178",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "IsRequired": true,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "179",
+ "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": "59"
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "180",
+ "Name": "created",
+ "SerializedName": "created",
+ "Description": "The time that the snapshot was created.",
+ "Type": {
+ "$id": "181",
+ "Kind": "offsetDateTime",
+ "Name": "offsetDateTime",
+ "Encode": "rfc3339",
+ "WireType": {
+ "$id": "182",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.offsetDateTime",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": true,
+ "Decorators": []
+ },
+ {
+ "$id": "183",
+ "Name": "expires",
+ "SerializedName": "expires",
+ "Description": "The time that the snapshot will expire.",
+ "Type": {
+ "$id": "184",
+ "Kind": "offsetDateTime",
+ "Name": "offsetDateTime",
+ "Encode": "rfc3339",
+ "WireType": {
+ "$id": "185",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.offsetDateTime",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": true,
+ "Decorators": []
+ },
+ {
+ "$id": "186",
+ "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": "187",
+ "Kind": "int64",
+ "Name": "int64",
+ "CrossLanguageDefinitionId": "TypeSpec.int64",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "188",
+ "Name": "size",
+ "SerializedName": "size",
+ "Description": "The size in bytes of the snapshot.",
+ "Type": {
+ "$id": "189",
+ "Kind": "int64",
+ "Name": "int64",
+ "CrossLanguageDefinitionId": "TypeSpec.int64",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": true,
+ "Decorators": []
+ },
+ {
+ "$id": "190",
+ "Name": "itemsCount",
+ "SerializedName": "items_count",
+ "Description": "The amount of key-values in the snapshot.",
+ "Type": {
+ "$id": "191",
+ "Kind": "int64",
+ "Name": "int64",
+ "CrossLanguageDefinitionId": "TypeSpec.int64",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": true,
+ "Decorators": []
+ },
+ {
+ "$id": "192",
+ "Name": "tags",
+ "SerializedName": "tags",
+ "Description": "The tags of the snapshot.",
+ "Type": {
+ "$id": "193",
+ "Kind": "dict",
+ "KeyType": {
+ "$id": "194",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "ValueType": {
+ "$id": "195",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "196",
+ "Name": "etag",
+ "SerializedName": "etag",
+ "Description": "A value representing the current state of the snapshot.",
+ "Type": {
+ "$id": "197",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": true,
+ "Decorators": []
+ }
+ ]
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "198",
+ "Name": "@nextLink",
+ "SerializedName": "@nextLink",
+ "Description": "The URI that can be used to request the next set of paged results.",
+ "Type": {
+ "$id": "199",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ {
+ "$ref": "165"
+ },
+ {
+ "$ref": "171"
+ },
+ {
+ "$id": "200",
+ "Kind": "model",
+ "Name": "OperationDetails",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.OperationDetails",
+ "Usage": "Output,Json",
+ "Description": "Details of a long running operation.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "201",
+ "Name": "id",
+ "SerializedName": "id",
+ "Description": "The unique id of the operation.",
+ "Type": {
+ "$id": "202",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": true,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "203",
+ "Name": "status",
+ "SerializedName": "status",
+ "Description": "The current status of the operation",
+ "Type": {
+ "$ref": "71"
+ },
+ "IsRequired": true,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "204",
+ "Name": "error",
+ "SerializedName": "error",
+ "Description": "An error, available when the status is `Failed`, describing why the operation\nfailed.",
+ "Type": {
+ "$ref": "124"
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ {
+ "$id": "205",
+ "Kind": "model",
+ "Name": "SnapshotUpdateParameters",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.SnapshotUpdateParameters",
+ "Usage": "Input,JsonMergePatch,Json",
+ "Description": "Parameters used to update a snapshot.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "206",
+ "Name": "status",
+ "SerializedName": "status",
+ "Description": "The desired status of the snapshot.",
+ "Type": {
+ "$ref": "53"
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ {
+ "$id": "207",
+ "Kind": "model",
+ "Name": "LabelListResult",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.LabelListResult",
+ "Usage": "Output,Json",
+ "Description": "The result of a list request.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "208",
+ "Name": "items",
+ "SerializedName": "items",
+ "Description": "The collection value.",
+ "Type": {
+ "$id": "209",
+ "Kind": "array",
+ "Name": "ArrayLabel",
+ "ValueType": {
+ "$id": "210",
+ "Kind": "model",
+ "Name": "Label",
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.Label",
+ "Usage": "Output,Json",
+ "Description": "Labels are used to group key-values.",
+ "Decorators": [],
+ "Properties": [
+ {
+ "$id": "211",
+ "Name": "name",
+ "SerializedName": "name",
+ "Description": "The name of the label.",
+ "Type": {
+ "$id": "212",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ },
+ {
+ "$id": "213",
+ "Name": "@nextLink",
+ "SerializedName": "@nextLink",
+ "Description": "The URI that can be used to request the next set of paged results.",
+ "Type": {
+ "$id": "214",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "IsRequired": false,
+ "IsReadOnly": false,
+ "Decorators": []
+ }
+ ]
+ },
+ {
+ "$ref": "210"
+ }
+ ],
+ "Clients": [
+ {
+ "$id": "215",
+ "Name": "AzureAppConfigurationClient",
+ "Description": "Azure App Configuration REST API",
+ "Operations": [
+ {
+ "$id": "216",
+ "Name": "getKeys",
+ "ResourceName": "Key",
+ "Summary": "Gets a list of keys.",
+ "Description": "Gets a list of keys.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$id": "217",
+ "Name": "endpoint",
+ "NameInRequest": "endpoint",
+ "Type": {
+ "$id": "218",
+ "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": "219",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "220",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "221",
+ "Type": {
+ "$id": "222",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "223",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "A filter for the name of the returned keys.",
+ "Type": {
+ "$id": "224",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "225",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "226",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "227",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "228",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "229",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "230",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "231",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "232",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "233",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "116"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "234",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "235",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "236",
+ "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": "237",
+ "ItemName": "items",
+ "NextLinkName": "@nextLink"
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.getKeys",
+ "Decorators": []
+ },
+ {
+ "$id": "238",
+ "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": "217"
+ },
+ {
+ "$id": "239",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "240",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "241",
+ "Type": {
+ "$id": "242",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "243",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "A filter for the name of the returned keys.",
+ "Type": {
+ "$id": "244",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "245",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "246",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "247",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "248",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "249",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "250",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "251",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "252",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "253",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "254",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "255",
+ "Kind": "constant",
+ "ValueType": {
+ "$id": "256",
+ "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": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "257",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "258",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "259",
+ "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": []
+ },
+ {
+ "$id": "260",
+ "Name": "getKeyValues",
+ "ResourceName": "KeyValue",
+ "Summary": "Gets a list of key-values.",
+ "Description": "Gets a list of key-values.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "261",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "262",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "263",
+ "Type": {
+ "$id": "264",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "265",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering",
+ "Type": {
+ "$id": "266",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "267",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering",
+ "Type": {
+ "$id": "268",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "269",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "270",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "271",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "272",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "273",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "274",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "275",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "276",
+ "Kind": "array",
+ "Name": "ArrayKeyValueFields",
+ "ValueType": {
+ "$ref": "6"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "277",
+ "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": "278",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "279",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "280",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "281",
+ "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": "282",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "283",
+ "Name": "tags",
+ "NameInRequest": "tags",
+ "Description": "A filter used to query by tags. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering",
+ "Type": {
+ "$id": "284",
+ "Kind": "array",
+ "Name": "Array",
+ "ValueType": {
+ "$id": "285",
+ "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": []
+ },
+ {
+ "$id": "286",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "287",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "288",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "135"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "289",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "290",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "291",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "292",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "293",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "16"
+ }
+ }
+ ],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/vnd.microsoft.appconfig.kvset+json",
+ "application/problem+json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "RequestBodyMediaType": "None",
+ "Uri": "{endpoint}",
+ "Path": "/kv",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "294",
+ "ItemName": "items",
+ "NextLinkName": "@nextLink"
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.getKeyValues",
+ "Decorators": []
+ },
+ {
+ "$id": "295",
+ "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": "217"
+ },
+ {
+ "$id": "296",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "297",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "298",
+ "Type": {
+ "$id": "299",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "300",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering",
+ "Type": {
+ "$id": "301",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "302",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering",
+ "Type": {
+ "$id": "303",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "304",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "305",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "306",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "307",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "308",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "309",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "310",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "311",
+ "Kind": "array",
+ "Name": "ArrayKeyValueFields",
+ "ValueType": {
+ "$ref": "6"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "312",
+ "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": "313",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "314",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "315",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "316",
+ "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": "317",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "318",
+ "Name": "tags",
+ "NameInRequest": "tags",
+ "Description": "A filter used to query by tags. Syntax reference:\nhttps://aka.ms/azconfig/docs/keyvaluefiltering",
+ "Type": {
+ "$id": "319",
+ "Kind": "array",
+ "Name": "Array",
+ "ValueType": {
+ "$id": "320",
+ "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": []
+ },
+ {
+ "$id": "321",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "322",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "323",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "324",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "325",
+ "Kind": "constant",
+ "ValueType": {
+ "$id": "326",
+ "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": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "327",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "328",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "329",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "330",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "331",
+ "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": []
+ },
+ {
+ "$id": "332",
+ "Name": "getKeyValue",
+ "ResourceName": "AzureAppConfiguration",
+ "Summary": "Gets a single key-value.",
+ "Description": "Gets a single key-value.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "333",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "334",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "335",
+ "Type": {
+ "$id": "336",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "337",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "The key of the key-value.",
+ "Type": {
+ "$id": "338",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "339",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "The label of the key-value to retrieve.",
+ "Type": {
+ "$id": "340",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "341",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "342",
+ "Kind": "array",
+ "Name": "ArrayKeyValueFields",
+ "ValueType": {
+ "$ref": "6"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "343",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "344",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "345",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "346",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "347",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "348",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "349",
+ "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": "350",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "351",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "352",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "353",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "354",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "355",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "356",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "138"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "357",
+ "Name": "clientRequestId",
+ "NameInResponse": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "358",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "359",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "360",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "361",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "362",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "363",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "364",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "20"
+ }
+ }
+ ],
+ "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": []
+ },
+ {
+ "$id": "365",
+ "Name": "putKeyValue",
+ "ResourceName": "AzureAppConfiguration",
+ "Summary": "Creates a key-value.",
+ "Description": "Creates a key-value.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "366",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "367",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "368",
+ "Type": {
+ "$id": "369",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "370",
+ "Name": "contentType",
+ "NameInRequest": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "24"
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": true,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "371",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "The key of the key-value to create.",
+ "Type": {
+ "$id": "372",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "373",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "The label of the key-value to create.",
+ "Type": {
+ "$id": "374",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "375",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "376",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "377",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "378",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "379",
+ "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": "380",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "381",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "382",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "383",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "384",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "385",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "386",
+ "Name": "entity",
+ "NameInRequest": "entity",
+ "Description": "The key-value to create.",
+ "Type": {
+ "$ref": "138"
+ },
+ "Location": "Body",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "387",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "138"
+ },
+ "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": "32"
+ }
+ }
+ ],
+ "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": []
+ },
+ {
+ "$id": "393",
+ "Name": "deleteKeyValue",
+ "ResourceName": "AzureAppConfiguration",
+ "Summary": "Deletes a key-value.",
+ "Description": "Deletes a key-value.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "394",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "395",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "396",
+ "Type": {
+ "$id": "397",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "398",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "The key of the key-value to delete.",
+ "Type": {
+ "$id": "399",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "400",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "The label of the key-value to delete.",
+ "Type": {
+ "$id": "401",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "402",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "403",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "404",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "405",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "406",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "407",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "408",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "409",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "410",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "411",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "138"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "412",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "413",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "414",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "415",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "416",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "36"
+ }
+ }
+ ],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/vnd.microsoft.appconfig.kv+json",
+ "application/problem+json"
+ ]
+ },
+ {
+ "$id": "417",
+ "StatusCodes": [
+ 204
+ ],
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "418",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "419",
+ "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": []
+ },
+ {
+ "$id": "420",
+ "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": "217"
+ },
+ {
+ "$id": "421",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "422",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "423",
+ "Type": {
+ "$id": "424",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "425",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "The key of the key-value to retrieve.",
+ "Type": {
+ "$id": "426",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "427",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "The label of the key-value to retrieve.",
+ "Type": {
+ "$id": "428",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "429",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "430",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "431",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "432",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "433",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "434",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "435",
+ "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": "436",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "437",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "438",
+ "Kind": "array",
+ "Name": "ArrayKeyValueFields",
+ "ValueType": {
+ "$ref": "6"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "439",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "440",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "441",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "442",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "443",
+ "Kind": "constant",
+ "ValueType": {
+ "$id": "444",
+ "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": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "445",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "446",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "447",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "448",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "449",
+ "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": []
+ },
+ {
+ "$id": "450",
+ "Name": "getSnapshots",
+ "ResourceName": "Snapshot",
+ "Summary": "Gets a list of key-value snapshots.",
+ "Description": "Gets a list of key-value snapshots.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "451",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "452",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "453",
+ "Type": {
+ "$id": "454",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "455",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "A filter for the name of the returned snapshots.",
+ "Type": {
+ "$id": "456",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "457",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "458",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "459",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "460",
+ "Kind": "array",
+ "Name": "ArraySnapshotFields",
+ "ValueType": {
+ "$ref": "40"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "461",
+ "Name": "status",
+ "NameInRequest": "status",
+ "Description": "Used to filter returned snapshots by their status property.",
+ "Type": {
+ "$id": "462",
+ "Kind": "array",
+ "Name": "ArraySnapshotStatus",
+ "ValueType": {
+ "$ref": "53"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "463",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "464",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "465",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "466",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "467",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "162"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "468",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "469",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "470",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "63"
+ }
+ }
+ ],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/vnd.microsoft.appconfig.snapshotset+json",
+ "application/problem+json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "RequestBodyMediaType": "None",
+ "Uri": "{endpoint}",
+ "Path": "/snapshots",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "471",
+ "ItemName": "items",
+ "NextLinkName": "@nextLink"
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.getSnapshots",
+ "Decorators": []
+ },
+ {
+ "$id": "472",
+ "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": "217"
+ },
+ {
+ "$id": "473",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "474",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "475",
+ "Type": {
+ "$id": "476",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "477",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "478",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "479",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "480",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "481",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "482",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "483",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "484",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "485",
+ "Kind": "constant",
+ "ValueType": {
+ "$id": "486",
+ "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": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "487",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "488",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "489",
+ "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": []
+ },
+ {
+ "$id": "490",
+ "Name": "getSnapshot",
+ "ResourceName": "Snapshot",
+ "Summary": "Gets a single key-value snapshot.",
+ "Description": "Gets a single key-value snapshot.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "491",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "492",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "493",
+ "Type": {
+ "$id": "494",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "495",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "The name of the snapshot.",
+ "Type": {
+ "$id": "496",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "497",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "498",
+ "Kind": "array",
+ "Name": "ArraySnapshotFields",
+ "ValueType": {
+ "$ref": "40"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "499",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "500",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "501",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "502",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "503",
+ "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": "504",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "505",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "506",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "507",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "508",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "509",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "510",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "165"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "511",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "512",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "513",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "514",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "515",
+ "Name": "link",
+ "NameInResponse": "Link",
+ "Description": "Includes links to related resources.",
+ "Type": {
+ "$id": "516",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "517",
+ "Name": "clientRequestId",
+ "NameInResponse": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "518",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "519",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "520",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "67"
+ }
+ }
+ ],
+ "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": []
+ },
+ {
+ "$id": "521",
+ "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": "217"
+ },
+ {
+ "$id": "522",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "523",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "524",
+ "Type": {
+ "$id": "525",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "526",
+ "Name": "snapshot",
+ "NameInRequest": "snapshot",
+ "Description": "Snapshot identifier for the long running operation.",
+ "Type": {
+ "$id": "527",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "528",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "529",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "530",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "531",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "532",
+ "Kind": "constant",
+ "ValueType": {
+ "$id": "533",
+ "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": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "534",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "200"
+ },
+ "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": []
+ },
+ {
+ "$id": "535",
+ "Name": "createSnapshot",
+ "ResourceName": "AzureAppConfiguration",
+ "Summary": "Creates a key-value snapshot.",
+ "Description": "Creates a key-value snapshot.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "536",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "537",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "538",
+ "Type": {
+ "$id": "539",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "540",
+ "Name": "contentType",
+ "NameInRequest": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "78"
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": true,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "541",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "The name of the key-value snapshot to create.",
+ "Type": {
+ "$id": "542",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "543",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "544",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "545",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "546",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "547",
+ "Name": "entity",
+ "NameInRequest": "entity",
+ "Description": "The key-value snapshot to create.",
+ "Type": {
+ "$ref": "165"
+ },
+ "Location": "Body",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "548",
+ "StatusCodes": [
+ 201
+ ],
+ "BodyType": {
+ "$ref": "165"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "549",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "550",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "551",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "552",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "553",
+ "Name": "link",
+ "NameInResponse": "Link",
+ "Description": "Includes links to related resources.",
+ "Type": {
+ "$id": "554",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "555",
+ "Name": "operationLocation",
+ "NameInResponse": "Operation-Location",
+ "Description": "The location for monitoring the operation state.",
+ "Type": {
+ "$id": "556",
+ "Kind": "url",
+ "Name": "ResourceLocation",
+ "CrossLanguageDefinitionId": "TypeSpec.Rest.ResourceLocation",
+ "BaseType": {
+ "$id": "557",
+ "Kind": "url",
+ "Name": "url",
+ "CrossLanguageDefinitionId": "TypeSpec.url",
+ "Decorators": []
+ },
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "558",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "82"
+ }
+ }
+ ],
+ "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": "559",
+ "FinalStateVia": 2,
+ "FinalResponse": {
+ "$id": "560",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "124"
+ },
+ "BodyMediaType": "Json"
+ }
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.createSnapshot",
+ "Decorators": []
+ },
+ {
+ "$id": "561",
+ "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": "217"
+ },
+ {
+ "$id": "562",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "563",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "564",
+ "Type": {
+ "$id": "565",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "566",
+ "Name": "contentType",
+ "NameInRequest": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "86"
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": true,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "567",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "The name of the key-value snapshot to update.",
+ "Type": {
+ "$id": "568",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "569",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "570",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "571",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "572",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "573",
+ "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": "574",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "575",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "576",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "577",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "578",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "579",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "580",
+ "Name": "entity",
+ "NameInRequest": "entity",
+ "Description": "The parameters used to update the snapshot.",
+ "Type": {
+ "$ref": "205"
+ },
+ "Location": "Body",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "581",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "165"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "582",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "583",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "584",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "585",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "586",
+ "Name": "link",
+ "NameInResponse": "Link",
+ "Description": "Includes links to related resources.",
+ "Type": {
+ "$id": "587",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "588",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "90"
+ }
+ }
+ ],
+ "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": []
+ },
+ {
+ "$id": "589",
+ "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": "217"
+ },
+ {
+ "$id": "590",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "591",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "592",
+ "Type": {
+ "$id": "593",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "594",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "The name of the key-value snapshot to check.",
+ "Type": {
+ "$id": "595",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "596",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "597",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "598",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "599",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "600",
+ "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": "601",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "602",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "603",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "604",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "605",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "606",
+ "Kind": "constant",
+ "ValueType": {
+ "$id": "607",
+ "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": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "608",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "609",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "610",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "611",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "612",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "613",
+ "Name": "link",
+ "NameInResponse": "Link",
+ "Description": "Includes links to related resources.",
+ "Type": {
+ "$id": "614",
+ "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": []
+ },
+ {
+ "$id": "615",
+ "Name": "getLabels",
+ "ResourceName": "AzureAppConfiguration",
+ "Summary": "Gets a list of labels.",
+ "Description": "Gets a list of labels.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "616",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "617",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "618",
+ "Type": {
+ "$id": "619",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "620",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "A filter for the name of the returned labels.",
+ "Type": {
+ "$id": "621",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "622",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "623",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "624",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "625",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "626",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "627",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "628",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "629",
+ "Kind": "array",
+ "Name": "ArrayLabelFields",
+ "ValueType": {
+ "$ref": "94"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "630",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "631",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "632",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "633",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "634",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "635",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "207"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "636",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "637",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "638",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "97"
+ }
+ }
+ ],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/vnd.microsoft.appconfig.labelset+json",
+ "application/problem+json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "RequestBodyMediaType": "None",
+ "Uri": "{endpoint}",
+ "Path": "/labels",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "639",
+ "ItemName": "items",
+ "NextLinkName": "@nextLink"
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.getLabels",
+ "Decorators": []
+ },
+ {
+ "$id": "640",
+ "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": "217"
+ },
+ {
+ "$id": "641",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "642",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "643",
+ "Type": {
+ "$id": "644",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "645",
+ "Name": "name",
+ "NameInRequest": "name",
+ "Description": "A filter for the name of the returned labels.",
+ "Type": {
+ "$id": "646",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "647",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "648",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "649",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "650",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "651",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "652",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "653",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "654",
+ "Kind": "array",
+ "Name": "ArrayLabelFields",
+ "ValueType": {
+ "$ref": "94"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "655",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "656",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "657",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "658",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "659",
+ "Kind": "constant",
+ "ValueType": {
+ "$id": "660",
+ "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": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "661",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "662",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "663",
+ "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": []
+ },
+ {
+ "$id": "664",
+ "Name": "putLock",
+ "ResourceName": "AzureAppConfiguration",
+ "Summary": "Locks a key-value.",
+ "Description": "Locks a key-value.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "665",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "666",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "667",
+ "Type": {
+ "$id": "668",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "669",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "The key of the key-value to lock.",
+ "Type": {
+ "$id": "670",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "671",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "The label, if any, of the key-value to lock.",
+ "Type": {
+ "$id": "672",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "673",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "674",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "675",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "676",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "677",
+ "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": "678",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "679",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "680",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "681",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "682",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "683",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "684",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "138"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "685",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "686",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "687",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "688",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "689",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "101"
+ }
+ }
+ ],
+ "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": []
+ },
+ {
+ "$id": "690",
+ "Name": "deleteLock",
+ "ResourceName": "AzureAppConfiguration",
+ "Summary": "Unlocks a key-value.",
+ "Description": "Unlocks a key-value.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "691",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "692",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "693",
+ "Type": {
+ "$id": "694",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "695",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "The key of the key-value to unlock.",
+ "Type": {
+ "$id": "696",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Path",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "697",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "The label, if any, of the key-value to unlock.",
+ "Type": {
+ "$id": "698",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "699",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "700",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "701",
+ "Name": "ifMatch",
+ "NameInRequest": "If-Match",
+ "Description": "Used to perform an operation only if the targeted resource's etag matches the\nvalue provided.",
+ "Type": {
+ "$id": "702",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "703",
+ "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": "704",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "705",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "706",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "707",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "708",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "709",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "710",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "138"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "711",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "712",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "713",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "714",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "715",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "105"
+ }
+ }
+ ],
+ "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": []
+ },
+ {
+ "$id": "716",
+ "Name": "getRevisions",
+ "ResourceName": "AzureAppConfiguration",
+ "Summary": "Gets a list of key-value revisions.",
+ "Description": "Gets a list of key-value revisions.",
+ "Accessibility": "public",
+ "Parameters": [
+ {
+ "$ref": "217"
+ },
+ {
+ "$id": "717",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "718",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "719",
+ "Type": {
+ "$id": "720",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "721",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions",
+ "Type": {
+ "$id": "722",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "723",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions",
+ "Type": {
+ "$id": "724",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "725",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "726",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "727",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "728",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "729",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "730",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "731",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "732",
+ "Kind": "array",
+ "Name": "ArrayKeyValueFields",
+ "ValueType": {
+ "$ref": "6"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "733",
+ "Name": "tags",
+ "NameInRequest": "tags",
+ "Description": "A filter used to query by tags. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions",
+ "Type": {
+ "$id": "734",
+ "Kind": "array",
+ "Name": "Array",
+ "ValueType": {
+ "$id": "735",
+ "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": []
+ },
+ {
+ "$id": "736",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "737",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "738",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "739",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "740",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Method",
+ "Decorators": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "741",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyType": {
+ "$ref": "135"
+ },
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "742",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "743",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "744",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "745",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "746",
+ "Name": "contentType",
+ "NameInResponse": "Content-Type",
+ "Description": "Content-Type header",
+ "Type": {
+ "$ref": "109"
+ }
+ }
+ ],
+ "IsErrorResponse": false,
+ "ContentTypes": [
+ "application/vnd.microsoft.appconfig.kvset+json",
+ "application/problem+json"
+ ]
+ }
+ ],
+ "HttpMethod": "GET",
+ "RequestBodyMediaType": "None",
+ "Uri": "{endpoint}",
+ "Path": "/revisions",
+ "BufferResponse": true,
+ "Paging": {
+ "$id": "747",
+ "ItemName": "items",
+ "NextLinkName": "@nextLink"
+ },
+ "GenerateProtocolMethod": true,
+ "GenerateConvenienceMethod": true,
+ "CrossLanguageDefinitionId": "AzureAppConfiguration.getRevisions",
+ "Decorators": []
+ },
+ {
+ "$id": "748",
+ "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": "217"
+ },
+ {
+ "$id": "749",
+ "Name": "apiVersion",
+ "NameInRequest": "api-version",
+ "Description": "The API version to use for this operation.",
+ "Type": {
+ "$id": "750",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": true,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": true,
+ "Kind": "Client",
+ "DefaultValue": {
+ "$id": "751",
+ "Type": {
+ "$id": "752",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string"
+ },
+ "Value": "2023-11-01"
+ },
+ "Decorators": []
+ },
+ {
+ "$id": "753",
+ "Name": "key",
+ "NameInRequest": "key",
+ "Description": "A filter used to match keys. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions",
+ "Type": {
+ "$id": "754",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "755",
+ "Name": "label",
+ "NameInRequest": "label",
+ "Description": "A filter used to match labels. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions",
+ "Type": {
+ "$id": "756",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "757",
+ "Name": "syncToken",
+ "NameInRequest": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "758",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "759",
+ "Name": "after",
+ "NameInRequest": "After",
+ "Description": "Instructs the server to return elements that appear after the element referred\nto by the specified token.",
+ "Type": {
+ "$id": "760",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "761",
+ "Name": "acceptDatetime",
+ "NameInRequest": "Accept-Datetime",
+ "Description": "Requests the server to respond with the state of the resource at the specified\ntime.",
+ "Type": {
+ "$id": "762",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "763",
+ "Name": "select",
+ "NameInRequest": "$Select",
+ "Description": "Used to select what fields are present in the returned resource(s).",
+ "Type": {
+ "$id": "764",
+ "Kind": "array",
+ "Name": "ArrayKeyValueFields",
+ "ValueType": {
+ "$ref": "6"
+ },
+ "CrossLanguageDefinitionId": "TypeSpec.Array",
+ "Decorators": []
+ },
+ "Location": "Query",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "ArraySerializationDelimiter": ",",
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "765",
+ "Name": "tags",
+ "NameInRequest": "tags",
+ "Description": "A filter used to query by tags. Syntax reference:\nhttps://aka.ms/azconfig/docs/restapirevisions",
+ "Type": {
+ "$id": "766",
+ "Kind": "array",
+ "Name": "Array",
+ "ValueType": {
+ "$id": "767",
+ "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": []
+ },
+ {
+ "$id": "768",
+ "Name": "clientRequestId",
+ "NameInRequest": "x-ms-client-request-id",
+ "Description": "An opaque, globally-unique, client-generated string identifier for the request.",
+ "Type": {
+ "$id": "769",
+ "Kind": "string",
+ "Name": "uuid",
+ "CrossLanguageDefinitionId": "Azure.Core.uuid",
+ "BaseType": {
+ "$id": "770",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ },
+ "Decorators": []
+ },
+ "Location": "Header",
+ "IsApiVersion": false,
+ "IsContentType": false,
+ "IsEndpoint": false,
+ "Explode": false,
+ "IsRequired": false,
+ "Kind": "Method",
+ "Decorators": []
+ },
+ {
+ "$id": "771",
+ "Name": "accept",
+ "NameInRequest": "Accept",
+ "Type": {
+ "$id": "772",
+ "Kind": "constant",
+ "ValueType": {
+ "$id": "773",
+ "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": []
+ }
+ ],
+ "Responses": [
+ {
+ "$id": "774",
+ "StatusCodes": [
+ 200
+ ],
+ "BodyMediaType": "Json",
+ "Headers": [
+ {
+ "$id": "775",
+ "Name": "syncToken",
+ "NameInResponse": "Sync-Token",
+ "Description": "Used to guarantee real-time consistency between requests.",
+ "Type": {
+ "$id": "776",
+ "Kind": "string",
+ "Name": "string",
+ "CrossLanguageDefinitionId": "TypeSpec.string",
+ "Decorators": []
+ }
+ },
+ {
+ "$id": "777",
+ "Name": "etagHeader",
+ "NameInResponse": "ETag",
+ "Description": "A value representing the current state of the resource.",
+ "Type": {
+ "$id": "778",
+ "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": []
+ }
+ ],
+ "Protocol": {
+ "$id": "779"
+ },
+ "Parameters": [
+ {
+ "$ref": "217"
+ }
+ ],
+ "Decorators": []
+ }
+ ],
+ "Auth": {
+ "$id": "780",
+ "ApiKey": {
+ "$id": "781",
+ "Name": "Connection String"
+ },
+ "OAuth2": {
+ "$id": "782",
+ "Scopes": [
+ "https://azconfig.io/.default"
+ ]
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/LiveMetrics.sln b/sdk/applicationinsights.livemetrics/LiveMetrics/LiveMetrics.sln
new file mode 100644
index 000000000000..202d00182aa1
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/LiveMetrics.sln
@@ -0,0 +1,50 @@
+Microsoft Visual Studio Solution File, Format Version 12.00
+# Visual Studio Version 16
+VisualStudioVersion = 16.0.29709.97
+MinimumVisualStudioVersion = 10.0.40219.1
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveMetrics", "src\LiveMetrics.csproj", "{28FF4005-4467-4E36-92E7-DEA27DEB1519}"
+EndProject
+Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LiveMetrics.Tests", "tests\LiveMetrics.Tests.csproj", "{1F1CD1D4-9932-4B73-99D8-C252A67D4B46}"
+EndProject
+Global
+ GlobalSection(SolutionConfigurationPlatforms) = preSolution
+ Debug|Any CPU = Debug|Any CPU
+ Release|Any CPU = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(ProjectConfigurationPlatforms) = postSolution
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {B0C276D1-2930-4887-B29A-D1A33E7009A2}.Release|Any CPU.Build.0 = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {8E9A77AC-792A-4432-8320-ACFD46730401}.Release|Any CPU.Build.0 = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {A4241C1F-A53D-474C-9E4E-075054407E74}.Release|Any CPU.Build.0 = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {FA8BD3F1-8616-47B6-974C-7576CDF4717E}.Release|Any CPU.Build.0 = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {85677AD3-C214-42FA-AE6E-49B956CAC8DC}.Release|Any CPU.Build.0 = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {28FF4005-4467-4E36-92E7-DEA27DEB1519}.Release|Any CPU.Build.0 = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Debug|Any CPU.Build.0 = Debug|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.ActiveCfg = Release|Any CPU
+ {1F1CD1D4-9932-4B73-99D8-C252A67D4B46}.Release|Any CPU.Build.0 = Release|Any CPU
+ EndGlobalSection
+ GlobalSection(SolutionProperties) = preSolution
+ HideSolutionNode = FALSE
+ EndGlobalSection
+ GlobalSection(ExtensibilityGlobals) = postSolution
+ SolutionGuid = {A97F4B90-2591-4689-B1F8-5F21FE6D6CAE}
+ EndGlobalSection
+EndGlobal
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/AggregationType.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/AggregationType.cs
new file mode 100644
index 000000000000..0e23be972e91
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/AggregationType.cs
@@ -0,0 +1,57 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace LiveMetrics
+{
+ /// Aggregation type.
+ public readonly partial struct AggregationType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public AggregationType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string AvgValue = "Avg";
+ private const string SumValue = "Sum";
+ private const string MinValue = "Min";
+ private const string MaxValue = "Max";
+
+ /// Average.
+ public static AggregationType Avg { get; } = new AggregationType(AvgValue);
+ /// Sum.
+ public static AggregationType Sum { get; } = new AggregationType(SumValue);
+ /// Minimum.
+ public static AggregationType Min { get; } = new AggregationType(MinValue);
+ /// Maximum.
+ public static AggregationType Max { get; } = new AggregationType(MaxValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(AggregationType left, AggregationType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(AggregationType left, AggregationType right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator AggregationType(string value) => new AggregationType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is AggregationType other && Equals(other);
+ ///
+ public bool Equals(AggregationType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationError.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationError.Serialization.cs
new file mode 100644
index 000000000000..a359ba3fd714
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationError.Serialization.cs
@@ -0,0 +1,170 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ public partial class CollectionConfigurationError : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CollectionConfigurationError)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ writer.WritePropertyName("CollectionConfigurationErrorType"u8);
+ writer.WriteStringValue(CollectionConfigurationErrorType.ToString());
+ writer.WritePropertyName("Message"u8);
+ writer.WriteStringValue(Message);
+ writer.WritePropertyName("FullException"u8);
+ writer.WriteStringValue(FullException);
+ writer.WritePropertyName("Data"u8);
+ writer.WriteStartArray();
+ foreach (var item in Data)
+ {
+ 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();
+ }
+
+ CollectionConfigurationError IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CollectionConfigurationError)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeCollectionConfigurationError(document.RootElement, options);
+ }
+
+ internal static CollectionConfigurationError DeserializeCollectionConfigurationError(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ CollectionConfigurationErrorType collectionConfigurationErrorType = default;
+ string message = default;
+ string fullException = default;
+ IList data = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("CollectionConfigurationErrorType"u8))
+ {
+ collectionConfigurationErrorType = new CollectionConfigurationErrorType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("Message"u8))
+ {
+ message = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("FullException"u8))
+ {
+ fullException = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("Data"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(KeyValuePairStringString.DeserializeKeyValuePairStringString(item, options));
+ }
+ data = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new CollectionConfigurationError(collectionConfigurationErrorType, message, fullException, data, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(CollectionConfigurationError)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ CollectionConfigurationError IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeCollectionConfigurationError(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(CollectionConfigurationError)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static CollectionConfigurationError FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeCollectionConfigurationError(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationError.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationError.cs
new file mode 100644
index 000000000000..2c827786fc4b
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationError.cs
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace LiveMetrics
+{
+ /// Represents an error while SDK parses and applies an instance of CollectionConfigurationInfo.
+ public partial class CollectionConfigurationError
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// Error type.
+ /// Error message.
+ /// Exception that led to the creation of the configuration error.
+ /// Custom properties to add more information to the error.
+ /// , or is null.
+ public CollectionConfigurationError(CollectionConfigurationErrorType collectionConfigurationErrorType, string message, string fullException, IEnumerable data)
+ {
+ Argument.AssertNotNull(message, nameof(message));
+ Argument.AssertNotNull(fullException, nameof(fullException));
+ Argument.AssertNotNull(data, nameof(data));
+
+ CollectionConfigurationErrorType = collectionConfigurationErrorType;
+ Message = message;
+ FullException = fullException;
+ Data = data.ToList();
+ }
+
+ /// Initializes a new instance of .
+ /// Error type.
+ /// Error message.
+ /// Exception that led to the creation of the configuration error.
+ /// Custom properties to add more information to the error.
+ /// Keeps track of any properties unknown to the library.
+ internal CollectionConfigurationError(CollectionConfigurationErrorType collectionConfigurationErrorType, string message, string fullException, IList data, IDictionary serializedAdditionalRawData)
+ {
+ CollectionConfigurationErrorType = collectionConfigurationErrorType;
+ Message = message;
+ FullException = fullException;
+ Data = data;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal CollectionConfigurationError()
+ {
+ }
+
+ /// Error type.
+ public CollectionConfigurationErrorType CollectionConfigurationErrorType { get; }
+ /// Error message.
+ public string Message { get; }
+ /// Exception that led to the creation of the configuration error.
+ public string FullException { get; }
+ /// Custom properties to add more information to the error.
+ public IList Data { get; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationErrorType.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationErrorType.cs
new file mode 100644
index 000000000000..fcbc32b254f5
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationErrorType.cs
@@ -0,0 +1,84 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace LiveMetrics
+{
+ /// Collection configuration error type reported by the client SDK.
+ public readonly partial struct CollectionConfigurationErrorType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public CollectionConfigurationErrorType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string UnknownValue = "Unknown";
+ private const string PerformanceCounterParsingValue = "PerformanceCounterParsing";
+ private const string PerformanceCounterUnexpectedValue = "PerformanceCounterUnexpected";
+ private const string PerformanceCounterDuplicateIdsValue = "PerformanceCounterDuplicateIds";
+ private const string DocumentStreamDuplicateIdsValue = "DocumentStreamDuplicateIds";
+ private const string DocumentStreamFailureToCreateValue = "DocumentStreamFailureToCreate";
+ private const string DocumentStreamFailureToCreateFilterUnexpectedValue = "DocumentStreamFailureToCreateFilterUnexpected";
+ private const string MetricDuplicateIdsValue = "MetricDuplicateIds";
+ private const string MetricTelemetryTypeUnsupportedValue = "MetricTelemetryTypeUnsupported";
+ private const string MetricFailureToCreateValue = "MetricFailureToCreate";
+ private const string MetricFailureToCreateFilterUnexpectedValue = "MetricFailureToCreateFilterUnexpected";
+ private const string FilterFailureToCreateUnexpectedValue = "FilterFailureToCreateUnexpected";
+ private const string CollectionConfigurationFailureToCreateUnexpectedValue = "CollectionConfigurationFailureToCreateUnexpected";
+
+ /// Unknown error type.
+ public static CollectionConfigurationErrorType Unknown { get; } = new CollectionConfigurationErrorType(UnknownValue);
+ /// Performance counter parsing error.
+ public static CollectionConfigurationErrorType PerformanceCounterParsing { get; } = new CollectionConfigurationErrorType(PerformanceCounterParsingValue);
+ /// Performance counter unexpected error.
+ public static CollectionConfigurationErrorType PerformanceCounterUnexpected { get; } = new CollectionConfigurationErrorType(PerformanceCounterUnexpectedValue);
+ /// Performance counter duplicate ids.
+ public static CollectionConfigurationErrorType PerformanceCounterDuplicateIds { get; } = new CollectionConfigurationErrorType(PerformanceCounterDuplicateIdsValue);
+ /// Document stream duplication ids.
+ public static CollectionConfigurationErrorType DocumentStreamDuplicateIds { get; } = new CollectionConfigurationErrorType(DocumentStreamDuplicateIdsValue);
+ /// Document stream failed to create.
+ public static CollectionConfigurationErrorType DocumentStreamFailureToCreate { get; } = new CollectionConfigurationErrorType(DocumentStreamFailureToCreateValue);
+ /// Document stream failed to create filter unexpectedly.
+ public static CollectionConfigurationErrorType DocumentStreamFailureToCreateFilterUnexpected { get; } = new CollectionConfigurationErrorType(DocumentStreamFailureToCreateFilterUnexpectedValue);
+ /// Metric duplicate ids.
+ public static CollectionConfigurationErrorType MetricDuplicateIds { get; } = new CollectionConfigurationErrorType(MetricDuplicateIdsValue);
+ /// Metric telemetry type unsupported.
+ public static CollectionConfigurationErrorType MetricTelemetryTypeUnsupported { get; } = new CollectionConfigurationErrorType(MetricTelemetryTypeUnsupportedValue);
+ /// Metric failed to create.
+ public static CollectionConfigurationErrorType MetricFailureToCreate { get; } = new CollectionConfigurationErrorType(MetricFailureToCreateValue);
+ /// Metric failed to create filter unexpectedly.
+ public static CollectionConfigurationErrorType MetricFailureToCreateFilterUnexpected { get; } = new CollectionConfigurationErrorType(MetricFailureToCreateFilterUnexpectedValue);
+ /// Filter failed to create unexpectedly.
+ public static CollectionConfigurationErrorType FilterFailureToCreateUnexpected { get; } = new CollectionConfigurationErrorType(FilterFailureToCreateUnexpectedValue);
+ /// Collection configuration failed to create unexpectedly.
+ public static CollectionConfigurationErrorType CollectionConfigurationFailureToCreateUnexpected { get; } = new CollectionConfigurationErrorType(CollectionConfigurationFailureToCreateUnexpectedValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(CollectionConfigurationErrorType left, CollectionConfigurationErrorType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(CollectionConfigurationErrorType left, CollectionConfigurationErrorType right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator CollectionConfigurationErrorType(string value) => new CollectionConfigurationErrorType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is CollectionConfigurationErrorType other && Equals(other);
+ ///
+ public bool Equals(CollectionConfigurationErrorType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationInfo.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationInfo.Serialization.cs
new file mode 100644
index 000000000000..48593c5c360f
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationInfo.Serialization.cs
@@ -0,0 +1,187 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ public partial class CollectionConfigurationInfo : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CollectionConfigurationInfo)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ writer.WritePropertyName("ETag"u8);
+ writer.WriteStringValue(ETag);
+ writer.WritePropertyName("Metrics"u8);
+ writer.WriteStartArray();
+ foreach (var item in Metrics)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ writer.WritePropertyName("DocumentStreams"u8);
+ writer.WriteStartArray();
+ foreach (var item in DocumentStreams)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ if (Optional.IsDefined(QuotaInfo))
+ {
+ writer.WritePropertyName("QuotaInfo"u8);
+ writer.WriteObjectValue(QuotaInfo, options);
+ }
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ writer.WriteEndObject();
+ }
+
+ CollectionConfigurationInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(CollectionConfigurationInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeCollectionConfigurationInfo(document.RootElement, options);
+ }
+
+ internal static CollectionConfigurationInfo DeserializeCollectionConfigurationInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string eTag = default;
+ IReadOnlyList metrics = default;
+ IReadOnlyList documentStreams = default;
+ QuotaConfigurationInfo quotaInfo = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("ETag"u8))
+ {
+ eTag = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("Metrics"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(DerivedMetricInfo.DeserializeDerivedMetricInfo(item, options));
+ }
+ metrics = array;
+ continue;
+ }
+ if (property.NameEquals("DocumentStreams"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(DocumentStreamInfo.DeserializeDocumentStreamInfo(item, options));
+ }
+ documentStreams = array;
+ continue;
+ }
+ if (property.NameEquals("QuotaInfo"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ quotaInfo = QuotaConfigurationInfo.DeserializeQuotaConfigurationInfo(property.Value, options);
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new CollectionConfigurationInfo(eTag, metrics, documentStreams, quotaInfo, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(CollectionConfigurationInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ CollectionConfigurationInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeCollectionConfigurationInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(CollectionConfigurationInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static CollectionConfigurationInfo FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeCollectionConfigurationInfo(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationInfo.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationInfo.cs
new file mode 100644
index 000000000000..2202b8fcc18b
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/CollectionConfigurationInfo.cs
@@ -0,0 +1,94 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace LiveMetrics
+{
+ /// Represents the collection configuration - a customizable description of performance counters, metrics, and full telemetry documents to be collected by the client SDK.
+ public partial class CollectionConfigurationInfo
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// An encoded string that indicates whether the collection configuration is changed.
+ /// An array of metric configuration info.
+ /// An array of document stream configuration info.
+ /// , or is null.
+ internal CollectionConfigurationInfo(string eTag, IEnumerable metrics, IEnumerable documentStreams)
+ {
+ Argument.AssertNotNull(eTag, nameof(eTag));
+ Argument.AssertNotNull(metrics, nameof(metrics));
+ Argument.AssertNotNull(documentStreams, nameof(documentStreams));
+
+ ETag = eTag;
+ Metrics = metrics.ToList();
+ DocumentStreams = documentStreams.ToList();
+ }
+
+ /// Initializes a new instance of .
+ /// An encoded string that indicates whether the collection configuration is changed.
+ /// An array of metric configuration info.
+ /// An array of document stream configuration info.
+ /// Controls document quotas to be sent to Live Metrics.
+ /// Keeps track of any properties unknown to the library.
+ internal CollectionConfigurationInfo(string eTag, IReadOnlyList metrics, IReadOnlyList documentStreams, QuotaConfigurationInfo quotaInfo, IDictionary serializedAdditionalRawData)
+ {
+ ETag = eTag;
+ Metrics = metrics;
+ DocumentStreams = documentStreams;
+ QuotaInfo = quotaInfo;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal CollectionConfigurationInfo()
+ {
+ }
+
+ /// An encoded string that indicates whether the collection configuration is changed.
+ public string ETag { get; }
+ /// An array of metric configuration info.
+ public IReadOnlyList Metrics { get; }
+ /// An array of document stream configuration info.
+ public IReadOnlyList DocumentStreams { get; }
+ /// Controls document quotas to be sent to Live Metrics.
+ public QuotaConfigurationInfo QuotaInfo { get; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DerivedMetricInfo.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DerivedMetricInfo.Serialization.cs
new file mode 100644
index 000000000000..17baa33a86a4
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DerivedMetricInfo.Serialization.cs
@@ -0,0 +1,193 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ public partial class DerivedMetricInfo : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DerivedMetricInfo)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ writer.WritePropertyName("Id"u8);
+ writer.WriteStringValue(Id);
+ writer.WritePropertyName("TelemetryType"u8);
+ writer.WriteStringValue(TelemetryType);
+ writer.WritePropertyName("FilterGroups"u8);
+ writer.WriteStartArray();
+ foreach (var item in FilterGroups)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
+ writer.WritePropertyName("Projection"u8);
+ writer.WriteStringValue(Projection);
+ writer.WritePropertyName("Aggregation"u8);
+ writer.WriteStringValue(Aggregation.ToString());
+ writer.WritePropertyName("BackEndAggregation"u8);
+ writer.WriteStringValue(BackEndAggregation.ToString());
+ 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();
+ }
+
+ DerivedMetricInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DerivedMetricInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDerivedMetricInfo(document.RootElement, options);
+ }
+
+ internal static DerivedMetricInfo DeserializeDerivedMetricInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string id = default;
+ string telemetryType = default;
+ IReadOnlyList filterGroups = default;
+ string projection = default;
+ AggregationType aggregation = default;
+ AggregationType backEndAggregation = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("Id"u8))
+ {
+ id = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("TelemetryType"u8))
+ {
+ telemetryType = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("FilterGroups"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(FilterConjunctionGroupInfo.DeserializeFilterConjunctionGroupInfo(item, options));
+ }
+ filterGroups = array;
+ continue;
+ }
+ if (property.NameEquals("Projection"u8))
+ {
+ projection = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("Aggregation"u8))
+ {
+ aggregation = new AggregationType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("BackEndAggregation"u8))
+ {
+ backEndAggregation = new AggregationType(property.Value.GetString());
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new DerivedMetricInfo(
+ id,
+ telemetryType,
+ filterGroups,
+ projection,
+ aggregation,
+ backEndAggregation,
+ serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(DerivedMetricInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ DerivedMetricInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeDerivedMetricInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(DerivedMetricInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static DerivedMetricInfo FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeDerivedMetricInfo(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DerivedMetricInfo.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DerivedMetricInfo.cs
new file mode 100644
index 000000000000..bf65e8969c59
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DerivedMetricInfo.cs
@@ -0,0 +1,109 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace LiveMetrics
+{
+ /// A metric configuration set by UX to scope the metrics it's interested in.
+ public partial class DerivedMetricInfo
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// metric configuration identifier.
+ /// Telemetry type.
+ /// A collection of filters to scope metrics that UX needs.
+ /// Telemetry's metric dimension whose value is to be aggregated. Example values: Duration, Count(),...
+ /// Aggregation type. This is the aggregation done from everything within a single server.
+ /// Aggregation type. This Aggregation is done across the values for all the servers taken together.
+ /// , , or is null.
+ internal DerivedMetricInfo(string id, string telemetryType, IEnumerable filterGroups, string projection, AggregationType aggregation, AggregationType backEndAggregation)
+ {
+ Argument.AssertNotNull(id, nameof(id));
+ Argument.AssertNotNull(telemetryType, nameof(telemetryType));
+ Argument.AssertNotNull(filterGroups, nameof(filterGroups));
+ Argument.AssertNotNull(projection, nameof(projection));
+
+ Id = id;
+ TelemetryType = telemetryType;
+ FilterGroups = filterGroups.ToList();
+ Projection = projection;
+ Aggregation = aggregation;
+ BackEndAggregation = backEndAggregation;
+ }
+
+ /// Initializes a new instance of .
+ /// metric configuration identifier.
+ /// Telemetry type.
+ /// A collection of filters to scope metrics that UX needs.
+ /// Telemetry's metric dimension whose value is to be aggregated. Example values: Duration, Count(),...
+ /// Aggregation type. This is the aggregation done from everything within a single server.
+ /// Aggregation type. This Aggregation is done across the values for all the servers taken together.
+ /// Keeps track of any properties unknown to the library.
+ internal DerivedMetricInfo(string id, string telemetryType, IReadOnlyList filterGroups, string projection, AggregationType aggregation, AggregationType backEndAggregation, IDictionary serializedAdditionalRawData)
+ {
+ Id = id;
+ TelemetryType = telemetryType;
+ FilterGroups = filterGroups;
+ Projection = projection;
+ Aggregation = aggregation;
+ BackEndAggregation = backEndAggregation;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal DerivedMetricInfo()
+ {
+ }
+
+ /// metric configuration identifier.
+ public string Id { get; }
+ /// Telemetry type.
+ public string TelemetryType { get; }
+ /// A collection of filters to scope metrics that UX needs.
+ public IReadOnlyList FilterGroups { get; }
+ /// Telemetry's metric dimension whose value is to be aggregated. Example values: Duration, Count(),...
+ public string Projection { get; }
+ /// Aggregation type. This is the aggregation done from everything within a single server.
+ public AggregationType Aggregation { get; }
+ /// Aggregation type. This Aggregation is done across the values for all the servers taken together.
+ public AggregationType BackEndAggregation { get; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Docs/LiveMetricsClient.xml b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Docs/LiveMetricsClient.xml
new file mode 100644
index 000000000000..43feea8747a6
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Docs/LiveMetricsClient.xml
@@ -0,0 +1,671 @@
+
+
+
+
+
+This sample shows how to call IsSubscribedAsync.
+ response = await client.IsSubscribedAsync("");
+]]>
+This sample shows how to call IsSubscribedAsync with all parameters.
+",
+1234,
+"",
+"",
+"",
+"",
+true,
+true)
+{
+ Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ TransmissionTime = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ Metrics = { new MetricPoint("", 123.45, 1234) },
+ Documents = {new Request
+ {
+ Name = "",
+ Url = new Uri("http://localhost:3000"),
+ ResponseCode = "",
+ Duration = "",
+ DocumentStreamIds = {""},
+ Properties = {new KeyValuePairStringString("", "")},
+ }},
+ TopCpuProcesses = { new ProcessCpuData("", 1234) },
+ CollectionConfigurationErrors = {new CollectionConfigurationError(CollectionConfigurationErrorType.Unknown, "", "", new KeyValuePairStringString[]
+ {
+ default
+ })},
+};
+Response response = await client.IsSubscribedAsync("", monitoringDataPoint: monitoringDataPoint, transmissionTime: 1234L, machineName: "", instanceName: "", streamId: "", roleName: "", invariantVersion: "", configurationEtag: new ETag(""));
+]]>
+
+
+
+This sample shows how to call IsSubscribed.
+ response = client.IsSubscribed("");
+]]>
+This sample shows how to call IsSubscribed with all parameters.
+",
+1234,
+"",
+"",
+"",
+"",
+true,
+true)
+{
+ Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ TransmissionTime = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ Metrics = { new MetricPoint("", 123.45, 1234) },
+ Documents = {new Request
+ {
+ Name = "",
+ Url = new Uri("http://localhost:3000"),
+ ResponseCode = "",
+ Duration = "",
+ DocumentStreamIds = {""},
+ Properties = {new KeyValuePairStringString("", "")},
+ }},
+ TopCpuProcesses = { new ProcessCpuData("", 1234) },
+ CollectionConfigurationErrors = {new CollectionConfigurationError(CollectionConfigurationErrorType.Unknown, "", "", new KeyValuePairStringString[]
+ {
+ default
+ })},
+};
+Response response = client.IsSubscribed("", monitoringDataPoint: monitoringDataPoint, transmissionTime: 1234L, machineName: "", instanceName: "", streamId: "", roleName: "", invariantVersion: "", configurationEtag: new ETag(""));
+]]>
+
+
+
+This sample shows how to call IsSubscribedAsync and parse the result.
+", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("ETag").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Projection").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Aggregation").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("BackEndAggregation").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+]]>
+This sample shows how to call IsSubscribedAsync with all parameters and request content and parse the result.
+",
+ InvariantVersion = 1234,
+ Instance = "",
+ RoleName = "",
+ MachineName = "",
+ StreamId = "",
+ Timestamp = "2022-05-10T18:57:31.2311892Z",
+ TransmissionTime = "2022-05-10T18:57:31.2311892Z",
+ IsWebApp = true,
+ PerformanceCollectionSupported = true,
+ Metrics = new object[]
+ {
+ new
+ {
+ Name = "",
+ Value = 123.45,
+ Weight = 1234,
+ }
+ },
+ Documents = new object[]
+ {
+ new
+ {
+ DocumentType = "Request",
+ Name = "",
+ Url = "http://localhost:3000",
+ ResponseCode = "",
+ Duration = "",
+ DocumentStreamIds = new object[]
+ {
+ ""
+ },
+ Properties = new object[]
+ {
+ new
+ {
+ key = "",
+ value = "",
+ }
+ },
+ }
+ },
+ TopCpuProcesses = new object[]
+ {
+ new
+ {
+ ProcessName = "",
+ CpuPercentage = 1234,
+ }
+ },
+ CollectionConfigurationErrors = new object[]
+ {
+ new
+ {
+ CollectionConfigurationErrorType = "Unknown",
+ Message = "",
+ FullException = "",
+ Data = new object[]
+ {
+ null
+ },
+ }
+ },
+});
+Response response = await client.IsSubscribedAsync("", content, transmissionTime: 1234L, machineName: "", instanceName: "", streamId: "", roleName: "", invariantVersion: "", configurationEtag: new ETag(""));
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("ETag").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Projection").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Aggregation").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("BackEndAggregation").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("InitialQuota").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("MaxQuota").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("QuotaAccrualRatePerSec").ToString());
+]]>
+
+
+
+This sample shows how to call IsSubscribed and parse the result.
+", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("ETag").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Projection").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Aggregation").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("BackEndAggregation").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+]]>
+This sample shows how to call IsSubscribed with all parameters and request content and parse the result.
+",
+ InvariantVersion = 1234,
+ Instance = "",
+ RoleName = "",
+ MachineName = "",
+ StreamId = "",
+ Timestamp = "2022-05-10T18:57:31.2311892Z",
+ TransmissionTime = "2022-05-10T18:57:31.2311892Z",
+ IsWebApp = true,
+ PerformanceCollectionSupported = true,
+ Metrics = new object[]
+ {
+ new
+ {
+ Name = "",
+ Value = 123.45,
+ Weight = 1234,
+ }
+ },
+ Documents = new object[]
+ {
+ new
+ {
+ DocumentType = "Request",
+ Name = "",
+ Url = "http://localhost:3000",
+ ResponseCode = "",
+ Duration = "",
+ DocumentStreamIds = new object[]
+ {
+ ""
+ },
+ Properties = new object[]
+ {
+ new
+ {
+ key = "",
+ value = "",
+ }
+ },
+ }
+ },
+ TopCpuProcesses = new object[]
+ {
+ new
+ {
+ ProcessName = "",
+ CpuPercentage = 1234,
+ }
+ },
+ CollectionConfigurationErrors = new object[]
+ {
+ new
+ {
+ CollectionConfigurationErrorType = "Unknown",
+ Message = "",
+ FullException = "",
+ Data = new object[]
+ {
+ null
+ },
+ }
+ },
+});
+Response response = client.IsSubscribed("", content, transmissionTime: 1234L, machineName: "", instanceName: "", streamId: "", roleName: "", invariantVersion: "", configurationEtag: new ETag(""));
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("ETag").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Projection").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Aggregation").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("BackEndAggregation").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("InitialQuota").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("MaxQuota").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("QuotaAccrualRatePerSec").ToString());
+]]>
+
+
+
+This sample shows how to call PublishAsync.
+ response = await client.PublishAsync("");
+]]>
+This sample shows how to call PublishAsync with all parameters.
+ response = await client.PublishAsync("", monitoringDataPoints: new MonitoringDataPoint[]
+{
+ new MonitoringDataPoint(
+ "",
+ 1234,
+ "",
+ "",
+ "",
+ "",
+ true,
+ true)
+ {
+ Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ TransmissionTime = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ Metrics = {new MetricPoint("", 123.45, 1234)},
+ Documents = {new Request
+ {
+ Name = "",
+ Url = new Uri("http://localhost:3000"),
+ ResponseCode = "",
+ Duration = "",
+ DocumentStreamIds = {""},
+ Properties = {new KeyValuePairStringString("", "")},
+ }},
+ TopCpuProcesses = {new ProcessCpuData("", 1234)},
+ CollectionConfigurationErrors = {new CollectionConfigurationError(CollectionConfigurationErrorType.Unknown, "", "", new KeyValuePairStringString[]
+ {
+ default
+ })},
+ }
+}, configurationEtag: new ETag(""), transmissionTime: 1234L);
+]]>
+
+
+
+This sample shows how to call Publish.
+ response = client.Publish("");
+]]>
+This sample shows how to call Publish with all parameters.
+ response = client.Publish("", monitoringDataPoints: new MonitoringDataPoint[]
+{
+ new MonitoringDataPoint(
+ "",
+ 1234,
+ "",
+ "",
+ "",
+ "",
+ true,
+ true)
+ {
+ Timestamp = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ TransmissionTime = DateTimeOffset.Parse("2022-05-10T18:57:31.2311892Z"),
+ Metrics = {new MetricPoint("", 123.45, 1234)},
+ Documents = {new Request
+ {
+ Name = "",
+ Url = new Uri("http://localhost:3000"),
+ ResponseCode = "",
+ Duration = "",
+ DocumentStreamIds = {""},
+ Properties = {new KeyValuePairStringString("", "")},
+ }},
+ TopCpuProcesses = {new ProcessCpuData("", 1234)},
+ CollectionConfigurationErrors = {new CollectionConfigurationError(CollectionConfigurationErrorType.Unknown, "", "", new KeyValuePairStringString[]
+ {
+ default
+ })},
+ }
+}, configurationEtag: new ETag(""), transmissionTime: 1234L);
+]]>
+
+
+
+This sample shows how to call PublishAsync and parse the result.
+", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("ETag").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Projection").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Aggregation").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("BackEndAggregation").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+]]>
+This sample shows how to call PublishAsync with all parameters and request content and parse the result.
+",
+ InvariantVersion = 1234,
+ Instance = "",
+ RoleName = "",
+ MachineName = "",
+ StreamId = "",
+ Timestamp = "2022-05-10T18:57:31.2311892Z",
+ TransmissionTime = "2022-05-10T18:57:31.2311892Z",
+ IsWebApp = true,
+ PerformanceCollectionSupported = true,
+ Metrics = new object[]
+ {
+ new
+ {
+ Name = "",
+ Value = 123.45,
+ Weight = 1234,
+ }
+ },
+ Documents = new object[]
+ {
+ new
+ {
+ DocumentType = "Request",
+ Name = "",
+ Url = "http://localhost:3000",
+ ResponseCode = "",
+ Duration = "",
+ DocumentStreamIds = new object[]
+ {
+ ""
+ },
+ Properties = new object[]
+ {
+ new
+ {
+ key = "",
+ value = "",
+ }
+ },
+ }
+ },
+ TopCpuProcesses = new object[]
+ {
+ new
+ {
+ ProcessName = "",
+ CpuPercentage = 1234,
+ }
+ },
+ CollectionConfigurationErrors = new object[]
+ {
+ new
+ {
+ CollectionConfigurationErrorType = "Unknown",
+ Message = "",
+ FullException = "",
+ Data = new object[]
+ {
+ null
+ },
+ }
+ },
+ }
+});
+Response response = await client.PublishAsync("", content, configurationEtag: new ETag(""), transmissionTime: 1234L);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("ETag").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Projection").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Aggregation").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("BackEndAggregation").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("InitialQuota").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("MaxQuota").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("QuotaAccrualRatePerSec").ToString());
+]]>
+
+
+
+This sample shows how to call Publish and parse the result.
+", content);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("ETag").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Projection").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Aggregation").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("BackEndAggregation").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+]]>
+This sample shows how to call Publish with all parameters and request content and parse the result.
+",
+ InvariantVersion = 1234,
+ Instance = "",
+ RoleName = "",
+ MachineName = "",
+ StreamId = "",
+ Timestamp = "2022-05-10T18:57:31.2311892Z",
+ TransmissionTime = "2022-05-10T18:57:31.2311892Z",
+ IsWebApp = true,
+ PerformanceCollectionSupported = true,
+ Metrics = new object[]
+ {
+ new
+ {
+ Name = "",
+ Value = 123.45,
+ Weight = 1234,
+ }
+ },
+ Documents = new object[]
+ {
+ new
+ {
+ DocumentType = "Request",
+ Name = "",
+ Url = "http://localhost:3000",
+ ResponseCode = "",
+ Duration = "",
+ DocumentStreamIds = new object[]
+ {
+ ""
+ },
+ Properties = new object[]
+ {
+ new
+ {
+ key = "",
+ value = "",
+ }
+ },
+ }
+ },
+ TopCpuProcesses = new object[]
+ {
+ new
+ {
+ ProcessName = "",
+ CpuPercentage = 1234,
+ }
+ },
+ CollectionConfigurationErrors = new object[]
+ {
+ new
+ {
+ CollectionConfigurationErrorType = "Unknown",
+ Message = "",
+ FullException = "",
+ Data = new object[]
+ {
+ null
+ },
+ }
+ },
+ }
+});
+Response response = client.Publish("", content, configurationEtag: new ETag(""), transmissionTime: 1234L);
+
+JsonElement result = JsonDocument.Parse(response.ContentStream).RootElement;
+Console.WriteLine(result.GetProperty("ETag").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("FilterGroups")[0].GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Projection").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("Aggregation").ToString());
+Console.WriteLine(result.GetProperty("Metrics")[0].GetProperty("BackEndAggregation").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("Id").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("TelemetryType").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("FieldName").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Predicate").ToString());
+Console.WriteLine(result.GetProperty("DocumentStreams")[0].GetProperty("DocumentFilterGroups")[0].GetProperty("Filters").GetProperty("Filters")[0].GetProperty("Comparand").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("InitialQuota").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("MaxQuota").ToString());
+Console.WriteLine(result.GetProperty("QuotaInfo").GetProperty("QuotaAccrualRatePerSec").ToString());
+]]>
+
+
+
\ No newline at end of file
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentFilterConjunctionGroupInfo.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentFilterConjunctionGroupInfo.Serialization.cs
new file mode 100644
index 000000000000..e7de6a3e4334
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentFilterConjunctionGroupInfo.Serialization.cs
@@ -0,0 +1,144 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ public partial class DocumentFilterConjunctionGroupInfo : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DocumentFilterConjunctionGroupInfo)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ writer.WritePropertyName("TelemetryType"u8);
+ writer.WriteStringValue(TelemetryType.ToString());
+ writer.WritePropertyName("Filters"u8);
+ writer.WriteObjectValue(Filters, options);
+ if (options.Format != "W" && _serializedAdditionalRawData != null)
+ {
+ foreach (var item in _serializedAdditionalRawData)
+ {
+ writer.WritePropertyName(item.Key);
+#if NET6_0_OR_GREATER
+ writer.WriteRawValue(item.Value);
+#else
+ using (JsonDocument document = JsonDocument.Parse(item.Value))
+ {
+ JsonSerializer.Serialize(writer, document.RootElement);
+ }
+#endif
+ }
+ }
+ writer.WriteEndObject();
+ }
+
+ DocumentFilterConjunctionGroupInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DocumentFilterConjunctionGroupInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDocumentFilterConjunctionGroupInfo(document.RootElement, options);
+ }
+
+ internal static DocumentFilterConjunctionGroupInfo DeserializeDocumentFilterConjunctionGroupInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ TelemetryType telemetryType = default;
+ FilterConjunctionGroupInfo filters = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("TelemetryType"u8))
+ {
+ telemetryType = new TelemetryType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("Filters"u8))
+ {
+ filters = FilterConjunctionGroupInfo.DeserializeFilterConjunctionGroupInfo(property.Value, options);
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new DocumentFilterConjunctionGroupInfo(telemetryType, filters, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(DocumentFilterConjunctionGroupInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ DocumentFilterConjunctionGroupInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeDocumentFilterConjunctionGroupInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(DocumentFilterConjunctionGroupInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static DocumentFilterConjunctionGroupInfo FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeDocumentFilterConjunctionGroupInfo(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentFilterConjunctionGroupInfo.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentFilterConjunctionGroupInfo.cs
new file mode 100644
index 000000000000..ab47aa5a5a85
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentFilterConjunctionGroupInfo.cs
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace LiveMetrics
+{
+ /// A collection of filters for a specific telemetry type.
+ public partial class DocumentFilterConjunctionGroupInfo
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// Telemetry type.
+ /// An array of filter groups.
+ /// is null.
+ internal DocumentFilterConjunctionGroupInfo(TelemetryType telemetryType, FilterConjunctionGroupInfo filters)
+ {
+ Argument.AssertNotNull(filters, nameof(filters));
+
+ TelemetryType = telemetryType;
+ Filters = filters;
+ }
+
+ /// Initializes a new instance of .
+ /// Telemetry type.
+ /// An array of filter groups.
+ /// Keeps track of any properties unknown to the library.
+ internal DocumentFilterConjunctionGroupInfo(TelemetryType telemetryType, FilterConjunctionGroupInfo filters, IDictionary serializedAdditionalRawData)
+ {
+ TelemetryType = telemetryType;
+ Filters = filters;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal DocumentFilterConjunctionGroupInfo()
+ {
+ }
+
+ /// Telemetry type.
+ public TelemetryType TelemetryType { get; }
+ /// An array of filter groups.
+ public FilterConjunctionGroupInfo Filters { get; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentIngress.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentIngress.Serialization.cs
new file mode 100644
index 000000000000..1be02faa164f
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentIngress.Serialization.cs
@@ -0,0 +1,151 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ [PersistableModelProxy(typeof(UnknownDocumentIngress))]
+ public partial class DocumentIngress : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DocumentIngress)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ writer.WritePropertyName("DocumentType"u8);
+ writer.WriteStringValue(DocumentType.ToString());
+ if (Optional.IsCollectionDefined(DocumentStreamIds))
+ {
+ writer.WritePropertyName("DocumentStreamIds"u8);
+ writer.WriteStartArray();
+ foreach (var item in DocumentStreamIds)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsCollectionDefined(Properties))
+ {
+ writer.WritePropertyName("Properties"u8);
+ writer.WriteStartArray();
+ foreach (var item in Properties)
+ {
+ 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();
+ }
+
+ DocumentIngress IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DocumentIngress)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDocumentIngress(document.RootElement, options);
+ }
+
+ internal static DocumentIngress DeserializeDocumentIngress(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ if (element.TryGetProperty("DocumentType", out JsonElement discriminator))
+ {
+ switch (discriminator.GetString())
+ {
+ case "Event": return Event.DeserializeEvent(element, options);
+ case "Exception": return Exception.DeserializeException(element, options);
+ case "RemoteDependency": return RemoteDependency.DeserializeRemoteDependency(element, options);
+ case "Request": return Request.DeserializeRequest(element, options);
+ case "Trace": return Trace.DeserializeTrace(element, options);
+ }
+ }
+ return UnknownDocumentIngress.DeserializeUnknownDocumentIngress(element, options);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(DocumentIngress)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ DocumentIngress IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeDocumentIngress(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(DocumentIngress)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static DocumentIngress FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeDocumentIngress(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentIngress.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentIngress.cs
new file mode 100644
index 000000000000..495a1ba03e02
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentIngress.cs
@@ -0,0 +1,79 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace LiveMetrics
+{
+ ///
+ /// Base class of the specific document types.
+ /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
+ /// The available derived classes include , , , and .
+ ///
+ public abstract partial class DocumentIngress
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private protected IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ protected DocumentIngress()
+ {
+ DocumentStreamIds = new ChangeTrackingList();
+ Properties = new ChangeTrackingList();
+ }
+
+ /// Initializes a new instance of .
+ /// Telemetry type. Types not defined in enum will get replaced with a 'Unknown' type.
+ /// An array of document streaming ids. Each id identifies a flow of documents customized by UX customers.
+ /// Collection of custom properties.
+ /// Keeps track of any properties unknown to the library.
+ internal DocumentIngress(DocumentType documentType, IList documentStreamIds, IList properties, IDictionary serializedAdditionalRawData)
+ {
+ DocumentType = documentType;
+ DocumentStreamIds = documentStreamIds;
+ Properties = properties;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Telemetry type. Types not defined in enum will get replaced with a 'Unknown' type.
+ internal DocumentType DocumentType { get; set; }
+ /// An array of document streaming ids. Each id identifies a flow of documents customized by UX customers.
+ public IList DocumentStreamIds { get; }
+ /// Collection of custom properties.
+ public IList Properties { get; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentStreamInfo.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentStreamInfo.Serialization.cs
new file mode 100644
index 000000000000..aa75dce40ded
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentStreamInfo.Serialization.cs
@@ -0,0 +1,154 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ public partial class DocumentStreamInfo : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DocumentStreamInfo)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ writer.WritePropertyName("Id"u8);
+ writer.WriteStringValue(Id);
+ writer.WritePropertyName("DocumentFilterGroups"u8);
+ writer.WriteStartArray();
+ foreach (var item in DocumentFilterGroups)
+ {
+ 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();
+ }
+
+ DocumentStreamInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(DocumentStreamInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeDocumentStreamInfo(document.RootElement, options);
+ }
+
+ internal static DocumentStreamInfo DeserializeDocumentStreamInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string id = default;
+ IReadOnlyList documentFilterGroups = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("Id"u8))
+ {
+ id = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("DocumentFilterGroups"u8))
+ {
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(DocumentFilterConjunctionGroupInfo.DeserializeDocumentFilterConjunctionGroupInfo(item, options));
+ }
+ documentFilterGroups = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new DocumentStreamInfo(id, documentFilterGroups, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(DocumentStreamInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ DocumentStreamInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeDocumentStreamInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(DocumentStreamInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static DocumentStreamInfo FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeDocumentStreamInfo(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentStreamInfo.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentStreamInfo.cs
new file mode 100644
index 000000000000..02101af6454e
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentStreamInfo.cs
@@ -0,0 +1,83 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace LiveMetrics
+{
+ /// Configurations/filters set by UX to scope the document/telemetry it's interested in.
+ public partial class DocumentStreamInfo
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// Identifier of the document stream initiated by a UX.
+ /// Gets or sets an OR-connected collection of filter groups.
+ /// or is null.
+ internal DocumentStreamInfo(string id, IEnumerable documentFilterGroups)
+ {
+ Argument.AssertNotNull(id, nameof(id));
+ Argument.AssertNotNull(documentFilterGroups, nameof(documentFilterGroups));
+
+ Id = id;
+ DocumentFilterGroups = documentFilterGroups.ToList();
+ }
+
+ /// Initializes a new instance of .
+ /// Identifier of the document stream initiated by a UX.
+ /// Gets or sets an OR-connected collection of filter groups.
+ /// Keeps track of any properties unknown to the library.
+ internal DocumentStreamInfo(string id, IReadOnlyList documentFilterGroups, IDictionary serializedAdditionalRawData)
+ {
+ Id = id;
+ DocumentFilterGroups = documentFilterGroups;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal DocumentStreamInfo()
+ {
+ }
+
+ /// Identifier of the document stream initiated by a UX.
+ public string Id { get; }
+ /// Gets or sets an OR-connected collection of filter groups.
+ public IReadOnlyList DocumentFilterGroups { get; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentType.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentType.cs
new file mode 100644
index 000000000000..43d78ae38ff3
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/DocumentType.cs
@@ -0,0 +1,63 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ComponentModel;
+
+namespace LiveMetrics
+{
+ /// Document type.
+ internal readonly partial struct DocumentType : IEquatable
+ {
+ private readonly string _value;
+
+ /// Initializes a new instance of .
+ /// is null.
+ public DocumentType(string value)
+ {
+ _value = value ?? throw new ArgumentNullException(nameof(value));
+ }
+
+ private const string RequestValue = "Request";
+ private const string RemoteDependencyValue = "RemoteDependency";
+ private const string ExceptionValue = "Exception";
+ private const string EventValue = "Event";
+ private const string TraceValue = "Trace";
+ private const string UnknownValue = "Unknown";
+
+ /// Represents a request telemetry type.
+ public static DocumentType Request { get; } = new DocumentType(RequestValue);
+ /// Represents a remote dependency telemetry type.
+ public static DocumentType RemoteDependency { get; } = new DocumentType(RemoteDependencyValue);
+ /// Represents an exception telemetry type.
+ public static DocumentType Exception { get; } = new DocumentType(ExceptionValue);
+ /// Represents an event telemetry type.
+ public static DocumentType Event { get; } = new DocumentType(EventValue);
+ /// Represents a trace telemetry type.
+ public static DocumentType Trace { get; } = new DocumentType(TraceValue);
+ /// Represents an unknown telemetry type.
+ public static DocumentType Unknown { get; } = new DocumentType(UnknownValue);
+ /// Determines if two values are the same.
+ public static bool operator ==(DocumentType left, DocumentType right) => left.Equals(right);
+ /// Determines if two values are not the same.
+ public static bool operator !=(DocumentType left, DocumentType right) => !left.Equals(right);
+ /// Converts a string to a .
+ public static implicit operator DocumentType(string value) => new DocumentType(value);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override bool Equals(object obj) => obj is DocumentType other && Equals(other);
+ ///
+ public bool Equals(DocumentType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase);
+
+ ///
+ [EditorBrowsable(EditorBrowsableState.Never)]
+ public override int GetHashCode() => _value != null ? StringComparer.InvariantCultureIgnoreCase.GetHashCode(_value) : 0;
+ ///
+ public override string ToString() => _value;
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Event.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Event.Serialization.cs
new file mode 100644
index 000000000000..e5129532dcdb
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Event.Serialization.cs
@@ -0,0 +1,197 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ public partial class Event : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(Event)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ if (Optional.IsDefined(Name))
+ {
+ writer.WritePropertyName("Name"u8);
+ writer.WriteStringValue(Name);
+ }
+ writer.WritePropertyName("DocumentType"u8);
+ writer.WriteStringValue(DocumentType.ToString());
+ if (Optional.IsCollectionDefined(DocumentStreamIds))
+ {
+ writer.WritePropertyName("DocumentStreamIds"u8);
+ writer.WriteStartArray();
+ foreach (var item in DocumentStreamIds)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsCollectionDefined(Properties))
+ {
+ writer.WritePropertyName("Properties"u8);
+ writer.WriteStartArray();
+ foreach (var item in Properties)
+ {
+ 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();
+ }
+
+ Event IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(Event)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeEvent(document.RootElement, options);
+ }
+
+ internal static Event DeserializeEvent(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string name = default;
+ DocumentType documentType = default;
+ IList documentStreamIds = default;
+ IList properties = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("Name"u8))
+ {
+ name = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("DocumentType"u8))
+ {
+ documentType = new DocumentType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("DocumentStreamIds"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ documentStreamIds = array;
+ continue;
+ }
+ if (property.NameEquals("Properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(KeyValuePairStringString.DeserializeKeyValuePairStringString(item, options));
+ }
+ properties = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new Event(documentType, documentStreamIds ?? new ChangeTrackingList(), properties ?? new ChangeTrackingList(), serializedAdditionalRawData, name);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(Event)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ Event IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeEvent(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(Event)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static new Event FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeEvent(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal override RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Event.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Event.cs
new file mode 100644
index 000000000000..ac0ba2ec5b66
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Event.cs
@@ -0,0 +1,36 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace LiveMetrics
+{
+ /// Event document type.
+ public partial class Event : DocumentIngress
+ {
+ /// Initializes a new instance of .
+ public Event()
+ {
+ DocumentType = DocumentType.Event;
+ }
+
+ /// Initializes a new instance of .
+ /// Telemetry type. Types not defined in enum will get replaced with a 'Unknown' type.
+ /// An array of document streaming ids. Each id identifies a flow of documents customized by UX customers.
+ /// Collection of custom properties.
+ /// Keeps track of any properties unknown to the library.
+ /// Event name.
+ internal Event(DocumentType documentType, IList documentStreamIds, IList properties, IDictionary serializedAdditionalRawData, string name) : base(documentType, documentStreamIds, properties, serializedAdditionalRawData)
+ {
+ Name = name;
+ }
+
+ /// Event name.
+ public string Name { get; set; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Exception.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Exception.Serialization.cs
new file mode 100644
index 000000000000..d4166a6a8d44
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Exception.Serialization.cs
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ public partial class Exception : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(Exception)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ if (Optional.IsDefined(ExceptionType))
+ {
+ writer.WritePropertyName("ExceptionType"u8);
+ writer.WriteStringValue(ExceptionType);
+ }
+ if (Optional.IsDefined(ExceptionMessage))
+ {
+ writer.WritePropertyName("ExceptionMessage"u8);
+ writer.WriteStringValue(ExceptionMessage);
+ }
+ writer.WritePropertyName("DocumentType"u8);
+ writer.WriteStringValue(DocumentType.ToString());
+ if (Optional.IsCollectionDefined(DocumentStreamIds))
+ {
+ writer.WritePropertyName("DocumentStreamIds"u8);
+ writer.WriteStartArray();
+ foreach (var item in DocumentStreamIds)
+ {
+ writer.WriteStringValue(item);
+ }
+ writer.WriteEndArray();
+ }
+ if (Optional.IsCollectionDefined(Properties))
+ {
+ writer.WritePropertyName("Properties"u8);
+ writer.WriteStartArray();
+ foreach (var item in Properties)
+ {
+ 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();
+ }
+
+ Exception IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(Exception)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeException(document.RootElement, options);
+ }
+
+ internal static Exception DeserializeException(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string exceptionType = default;
+ string exceptionMessage = default;
+ DocumentType documentType = default;
+ IList documentStreamIds = default;
+ IList properties = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("ExceptionType"u8))
+ {
+ exceptionType = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("ExceptionMessage"u8))
+ {
+ exceptionMessage = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("DocumentType"u8))
+ {
+ documentType = new DocumentType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("DocumentStreamIds"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(item.GetString());
+ }
+ documentStreamIds = array;
+ continue;
+ }
+ if (property.NameEquals("Properties"u8))
+ {
+ if (property.Value.ValueKind == JsonValueKind.Null)
+ {
+ continue;
+ }
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(KeyValuePairStringString.DeserializeKeyValuePairStringString(item, options));
+ }
+ properties = array;
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new Exception(
+ documentType,
+ documentStreamIds ?? new ChangeTrackingList(),
+ properties ?? new ChangeTrackingList(),
+ serializedAdditionalRawData,
+ exceptionType,
+ exceptionMessage);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(Exception)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ Exception IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeException(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(Exception)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static new Exception FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeException(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal override RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Exception.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Exception.cs
new file mode 100644
index 000000000000..33c36b88e5e0
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Exception.cs
@@ -0,0 +1,40 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace LiveMetrics
+{
+ /// Exception document type.
+ public partial class Exception : DocumentIngress
+ {
+ /// Initializes a new instance of .
+ public Exception()
+ {
+ DocumentType = DocumentType.Exception;
+ }
+
+ /// Initializes a new instance of .
+ /// Telemetry type. Types not defined in enum will get replaced with a 'Unknown' type.
+ /// An array of document streaming ids. Each id identifies a flow of documents customized by UX customers.
+ /// Collection of custom properties.
+ /// Keeps track of any properties unknown to the library.
+ /// Exception type name.
+ /// Exception message.
+ internal Exception(DocumentType documentType, IList documentStreamIds, IList properties, IDictionary serializedAdditionalRawData, string exceptionType, string exceptionMessage) : base(documentType, documentStreamIds, properties, serializedAdditionalRawData)
+ {
+ ExceptionType = exceptionType;
+ ExceptionMessage = exceptionMessage;
+ }
+
+ /// Exception type name.
+ public string ExceptionType { get; set; }
+ /// Exception message.
+ public string ExceptionMessage { get; set; }
+ }
+}
diff --git a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/CreateAssistantFileRequest.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterConjunctionGroupInfo.Serialization.cs
similarity index 61%
rename from sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/CreateAssistantFileRequest.Serialization.cs
rename to sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterConjunctionGroupInfo.Serialization.cs
index 3abf92d075f2..b06b826b356b 100644
--- a/sdk/openai/Azure.AI.OpenAI.Assistants/src/Generated/CreateAssistantFileRequest.Serialization.cs
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterConjunctionGroupInfo.Serialization.cs
@@ -9,25 +9,31 @@
using System.ClientModel.Primitives;
using System.Collections.Generic;
using System.Text.Json;
+using Azure;
using Azure.Core;
-namespace Azure.AI.OpenAI.Assistants
+namespace LiveMetrics
{
- internal partial class CreateAssistantFileRequest : IUtf8JsonSerializable, IJsonModel
+ public partial class FilterConjunctionGroupInfo : IUtf8JsonSerializable, IJsonModel
{
- void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
- void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(CreateAssistantFileRequest)} does not support writing '{format}' format.");
+ throw new FormatException($"The model {nameof(FilterConjunctionGroupInfo)} does not support writing '{format}' format.");
}
writer.WriteStartObject();
- writer.WritePropertyName("file_id"u8);
- writer.WriteStringValue(FileId);
+ writer.WritePropertyName("Filters"u8);
+ writer.WriteStartArray();
+ foreach (var item in Filters)
+ {
+ writer.WriteObjectValue(item, options);
+ }
+ writer.WriteEndArray();
if (options.Format != "W" && _serializedAdditionalRawData != null)
{
foreach (var item in _serializedAdditionalRawData)
@@ -46,19 +52,19 @@ void IJsonModel.Write(Utf8JsonWriter writer, ModelRe
writer.WriteEndObject();
}
- CreateAssistantFileRequest IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ FilterConjunctionGroupInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
if (format != "J")
{
- throw new FormatException($"The model {nameof(CreateAssistantFileRequest)} does not support reading '{format}' format.");
+ throw new FormatException($"The model {nameof(FilterConjunctionGroupInfo)} does not support reading '{format}' format.");
}
using JsonDocument document = JsonDocument.ParseValue(ref reader);
- return DeserializeCreateAssistantFileRequest(document.RootElement, options);
+ return DeserializeFilterConjunctionGroupInfo(document.RootElement, options);
}
- internal static CreateAssistantFileRequest DeserializeCreateAssistantFileRequest(JsonElement element, ModelReaderWriterOptions options = null)
+ internal static FilterConjunctionGroupInfo DeserializeFilterConjunctionGroupInfo(JsonElement element, ModelReaderWriterOptions options = null)
{
options ??= ModelSerializationExtensions.WireOptions;
@@ -66,14 +72,19 @@ internal static CreateAssistantFileRequest DeserializeCreateAssistantFileRequest
{
return null;
}
- string fileId = default;
+ IReadOnlyList filters = default;
IDictionary serializedAdditionalRawData = default;
Dictionary rawDataDictionary = new Dictionary();
foreach (var property in element.EnumerateObject())
{
- if (property.NameEquals("file_id"u8))
+ if (property.NameEquals("Filters"u8))
{
- fileId = property.Value.GetString();
+ List array = new List();
+ foreach (var item in property.Value.EnumerateArray())
+ {
+ array.Add(FilterInfo.DeserializeFilterInfo(item, options));
+ }
+ filters = array;
continue;
}
if (options.Format != "W")
@@ -82,46 +93,46 @@ internal static CreateAssistantFileRequest DeserializeCreateAssistantFileRequest
}
}
serializedAdditionalRawData = rawDataDictionary;
- return new CreateAssistantFileRequest(fileId, serializedAdditionalRawData);
+ return new FilterConjunctionGroupInfo(filters, serializedAdditionalRawData);
}
- BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
return ModelReaderWriter.Write(this, options);
default:
- throw new FormatException($"The model {nameof(CreateAssistantFileRequest)} does not support writing '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(FilterConjunctionGroupInfo)} does not support writing '{options.Format}' format.");
}
}
- CreateAssistantFileRequest IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ FilterConjunctionGroupInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
{
- var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
switch (format)
{
case "J":
{
using JsonDocument document = JsonDocument.Parse(data);
- return DeserializeCreateAssistantFileRequest(document.RootElement, options);
+ return DeserializeFilterConjunctionGroupInfo(document.RootElement, options);
}
default:
- throw new FormatException($"The model {nameof(CreateAssistantFileRequest)} does not support reading '{options.Format}' format.");
+ throw new FormatException($"The model {nameof(FilterConjunctionGroupInfo)} does not support reading '{options.Format}' format.");
}
}
- string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
/// Deserializes the model from a raw response.
/// The response to deserialize the model from.
- internal static CreateAssistantFileRequest FromResponse(Response response)
+ internal static FilterConjunctionGroupInfo FromResponse(Response response)
{
using var document = JsonDocument.Parse(response.Content);
- return DeserializeCreateAssistantFileRequest(document.RootElement);
+ return DeserializeFilterConjunctionGroupInfo(document.RootElement);
}
/// Convert into a .
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterConjunctionGroupInfo.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterConjunctionGroupInfo.cs
new file mode 100644
index 000000000000..16ce6d4a1f18
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterConjunctionGroupInfo.cs
@@ -0,0 +1,76 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+using System.Linq;
+
+namespace LiveMetrics
+{
+ /// An AND-connected group of FilterInfo objects.
+ public partial class FilterConjunctionGroupInfo
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// An array of filters.
+ /// is null.
+ internal FilterConjunctionGroupInfo(IEnumerable filters)
+ {
+ Argument.AssertNotNull(filters, nameof(filters));
+
+ Filters = filters.ToList();
+ }
+
+ /// Initializes a new instance of .
+ /// An array of filters.
+ /// Keeps track of any properties unknown to the library.
+ internal FilterConjunctionGroupInfo(IReadOnlyList filters, IDictionary serializedAdditionalRawData)
+ {
+ Filters = filters;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal FilterConjunctionGroupInfo()
+ {
+ }
+
+ /// An array of filters.
+ public IReadOnlyList Filters { get; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterInfo.Serialization.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterInfo.Serialization.cs
new file mode 100644
index 000000000000..18a7b1c91d54
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterInfo.Serialization.cs
@@ -0,0 +1,152 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.ClientModel.Primitives;
+using System.Collections.Generic;
+using System.Text.Json;
+using Azure;
+using Azure.Core;
+
+namespace LiveMetrics
+{
+ public partial class FilterInfo : IUtf8JsonSerializable, IJsonModel
+ {
+ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) => ((IJsonModel)this).Write(writer, ModelSerializationExtensions.WireOptions);
+
+ void IJsonModel.Write(Utf8JsonWriter writer, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(FilterInfo)} does not support writing '{format}' format.");
+ }
+
+ writer.WriteStartObject();
+ writer.WritePropertyName("FieldName"u8);
+ writer.WriteStringValue(FieldName);
+ writer.WritePropertyName("Predicate"u8);
+ writer.WriteStringValue(Predicate.ToString());
+ writer.WritePropertyName("Comparand"u8);
+ writer.WriteStringValue(Comparand);
+ 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();
+ }
+
+ FilterInfo IJsonModel.Create(ref Utf8JsonReader reader, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+ if (format != "J")
+ {
+ throw new FormatException($"The model {nameof(FilterInfo)} does not support reading '{format}' format.");
+ }
+
+ using JsonDocument document = JsonDocument.ParseValue(ref reader);
+ return DeserializeFilterInfo(document.RootElement, options);
+ }
+
+ internal static FilterInfo DeserializeFilterInfo(JsonElement element, ModelReaderWriterOptions options = null)
+ {
+ options ??= ModelSerializationExtensions.WireOptions;
+
+ if (element.ValueKind == JsonValueKind.Null)
+ {
+ return null;
+ }
+ string fieldName = default;
+ PredicateType predicate = default;
+ string comparand = default;
+ IDictionary serializedAdditionalRawData = default;
+ Dictionary rawDataDictionary = new Dictionary();
+ foreach (var property in element.EnumerateObject())
+ {
+ if (property.NameEquals("FieldName"u8))
+ {
+ fieldName = property.Value.GetString();
+ continue;
+ }
+ if (property.NameEquals("Predicate"u8))
+ {
+ predicate = new PredicateType(property.Value.GetString());
+ continue;
+ }
+ if (property.NameEquals("Comparand"u8))
+ {
+ comparand = property.Value.GetString();
+ continue;
+ }
+ if (options.Format != "W")
+ {
+ rawDataDictionary.Add(property.Name, BinaryData.FromString(property.Value.GetRawText()));
+ }
+ }
+ serializedAdditionalRawData = rawDataDictionary;
+ return new FilterInfo(fieldName, predicate, comparand, serializedAdditionalRawData);
+ }
+
+ BinaryData IPersistableModel.Write(ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ return ModelReaderWriter.Write(this, options);
+ default:
+ throw new FormatException($"The model {nameof(FilterInfo)} does not support writing '{options.Format}' format.");
+ }
+ }
+
+ FilterInfo IPersistableModel.Create(BinaryData data, ModelReaderWriterOptions options)
+ {
+ var format = options.Format == "W" ? ((IPersistableModel)this).GetFormatFromOptions(options) : options.Format;
+
+ switch (format)
+ {
+ case "J":
+ {
+ using JsonDocument document = JsonDocument.Parse(data);
+ return DeserializeFilterInfo(document.RootElement, options);
+ }
+ default:
+ throw new FormatException($"The model {nameof(FilterInfo)} does not support reading '{options.Format}' format.");
+ }
+ }
+
+ string IPersistableModel.GetFormatFromOptions(ModelReaderWriterOptions options) => "J";
+
+ /// Deserializes the model from a raw response.
+ /// The response to deserialize the model from.
+ internal static FilterInfo FromResponse(Response response)
+ {
+ using var document = JsonDocument.Parse(response.Content);
+ return DeserializeFilterInfo(document.RootElement);
+ }
+
+ /// Convert into a .
+ internal virtual RequestContent ToRequestContent()
+ {
+ var content = new Utf8JsonRequestContent();
+ content.JsonWriter.WriteObjectValue(this, ModelSerializationExtensions.WireOptions);
+ return content;
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterInfo.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterInfo.cs
new file mode 100644
index 000000000000..227a405ba0cb
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/FilterInfo.cs
@@ -0,0 +1,88 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections.Generic;
+
+namespace LiveMetrics
+{
+ /// A filter set on UX.
+ public partial class FilterInfo
+ {
+ ///
+ /// Keeps track of any properties unknown to the library.
+ ///
+ /// To assign an object to the value of this property use .
+ ///
+ ///
+ /// To assign an already formatted json string to this property use .
+ ///
+ ///
+ /// Examples:
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson("foo")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromString("\"foo\"")
+ /// Creates a payload of "foo".
+ ///
+ /// -
+ /// BinaryData.FromObjectAsJson(new { key = "value" })
+ /// Creates a payload of { "key": "value" }.
+ ///
+ /// -
+ /// BinaryData.FromString("{\"key\": \"value\"}")
+ /// Creates a payload of { "key": "value" }.
+ ///
+ ///
+ ///
+ ///
+ private IDictionary _serializedAdditionalRawData;
+
+ /// Initializes a new instance of .
+ /// dimension name of the filter.
+ /// Operator of the filter.
+ /// Comparand of the filter.
+ /// or is null.
+ internal FilterInfo(string fieldName, PredicateType predicate, string comparand)
+ {
+ Argument.AssertNotNull(fieldName, nameof(fieldName));
+ Argument.AssertNotNull(comparand, nameof(comparand));
+
+ FieldName = fieldName;
+ Predicate = predicate;
+ Comparand = comparand;
+ }
+
+ /// Initializes a new instance of .
+ /// dimension name of the filter.
+ /// Operator of the filter.
+ /// Comparand of the filter.
+ /// Keeps track of any properties unknown to the library.
+ internal FilterInfo(string fieldName, PredicateType predicate, string comparand, IDictionary serializedAdditionalRawData)
+ {
+ FieldName = fieldName;
+ Predicate = predicate;
+ Comparand = comparand;
+ _serializedAdditionalRawData = serializedAdditionalRawData;
+ }
+
+ /// Initializes a new instance of for deserialization.
+ internal FilterInfo()
+ {
+ }
+
+ /// dimension name of the filter.
+ public string FieldName { get; }
+ /// Operator of the filter.
+ public PredicateType Predicate { get; }
+ /// Comparand of the filter.
+ public string Comparand { get; }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Internal/Argument.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Internal/Argument.cs
new file mode 100644
index 000000000000..fd93d797ccdf
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Internal/Argument.cs
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace LiveMetrics
+{
+ internal static class Argument
+ {
+ public static void AssertNotNull(T value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNull(T? value, string name)
+ where T : struct
+ {
+ if (!value.HasValue)
+ {
+ throw new ArgumentNullException(name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(IEnumerable value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value is ICollection collectionOfT && collectionOfT.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ if (value is ICollection collection && collection.Count == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ using IEnumerator e = value.GetEnumerator();
+ if (!e.MoveNext())
+ {
+ throw new ArgumentException("Value cannot be an empty collection.", name);
+ }
+ }
+
+ public static void AssertNotNullOrEmpty(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (value.Length == 0)
+ {
+ throw new ArgumentException("Value cannot be an empty string.", name);
+ }
+ }
+
+ public static void AssertNotNullOrWhiteSpace(string value, string name)
+ {
+ if (value is null)
+ {
+ throw new ArgumentNullException(name);
+ }
+ if (string.IsNullOrWhiteSpace(value))
+ {
+ throw new ArgumentException("Value cannot be empty or contain only white-space characters.", name);
+ }
+ }
+
+ public static void AssertNotDefault(ref T value, string name)
+ where T : struct, IEquatable
+ {
+ if (value.Equals(default))
+ {
+ throw new ArgumentException("Value cannot be empty.", name);
+ }
+ }
+
+ public static void AssertInRange(T value, T minimum, T maximum, string name)
+ where T : notnull, IComparable
+ {
+ if (minimum.CompareTo(value) > 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is less than the minimum allowed.");
+ }
+ if (maximum.CompareTo(value) < 0)
+ {
+ throw new ArgumentOutOfRangeException(name, "Value is greater than the maximum allowed.");
+ }
+ }
+
+ public static void AssertEnumDefined(Type enumType, object value, string name)
+ {
+ if (!Enum.IsDefined(enumType, value))
+ {
+ throw new ArgumentException($"Value not defined for {enumType.FullName}.", name);
+ }
+ }
+
+ public static T CheckNotNull(T value, string name)
+ where T : class
+ {
+ AssertNotNull(value, name);
+ return value;
+ }
+
+ public static string CheckNotNullOrEmpty(string value, string name)
+ {
+ AssertNotNullOrEmpty(value, name);
+ return value;
+ }
+
+ public static void AssertNull(T value, string name, string message = null)
+ {
+ if (value != null)
+ {
+ throw new ArgumentException(message ?? "Value must be null.", name);
+ }
+ }
+ }
+}
diff --git a/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Internal/ChangeTrackingDictionary.cs b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Internal/ChangeTrackingDictionary.cs
new file mode 100644
index 000000000000..adba2e33ac67
--- /dev/null
+++ b/sdk/applicationinsights.livemetrics/LiveMetrics/src/Generated/Internal/ChangeTrackingDictionary.cs
@@ -0,0 +1,167 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+
+//
+
+#nullable disable
+
+using System;
+using System.Collections;
+using System.Collections.Generic;
+
+namespace LiveMetrics
+{
+ internal class ChangeTrackingDictionary : IDictionary, IReadOnlyDictionary where TKey : notnull
+ {
+ private IDictionary _innerDictionary;
+
+ public ChangeTrackingDictionary()
+ {
+ }
+
+ public ChangeTrackingDictionary(IDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary(dictionary);
+ }
+
+ public ChangeTrackingDictionary(IReadOnlyDictionary dictionary)
+ {
+ if (dictionary == null)
+ {
+ return;
+ }
+ _innerDictionary = new Dictionary();
+ foreach (var pair in dictionary)
+ {
+ _innerDictionary.Add(pair);
+ }
+ }
+
+ public bool IsUndefined => _innerDictionary == null;
+
+ public int Count => IsUndefined ? 0 : EnsureDictionary().Count;
+
+ public bool IsReadOnly => IsUndefined ? false : EnsureDictionary().IsReadOnly;
+
+ public ICollection Keys => IsUndefined ? Array.Empty() : EnsureDictionary().Keys;
+
+ public ICollection