From 81560dcac6ad6402c0a4e829b1b3ee31f9ad9957 Mon Sep 17 00:00:00 2001 From: vivsriaus Date: Thu, 15 Mar 2018 13:43:27 -0700 Subject: [PATCH 1/3] Move subscriptionId to global --- .../stable/2016-06-01/subscriptions.json | 23 +++++++++---------- 1 file changed, 11 insertions(+), 12 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json index 7bd46a37914c..a306c93d49eb 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json @@ -44,14 +44,10 @@ "description": "This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.", "parameters": [ { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." + "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -76,14 +72,10 @@ "description": "Gets details about a specified subscription.", "parameters": [ { - "name": "subscriptionId", - "in": "path", - "required": true, - "type": "string", - "description": "The ID of the target subscription." + "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/SubscriptionIdParameter" } ], "responses": { @@ -323,6 +315,13 @@ } }, "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, "ApiVersionParameter": { "name": "api-version", "in": "query", From 8f5f58894c31761f95db8d2af0183cdf2748ba24 Mon Sep 17 00:00:00 2001 From: vivsriaus Date: Fri, 16 Mar 2018 12:01:46 -0700 Subject: [PATCH 2/3] Move subId as the first parameter --- .../stable/2016-06-01/subscriptions.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json index a306c93d49eb..7a062e21353e 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json @@ -44,10 +44,10 @@ "description": "This operation provides all the locations that are available for resource providers; however, each resource provider may support a subset of this list.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { @@ -72,10 +72,10 @@ "description": "Gets details about a specified subscription.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "#/parameters/SubscriptionIdParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/ApiVersionParameter" } ], "responses": { From f9d0f6152582e95d3a08714a899f95f60abc91cd Mon Sep 17 00:00:00 2001 From: vivsriaus Date: Fri, 16 Mar 2018 14:45:05 -0700 Subject: [PATCH 3/3] Add "x-ms-parameter-location": "client" to subId and apiVersion parameters --- .../stable/2016-06-01/subscriptions.json | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json index 7a062e21353e..49685c15112b 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2016-06-01/subscriptions.json @@ -320,14 +320,16 @@ "in": "path", "required": true, "type": "string", - "description": "The ID of the target subscription." + "description": "The ID of the target subscription.", + "x-ms-parameter-location": "client" }, "ApiVersionParameter": { "name": "api-version", "in": "query", "required": true, "type": "string", - "description": "The API version to use for the operation." + "description": "The API version to use for the operation.", + "x-ms-parameter-location": "client" } } } \ No newline at end of file