From dedd1a1756b865fab325cd7e4f6745865f15c8df Mon Sep 17 00:00:00 2001 From: Jiacheng Liu Date: Thu, 1 Apr 2021 10:58:22 -0700 Subject: [PATCH 1/3] Add missing default error response --- .../preview/2021-04-01-preview/secrets.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json index f2072d8a3c01..131849fb280b 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json @@ -271,6 +271,12 @@ "schema": { "$ref": "#/definitions/SecretListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "common.json#/definitions/CloudError" + } } }, "x-ms-examples": { From 61e765e398facf7a6bc0e68c74345943a44a0d86 Mon Sep 17 00:00:00 2001 From: Jiacheng Liu Date: Thu, 1 Apr 2021 11:26:58 -0700 Subject: [PATCH 2/3] Update the integer format to fix Lint error --- .../preview/2021-04-01-preview/secrets.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json index 131849fb280b..417dbbda91aa 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/secrets.json @@ -306,24 +306,24 @@ "nbf": { "x-ms-client-name": "NotBefore", "type": "integer", - "format": "unixtime", + "format": "int64", "description": "Not before date in seconds since 1970-01-01T00:00:00Z." }, "exp": { "x-ms-client-name": "Expires", "type": "integer", - "format": "unixtime", + "format": "int64", "description": "Expiry date in seconds since 1970-01-01T00:00:00Z." }, "created": { "type": "integer", - "format": "unixtime", + "format": "int64", "readOnly": true, "description": "Creation time in seconds since 1970-01-01T00:00:00Z." }, "updated": { "type": "integer", - "format": "unixtime", + "format": "int64", "readOnly": true, "description": "Last updated time in seconds since 1970-01-01T00:00:00Z." } From 0872f5a23731689cf31594fee0a4d72228f7fbc1 Mon Sep 17 00:00:00 2001 From: Jiacheng Liu Date: Mon, 5 Apr 2021 07:02:37 -0700 Subject: [PATCH 3/3] Add securityDefinitions --- .../preview/2021-04-01-preview/common.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/common.json b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/common.json index 49b1026fce06..62e88433aed2 100644 --- a/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/common.json +++ b/specification/keyvault/resource-manager/Microsoft.KeyVault/preview/2021-04-01-preview/common.json @@ -76,5 +76,16 @@ "modelAsString": true } } + }, + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } } }