From 019af9a8a923af496d4b82c358ce727d253c68b9 Mon Sep 17 00:00:00 2001 From: Avani Gupta Date: Mon, 12 Jun 2023 07:34:23 -0700 Subject: [PATCH] [App Configuration] Support etag for kvset with new API version (#24119) * Latest Preview API Version * Support etag for kvset with new API version * Change etag casing in response body * Add securityDefinitions, address comments * Remove x-nullable true --- .../2023-05-01-preview/appconfiguration.json | 2103 +++++++++++++++++ .../examples/CheckKeyValue.json | 17 + .../examples/CheckKeyValue_IfMatch.json | 18 + .../examples/CheckKeyValue_IfNoneMatch.json | 18 + .../examples/CheckKeyValues.json | 13 + .../examples/CheckKeyValues_IfMatch.json | 15 + .../examples/CheckKeyValues_IfNoneMatch.json | 15 + .../examples/CheckKeys.json | 13 + .../examples/CheckLabels.json | 13 + .../examples/CheckRevisions.json | 13 + .../examples/CheckSnapshot.json | 18 + .../examples/CheckSnapshot_IfMatch.json | 19 + .../examples/CheckSnapshot_IfNoneMatch.json | 19 + .../examples/CheckSnapshots.json | 13 + .../examples/CreateSnapshot.json | 44 + .../examples/DeleteKeyValue.json | 28 + .../examples/DeleteKeyValue_IfMatch.json | 29 + .../examples/DeleteLock.json | 27 + .../examples/DeleteLock_IfMatch.json | 28 + .../examples/GetKeyValue.json | 27 + .../examples/GetKeyValue_IfMatch.json | 28 + .../examples/GetKeyValue_IfNoneMatch.json | 28 + .../examples/GetKeyValues.json | 57 + .../examples/GetKeyValues_IfMatch.json | 59 + .../examples/GetKeyValues_IfNoneMatch.json | 59 + .../2023-05-01-preview/examples/GetKeys.json | 23 + .../examples/GetLabels.json | 32 + .../examples/GetOperationStatus.json | 22 + .../examples/GetRevisions.json | 47 + .../examples/GetSnapshot.json | 37 + .../examples/GetSnapshot_Failed.json | 38 + .../examples/GetSnapshot_IfMatch.json | 38 + .../examples/GetSnapshot_IfNoneMatch.json | 38 + .../examples/GetSnapshots.json | 36 + .../examples/PutKeyValue.json | 27 + .../examples/PutKeyValue_IfMatch.json | 28 + .../2023-05-01-preview/examples/PutLock.json | 27 + .../examples/PutLock_IfMatch.json | 28 + .../examples/UpdateSnapshot.json | 38 + .../examples/UpdateSnapshot_IfMatch.json | 39 + .../appconfiguration/data-plane/readme.md | 9 + 41 files changed, 3228 insertions(+) create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/appconfiguration.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeys.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckLabels.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckRevisions.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshots.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CreateSnapshot.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteKeyValue.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteKeyValue_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteLock.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteLock_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeys.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetLabels.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetOperationStatus.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetRevisions.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_Failed.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshots.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutKeyValue.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutKeyValue_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutLock.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutLock_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/UpdateSnapshot.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/UpdateSnapshot_IfMatch.json diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/appconfiguration.json new file mode 100644 index 0000000000..944404301d --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/appconfiguration.json @@ -0,0 +1,2103 @@ +{ + "swagger": "2.0", + "info": { + "version": "2023-05-01-preview", + "title": "Azure App Configuration" + }, + "schemes": [ + "https" + ], + "paths": { + "/keys": { + "get": { + "tags": [ + "Keys" + ], + "summary": "Gets a list of keys.", + "operationId": "GetKeys", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.keyset+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "A filter for the name of the returned keys.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/KeyListResult" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetKeys": { + "$ref": "./examples/GetKeys.json" + } + }, + "x-ms-pageable": { + "itemName": "items", + "nextLinkName": "@nextLink" + } + }, + "head": { + "tags": [ + "Keys" + ], + "summary": "Requests the headers and status of the given resource.", + "operationId": "CheckKeys", + "consumes": [], + "produces": [], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "A filter for the name of the returned keys.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + } + } + }, + "default": { + "description": "Error response." + } + }, + "x-ms-examples": { + "CheckKeys": { + "$ref": "./examples/CheckKeys.json" + } + } + } + }, + "/kv": { + "get": { + "tags": [ + "KeyValues" + ], + "summary": "Gets a list of key-values.", + "operationId": "GetKeyValues", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.kvset+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "key", + "in": "query", + "description": "A filter used to match keys.", + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "A filter used to match labels", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + }, + { + "$ref": "#/parameters/KeyValueFields" + }, + { + "name": "snapshot", + "in": "query", + "description": "A filter used get key-values for a snapshot. The value should be the name of the snapshot. Not valid when used with 'key' and 'label' filters.", + "type": "string" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/KeyValueListResult" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetKeyValues": { + "$ref": "./examples/GetKeyValues.json" + }, + "GetKeyValues_IfMatch": { + "$ref": "./examples/GetKeyValues_IfMatch.json" + }, + "GetKeyValues_IfNoneMatch": { + "$ref": "./examples/GetKeyValues_IfNoneMatch.json" + } + }, + "x-ms-pageable": { + "itemName": "items", + "nextLinkName": "@nextLink" + } + }, + "head": { + "tags": [ + "KeyValues" + ], + "summary": "Requests the headers and status of the given resource.", + "operationId": "CheckKeyValues", + "consumes": [], + "produces": [], + "parameters": [ + { + "name": "key", + "in": "query", + "description": "A filter used to match keys.", + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "A filter used to match labels", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + }, + { + "$ref": "#/parameters/KeyValueFields" + }, + { + "name": "snapshot", + "in": "query", + "description": "A filter used get key-values for a snapshot. Not valid when used with 'key' and 'label' filters.", + "type": "string" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response." + } + }, + "x-ms-examples": { + "CheckKeyValues": { + "$ref": "./examples/CheckKeyValues.json" + }, + "CheckKeyValues_IfMatch": { + "$ref": "./examples/CheckKeyValues_IfMatch.json" + }, + "CheckKeyValues_IfNoneMatch": { + "$ref": "./examples/CheckKeyValues_IfNoneMatch.json" + } + } + } + }, + "/kv/{key}": { + "get": { + "tags": [ + "KeyValues" + ], + "summary": "Gets a single key-value.", + "operationId": "GetKeyValue", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "key", + "in": "path", + "description": "The key of the key-value to retrieve.", + "required": true, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "The label of the key-value to retrieve.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + }, + { + "$ref": "#/parameters/KeyValueFields" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/KeyValue" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetKeyValue": { + "$ref": "./examples/GetKeyValue.json" + }, + "GetKeyValue_IfMatch": { + "$ref": "./examples/GetKeyValue_IfMatch.json" + }, + "GetKeyValue_IfNoneMatch": { + "$ref": "./examples/GetKeyValue_IfNoneMatch.json" + } + } + }, + "put": { + "tags": [ + "KeyValues" + ], + "summary": "Creates a key-value.", + "operationId": "PutKeyValue", + "consumes": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/vnd.microsoft.appconfig.kvset+json", + "application/json", + "text/json", + "application/*+json", + "application/json-patch+json" + ], + "produces": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "key", + "in": "path", + "description": "The key of the key-value to create.", + "required": true, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "The label of the key-value to create.", + "type": "string" + }, + { + "name": "entity", + "in": "body", + "description": "The key-value to create.", + "schema": { + "$ref": "#/definitions/KeyValue" + } + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/KeyValue" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "PutKeyValue": { + "$ref": "./examples/PutKeyValue.json" + }, + "PutKeyValue_IfMatch": { + "$ref": "./examples/PutKeyValue_IfMatch.json" + } + } + }, + "delete": { + "tags": [ + "KeyValues" + ], + "summary": "Deletes a key-value.", + "operationId": "DeleteKeyValue", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "key", + "in": "path", + "description": "The key of the key-value to delete.", + "required": true, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "The label of the key-value to delete.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/KeyValue" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "204": { + "description": "Success", + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "DeleteKeyValue": { + "$ref": "./examples/DeleteKeyValue.json" + }, + "DeleteKeyValue_IfMatch": { + "$ref": "./examples/DeleteKeyValue_IfMatch.json" + } + } + }, + "head": { + "tags": [ + "KeyValues" + ], + "summary": "Requests the headers and status of the given resource.", + "operationId": "CheckKeyValue", + "consumes": [], + "produces": [], + "parameters": [ + { + "name": "key", + "in": "path", + "description": "The key of the key-value to retrieve.", + "required": true, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "The label of the key-value to retrieve.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + }, + { + "$ref": "#/parameters/KeyValueFields" + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response." + } + }, + "x-ms-examples": { + "CheckKeyValue": { + "$ref": "./examples/CheckKeyValue.json" + }, + "CheckKeyValue_IfMatch": { + "$ref": "./examples/CheckKeyValue_IfMatch.json" + }, + "CheckKeyValue_IfNoneMatch": { + "$ref": "./examples/CheckKeyValue_IfNoneMatch.json" + } + } + } + }, + "/snapshots": { + "get": { + "tags": [ + "Snapshots" + ], + "summary": "Gets a list of key-value snapshots.", + "operationId": "GetSnapshots", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.snapshotset+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "A filter for the name of the returned snapshots.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "$ref": "#/parameters/SnapshotFields" + }, + { + "$ref": "#/parameters/Status" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/SnapshotListResult" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetSnapshots": { + "$ref": "./examples/GetSnapshots.json" + } + }, + "x-ms-pageable": { + "itemName": "items", + "nextLinkName": "@nextLink" + } + }, + "head": { + "tags": [ + "Snapshots" + ], + "summary": "Requests the headers and status of the given resource.", + "operationId": "CheckSnapshots", + "consumes": [], + "produces": [], + "parameters": [ + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + } + } + }, + "default": { + "description": "Error response." + } + }, + "x-ms-examples": { + "CheckSnapshots": { + "$ref": "./examples/CheckSnapshots.json" + } + } + } + }, + "/snapshots/{name}": { + "get": { + "tags": [ + "Snapshots" + ], + "summary": "Gets a single key-value snapshot.", + "operationId": "GetSnapshot", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/problem+json" + ], + "parameters": [ + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "name", + "in": "path", + "description": "The name of the key-value snapshot to retrieve.", + "required": true, + "type": "string" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + }, + { + "$ref": "#/parameters/SnapshotFields" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Snapshot" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + }, + "Link": { + "description": "Includes links to related resources.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetSnapshot": { + "$ref": "./examples/GetSnapshot.json" + }, + "GetSnapshot_IfMatch": { + "$ref": "./examples/GetSnapshot_IfMatch.json" + }, + "GetSnapshot_IfNoneMatch": { + "$ref": "./examples/GetSnapshot_IfNoneMatch.json" + }, + "GetSnapshot_Failed": { + "$ref": "./examples/GetSnapshot_Failed.json" + } + } + }, + "put": { + "tags": [ + "Snapshots" + ], + "summary": "Creates a key-value snapshot.", + "operationId": "CreateSnapshot", + "consumes": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/json" + ], + "produces": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "name", + "in": "path", + "description": "The name of the key-value snapshot to create.", + "required": true, + "type": "string", + "maxLength": 256 + }, + { + "name": "entity", + "in": "body", + "description": "The key-value snapshot to create.", + "required": true, + "schema": { + "$ref": "#/definitions/Snapshot" + } + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + } + ], + "responses": { + "201": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Snapshot" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + }, + "Link": { + "description": "Includes links to related resources.", + "type": "string" + }, + "Operation-Location": { + "description": "The URL to track the status of the long running operation.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "CreateSnapshot": { + "$ref": "./examples/CreateSnapshot.json" + } + }, + "x-ms-long-running-operation": true + }, + "patch": { + "tags": [ + "Snapshots" + ], + "summary": "Updates the state of a key-value snapshot.", + "operationId": "UpdateSnapshot", + "consumes": [ + "application/json", + "application/merge-patch+json" + ], + "produces": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "name", + "in": "path", + "description": "The name of the key-value snapshot to update.", + "required": true, + "type": "string" + }, + { + "name": "entity", + "in": "body", + "description": "The parameters used to update the snapshot.", + "required": true, + "schema": { + "$ref": "#/definitions/SnapshotUpdateParameters" + } + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/Snapshot" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + }, + "Link": { + "description": "Includes links to related resources.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "UpdateSnapshot": { + "$ref": "./examples/UpdateSnapshot.json" + }, + "UpdateSnapshot_IfMatch": { + "$ref": "./examples/UpdateSnapshot_IfMatch.json" + } + } + }, + "head": { + "tags": [ + "Snapshots" + ], + "summary": "Requests the headers and status of the given resource.", + "operationId": "CheckSnapshot", + "consumes": [], + "produces": [], + "parameters": [ + { + "name": "name", + "in": "path", + "description": "The name of the key-value snapshot to check.", + "required": true, + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + }, + "Link": { + "description": "Includes links to related resources.", + "type": "string" + } + } + }, + "default": { + "description": "Error response." + } + }, + "x-ms-examples": { + "CheckSnapshot": { + "$ref": "./examples/CheckSnapshot.json" + }, + "CheckSnapshot_IfMatch": { + "$ref": "./examples/CheckSnapshot_IfMatch.json" + }, + "CheckSnapshot_IfNoneMatch": { + "$ref": "./examples/CheckSnapshot_IfNoneMatch.json" + } + } + } + }, + "/labels": { + "get": { + "tags": [ + "Labels" + ], + "summary": "Gets a list of labels.", + "operationId": "GetLabels", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.labelset+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "A filter for the name of the returned labels.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + }, + { + "$ref": "#/parameters/LabelFields" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/LabelListResult" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetLabels": { + "$ref": "./examples/GetLabels.json" + } + }, + "x-ms-pageable": { + "itemName": "items", + "nextLinkName": "@nextLink" + } + }, + "head": { + "tags": [ + "Labels" + ], + "summary": "Requests the headers and status of the given resource.", + "operationId": "CheckLabels", + "consumes": [], + "produces": [], + "parameters": [ + { + "name": "name", + "in": "query", + "description": "A filter for the name of the returned labels.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + }, + { + "$ref": "#/parameters/LabelFields" + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + } + } + }, + "default": { + "description": "Error response." + } + }, + "x-ms-examples": { + "CheckLabels": { + "$ref": "./examples/CheckLabels.json" + } + } + } + }, + "/locks/{key}": { + "put": { + "tags": [ + "Locks" + ], + "summary": "Locks a key-value.", + "operationId": "PutLock", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "key", + "in": "path", + "description": "The key of the key-value to lock.", + "required": true, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "The label, if any, of the key-value to lock.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/KeyValue" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "PutLock": { + "$ref": "./examples/PutLock.json" + }, + "PutLock_IfMatch": { + "$ref": "./examples/PutLock_IfMatch.json" + } + } + }, + "delete": { + "tags": [ + "Locks" + ], + "summary": "Unlocks a key-value.", + "operationId": "DeleteLock", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "key", + "in": "path", + "description": "The key of the key-value to unlock.", + "required": true, + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "The label, if any, of the key-value to unlock.", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "If-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag matches the value provided.", + "type": "string" + }, + { + "name": "If-None-Match", + "in": "header", + "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/KeyValue" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "DeleteLock": { + "$ref": "./examples/DeleteLock.json" + }, + "DeleteLock_IfMatch": { + "$ref": "./examples/DeleteLock_IfMatch.json" + } + } + } + }, + "/revisions": { + "get": { + "tags": [ + "Revisions" + ], + "summary": "Gets a list of key-value revisions.", + "operationId": "GetRevisions", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.kvset+json", + "application/problem+json" + ], + "parameters": [ + { + "name": "key", + "in": "query", + "description": "A filter used to match keys.", + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "A filter used to match labels", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + }, + { + "$ref": "#/parameters/KeyValueFields" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/KeyValueListResult" + }, + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetRevisions": { + "$ref": "./examples/GetRevisions.json" + } + }, + "x-ms-pageable": { + "itemName": "items", + "nextLinkName": "@nextLink" + } + }, + "head": { + "tags": [ + "Revisions" + ], + "summary": "Requests the headers and status of the given resource.", + "operationId": "CheckRevisions", + "consumes": [], + "produces": [], + "parameters": [ + { + "name": "key", + "in": "query", + "description": "A filter used to match keys.", + "type": "string" + }, + { + "name": "label", + "in": "query", + "description": "A filter used to match labels", + "type": "string" + }, + { + "$ref": "#/parameters/SyncTokens" + }, + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "After", + "in": "query", + "description": "Instructs the server to return elements that appear after the element referred to by the specified token.", + "type": "string" + }, + { + "name": "Accept-Datetime", + "in": "header", + "description": "Requests the server to respond with the state of the resource at the specified time.", + "type": "string" + }, + { + "$ref": "#/parameters/KeyValueFields" + } + ], + "responses": { + "200": { + "description": "Success", + "headers": { + "Sync-Token": { + "description": "Enables real-time consistency between requests by providing the returned value in the next request made to the server.", + "type": "string" + }, + "ETag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + } + } + }, + "default": { + "description": "Error response." + } + }, + "x-ms-examples": { + "CheckRevisions": { + "$ref": "./examples/CheckRevisions.json" + } + } + } + }, + "/operations": { + "get": { + "tags": [ + "Operations" + ], + "summary": "Gets the state of a long running operation.", + "operationId": "GetOperationDetails", + "consumes": [], + "produces": [ + "application/json" + ], + "parameters": [ + { + "$ref": "#/parameters/ApiVersion" + }, + { + "name": "snapshot", + "in": "query", + "description": "Snapshot identifier for the long running operation.", + "required": true, + "type": "string" + } + ], + "responses": { + "200": { + "description": "Success", + "schema": { + "$ref": "#/definitions/OperationDetails" + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetOperationStatus": { + "$ref": "./examples/GetOperationStatus.json" + } + } + } + } + }, + "definitions": { + "Key": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the key." + } + } + }, + "KeyValue": { + "type": "object", + "properties": { + "key": { + "type": "string", + "description": "The key of the key-value." + }, + "label": { + "type": "string", + "description": "The label the key-value belongs to." + }, + "content_type": { + "type": "string", + "description": "The content type of the value stored within the key-value." + }, + "value": { + "type": "string", + "description": "The value of the key-value." + }, + "last_modified": { + "format": "date-time", + "type": "string", + "description": "A date representing the last time the key-value was modified." + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + }, + "description": "The tags of the key-value" + }, + "locked": { + "type": "boolean", + "description": "Indicates whether the key-value is locked." + }, + "etag": { + "type": "string", + "description": "A value representing the current state of the resource." + } + } + }, + "Snapshot": { + "type": "object", + "required": [ + "filters" + ], + "properties": { + "name": { + "description": "The name of the snapshot.", + "type": "string", + "readOnly": true + }, + "status": { + "description": "The current status of the snapshot.", + "type": "string", + "enum": [ + "provisioning", + "ready", + "archived", + "failed" + ], + "x-ms-enum": { + "name": "SnapshotStatus", + "modelAsString": true + }, + "readOnly": true + }, + "filters": { + "description": "A list of filters used to filter the key-values included in the snapshot.", + "type": "array", + "minItems": 1, + "maxItems": 3, + "items": { + "$ref": "#/definitions/KeyValueFilter" + } + }, + "composition_type": { + "description": "The composition type describes how the key-values within the snapshot are composed. The 'key' composition type ensures there are no two key-values containing the same key. The 'key_label' composition type ensures there are no two key-values containing the same key and label.", + "type": "string", + "enum": [ + "key", + "key_label" + ], + "x-ms-enum": { + "name": "CompositionType", + "modelAsString": true + } + }, + "created": { + "description": "The time that the snapshot was created.", + "format": "date-time", + "type": "string", + "readOnly": true + }, + "expires": { + "description": "The time that the snapshot will expire.", + "format": "date-time", + "type": "string", + "readOnly": true + }, + "retention_period": { + "description": "The amount of time, in seconds, that a snapshot will remain in the archived state before expiring. This property is only writable during the creation of a snapshot. If not specified, the default lifetime of key-value revisions will be used.", + "type": "integer", + "minimum": 3600, + "maximum": 7776000, + "format": "int64" + }, + "size": { + "description": "The size in bytes of the snapshot.", + "type": "integer", + "format": "int64", + "readOnly": true + }, + "items_count": { + "description": "The amount of key-values in the snapshot.", + "type": "integer", + "format": "int64", + "readOnly": true + }, + "tags": { + "description": "The tags of the snapshot.", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "etag": { + "description": "A value representing the current state of the snapshot.", + "type": "string", + "readOnly": true + } + } + }, + "KeyValueFilter": { + "description": "Enables filtering of key-values.", + "type": "object", + "required": [ + "key" + ], + "properties": { + "key": { + "description": "Filters key-values by their key field.", + "type": "string" + }, + "label": { + "description": "Filters key-values by their label field.", + "type": "string" + } + } + }, + "SnapshotUpdateParameters": { + "description": "Parameters used to update a snapshot.", + "type": "object", + "properties": { + "status": { + "description": "The desired status of the snapshot.", + "type": "string", + "enum": [ + "provisioning", + "ready", + "archived", + "failed" + ], + "x-ms-enum": { + "name": "SnapshotStatus", + "modelAsString": true + } + } + } + }, + "SnapshotListResult": { + "description": "The result of a snapshot list request.", + "type": "object", + "properties": { + "items": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/Snapshot" + } + }, + "@nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + }, + "Label": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true, + "description": "The name of the label." + } + } + }, + "Error": { + "description": "Azure App Configuration error object.", + "type": "object", + "properties": { + "type": { + "description": "The type of the error.", + "type": "string" + }, + "title": { + "description": "A brief summary of the error.", + "type": "string" + }, + "name": { + "description": "The name of the parameter that resulted in the error.", + "type": "string" + }, + "detail": { + "description": "A detailed description of the error.", + "type": "string" + }, + "status": { + "description": "The HTTP status code that the error maps to.", + "type": "integer" + } + }, + "readOnly": true + }, + "OperationDetails": { + "description": "Details of a long running operation.", + "type": "object", + "properties": { + "id": { + "description": "The unique id of the operation.", + "type": "string" + }, + "status": { + "description": "The current status of the operation", + "enum": [ + "NotStarted", + "Running", + "Succeeded", + "Failed", + "Canceled" + ], + "type": "string", + "x-ms-enum": { + "modelAsString": false, + "name": "State" + } + }, + "error": { + "description": "An error, available when the status is `Failed`, describing why the operation failed.", + "$ref": "#/definitions/ErrorDetail" + } + }, + "required": [ + "id", + "status" + ] + }, + "ErrorDetail": { + "description": "The details of an error.", + "type": "object", + "properties": { + "code": { + "description": "One of a server-defined set of error codes.", + "type": "string" + }, + "message": { + "description": "A human-readable representation of the error.", + "type": "string" + }, + "details": { + "description": "An array of details about specific errors that led to this reported error.", + "type": "array", + "items": { + "$ref": "#/definitions/ErrorDetail" + } + }, + "innererror": { + "description": "An object containing more specific information than the current object about the error.", + "$ref": "#/definitions/InnerError" + } + }, + "required": [ + "code", + "message" + ] + }, + "InnerError": { + "description": "An object containing specific information about an error.", + "type": "object", + "properties": { + "code": { + "description": "One of a server-defined set of error codes.", + "type": "string" + }, + "innererror": { + "description": "An object containing more specific information than the current object about the error.", + "$ref": "#/definitions/InnerError" + } + } + }, + "KeyListResult": { + "description": "The result of a list request.", + "type": "object", + "properties": { + "items": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/Key" + } + }, + "@nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + }, + "KeyValueListResult": { + "description": "The result of a list request.", + "type": "object", + "properties": { + "items": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/KeyValue" + } + }, + "etag": { + "description": "An identifier representing the returned state of the resource.", + "type": "string" + }, + "@nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + }, + "LabelListResult": { + "description": "The result of a list request.", + "type": "object", + "properties": { + "items": { + "description": "The collection value.", + "type": "array", + "items": { + "$ref": "#/definitions/Label" + } + }, + "@nextLink": { + "description": "The URI that can be used to request the next set of paged results.", + "type": "string" + } + } + } + }, + "parameters": { + "SyncTokens": { + "name": "Sync-Token", + "in": "header", + "description": "Used to guarantee real-time consistency between requests.", + "type": "string" + }, + "ApiVersion": { + "name": "api-version", + "in": "query", + "description": "The API version to be used with the HTTP request.", + "required": true, + "type": "string" + }, + "Endpoint": { + "name": "endpoint", + "in": "path", + "description": "The endpoint of the App Configuration instance to send requests to.", + "required": true, + "type": "string", + "x-ms-skip-url-encoding": true, + "x-ms-parameter-location": "client" + }, + "KeyValueFields": { + "name": "$Select", + "in": "query", + "description": "Used to select what fields are present in the returned resource(s).", + "type": "array", + "items": { + "type": "string", + "enum": [ + "key", + "label", + "content_type", + "value", + "last_modified", + "tags", + "locked", + "etag" + ], + "x-ms-enum": { + "name": "KeyValueFields", + "modelAsString": true + } + }, + "x-ms-parameter-location": "method", + "collectionFormat": "csv" + }, + "LabelFields": { + "name": "$Select", + "in": "query", + "description": "Used to select what fields are present in the returned resource(s).", + "type": "array", + "items": { + "type": "string", + "enum": [ + "name" + ], + "x-ms-enum": { + "name": "LabelFields", + "modelAsString": true + } + }, + "x-ms-parameter-location": "method", + "collectionFormat": "csv" + }, + "SnapshotFields": { + "name": "$Select", + "in": "query", + "description": "Used to select what fields are present in the returned resource(s).", + "type": "array", + "items": { + "type": "string", + "enum": [ + "name", + "status", + "filters", + "composition_type", + "created", + "expires", + "retention_period", + "size", + "items_count", + "tags", + "etag" + ], + "x-ms-enum": { + "name": "SnapshotFields", + "modelAsString": true + } + }, + "x-ms-parameter-location": "method", + "collectionFormat": "csv" + }, + "Status": { + "name": "status", + "in": "query", + "description": "Used to filter returned snapshots by their status property.", + "type": "array", + "items": { + "type": "string", + "enum": [ + "provisioning", + "ready", + "archived", + "failed" + ], + "x-ms-enum": { + "name": "SnapshotStatus", + "modelAsString": true + } + }, + "x-ms-parameter-location": "method", + "collectionFormat": "csv" + } + }, + "x-ms-parameterized-host": { + "hostTemplate": "{endpoint}", + "useSchemePrefix": false, + "parameters": [ + { + "$ref": "#/parameters/Endpoint" + } + ] + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "Impersonate your user account" + } + }, + "connection_string": { + "type": "apiKey", + "description": "Connection string secret used to connect to an App Config resource.", + "name": "Connection String", + "in": "header" + } + }, + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + }, + { + "connection_string": [] + } + ] +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue.json new file mode 100644 index 0000000000..06618a8f9c --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue_IfMatch.json new file mode 100644 index 0000000000..7fd4eed194 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue_IfMatch.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message", + "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue_IfNoneMatch.json new file mode 100644 index 0000000000..bb7c5ace1c --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValue_IfNoneMatch.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message", + "If-None-Match": "L10qpBghN693OaxydgTkLmrBbV5" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues.json new file mode 100644 index 0000000000..e0ac8469f0 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues_IfMatch.json new file mode 100644 index 0000000000..45e83db214 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues_IfMatch.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues_IfNoneMatch.json new file mode 100644 index 0000000000..f29708f3ab --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeyValues_IfNoneMatch.json @@ -0,0 +1,15 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "If-None-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json", + "ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\"" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeys.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeys.json new file mode 100644 index 0000000000..236547c950 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckKeys.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.keyset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckLabels.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckLabels.json new file mode 100644 index 0000000000..6f24d0666c --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckLabels.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.labelset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckRevisions.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckRevisions.json new file mode 100644 index 0000000000..e0ac8469f0 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckRevisions.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot.json new file mode 100644 index 0000000000..86d527f703 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763", + "Link": "; rel=\"items\"" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot_IfMatch.json new file mode 100644 index 0000000000..f66f10771e --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot_IfMatch.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01", + "If-Match": "\"4f6dd610dd5e4deebc7fbaef685fb903\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763", + "Link": "; rel=\"items\"" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot_IfNoneMatch.json new file mode 100644 index 0000000000..9f7906d988 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshot_IfNoneMatch.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01", + "If-None-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763", + "Link": "; rel=\"items\"" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshots.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshots.json new file mode 100644 index 0000000000..0b9c54bc3e --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CheckSnapshots.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshotset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CreateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CreateSnapshot.json new file mode 100644 index 0000000000..ae3b2432e5 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/CreateSnapshot.json @@ -0,0 +1,44 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01", + "entity": { + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "retention_period": 3600 + } + }, + "responses": { + "201": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763", + "Operation-Location": "https://{exampleAppConfigurationName}.azconfig.io/operations?snapshot=Prod-2022-08-01&Api-Version=2023-05-01-preview" + }, + "body": { + "etag": "4f6dd610dd5e4deebc7fbaef685fb903", + "name": "Prod-2022-08-01", + "status": "provisioning", + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "size": 0, + "items_count": 0, + "retention_period": 3600, + "tags": {} + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteKeyValue.json new file mode 100644 index 0000000000..8f8fad7f19 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteKeyValue.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "7XpB48ET4VAlB9068ft6fKMyA3m", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + }, + "204": {} + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteKeyValue_IfMatch.json new file mode 100644 index 0000000000..3a12e6616b --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteKeyValue_IfMatch.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message", + "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "L10qpBghN693OaxydgTkLmrBbV5", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + }, + "204": {} + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteLock.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteLock.json new file mode 100644 index 0000000000..4ed5b52a77 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteLock.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"0BGYCoQ6iNdp5NtQ7N8shrobo6s\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "0BGYCoQ6iNdp5NtQ7N8shrobo6s", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteLock_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteLock_IfMatch.json new file mode 100644 index 0000000000..8368cc247d --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/DeleteLock_IfMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message", + "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "L10qpBghN693OaxydgTkLmrBbV5", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue.json new file mode 100644 index 0000000000..7254bd0834 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "7XpB48ET4VAlB9068ft6fKMyA3m", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue_IfMatch.json new file mode 100644 index 0000000000..8368cc247d --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue_IfMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message", + "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "L10qpBghN693OaxydgTkLmrBbV5", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue_IfNoneMatch.json new file mode 100644 index 0000000000..c7f72d172d --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValue_IfNoneMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message", + "If-None-Match": "L10qpBghN693OaxydgTkLmrBbV5" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"7XpB48ET4VAlB9068ft6fKMyA3m\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "7XpB48ET4VAlB9068ft6fKMyA3m", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues.json new file mode 100644 index 0000000000..f69e24e428 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json" + }, + "body": { + "items": [ + { + "etag": "CTgHR5UrDKNj2nsoGWDOipST9Pv", + "key": "Background", + "label": "Asset1", + "content_type": null, + "value": "blue", + "tags": {}, + "locked": false, + "last_modified": "2019-03-04T17:12:23+00:00" + }, + { + "etag": "UTSN1zePHbBQ0npbRB6elGRRuH7", + "key": "MaxLogFiles", + "label": "Asset1", + "content_type": null, + "value": "50", + "tags": {}, + "locked": false, + "last_modified": "2019-03-04T17:12:23+00:00" + }, + { + "etag": "7XpB48ET4VAlB9068ft6fKMyA3m", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World", + "tags": {}, + "locked": false, + "last_modified": "2019-06-20T16:52:23+00:00" + }, + { + "etag": "fAFm4jkGNB1hsIr4o0S5hnhCCvY", + "key": "WebDemo:Settings:BackgroundColor", + "label": null, + "content_type": null, + "value": "blue", + "tags": {}, + "locked": false, + "last_modified": "2019-06-20T15:48:01+00:00" + } + ] + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues_IfMatch.json new file mode 100644 index 0000000000..2bc3186b48 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues_IfMatch.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "body": { + "items": [ + { + "etag": "CTgHR5UrDKNj2nsoGWDOipST9Pv", + "key": "Background", + "label": "Asset1", + "content_type": null, + "value": "blue", + "tags": {}, + "locked": false, + "last_modified": "2019-03-04T17:12:23+00:00" + }, + { + "etag": "UTSN1zePHbBQ0npbRB6elGRRuH7", + "key": "MaxLogFiles", + "label": "Asset1", + "content_type": null, + "value": "50", + "tags": {}, + "locked": false, + "last_modified": "2019-03-04T17:12:23+00:00" + }, + { + "etag": "7XpB48ET4VAlB9068ft6fKMyA3m", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World", + "tags": {}, + "locked": false, + "last_modified": "2019-06-20T16:52:23+00:00" + }, + { + "etag": "fAFm4jkGNB1hsIr4o0S5hnhCCvY", + "key": "WebDemo:Settings:BackgroundColor", + "label": null, + "content_type": null, + "value": "blue", + "tags": {}, + "locked": false, + "last_modified": "2019-06-20T15:48:01+00:00" + } + ] + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues_IfNoneMatch.json new file mode 100644 index 0000000000..326c81299f --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeyValues_IfNoneMatch.json @@ -0,0 +1,59 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "If-None-Match": "L10qpBghN693OaxydgTkLmrBbV5" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json", + "ETag": "W/\"1PlB48ET4VAlB9068ft6fKMyA3m\"" + }, + "body": { + "items": [ + { + "etag": "CTgHR5UrDKNj2nsoGWDOipST9Pv", + "key": "Background", + "label": "Asset1", + "content_type": null, + "value": "blue", + "tags": {}, + "locked": false, + "last_modified": "2019-03-04T17:12:23+00:00" + }, + { + "etag": "UTSN1zePHbBQ0npbRB6elGRRuH7", + "key": "MaxLogFiles", + "label": "Asset1", + "content_type": null, + "value": "50", + "tags": {}, + "locked": false, + "last_modified": "2019-03-04T17:12:23+00:00" + }, + { + "etag": "7XpB48ET4VAlB9068ft6fKMyA3m", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World", + "tags": {}, + "locked": false, + "last_modified": "2019-06-20T16:52:23+00:00" + }, + { + "etag": "fAFm4jkGNB1hsIr4o0S5hnhCCvY", + "key": "WebDemo:Settings:BackgroundColor", + "label": null, + "content_type": null, + "value": "blue", + "tags": {}, + "locked": false, + "last_modified": "2019-06-20T15:48:01+00:00" + } + ] + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeys.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeys.json new file mode 100644 index 0000000000..8aa8d0c927 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetKeys.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.keyset+json" + }, + "body": { + "items": [ + { + "name": "MaxRequests" + }, + { + "name": "RequestTimeout" + } + ] + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetLabels.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetLabels.json new file mode 100644 index 0000000000..84e264be4c --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetLabels.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.labelset+json" + }, + "body": { + "items": [ + { + "name": null + }, + { + "name": "Asset1" + }, + { + "name": "Asset1/devCi" + }, + { + "name": "Asset1/devCi/branch1" + }, + { + "name": "WestUs" + } + ] + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetOperationStatus.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetOperationStatus.json new file mode 100644 index 0000000000..bc2817a8e7 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetOperationStatus.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "snapshot": "Prod-2022-08-01" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/json; charset=utf-8", + "Date": "Thu, 16 Mar 2023 23:14:44 GMT", + "Retry-After": "10", + "Sync-Token": "zAJw6V16=MDotMSMyNzM2OTA=;sn=273690" + }, + "body": { + "id": "4yghgV_8lJJ5t7_kxhMpsyNCyjmZE5Q6zU0pXOp7Jvs", + "status": "Running", + "error": null + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetRevisions.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetRevisions.json new file mode 100644 index 0000000000..ec9beaec60 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetRevisions.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json" + }, + "body": { + "items": [ + { + "etag": "0BGYCoQ6iNdp5NtQ7N8shrobo6s", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + }, + { + "etag": "L10qpBghN693OaxydgTkLmrBbV4", + "key": "Message", + "label": null, + "content_type": null, + "value": "A new message.", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:20+00:00" + }, + { + "etag": "tnIHBkDYQwtdNMLoWtr5aybkKwL", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:50:47+00:00" + } + ] + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot.json new file mode 100644 index 0000000000..97bc2b2df4 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763", + "Link": "; rel=\"items\"" + }, + "body": { + "etag": "4f6dd610dd5e4deebc7fbaef685fb903", + "name": "Prod-2022-08-01", + "status": "ready", + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "size": 100000, + "items_count": 71, + "retention_period": 2592000, + "tags": { + "release": "{link/id}" + } + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_Failed.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_Failed.json new file mode 100644 index 0000000000..02060d438c --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_Failed.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01", + "If-Match": "\"4f6dd610dd5e4deebc7fbaef685fb903\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763", + "Link": "; rel=\"items\"" + }, + "body": { + "etag": "4f6dd610dd5e4deebc7fbaef685fb903", + "name": "Prod-2022-08-01", + "status": "failed", + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "size": 0, + "items_count": 0, + "retention_period": 2592000, + "tags": { + "release": "{link/id}" + } + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_IfMatch.json new file mode 100644 index 0000000000..804ec6f1d2 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_IfMatch.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01", + "If-Match": "\"4f6dd610dd5e4deebc7fbaef685fb903\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763", + "Link": "; rel=\"items\"" + }, + "body": { + "etag": "4f6dd610dd5e4deebc7fbaef685fb903", + "name": "Prod-2022-08-01", + "status": "ready", + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "size": 100000, + "items_count": 71, + "retention_period": 2592000, + "tags": { + "release": "{link/id}" + } + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_IfNoneMatch.json new file mode 100644 index 0000000000..51cee969b8 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshot_IfNoneMatch.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01", + "If-None-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763", + "Link": "; rel=\"items\"" + }, + "body": { + "etag": "4f6dd610dd5e4deebc7fbaef685fb903", + "name": "Prod-2022-08-01", + "status": "ready", + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "size": 100000, + "items_count": 71, + "retention_period": 2592000, + "tags": { + "release": "{link/id}" + } + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshots.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshots.json new file mode 100644 index 0000000000..fee3843844 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/GetSnapshots.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshotset+json" + }, + "body": { + "items": [ + { + "etag": "4f6dd610dd5e4deebc7fbaef685fb903", + "name": "Prod-2022-08-01", + "status": "ready", + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "size": 100000, + "items_count": 71, + "retention_period": 2592000, + "tags": { + "release": "{link/id}" + } + } + ] + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutKeyValue.json new file mode 100644 index 0000000000..0d4bf44266 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutKeyValue.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"tnIHBkDYQwtdNMLoWtr5aybkKwL\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "tnIHBkDYQwtdNMLoWtr5aybkKwL", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutKeyValue_IfMatch.json new file mode 100644 index 0000000000..8368cc247d --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutKeyValue_IfMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message", + "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "L10qpBghN693OaxydgTkLmrBbV5", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": false, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutLock.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutLock.json new file mode 100644 index 0000000000..ea48b3b594 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutLock.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV4\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "L10qpBghN693OaxydgTkLmrBbV4", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": true, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutLock_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutLock_IfMatch.json new file mode 100644 index 0000000000..8e14fa2dcc --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/PutLock_IfMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "key": "Message", + "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kv+json", + "ETag": "W/\"L10qpBghN693OaxydgTkLmrBbV5\"", + "Last-Modified": "Tue, 27 Aug 2019 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "L10qpBghN693OaxydgTkLmrBbV5", + "key": "Message", + "label": null, + "content_type": null, + "value": "Hello World!", + "tags": {}, + "locked": true, + "last_modified": "2019-08-27T16:52:32+00:00" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/UpdateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/UpdateSnapshot.json new file mode 100644 index 0000000000..2e64126bd2 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/UpdateSnapshot.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01", + "entity": { + "status": "archived" + } + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "4f6dd610dd5e4deebc7fbaef685fb903", + "name": "Prod-2022-08-01", + "status": "archived", + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "expires": "2022-09-01T22:19:40+00:00", + "size": 10000, + "items_count": 70, + "retention_period": 2592000, + "tags": {} + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/UpdateSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/UpdateSnapshot_IfMatch.json new file mode 100644 index 0000000000..02524bee22 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2023-05-01-preview/examples/UpdateSnapshot_IfMatch.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2023-05-01-preview", + "name": "Prod-2022-08-01", + "entity": { + "status": "archived" + }, + "If-Match": "\"4f6dd610dd5e4deebc7fbaef685fb903\"" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", + "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", + "Last-Modified": "Tue, 01 Aug 2022 16:52:32 GMT", + "Sync-Token": "zAJw6V16=NjotMSM3ODk3NjM=;sn=789763" + }, + "body": { + "etag": "4f6dd610dd5e4deebc7fbaef685fb903", + "name": "Prod-2022-08-01", + "status": "archived", + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "expires": "2022-09-01T22:19:40+00:00", + "size": 10000, + "items_count": 70, + "retention_period": 2592000, + "tags": {} + } + } + } +} diff --git a/specification/appconfiguration/data-plane/readme.md b/specification/appconfiguration/data-plane/readme.md index f7c92cd715..e25c502a50 100644 --- a/specification/appconfiguration/data-plane/readme.md +++ b/specification/appconfiguration/data-plane/readme.md @@ -29,6 +29,15 @@ openapi-type: data-plane tag: package-1-0 ``` +### Tag: package-2023-05-01-preview + +These settings apply only when `--tag=package-2023-05-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2023-05-01-preview' +input-file: +- Microsoft.AppConfiguration/preview/2023-05-01-preview/appconfiguration.json +``` + ### Tag: package-2022-11-01-preview These settings apply only when `--tag=package-2022-11-01-preview` is specified on the command line.