From 4b6316b67ee6f45aea22135d1a52f7708e1c451b Mon Sep 17 00:00:00 2001 From: aim-for-better Date: Wed, 10 Mar 2021 18:29:23 +0800 Subject: [PATCH] {HDInsight}Fix some roundtrip S360 issues in api version 2015-03-01-preview (#13342) * Add networkProperties and clusterId * Fixed round trip errors * remove default value because it is breaking change Co-authored-by: Zhenyu Zhou --- .../2015-03-01-preview/applications.json | 12 +++++- .../preview/2015-03-01-preview/cluster.json | 42 +++++++++++++++---- 2 files changed, 45 insertions(+), 9 deletions(-) diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json index b04f8c795d6d..48d77d8eb259 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/applications.json @@ -316,11 +316,19 @@ }, "subDomainSuffix": { "type": "string", - "description": "The subdomain suffix of the application." + "description": "The subdomain suffix of the application.", + "x-ms-mutability": [ + "create", + "update" + ] }, "disableGatewayAuth": { "type": "boolean", - "description": "The value indicates whether to disable GatewayAuth." + "description": "The value indicates whether to disable GatewayAuth.", + "x-ms-mutability": [ + "create", + "update" + ] } } }, diff --git a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json index 1e45acaf0898..22124535f830 100644 --- a/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json +++ b/specification/hdinsight/resource-manager/Microsoft.HDInsight/preview/2015-03-01-preview/cluster.json @@ -756,7 +756,11 @@ "additionalProperties": { "type": "string" }, - "description": "The versions of different services in the cluster." + "description": "The versions of different services in the cluster.", + "x-ms-mutability": [ + "create", + "read" + ] }, "configurations": { "type": "object", @@ -814,7 +818,11 @@ }, "organizationalUnitDN": { "type": "string", - "description": "The organizational unit within the Active Directory to place the cluster and service accounts." + "description": "The organizational unit within the Active Directory to place the cluster and service accounts.", + "x-ms-mutability": [ + "create", + "read" + ] }, "ldapsUrls": { "type": "array", @@ -1060,7 +1068,11 @@ }, "VMGroupName": { "type": "string", - "description": "The name of the virtual machine group." + "description": "The name of the virtual machine group.", + "x-ms-mutability": [ + "create", + "read" + ] }, "autoscale": { "$ref": "#/definitions/Autoscale", @@ -1214,7 +1226,11 @@ "properties": { "enableComputeIsolation": { "type": "boolean", - "description": "The flag indicates whether enable compute isolation or not." + "description": "The flag indicates whether enable compute isolation or not.", + "x-ms-mutability": [ + "create", + "read" + ] }, "hostSku": { "type": "string", @@ -1252,7 +1268,11 @@ "name": "Tier", "modelAsString": false }, - "default": "Standard" + "default": "Standard", + "x-ms-mutability": [ + "create", + "read" + ] }, "clusterDefinition": { "$ref": "#/definitions/ClusterDefinition", @@ -1545,7 +1565,11 @@ }, "parameters": { "type": "string", - "description": "The parameters for the script" + "description": "The parameters for the script", + "x-ms-mutability": [ + "create", + "update" + ] }, "roles": { "type": "array", @@ -1809,7 +1833,11 @@ "x-ms-enum": { "name": "JsonWebKeyEncryptionAlgorithm", "modelAsString": true - } + }, + "x-ms-mutability": [ + "create", + "read" + ] }, "msiResourceId": { "type": "string",