From ffd4861af5c54a6f4e1d42a0417ed3cca200ca30 Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Mon, 25 Jul 2022 14:35:35 -0700 Subject: [PATCH 01/11] Set foundation for api version 2.0 --- .../stable/2.0/appconfiguration.json | 1347 +++++++++++++++++ .../stable/2.0/examples/CheckKeyValue.json | 17 + .../2.0/examples/CheckKeyValue_IfMatch.json | 18 + .../examples/CheckKeyValue_IfNoneMatch.json | 18 + .../stable/2.0/examples/CheckKeyValues.json | 13 + .../stable/2.0/examples/CheckKeys.json | 13 + .../stable/2.0/examples/CheckLabels.json | 13 + .../stable/2.0/examples/CheckRevisions.json | 13 + .../stable/2.0/examples/DeleteKeyValue.json | 28 + .../2.0/examples/DeleteKeyValue_IfMatch.json | 29 + .../stable/2.0/examples/DeleteLock.json | 27 + .../2.0/examples/DeleteLock_IfMatch.json | 28 + .../stable/2.0/examples/GetKeyValue.json | 27 + .../2.0/examples/GetKeyValue_IfMatch.json | 28 + .../2.0/examples/GetKeyValue_IfNoneMatch.json | 28 + .../stable/2.0/examples/GetKeyValues.json | 57 + .../stable/2.0/examples/GetKeys.json | 23 + .../stable/2.0/examples/GetLabels.json | 32 + .../stable/2.0/examples/GetRevisions.json | 47 + .../stable/2.0/examples/PutKeyValue.json | 27 + .../2.0/examples/PutKeyValue_IfMatch.json | 28 + .../stable/2.0/examples/PutLock.json | 27 + .../stable/2.0/examples/PutLock_IfMatch.json | 28 + 23 files changed, 1916 insertions(+) create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json new file mode 100644 index 000000000000..e81498f64d44 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json @@ -0,0 +1,1347 @@ +{ + "swagger": "2.0", + "info": { + "version": "1.0", + "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/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 describing why the operation failed" + } + }, + "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/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" + }, + { + "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" + ] + }, + "collectionFormat": "csv" + } + ], + "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" + } + } + }, + "default": { + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } + } + }, + "x-ms-examples": { + "GetKeyValues": { + "$ref": "./examples/GetKeyValues.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" + }, + { + "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" + ] + }, + "collectionFormat": "csv" + } + ], + "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 describing why the operation failed" + } + }, + "x-ms-examples": { + "CheckKeyValues": { + "$ref": "./examples/CheckKeyValues.json" + } + } + } + }, + "/kv/{key}": { + "get": { + "tags": [ + "KeyValues" + ], + "summary": "Gets a single key-value.", + "operationId": "GetKeyValue", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.kv+json", + "application/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" + }, + { + "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" + ] + }, + "collectionFormat": "csv" + } + ], + "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" + }, + "Last-Modified": { + "description": "A UTC datetime that specifies the last time the resource was modified.", + "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/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/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" + }, + { + "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" + ] + }, + "collectionFormat": "csv" + } + ], + "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" + }, + "Last-Modified": { + "description": "A UTC datetime that specifies the last time the resource was modified.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed" + } + }, + "x-ms-examples": { + "CheckKeyValue": { + "$ref": "./examples/CheckKeyValue.json" + }, + "CheckKeyValue_IfMatch": { + "$ref": "./examples/CheckKeyValue_IfMatch.json" + }, + "CheckKeyValue_IfNoneMatch": { + "$ref": "./examples/CheckKeyValue_IfNoneMatch.json" + } + } + } + }, + "/labels": { + "get": { + "tags": [ + "Labels" + ], + "summary": "Gets a list of labels.", + "operationId": "GetLabels", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.labelset+json", + "application/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" + }, + { + "name": "$Select", + "in": "query", + "description": "Used to select what fields are present in the returned resource(s).", + "type": "array", + "items": { + "type": "string", + "enum": [ + "name" + ] + }, + "collectionFormat": "csv" + } + ], + "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" + }, + { + "name": "$Select", + "in": "query", + "description": "Used to select what fields are present in the returned resource(s).", + "type": "array", + "items": { + "type": "string", + "enum": [ + "name" + ] + }, + "collectionFormat": "csv" + } + ], + "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 describing why the operation failed" + } + }, + "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/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/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/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" + }, + { + "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" + ] + }, + "collectionFormat": "csv" + } + ], + "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" + } + } + }, + "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" + }, + { + "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" + ] + }, + "collectionFormat": "csv" + } + ], + "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 describing why the operation failed" + } + }, + "x-ms-examples": { + "CheckRevisions": { + "$ref": "./examples/CheckRevisions.json" + } + } + } + } + }, + "definitions": { + "Key": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + } + } + }, + "KeyValue": { + "type": "object", + "properties": { + "key": { + "type": "string" + }, + "label": { + "type": "string" + }, + "content_type": { + "type": "string" + }, + "value": { + "type": "string" + }, + "last_modified": { + "format": "date-time", + "type": "string" + }, + "tags": { + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "locked": { + "type": "boolean" + }, + "etag": { + "type": "string" + } + } + }, + "Label": { + "type": "object", + "properties": { + "name": { + "type": "string", + "readOnly": true + } + } + }, + "Error": { + "description": "Azure App Configuration error 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 + }, + "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" + } + }, + "@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" + } + }, + "x-ms-parameterized-host": { + "hostTemplate": "{endpoint}", + "useSchemePrefix": false, + "parameters": [ + { + "$ref": "#/parameters/Endpoint" + } + ] + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json new file mode 100644 index 000000000000..e4091585c90f --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json @@ -0,0 +1,17 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/CheckKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json new file mode 100644 index 000000000000..5869285ca89a --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json new file mode 100644 index 000000000000..e1f38be05186 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/CheckKeyValues.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json new file mode 100644 index 000000000000..cc1f7b790220 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json new file mode 100644 index 000000000000..9e9508f43eba --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.keyset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json new file mode 100644 index 000000000000..3195f29dd2f0 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.labelset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json new file mode 100644 index 000000000000..cc1f7b790220 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.kvset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json new file mode 100644 index 000000000000..d454edcce5d3 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/DeleteKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json new file mode 100644 index 000000000000..826341d6130f --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json @@ -0,0 +1,29 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/DeleteLock.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json new file mode 100644 index 000000000000..0a293666e22e --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/DeleteLock_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json new file mode 100644 index 000000000000..61b904beae94 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/GetKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json new file mode 100644 index 000000000000..216c6f2d47b5 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/GetKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json new file mode 100644 index 000000000000..61b904beae94 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/GetKeyValue_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json new file mode 100644 index 000000000000..576887464fb4 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/GetKeyValues.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json new file mode 100644 index 000000000000..3d0cd3ab0c96 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json @@ -0,0 +1,57 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0" + }, + "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/stable/2.0/examples/GetKeys.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json new file mode 100644 index 000000000000..ce3031487d22 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0" + }, + "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/stable/2.0/examples/GetLabels.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json new file mode 100644 index 000000000000..1e0a2445a70d --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json @@ -0,0 +1,32 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0" + }, + "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/stable/2.0/examples/GetRevisions.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json new file mode 100644 index 000000000000..f4ca1ccf46ae --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json @@ -0,0 +1,47 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0" + }, + "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/stable/2.0/examples/PutKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json new file mode 100644 index 000000000000..83b231e011f3 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/PutKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json new file mode 100644 index 000000000000..61b904beae94 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/PutLock.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json new file mode 100644 index 000000000000..20b2710f0a2d --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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/stable/2.0/examples/PutLock_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json new file mode 100644 index 000000000000..2678730e0c6b --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json @@ -0,0 +1,28 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "1.0", + "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" + } + } + } +} From ceffd7e0ec897242bc53e923aef30784eab032b9 Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Mon, 1 Aug 2022 14:01:05 -0700 Subject: [PATCH 02/11] Update to v2. --- .../stable/2.0/appconfiguration.json | 626 +++++++++++++++++- .../stable/2.0/examples/CheckKeyValue.json | 2 +- .../2.0/examples/CheckKeyValue_IfMatch.json | 2 +- .../examples/CheckKeyValue_IfNoneMatch.json | 2 +- .../stable/2.0/examples/CheckKeyValues.json | 2 +- .../stable/2.0/examples/CheckKeys.json | 2 +- .../stable/2.0/examples/CheckLabels.json | 2 +- .../stable/2.0/examples/CheckRevisions.json | 2 +- .../stable/2.0/examples/DeleteKeyValue.json | 2 +- .../2.0/examples/DeleteKeyValue_IfMatch.json | 2 +- .../stable/2.0/examples/DeleteLock.json | 2 +- .../2.0/examples/DeleteLock_IfMatch.json | 2 +- .../stable/2.0/examples/GetKeyValue.json | 2 +- .../2.0/examples/GetKeyValue_IfMatch.json | 2 +- .../2.0/examples/GetKeyValue_IfNoneMatch.json | 2 +- .../stable/2.0/examples/GetKeyValues.json | 2 +- .../stable/2.0/examples/GetKeys.json | 2 +- .../stable/2.0/examples/GetLabels.json | 2 +- .../stable/2.0/examples/GetRevisions.json | 2 +- .../stable/2.0/examples/PutKeyValue.json | 2 +- .../2.0/examples/PutKeyValue_IfMatch.json | 2 +- .../stable/2.0/examples/PutLock.json | 2 +- .../stable/2.0/examples/PutLock_IfMatch.json | 2 +- 23 files changed, 647 insertions(+), 23 deletions(-) diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json index e81498f64d44..b0a0f13d2a75 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "1.0", + "version": "2.0", "title": "Azure App Configuration" }, "schemes": [ @@ -158,6 +158,12 @@ "description": "A filter used to match labels", "type": "string" }, + { + "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" + }, { "$ref": "#/parameters/SyncTokens" }, @@ -248,6 +254,12 @@ "description": "A filter used to match labels", "type": "string" }, + { + "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" + }, { "$ref": "#/parameters/SyncTokens" }, @@ -494,6 +506,10 @@ "ETag": { "description": "An identifier representing the returned state of the resource.", "type": "string" + }, + "Last-Modified": { + "description": "A UTC datetime that specifies the last time the resource was modified.", + "type": "string" } } }, @@ -566,6 +582,10 @@ "ETag": { "description": "An identifier representing the returned state of the resource.", "type": "string" + }, + "Last-Modified": { + "description": "A UTC datetime that specifies the last time the resource was modified.", + "type": "string" } } }, @@ -696,6 +716,478 @@ } } }, + "/snapshots": { + "get": { + "tags": [ + "Snapshots" + ], + "summary": "Gets a list of key-value snapshots.", + "operationId": "GetSnapshots", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.snapshotset+json", + "application/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" + }, + { + "name": "$Select", + "in": "query", + "description": "Used to select what fields are present in the returned resource(s).", + "type": "array", + "items": { + "type": "string", + "enum": [ + "etag", + "name", + "status", + "filters", + "composition_type", + "created", + "expires", + "size", + "items_count", + "tags", + "items_link" + ] + }, + "collectionFormat": "csv" + } + ], + "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 describing why the operation failed" + } + }, + "x-ms-examples": { + "CheckKeyValues": { + "$ref": "./examples/CheckSnapshots.json" + } + } + } + }, + "/snapshot/{name}": { + "get": { + "tags": [ + "Snapshots" + ], + "summary": "Gets a single key-value snapshot.", + "operationId": "GetSnapshot", + "consumes": [], + "produces": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "$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" + }, + "Last-Modified": { + "description": "A UTC datetime that specifies the last time the resource was modified.", + "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" + } + } + }, + "put": { + "tags": [ + "Snapshots" + ], + "summary": "Creates a key-value snapshot.", + "operationId": "PutSnapshot", + "consumes": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/json" + ], + "produces": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "name": "name", + "in": "path", + "description": "The name of the key-value snapshot to create.", + "required": true, + "type": "string" + }, + { + "name": "entity", + "in": "body", + "description": "The key-value snapshot to create.", + "required": true, + "schema": { + "$ref": "#/definitions/Snapshot" + } + }, + { + "$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" + }, + "Last-Modified": { + "description": "A UTC datetime that specifies the last time the resource was modified.", + "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": { + "PutSnapshot": { + "$ref": "./examples/PutSnapshot.json" + }, + "PutSnapshot_IfNoneMatch": { + "$ref": "./examples/PutSnapshot_IfNoneMatch.json" + } + } + }, + "patch": { + "tags": [ + "Snapshots" + ], + "summary": "Updates the state of a key-value snapshot.", + "operationId": "UpdateSnapshot", + "consumes": [ + "application/json" + ], + "produces": [ + "application/vnd.microsoft.appconfig.snapshot+json", + "application/json", + "application/problem+json" + ], + "parameters": [ + { + "name": "name", + "in": "path", + "description": "The name of the key-value snapshot to delete.", + "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" + }, + "Last-Modified": { + "description": "A UTC datetime that specifies the last time the resource was modified.", + "type": "string" + }, + "Link": { + "description": "Includes links to related resources.", + "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": { + "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" + }, + "Last-Modified": { + "description": "A UTC datetime that specifies the last time the resource was modified.", + "type": "string" + }, + "Link": { + "description": "Includes links to related resources.", + "type": "string" + } + } + }, + "default": { + "description": "Error response describing why the operation failed" + } + }, + "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": [ @@ -1224,6 +1716,138 @@ } } }, + "Snapshot": { + "type": "object", + "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" + ], + "x-nullable": false, + "x-ms-enum": { + "modelAsString": true + }, + "readOnly": true + }, + "filters": { + "description": "A list of filters used to filter the key-values included in the snapshot.", + "type": "array", + "items": { + "$ref": "#/definitions/KeyValueFilter" + } + }, + "composition_type": { + "description": "The composition type describes how the key-values within the snapshot are composed. The 'all' composition type includes all key-values. The 'group_by_key' composition type ensures there are no two key-values containing the same key.", + "type": "string", + "enum": [ + "all", + "group_by_key" + ], + "x-nullable": false, + "x-ms-enum": { + "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", + "x-nullable": true, + "readOnly": true + }, + "size": { + "description": "The size in bytes of the snapshot.", + "type": "integer", + "readOnly": true + }, + "items_count": { + "description": "The amount of key-values in the snapshot.", + "type": "integer", + "readOnly": true + }, + "tags": { + "description": "The tags of the snapshot..", + "type": "object", + "additionalProperties": { + "type": "string" + } + }, + "items_link": { + "description": "A web link indicating where they key-values contained within the snapshot can be retrieved.", + "type": "string", + "readOnly": true + }, + "etag": { + "description": "A value representing the current state of the snapshot.", + "type": "string", + "readOnly": true + } + } + }, + "KeyValueFilter": { + "description": "Enables filtering of key-values.", + "type": "object", + "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": [ + "ready", + "archived" + ], + "x-nullable": false, + "x-ms-enum": { + "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": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json index e4091585c90f..ec4000099fbe 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json index 5869285ca89a..facddaeada87 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json index e1f38be05186..85dea2e96857 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message", "If-None-Match": "L10qpBghN693OaxydgTkLmrBbV5" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json index cc1f7b790220..eb7ac5569862 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json index 9e9508f43eba..44312249a99e 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json index 3195f29dd2f0..f9ed795721b7 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json index cc1f7b790220..eb7ac5569862 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json index d454edcce5d3..154769a04640 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json index 826341d6130f..f9e57808f05e 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json index 0a293666e22e..194849eef203 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json index 61b904beae94..c1ea78e5a70a 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json index 216c6f2d47b5..532442851a15 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json index 61b904beae94..c1ea78e5a70a 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json index 576887464fb4..4087935b7705 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message", "If-None-Match": "L10qpBghN693OaxydgTkLmrBbV5" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json index 3d0cd3ab0c96..c9bc30de0493 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json index ce3031487d22..9bddba2e782a 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json index 1e0a2445a70d..a1b2bc0abc1e 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json index f4ca1ccf46ae..e91827419e39 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0" + "api-version": "2.0" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json index 83b231e011f3..1b4b30511d8e 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json index 61b904beae94..c1ea78e5a70a 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json index 20b2710f0a2d..aae5d62d0eb4 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json index 2678730e0c6b..d440e3e2c437 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "1.0", + "api-version": "2.0", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, From 9392d227270c5e9571caf78717fccf98be8fc05d Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Mon, 3 Oct 2022 14:09:21 -0700 Subject: [PATCH 03/11] API review updates. * Update API version for 2.0 to use date format. 2.0 -> 2022-11-01-preview. * Remove unnecessary if-match and if-none-match to snapshot creation. --- .../2022-11-01-preview}/appconfiguration.json | 14 +------------- .../examples/CheckKeyValue.json | 2 +- .../examples/CheckKeyValue_IfMatch.json | 2 +- .../examples/CheckKeyValue_IfNoneMatch.json | 2 +- .../examples/CheckKeyValues.json | 2 +- .../2022-11-01-preview}/examples/CheckKeys.json | 2 +- .../2022-11-01-preview}/examples/CheckLabels.json | 2 +- .../examples/CheckRevisions.json | 2 +- .../examples/DeleteKeyValue.json | 2 +- .../examples/DeleteKeyValue_IfMatch.json | 2 +- .../2022-11-01-preview}/examples/DeleteLock.json | 2 +- .../examples/DeleteLock_IfMatch.json | 2 +- .../2022-11-01-preview}/examples/GetKeyValue.json | 2 +- .../examples/GetKeyValue_IfMatch.json | 2 +- .../examples/GetKeyValue_IfNoneMatch.json | 2 +- .../2022-11-01-preview}/examples/GetKeyValues.json | 2 +- .../2022-11-01-preview}/examples/GetKeys.json | 2 +- .../2022-11-01-preview}/examples/GetLabels.json | 2 +- .../2022-11-01-preview}/examples/GetRevisions.json | 2 +- .../2022-11-01-preview}/examples/PutKeyValue.json | 2 +- .../examples/PutKeyValue_IfMatch.json | 2 +- .../2022-11-01-preview}/examples/PutLock.json | 2 +- .../examples/PutLock_IfMatch.json | 2 +- 23 files changed, 23 insertions(+), 35 deletions(-) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/appconfiguration.json (99%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/CheckKeyValue.json (91%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/CheckKeyValue_IfMatch.json (92%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/CheckKeyValue_IfNoneMatch.json (92%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/CheckKeyValues.json (85%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/CheckKeys.json (85%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/CheckLabels.json (85%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/CheckRevisions.json (85%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/DeleteKeyValue.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/DeleteKeyValue_IfMatch.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/DeleteLock.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/DeleteLock_IfMatch.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/GetKeyValue.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/GetKeyValue_IfMatch.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/GetKeyValue_IfNoneMatch.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/GetKeyValues.json (97%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/GetKeys.json (91%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/GetLabels.json (93%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/GetRevisions.json (96%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/PutKeyValue.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/PutKeyValue_IfMatch.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/PutLock.json (94%) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/{stable/2.0 => preview/2022-11-01-preview}/examples/PutLock_IfMatch.json (94%) diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json similarity index 99% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index b0a0f13d2a75..ebf5fa8d9d26 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -1,7 +1,7 @@ { "swagger": "2.0", "info": { - "version": "2.0", + "version": "2022-11-01-preview", "title": "Azure App Configuration" }, "schemes": [ @@ -959,18 +959,6 @@ }, { "$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": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue.json similarity index 91% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue.json index ec4000099fbe..25a44c328044 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue_IfMatch.json similarity index 92% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue_IfMatch.json index facddaeada87..5048fb5ed209 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue_IfNoneMatch.json similarity index 92% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue_IfNoneMatch.json index 85dea2e96857..a1c52020bcb3 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValue_IfNoneMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValue_IfNoneMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message", "If-None-Match": "L10qpBghN693OaxydgTkLmrBbV5" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValues.json similarity index 85% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValues.json index eb7ac5569862..db2cc4d1603c 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeyValues.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeyValues.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeys.json similarity index 85% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeys.json index 44312249a99e..36686b4cbbbf 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckKeys.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckKeys.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckLabels.json similarity index 85% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckLabels.json index f9ed795721b7..78b8905165b8 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckLabels.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckLabels.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckRevisions.json similarity index 85% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckRevisions.json index eb7ac5569862..db2cc4d1603c 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/CheckRevisions.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckRevisions.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteKeyValue.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteKeyValue.json index 154769a04640..d8bbe80e9b0d 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteKeyValue.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteKeyValue_IfMatch.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteKeyValue_IfMatch.json index f9e57808f05e..f3cfbc0dd05e 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteKeyValue_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteKeyValue_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteLock.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteLock.json index 194849eef203..e7e7204ca6d6 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteLock.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteLock_IfMatch.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteLock_IfMatch.json index c1ea78e5a70a..2acdbdf2b6d6 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/DeleteLock_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/DeleteLock_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue.json index 532442851a15..4d19f9b68713 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue_IfMatch.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue_IfMatch.json index c1ea78e5a70a..2acdbdf2b6d6 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue_IfNoneMatch.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue_IfNoneMatch.json index 4087935b7705..b4774126c67d 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValue_IfNoneMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValue_IfNoneMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message", "If-None-Match": "L10qpBghN693OaxydgTkLmrBbV5" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValues.json similarity index 97% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValues.json index c9bc30de0493..159b48e366ec 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeyValues.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeyValues.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeys.json similarity index 91% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeys.json index 9bddba2e782a..6cbfdaf1e3de 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetKeys.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetKeys.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetLabels.json similarity index 93% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetLabels.json index a1b2bc0abc1e..695d0b34d279 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetLabels.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetLabels.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetRevisions.json similarity index 96% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetRevisions.json index e91827419e39..03b4965eb99b 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/GetRevisions.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetRevisions.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0" + "api-version": "2022-11-01-preview" }, "responses": { "200": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutKeyValue.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutKeyValue.json index 1b4b30511d8e..01caa1707f4a 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutKeyValue.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutKeyValue_IfMatch.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutKeyValue_IfMatch.json index c1ea78e5a70a..2acdbdf2b6d6 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutKeyValue_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutKeyValue_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutLock.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutLock.json index aae5d62d0eb4..97a0e33a7653 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutLock.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message" }, "responses": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutLock_IfMatch.json similarity index 94% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutLock_IfMatch.json index d440e3e2c437..0d70176157e9 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/stable/2.0/examples/PutLock_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutLock_IfMatch.json @@ -1,7 +1,7 @@ { "parameters": { "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", - "api-version": "2.0", + "api-version": "2022-11-01-preview", "key": "Message", "If-Match": "\"L10qpBghN693OaxydgTkLmrBbV5\"" }, From bef0642f63fe7c6ad07e973083c8613bfb101c71 Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Tue, 4 Oct 2022 13:39:15 -0700 Subject: [PATCH 04/11] * Fixed prettier, oav, autorest validation errors. * Added missing examples. * Added readme tag for new api version. --- custom-words.txt | 1 + .../2022-11-01-preview/appconfiguration.json | 115 ++++++++++++++---- .../examples/CheckSnapshot.json | 18 +++ .../examples/CheckSnapshot_IfMatch.json | 19 +++ .../examples/CheckSnapshot_IfNoneMatch.json | 19 +++ .../examples/CheckSnapshots.json | 13 ++ .../examples/GetSnapshot.json | 37 ++++++ .../examples/GetSnapshot_IfMatch.json | 38 ++++++ .../examples/GetSnapshot_IfNoneMatch.json | 38 ++++++ .../examples/GetSnapshots.json | 36 ++++++ .../examples/PutSnapshot.json | 30 +++++ .../examples/UpdateSnapshot.json | 33 +++++ .../examples/UpdateSnapshot_IfMatch.json | 34 ++++++ .../appconfiguration/data-plane/readme.md | 21 ++++ 14 files changed, 427 insertions(+), 25 deletions(-) create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshots.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutSnapshot.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json diff --git a/custom-words.txt b/custom-words.txt index 7e81cade4fe3..56bcfd3b0893 100644 --- a/custom-words.txt +++ b/custom-words.txt @@ -1972,6 +1972,7 @@ smallmoney SMBIOS snapshotrun snapshotsdr +snapshotset snaptshot SNAT SNMP diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index ebf5fa8d9d26..bd878421a158 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -158,12 +158,6 @@ "description": "A filter used to match labels", "type": "string" }, - { - "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" - }, { "$ref": "#/parameters/SyncTokens" }, @@ -189,6 +183,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "KeyValueFields", + "modelAsString": true + }, "enum": [ "key", "label", @@ -201,6 +199,12 @@ ] }, "collectionFormat": "csv" + }, + { + "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" } ], "responses": { @@ -254,12 +258,6 @@ "description": "A filter used to match labels", "type": "string" }, - { - "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" - }, { "$ref": "#/parameters/SyncTokens" }, @@ -285,6 +283,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "KeyValueFields", + "modelAsString": true + }, "enum": [ "key", "label", @@ -297,6 +299,12 @@ ] }, "collectionFormat": "csv" + }, + { + "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" } ], "responses": { @@ -378,6 +386,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "KeyValueFields", + "modelAsString": true + }, "enum": [ "key", "label", @@ -667,6 +679,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "KeyValueFields", + "modelAsString": true + }, "enum": [ "key", "label", @@ -755,6 +771,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "SnapshotFields", + "modelAsString": true + }, "enum": [ "etag", "name", @@ -839,7 +859,7 @@ } }, "x-ms-examples": { - "CheckKeyValues": { + "CheckSnapshots": { "$ref": "./examples/CheckSnapshots.json" } } @@ -865,6 +885,13 @@ { "$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", @@ -876,6 +903,33 @@ "in": "header", "description": "Used to perform an operation only if the targeted resource's etag does not match the value provided.", "type": "string" + }, + { + "name": "$Select", + "in": "query", + "description": "Used to select what fields are present in the returned resource(s).", + "type": "array", + "items": { + "type": "string", + "x-ms-enum": { + "name": "SnapshotFields", + "modelAsString": true + }, + "enum": [ + "etag", + "name", + "status", + "filters", + "composition_type", + "created", + "expires", + "size", + "items_count", + "tags", + "items_link" + ] + }, + "collectionFormat": "csv" } ], "responses": { @@ -996,9 +1050,6 @@ "x-ms-examples": { "PutSnapshot": { "$ref": "./examples/PutSnapshot.json" - }, - "PutSnapshot_IfNoneMatch": { - "$ref": "./examples/PutSnapshot_IfNoneMatch.json" } } }, @@ -1077,15 +1128,6 @@ } } }, - "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": { @@ -1221,6 +1263,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "LabelFields", + "modelAsString": true + }, "enum": [ "name" ] @@ -1298,6 +1344,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "LabelFields", + "modelAsString": true + }, "enum": [ "name" ] @@ -1535,6 +1585,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "KeyValueFields", + "modelAsString": true + }, "enum": [ "key", "label", @@ -1625,6 +1679,10 @@ "type": "array", "items": { "type": "string", + "x-ms-enum": { + "name": "KeyValueFields", + "modelAsString": true + }, "enum": [ "key", "label", @@ -1722,6 +1780,7 @@ ], "x-nullable": false, "x-ms-enum": { + "name": "SnapshotStatus", "modelAsString": true }, "readOnly": true @@ -1742,6 +1801,7 @@ ], "x-nullable": false, "x-ms-enum": { + "name": "CompositionType", "modelAsString": true } }, @@ -1761,11 +1821,13 @@ "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": { @@ -1809,11 +1871,13 @@ "description": "The desired status of the snapshot.", "type": "string", "enum": [ + "provisioning", "ready", "archived" ], "x-nullable": false, "x-ms-enum": { + "name": "SnapshotStatus", "modelAsString": true } } @@ -1847,6 +1911,7 @@ }, "Error": { "description": "Azure App Configuration error object.", + "type": "object", "properties": { "type": { "description": "The type of the error.", diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot.json new file mode 100644 index 000000000000..2662fe5415d7 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot.json @@ -0,0 +1,18 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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/2022-11-01-preview/examples/CheckSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot_IfMatch.json new file mode 100644 index 000000000000..c48e39885d19 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot_IfMatch.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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/2022-11-01-preview/examples/CheckSnapshot_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot_IfNoneMatch.json new file mode 100644 index 000000000000..a29c2e057749 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshot_IfNoneMatch.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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/2022-11-01-preview/examples/CheckSnapshots.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshots.json new file mode 100644 index 000000000000..4abc89e3d930 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CheckSnapshots.json @@ -0,0 +1,13 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-01-preview" + }, + "responses": { + "200": { + "headers": { + "Content-Type": "application/vnd.microsoft.appconfig.snapshotset+json" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json new file mode 100644 index 000000000000..a3ae641feb1d --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json @@ -0,0 +1,37 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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, + "tags": { + "release": "{link/id}" + }, + "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json new file mode 100644 index 000000000000..0effcc313b56 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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, + "tags": { + "release": "{link/id}" + }, + "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json new file mode 100644 index 000000000000..5fd28eb64a75 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json @@ -0,0 +1,38 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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, + "tags": { + "release": "{link/id}" + }, + "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json new file mode 100644 index 000000000000..83088b0cb7aa --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json @@ -0,0 +1,36 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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, + "tags": { + "release": "{link/id}" + }, + "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } + ] + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutSnapshot.json new file mode 100644 index 000000000000..2ae5b9f21a10 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutSnapshot.json @@ -0,0 +1,30 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-01-preview", + "name": "Prod-2022-08-01", + "entity": {} + }, + "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": "provisioning", + "filters": [], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "size": 0, + "items_count": 0, + "tags": {}, + "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json new file mode 100644 index 000000000000..6f8d039b38e9 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json @@ -0,0 +1,33 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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": [], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "expires": "2022-09-01T22:19:40+00:00", + "size": 10000, + "items_count": 70, + "tags": {}, + "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json new file mode 100644 index 000000000000..786f62412c50 --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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": [], + "composition_type": "all", + "created": "2022-08-01T22:19:40+00:00", + "expires": "2022-09-01T22:19:40+00:00", + "size": 10000, + "items_count": 70, + "tags": {}, + "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/readme.md b/specification/appconfiguration/data-plane/readme.md index 1bed612c679d..f7c92cd715ba 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-2022-11-01-preview + +These settings apply only when `--tag=package-2022-11-01-preview` is specified on the command line. + +``` yaml $(tag) == 'package-2022-11-01-preview' +input-file: +- Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +``` + ### Tag: package-2019-07 These settings apply only when `--tag=package-1-0` is specified on the command line. @@ -67,6 +76,18 @@ directive: from: appconfiguration.json where: $.definitions.KeyValue.properties.last_modified reason: Existing property names. The service uses snake casing for json properties. + - suppress: DefinitionsPropertiesNamesCamelCase + from: appconfiguration.json + where: $.definitions.Snapshot.properties.composition_type + reason: Existing property names. The service uses snake casing for json properties. + - suppress: DefinitionsPropertiesNamesCamelCase + from: appconfiguration.json + where: $.definitions.Snapshot.properties.items_count + reason: Existing property names. The service uses snake casing for json properties. + - suppress: DefinitionsPropertiesNamesCamelCase + from: appconfiguration.json + where: $.definitions.Snapshot.properties.items_link + reason: Existing property names. The service uses snake casing for json properties. - suppress: XmsParameterLocation from: appconfiguration.json where: $.parameters.SyncTokens From 582284b5656b66355599fd9eb5dca6866521cfec Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Tue, 25 Oct 2022 15:18:48 -0700 Subject: [PATCH 05/11] Addressed feedback. * Add error schema. * Creation should return 201 response. * Remove application/json from consumes. --- .../2022-11-01-preview/appconfiguration.json | 106 ++++++++---------- .../{PutSnapshot.json => CreateSnapshot.json} | 2 +- 2 files changed, 50 insertions(+), 58 deletions(-) rename specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/{PutSnapshot.json => CreateSnapshot.json} (98%) diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index bd878421a158..8f8afd0992a4 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -18,7 +18,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.keyset+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -122,7 +121,10 @@ } }, "default": { - "description": "Error response describing why the operation failed" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } }, "x-ms-examples": { @@ -142,7 +144,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.kvset+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -318,7 +319,10 @@ } }, "default": { - "description": "Error response describing why the operation failed" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } }, "x-ms-examples": { @@ -338,7 +342,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.kv+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -418,10 +421,6 @@ "ETag": { "description": "An identifier representing the returned state of the resource.", "type": "string" - }, - "Last-Modified": { - "description": "A UTC datetime that specifies the last time the resource was modified.", - "type": "string" } } }, @@ -460,7 +459,6 @@ ], "produces": [ "application/vnd.microsoft.appconfig.kv+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -518,10 +516,6 @@ "ETag": { "description": "An identifier representing the returned state of the resource.", "type": "string" - }, - "Last-Modified": { - "description": "A UTC datetime that specifies the last time the resource was modified.", - "type": "string" } } }, @@ -550,7 +544,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.kv+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -594,10 +587,6 @@ "ETag": { "description": "An identifier representing the returned state of the resource.", "type": "string" - }, - "Last-Modified": { - "description": "A UTC datetime that specifies the last time the resource was modified.", - "type": "string" } } }, @@ -708,15 +697,14 @@ "ETag": { "description": "An identifier representing the returned state of the resource.", "type": "string" - }, - "Last-Modified": { - "description": "A UTC datetime that specifies the last time the resource was modified.", - "type": "string" } } }, "default": { - "description": "Error response describing why the operation failed" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } }, "x-ms-examples": { @@ -742,7 +730,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.snapshotset+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -790,6 +777,21 @@ ] }, "collectionFormat": "csv" + }, + { + "name": "Status", + "in": "query", + "description": "Used to filter returned snapshots by their status property.", + "type": "string", + "enum": [ + "provisioning", + "ready", + "archived" + ], + "x-ms-enum": { + "name": "SnapshotStatus", + "modelAsString": true + } } ], "responses": { @@ -855,7 +857,10 @@ } }, "default": { - "description": "Error response describing why the operation failed" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } }, "x-ms-examples": { @@ -875,7 +880,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.snapshot+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -947,10 +951,6 @@ "description": "An identifier representing the returned state of the resource.", "type": "string" }, - "Last-Modified": { - "description": "A UTC datetime that specifies the last time the resource was modified.", - "type": "string" - }, "Link": { "description": "Includes links to related resources.", "type": "string" @@ -981,14 +981,13 @@ "Snapshots" ], "summary": "Creates a key-value snapshot.", - "operationId": "PutSnapshot", + "operationId": "CreateSnapshot", "consumes": [ "application/vnd.microsoft.appconfig.snapshot+json", "application/json" ], "produces": [ "application/vnd.microsoft.appconfig.snapshot+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -997,7 +996,8 @@ "in": "path", "description": "The name of the key-value snapshot to create.", "required": true, - "type": "string" + "type": "string", + "maxLength": 256 }, { "name": "entity", @@ -1016,7 +1016,7 @@ } ], "responses": { - "200": { + "201": { "description": "Success", "schema": { "$ref": "#/definitions/Snapshot" @@ -1030,10 +1030,6 @@ "description": "An identifier representing the returned state of the resource.", "type": "string" }, - "Last-Modified": { - "description": "A UTC datetime that specifies the last time the resource was modified.", - "type": "string" - }, "Link": { "description": "Includes links to related resources.", "type": "string" @@ -1048,8 +1044,8 @@ } }, "x-ms-examples": { - "PutSnapshot": { - "$ref": "./examples/PutSnapshot.json" + "CreateSnapshot": { + "$ref": "./examples/CreateSnapshot.json" } } }, @@ -1064,7 +1060,6 @@ ], "produces": [ "application/vnd.microsoft.appconfig.snapshot+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -1118,10 +1113,6 @@ "description": "An identifier representing the returned state of the resource.", "type": "string" }, - "Last-Modified": { - "description": "A UTC datetime that specifies the last time the resource was modified.", - "type": "string" - }, "Link": { "description": "Includes links to related resources.", "type": "string" @@ -1191,10 +1182,6 @@ "description": "An identifier representing the returned state of the resource.", "type": "string" }, - "Last-Modified": { - "description": "A UTC datetime that specifies the last time the resource was modified.", - "type": "string" - }, "Link": { "description": "Includes links to related resources.", "type": "string" @@ -1202,7 +1189,10 @@ } }, "default": { - "description": "Error response describing why the operation failed" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } }, "x-ms-examples": { @@ -1228,7 +1218,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.labelset+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -1366,7 +1355,10 @@ } }, "default": { - "description": "Error response describing why the operation failed" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } }, "x-ms-examples": { @@ -1386,7 +1378,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.kv+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -1464,7 +1455,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.kv+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -1544,7 +1534,6 @@ "consumes": [], "produces": [ "application/vnd.microsoft.appconfig.kvset+json", - "application/json", "application/problem+json" ], "parameters": [ @@ -1708,7 +1697,10 @@ } }, "default": { - "description": "Error response describing why the operation failed" + "description": "Error response describing why the operation failed", + "schema": { + "$ref": "#/definitions/Error" + } } }, "x-ms-examples": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json similarity index 98% rename from specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutSnapshot.json rename to specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json index 2ae5b9f21a10..33719111c6b4 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/PutSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json @@ -6,7 +6,7 @@ "entity": {} }, "responses": { - "200": { + "201": { "headers": { "Content-Type": "application/vnd.microsoft.appconfig.snapshot+json", "ETag": "W/\"4f6dd610dd5e4deebc7fbaef685fb903\"", From 2eee8bbded8ed10590c9cc326c13724838293c4a Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Tue, 25 Oct 2022 15:45:58 -0700 Subject: [PATCH 06/11] Add descriptions. Remove breaking changes caused by retroactively adding x-ms-enum. --- .../2022-11-01-preview/appconfiguration.json | 64 ++++++------------- 1 file changed, 21 insertions(+), 43 deletions(-) diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index 8f8afd0992a4..58ab2a9d44a2 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -184,10 +184,6 @@ "type": "array", "items": { "type": "string", - "x-ms-enum": { - "name": "KeyValueFields", - "modelAsString": true - }, "enum": [ "key", "label", @@ -284,10 +280,6 @@ "type": "array", "items": { "type": "string", - "x-ms-enum": { - "name": "KeyValueFields", - "modelAsString": true - }, "enum": [ "key", "label", @@ -389,10 +381,6 @@ "type": "array", "items": { "type": "string", - "x-ms-enum": { - "name": "KeyValueFields", - "modelAsString": true - }, "enum": [ "key", "label", @@ -668,10 +656,6 @@ "type": "array", "items": { "type": "string", - "x-ms-enum": { - "name": "KeyValueFields", - "modelAsString": true - }, "enum": [ "key", "label", @@ -1252,10 +1236,6 @@ "type": "array", "items": { "type": "string", - "x-ms-enum": { - "name": "LabelFields", - "modelAsString": true - }, "enum": [ "name" ] @@ -1333,10 +1313,6 @@ "type": "array", "items": { "type": "string", - "x-ms-enum": { - "name": "LabelFields", - "modelAsString": true - }, "enum": [ "name" ] @@ -1574,10 +1550,6 @@ "type": "array", "items": { "type": "string", - "x-ms-enum": { - "name": "KeyValueFields", - "modelAsString": true - }, "enum": [ "key", "label", @@ -1668,10 +1640,6 @@ "type": "array", "items": { "type": "string", - "x-ms-enum": { - "name": "KeyValueFields", - "modelAsString": true - }, "enum": [ "key", "label", @@ -1717,7 +1685,8 @@ "properties": { "name": { "type": "string", - "readOnly": true + "readOnly": true, + "description": "The name of the key." } } }, @@ -1725,32 +1694,40 @@ "type": "object", "properties": { "key": { - "type": "string" + "type": "string", + "description": "The key of the key-value." }, "label": { - "type": "string" + "type": "string", + "description": "The label the key-value belongs to." }, "content_type": { - "type": "string" + "type": "string", + "description": "The content type of the value stored within the key-value." }, "value": { - "type": "string" + "type": "string", + "description": "The value of the key-value." }, "last_modified": { "format": "date-time", - "type": "string" + "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" + "type": "boolean", + "description": "Indicates whether the key-value is locked." }, "etag": { - "type": "string" + "type": "string", + "description": "A value representing the current state of the resource." } } }, @@ -1823,7 +1800,7 @@ "readOnly": true }, "tags": { - "description": "The tags of the snapshot..", + "description": "The tags of the snapshot.", "type": "object", "additionalProperties": { "type": "string" @@ -1897,7 +1874,8 @@ "properties": { "name": { "type": "string", - "readOnly": true + "readOnly": true, + "description": "The name of the label." } } }, From 8d1470fb68256aa9c664e48bdccbb23d7c7cbaa2 Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Tue, 8 Nov 2022 10:51:35 -0800 Subject: [PATCH 07/11] * Remove default schema for head requests. They have no response body. * Add requirements on snapshot filters. --- .../2022-11-01-preview/appconfiguration.json | 43 +++++++------------ .../examples/CreateSnapshot.json | 16 ++++++- .../examples/UpdateSnapshot.json | 7 ++- .../examples/UpdateSnapshot_IfMatch.json | 7 ++- 4 files changed, 41 insertions(+), 32 deletions(-) diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index 58ab2a9d44a2..21a563ea7a73 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -121,10 +121,7 @@ } }, "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } + "description": "Error response." } }, "x-ms-examples": { @@ -311,10 +308,7 @@ } }, "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } + "description": "Error response." } }, "x-ms-examples": { @@ -685,10 +679,7 @@ } }, "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } + "description": "Error response." } }, "x-ms-examples": { @@ -841,10 +832,7 @@ } }, "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } + "description": "Error response." } }, "x-ms-examples": { @@ -1173,10 +1161,7 @@ } }, "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } + "description": "Error response." } }, "x-ms-examples": { @@ -1331,10 +1316,7 @@ } }, "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } + "description": "Error response." } }, "x-ms-examples": { @@ -1665,10 +1647,7 @@ } }, "default": { - "description": "Error response describing why the operation failed", - "schema": { - "$ref": "#/definitions/Error" - } + "description": "Error response." } }, "x-ms-examples": { @@ -1733,6 +1712,9 @@ }, "Snapshot": { "type": "object", + "required": [ + "filters" + ], "properties": { "name": { "description": "The name of the snapshot.", @@ -1757,6 +1739,8 @@ "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" } @@ -1821,6 +1805,9 @@ "KeyValueFilter": { "description": "Enables filtering of key-values.", "type": "object", + "required": [ + "key" + ], "properties": { "key": { "description": "Filters key-values by their key field.", diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json index 33719111c6b4..e6de7d70fe05 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json @@ -3,7 +3,14 @@ "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", "api-version": "2022-11-01-preview", "name": "Prod-2022-08-01", - "entity": {} + "entity": { + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ] + } }, "responses": { "201": { @@ -17,7 +24,12 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "provisioning", - "filters": [], + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], "composition_type": "all", "created": "2022-08-01T22:19:40+00:00", "size": 0, diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json index 6f8d039b38e9..36e81350ae77 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json @@ -19,7 +19,12 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "archived", - "filters": [], + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], "composition_type": "all", "created": "2022-08-01T22:19:40+00:00", "expires": "2022-09-01T22:19:40+00:00", diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json index 786f62412c50..4a3cbb8dd462 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json @@ -20,7 +20,12 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "archived", - "filters": [], + "filters": [ + { + "key": "app1/*", + "label": "Production" + } + ], "composition_type": "all", "created": "2022-08-01T22:19:40+00:00", "expires": "2022-09-01T22:19:40+00:00", From 001f2b31e56bd992612dffc0e5de9d458b3ea500 Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Tue, 22 Nov 2022 14:37:21 -0800 Subject: [PATCH 08/11] Add retention_period, status_code, and failed state.. --- .../2022-11-01-preview/appconfiguration.json | 24 +++++++++-- .../examples/CreateSnapshot.json | 5 ++- .../examples/GetSnapshot.json | 2 + .../examples/GetSnapshot_Failed.json | 40 +++++++++++++++++++ .../examples/GetSnapshot_IfMatch.json | 2 + .../examples/GetSnapshot_IfNoneMatch.json | 2 + .../examples/GetSnapshots.json | 2 + .../examples/UpdateSnapshot.json | 2 + .../examples/UpdateSnapshot_IfMatch.json | 2 + 9 files changed, 77 insertions(+), 4 deletions(-) create mode 100644 specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_Failed.json diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index 21a563ea7a73..b03dd190fc5b 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -761,7 +761,8 @@ "enum": [ "provisioning", "ready", - "archived" + "archived", + "failed" ], "x-ms-enum": { "name": "SnapshotStatus", @@ -945,6 +946,9 @@ }, "GetSnapshot_IfNoneMatch": { "$ref": "./examples/GetSnapshot_IfNoneMatch.json" + }, + "GetSnapshot_Failed": { + "$ref": "./examples/GetSnapshot_Failed.json" } } }, @@ -1727,7 +1731,8 @@ "enum": [ "provisioning", "ready", - "archived" + "archived", + "failed" ], "x-nullable": false, "x-ms-enum": { @@ -1736,6 +1741,11 @@ }, "readOnly": true }, + "status_code": { + "description": "Provides additional information about the status of the snapshot.", + "type": "integer", + "readOnly": true + }, "filters": { "description": "A list of filters used to filter the key-values included in the snapshot.", "type": "array", @@ -1771,6 +1781,13 @@ "x-nullable": true, "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": 0, + "maximum": 7776000, + "x-nullable": true + }, "size": { "description": "The size in bytes of the snapshot.", "type": "integer", @@ -1829,7 +1846,8 @@ "enum": [ "provisioning", "ready", - "archived" + "archived", + "failed" ], "x-nullable": false, "x-ms-enum": { diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json index e6de7d70fe05..dd5939bde931 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json @@ -9,7 +9,8 @@ "key": "app1/*", "label": "Production" } - ] + ], + "retention_period": 3600 } }, "responses": { @@ -24,6 +25,7 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "provisioning", + "status_code": 202, "filters": [ { "key": "app1/*", @@ -34,6 +36,7 @@ "created": "2022-08-01T22:19:40+00:00", "size": 0, "items_count": 0, + "retention_period": 3600, "tags": {}, "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json index a3ae641feb1d..25018afa506d 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json @@ -17,6 +17,7 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "ready", + "status_code": 200, "filters": [ { "key": "app1/*", @@ -27,6 +28,7 @@ "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/2022-11-01-preview/examples/GetSnapshot_Failed.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_Failed.json new file mode 100644 index 000000000000..7d1951d9713a --- /dev/null +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_Failed.json @@ -0,0 +1,40 @@ +{ + "parameters": { + "endpoint": "https://{exampleAppConfigurationName}.azconfig.io", + "api-version": "2022-11-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", + "status_code": 429, + "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}" + }, + "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } + } + } +} diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json index 0effcc313b56..ae10e1e5f104 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json @@ -18,6 +18,7 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "ready", + "status_code": 200, "filters": [ { "key": "app1/*", @@ -28,6 +29,7 @@ "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/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json index 5fd28eb64a75..6ed93948efd8 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json @@ -18,6 +18,7 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "ready", + "status_code": 200, "filters": [ { "key": "app1/*", @@ -28,6 +29,7 @@ "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/2022-11-01-preview/examples/GetSnapshots.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json index 83088b0cb7aa..df76f8c6147f 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json @@ -14,6 +14,7 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "ready", + "status_code": 200, "filters": [ { "key": "app1/*", @@ -24,6 +25,7 @@ "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/2022-11-01-preview/examples/UpdateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json index 36e81350ae77..8cf96d92767c 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json @@ -19,6 +19,7 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "archived", + "status_code": 200, "filters": [ { "key": "app1/*", @@ -30,6 +31,7 @@ "expires": "2022-09-01T22:19:40+00:00", "size": 10000, "items_count": 70, + "retention_period": 2592000, "tags": {}, "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json index 4a3cbb8dd462..3438ee8b9ce1 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json @@ -20,6 +20,7 @@ "etag": "4f6dd610dd5e4deebc7fbaef685fb903", "name": "Prod-2022-08-01", "status": "archived", + "status_code": 200, "filters": [ { "key": "app1/*", @@ -31,6 +32,7 @@ "expires": "2022-09-01T22:19:40+00:00", "size": 10000, "items_count": 70, + "retention_period": 2592000, "tags": {}, "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" } From 6203f4a87e66d20bd2fcbea7cb43306aead5fe0f Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Thu, 12 Jan 2023 14:12:04 -0800 Subject: [PATCH 09/11] Fix snapshots path (snapshot/ -> snapshots/). Remove extraneous items_link property from snapshot. --- .../2022-11-01-preview/appconfiguration.json | 13 +++---------- .../2022-11-01-preview/examples/CreateSnapshot.json | 3 +-- .../2022-11-01-preview/examples/GetSnapshot.json | 3 +-- .../examples/GetSnapshot_Failed.json | 3 +-- .../examples/GetSnapshot_IfMatch.json | 3 +-- .../examples/GetSnapshot_IfNoneMatch.json | 3 +-- .../2022-11-01-preview/examples/GetSnapshots.json | 3 +-- .../2022-11-01-preview/examples/UpdateSnapshot.json | 3 +-- .../examples/UpdateSnapshot_IfMatch.json | 3 +-- 9 files changed, 11 insertions(+), 26 deletions(-) diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index b03dd190fc5b..2bbebd00b24c 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -747,8 +747,7 @@ "expires", "size", "items_count", - "tags", - "items_link" + "tags" ] }, "collectionFormat": "csv" @@ -843,7 +842,7 @@ } } }, - "/snapshot/{name}": { + "/snapshots/{name}": { "get": { "tags": [ "Snapshots" @@ -902,8 +901,7 @@ "expires", "size", "items_count", - "tags", - "items_link" + "tags" ] }, "collectionFormat": "csv" @@ -1807,11 +1805,6 @@ "type": "string" } }, - "items_link": { - "description": "A web link indicating where they key-values contained within the snapshot can be retrieved.", - "type": "string", - "readOnly": true - }, "etag": { "description": "A value representing the current state of the snapshot.", "type": "string", diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json index dd5939bde931..db0476dadb24 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/CreateSnapshot.json @@ -37,8 +37,7 @@ "size": 0, "items_count": 0, "retention_period": 3600, - "tags": {}, - "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + "tags": {} } } } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json index 25018afa506d..eb9055ab7e62 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot.json @@ -31,8 +31,7 @@ "retention_period": 2592000, "tags": { "release": "{link/id}" - }, - "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } } } } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_Failed.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_Failed.json index 7d1951d9713a..38fd6683c83b 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_Failed.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_Failed.json @@ -32,8 +32,7 @@ "retention_period": 2592000, "tags": { "release": "{link/id}" - }, - "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } } } } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json index ae10e1e5f104..0107f26d9f16 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfMatch.json @@ -32,8 +32,7 @@ "retention_period": 2592000, "tags": { "release": "{link/id}" - }, - "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } } } } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json index 6ed93948efd8..c4b8b58563ae 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshot_IfNoneMatch.json @@ -32,8 +32,7 @@ "retention_period": 2592000, "tags": { "release": "{link/id}" - }, - "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } } } } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json index df76f8c6147f..d251c1626931 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/GetSnapshots.json @@ -28,8 +28,7 @@ "retention_period": 2592000, "tags": { "release": "{link/id}" - }, - "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + } } ] } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json index 8cf96d92767c..340ad3939611 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot.json @@ -32,8 +32,7 @@ "size": 10000, "items_count": 70, "retention_period": 2592000, - "tags": {}, - "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + "tags": {} } } } diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json index 3438ee8b9ce1..979ace349cf8 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/examples/UpdateSnapshot_IfMatch.json @@ -33,8 +33,7 @@ "size": 10000, "items_count": 70, "retention_period": 2592000, - "tags": {}, - "items_link": "/kv?snapshot=Prod-2022-08-01?api-version={api-ver}" + "tags": {} } } } From ee4abd2f2c5b0b55b438b3a76da5b08f1f59af34 Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Thu, 12 Jan 2023 14:20:58 -0800 Subject: [PATCH 10/11] Feedback. --- .../preview/2022-11-01-preview/appconfiguration.json | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index 2bbebd00b24c..c323e73f6583 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -1740,7 +1740,7 @@ "readOnly": true }, "status_code": { - "description": "Provides additional information about the status of the snapshot.", + "description": "Provides additional information about the status of the snapshot. The status code values are modeled after HTTP status codes.", "type": "integer", "readOnly": true }, @@ -1783,8 +1783,7 @@ "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": 0, - "maximum": 7776000, - "x-nullable": true + "maximum": 7776000 }, "size": { "description": "The size in bytes of the snapshot.", From 058ac3c2e15591031a0ae51ef5b2dac5eac26dac Mon Sep 17 00:00:00 2001 From: Jimmy Campbell Date: Thu, 12 Jan 2023 14:39:28 -0800 Subject: [PATCH 11/11] Respect enum changes introduced in prior API version: https://github.com/Azure/azure-rest-api-specs/issues/21216 fix number format lint diff errors. --- .../2022-11-01-preview/appconfiguration.json | 266 ++++++------------ 1 file changed, 86 insertions(+), 180 deletions(-) diff --git a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json index c323e73f6583..111b4058b92e 100644 --- a/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json +++ b/specification/appconfiguration/data-plane/Microsoft.AppConfiguration/preview/2022-11-01-preview/appconfiguration.json @@ -175,24 +175,7 @@ "type": "string" }, { - "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" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/KeyValueFields" }, { "name": "snapshot", @@ -271,24 +254,7 @@ "type": "string" }, { - "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" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/KeyValueFields" }, { "name": "snapshot", @@ -369,24 +335,7 @@ "type": "string" }, { - "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" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/KeyValueFields" } ], "responses": { @@ -644,24 +593,7 @@ "type": "string" }, { - "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" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/KeyValueFields" } ], "responses": { @@ -727,30 +659,7 @@ "type": "string" }, { - "name": "$Select", - "in": "query", - "description": "Used to select what fields are present in the returned resource(s).", - "type": "array", - "items": { - "type": "string", - "x-ms-enum": { - "name": "SnapshotFields", - "modelAsString": true - }, - "enum": [ - "etag", - "name", - "status", - "filters", - "composition_type", - "created", - "expires", - "size", - "items_count", - "tags" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/SnapshotFields" }, { "name": "Status", @@ -881,30 +790,7 @@ "type": "string" }, { - "name": "$Select", - "in": "query", - "description": "Used to select what fields are present in the returned resource(s).", - "type": "array", - "items": { - "type": "string", - "x-ms-enum": { - "name": "SnapshotFields", - "modelAsString": true - }, - "enum": [ - "etag", - "name", - "status", - "filters", - "composition_type", - "created", - "expires", - "size", - "items_count", - "tags" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/SnapshotFields" } ], "responses": { @@ -1217,17 +1103,7 @@ "type": "string" }, { - "name": "$Select", - "in": "query", - "description": "Used to select what fields are present in the returned resource(s).", - "type": "array", - "items": { - "type": "string", - "enum": [ - "name" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/LabelFields" } ], "responses": { @@ -1294,17 +1170,7 @@ "type": "string" }, { - "name": "$Select", - "in": "query", - "description": "Used to select what fields are present in the returned resource(s).", - "type": "array", - "items": { - "type": "string", - "enum": [ - "name" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/LabelFields" } ], "responses": { @@ -1528,24 +1394,7 @@ "type": "string" }, { - "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" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/KeyValueFields" } ], "responses": { @@ -1618,24 +1467,7 @@ "type": "string" }, { - "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" - ] - }, - "collectionFormat": "csv" + "$ref": "#/parameters/KeyValueFields" } ], "responses": { @@ -1742,7 +1574,8 @@ "status_code": { "description": "Provides additional information about the status of the snapshot. The status code values are modeled after HTTP status codes.", "type": "integer", - "readOnly": true + "readOnly": true, + "format": "int32" }, "filters": { "description": "A list of filters used to filter the key-values included in the snapshot.", @@ -1783,7 +1616,8 @@ "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": 0, - "maximum": 7776000 + "maximum": 7776000, + "format": "int64" }, "size": { "description": "The size in bytes of the snapshot.", @@ -1977,6 +1811,78 @@ "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", + "status_code", + "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" } }, "x-ms-parameterized-host": {