From db881033ac05775a68e36a1e098baef3e851732c Mon Sep 17 00:00:00 2001 From: ankurkhemani Date: Tue, 20 Aug 2019 17:16:30 -0700 Subject: [PATCH 1/3] update retention policy schema --- .../stable/2019-05-01/containerregistry.json | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json index 6224c550f040..21b46cf34d88 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json @@ -1264,7 +1264,7 @@ } }, "OperationServiceSpecificationDefinition": { - "description": "The definition of Azure Monitoring metrics list.", + "description": "The definition of Azure Monitoring list.", "type": "object", "properties": { "metricSpecifications": { @@ -1570,6 +1570,7 @@ "properties": { "status": { "description": "The value that indicates whether the policy is enabled or not.", + "default": "disabled", "enum": [ "enabled", "disabled" @@ -1588,6 +1589,7 @@ "properties": { "type": { "description": "The type of trust policy.", + "default": "Notary", "enum": [ "Notary" ], @@ -1599,6 +1601,7 @@ }, "status": { "description": "The value that indicates whether the policy is enabled or not.", + "default": "disabled", "enum": [ "enabled", "disabled" @@ -1617,17 +1620,18 @@ "properties": { "days": { "format": "int32", - "description": "The number of days to retain manifest before it expires.", + "description": "The number of days to retain an untagged manifest after which it gets purged.", + "default": 7.0, "type": "integer" }, - "lastUpdatedTime": { - "format": "date-time", - "description": "The timestamp when the policy was last updated.", + "name": { + "description": "The name of retention policy.", "type": "string", "readOnly": true }, "status": { "description": "The value that indicates whether the policy is enabled or not.", + "default": "disabled", "enum": [ "enabled", "disabled" From c136d1fcf1a161f68944223dad032c4407154c6f Mon Sep 17 00:00:00 2001 From: ankurkhemani Date: Wed, 21 Aug 2019 12:40:08 -0700 Subject: [PATCH 2/3] remove unnecessary breaking change --- .../stable/2019-05-01/containerregistry.json | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json index 21b46cf34d88..2649db6ab7e2 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json @@ -1621,11 +1621,12 @@ "days": { "format": "int32", "description": "The number of days to retain an untagged manifest after which it gets purged.", - "default": 7.0, + "default": 7, "type": "integer" }, - "name": { - "description": "The name of retention policy.", + "lastUpdatedTime": { + "format": "date-time", + "description": "The timestamp when the the policy was last updated.", "type": "string", "readOnly": true }, From 287fcbfdc1fc8b0926588963393574052e0bb9ed Mon Sep 17 00:00:00 2001 From: ankurkhemani Date: Wed, 21 Aug 2019 12:58:22 -0700 Subject: [PATCH 3/3] fix typo --- .../stable/2019-05-01/containerregistry.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json index 2649db6ab7e2..12d60e46ee19 100644 --- a/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json +++ b/specification/containerregistry/resource-manager/Microsoft.ContainerRegistry/stable/2019-05-01/containerregistry.json @@ -1626,7 +1626,7 @@ }, "lastUpdatedTime": { "format": "date-time", - "description": "The timestamp when the the policy was last updated.", + "description": "The timestamp when the policy was last updated.", "type": "string", "readOnly": true },