From ba33d6832b5d50eff1578b01238ba186b0f7be46 Mon Sep 17 00:00:00 2001 From: zdelacerda Date: Tue, 31 Oct 2023 06:54:06 +0000 Subject: [PATCH 1/3] fixing distribute in ImageTemplateUpdateParameters --- .../stable/2023-07-01/imagebuilder.json | 27 ++++++++++++------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json index 3702ba0311ac..f33c7d31b005 100644 --- a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json +++ b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json @@ -1244,7 +1244,7 @@ "items": { "$ref": "#/definitions/TargetRegion" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ ], "description": "The target regions where the distributed Image Version is going to be replicated to. This object supersedes replicationRegions and can be specified only if replicationRegions is not specified." }, "versioning": { @@ -1503,7 +1503,7 @@ "items": { "$ref": "#/definitions/ImageTemplateCustomizer" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ ], "description": "Specifies the properties used to describe the customization steps of the image, like Image source etc" }, "optimize": { @@ -1549,7 +1549,7 @@ "items": { "$ref": "#/definitions/ImageTemplateInVMValidator" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ ], "description": "List of validations to be performed." } } @@ -1559,7 +1559,7 @@ "items": { "$ref": "#/definitions/ImageTemplateDistributor" }, - "x-ms-identifiers": [], + "x-ms-identifiers": [ ], "description": "The distribution targets where the image output needs to go to." }, "errorHandling": { @@ -1706,7 +1706,7 @@ "required": [ "identity" ], - "x-ms-identifiers": [] + "x-ms-identifiers": [ ] }, "ImageTemplateUpdateParameters": { "type": "object", @@ -1723,9 +1723,18 @@ "description": "The user-specified tags associated with the image template." }, "properties": { - "x-ms-client-flatten": true, - "$ref": "#/definitions/ImageTemplateProperties", - "description": "The properties of the image template" + "type": "object", + "description": "Parameters for updating an image template.", + "properties": { + "distribute": { + "type": "array", + "items": { + "$ref": "#/definitions/ImageTemplateDistributor" + }, + "x-ms-identifiers": [], + "description": "The distribution targets where the image output needs to go to." + } + } } }, "description": "Parameters for updating an image template." @@ -1822,7 +1831,7 @@ "$ref": "#/definitions/TriggerProperties" } ], - "properties": {} + "properties": { } }, "Trigger": { "type": "object", From 989f3f5d65cc95f37fbb28f4f7463499d7c55edf Mon Sep 17 00:00:00 2001 From: zdelacerda-microsoft <90284189+zdelacerda-microsoft@users.noreply.github.com> Date: Tue, 31 Oct 2023 07:03:08 +0000 Subject: [PATCH 2/3] prettier --- .../stable/2023-07-01/imagebuilder.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json index f33c7d31b005..f69fc8631bb2 100644 --- a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json +++ b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json @@ -1244,7 +1244,7 @@ "items": { "$ref": "#/definitions/TargetRegion" }, - "x-ms-identifiers": [ ], + "x-ms-identifiers": [], "description": "The target regions where the distributed Image Version is going to be replicated to. This object supersedes replicationRegions and can be specified only if replicationRegions is not specified." }, "versioning": { @@ -1503,7 +1503,7 @@ "items": { "$ref": "#/definitions/ImageTemplateCustomizer" }, - "x-ms-identifiers": [ ], + "x-ms-identifiers": [], "description": "Specifies the properties used to describe the customization steps of the image, like Image source etc" }, "optimize": { @@ -1549,7 +1549,7 @@ "items": { "$ref": "#/definitions/ImageTemplateInVMValidator" }, - "x-ms-identifiers": [ ], + "x-ms-identifiers": [], "description": "List of validations to be performed." } } @@ -1559,7 +1559,7 @@ "items": { "$ref": "#/definitions/ImageTemplateDistributor" }, - "x-ms-identifiers": [ ], + "x-ms-identifiers": [], "description": "The distribution targets where the image output needs to go to." }, "errorHandling": { @@ -1706,7 +1706,7 @@ "required": [ "identity" ], - "x-ms-identifiers": [ ] + "x-ms-identifiers": [] }, "ImageTemplateUpdateParameters": { "type": "object", @@ -1831,7 +1831,7 @@ "$ref": "#/definitions/TriggerProperties" } ], - "properties": { } + "properties": {} }, "Trigger": { "type": "object", From bd256d92acce76a03a87a1f216a97d08c959b486 Mon Sep 17 00:00:00 2001 From: zdelacerda-microsoft <90284189+zdelacerda-microsoft@users.noreply.github.com> Date: Tue, 31 Oct 2023 18:46:54 +0000 Subject: [PATCH 3/3] removing x-ms-identifiers from ImageTemplate --- .../stable/2023-07-01/imagebuilder.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json index f69fc8631bb2..2f199eee7f46 100644 --- a/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json +++ b/specification/imagebuilder/resource-manager/Microsoft.VirtualMachineImages/stable/2023-07-01/imagebuilder.json @@ -1705,8 +1705,7 @@ ], "required": [ "identity" - ], - "x-ms-identifiers": [] + ] }, "ImageTemplateUpdateParameters": { "type": "object",