From 9dff6e919ad5615430ab84b4ad159fa9aa51aa00 Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 13 Jul 2021 02:07:26 +0000 Subject: [PATCH] CodeGen from PR 14907 in Azure/azure-rest-api-specs Added default values for parameters for Import Export (#14907) * Added default values for parameters * added single multipath for go --- schemas/2016-11-01/Microsoft.ImportExport.json | 7 +++++-- schemas/2018-05-01/subscriptionDeploymentTemplate.json | 6 +++--- schemas/2019-08-01/managementGroupDeploymentTemplate.json | 6 +++--- schemas/2019-08-01/tenantDeploymentTemplate.json | 6 +++--- schemas/2020-08-01/Microsoft.ImportExport.json | 7 +++++-- schemas/2021-01-01/Microsoft.ImportExport.json | 7 +++++-- 6 files changed, 24 insertions(+), 15 deletions(-) diff --git a/schemas/2016-11-01/Microsoft.ImportExport.json b/schemas/2016-11-01/Microsoft.ImportExport.json index ed02349de0..9aed37b3a1 100644 --- a/schemas/2016-11-01/Microsoft.ImportExport.json +++ b/schemas/2016-11-01/Microsoft.ImportExport.json @@ -261,7 +261,8 @@ "backupDriveManifest": { "oneOf": [ { - "type": "boolean" + "type": "boolean", + "default": false }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -272,7 +273,8 @@ "cancelRequested": { "oneOf": [ { - "type": "boolean" + "type": "boolean", + "default": false }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -404,6 +406,7 @@ }, "state": { "type": "string", + "default": "Creating", "description": "Current state of the job." }, "storageAccountId": { diff --git a/schemas/2018-05-01/subscriptionDeploymentTemplate.json b/schemas/2018-05-01/subscriptionDeploymentTemplate.json index 4cc4f2546a..d334f61b6d 100644 --- a/schemas/2018-05-01/subscriptionDeploymentTemplate.json +++ b/schemas/2018-05-01/subscriptionDeploymentTemplate.json @@ -49,7 +49,7 @@ }, "resources": { "description": "Collection of resources to be deployed", - "oneOf":[ + "oneOf": [ { "$ref": "#/definitions/resourcesWithoutSymbolicNames" }, @@ -987,14 +987,14 @@ } ] }, - "resourcesWithSymbolicNames":{ + "resourcesWithSymbolicNames": { "type": "object", "description": "Resources with symbolic names", "additionalProperties": { "$ref": "#/definitions/resource" } }, - "resourcesWithoutSymbolicNames":{ + "resourcesWithoutSymbolicNames": { "type": "array", "description": "Resources without symbolic names", "items": { diff --git a/schemas/2019-08-01/managementGroupDeploymentTemplate.json b/schemas/2019-08-01/managementGroupDeploymentTemplate.json index f416520a44..58373db30f 100644 --- a/schemas/2019-08-01/managementGroupDeploymentTemplate.json +++ b/schemas/2019-08-01/managementGroupDeploymentTemplate.json @@ -49,7 +49,7 @@ }, "resources": { "description": "Collection of resources to be deployed", - "oneOf":[ + "oneOf": [ { "$ref": "#/definitions/resourcesWithoutSymbolicNames" }, @@ -678,14 +678,14 @@ } ] }, - "resourcesWithSymbolicNames":{ + "resourcesWithSymbolicNames": { "type": "object", "description": "Resources with symbolic names", "additionalProperties": { "$ref": "#/definitions/resource" } }, - "resourcesWithoutSymbolicNames":{ + "resourcesWithoutSymbolicNames": { "type": "array", "description": "Resources without symbolic names", "items": { diff --git a/schemas/2019-08-01/tenantDeploymentTemplate.json b/schemas/2019-08-01/tenantDeploymentTemplate.json index 87842fe07a..3b81972126 100644 --- a/schemas/2019-08-01/tenantDeploymentTemplate.json +++ b/schemas/2019-08-01/tenantDeploymentTemplate.json @@ -49,7 +49,7 @@ }, "resources": { "description": "Collection of resources to be deployed", - "oneOf":[ + "oneOf": [ { "$ref": "#/definitions/resourcesWithoutSymbolicNames" }, @@ -798,14 +798,14 @@ } ] }, - "resourcesWithSymbolicNames":{ + "resourcesWithSymbolicNames": { "type": "object", "description": "Resources with symbolic names", "additionalProperties": { "$ref": "#/definitions/resource" } }, - "resourcesWithoutSymbolicNames":{ + "resourcesWithoutSymbolicNames": { "type": "array", "description": "Resources without symbolic names", "items": { diff --git a/schemas/2020-08-01/Microsoft.ImportExport.json b/schemas/2020-08-01/Microsoft.ImportExport.json index 9c98b03d29..5ef0347d83 100644 --- a/schemas/2020-08-01/Microsoft.ImportExport.json +++ b/schemas/2020-08-01/Microsoft.ImportExport.json @@ -261,7 +261,8 @@ "backupDriveManifest": { "oneOf": [ { - "type": "boolean" + "type": "boolean", + "default": false }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -272,7 +273,8 @@ "cancelRequested": { "oneOf": [ { - "type": "boolean" + "type": "boolean", + "default": false }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -404,6 +406,7 @@ }, "state": { "type": "string", + "default": "Creating", "description": "Current state of the job." }, "storageAccountId": { diff --git a/schemas/2021-01-01/Microsoft.ImportExport.json b/schemas/2021-01-01/Microsoft.ImportExport.json index 9c86a9fef5..07cbfbada1 100644 --- a/schemas/2021-01-01/Microsoft.ImportExport.json +++ b/schemas/2021-01-01/Microsoft.ImportExport.json @@ -261,7 +261,8 @@ "backupDriveManifest": { "oneOf": [ { - "type": "boolean" + "type": "boolean", + "default": false }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -272,7 +273,8 @@ "cancelRequested": { "oneOf": [ { - "type": "boolean" + "type": "boolean", + "default": false }, { "$ref": "https://schema.management.azure.com/schemas/common/definitions.json#/definitions/expression" @@ -404,6 +406,7 @@ }, "state": { "type": "string", + "default": "Creating", "description": "Current state of the job." }, "storageAccountId": {