From 25cc485450c6f44675e4fffa4de664dd844da8dd Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 21 Sep 2020 15:23:02 -0700 Subject: [PATCH 1/9] add management group registration description to ARM --- .../stable/2020-06-01/resources.json | 24 +++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index cb91fbec0f89..9f31b2f31e10 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -749,6 +749,30 @@ "x-ms-odata": "#/definitions/DeploymentExtendedFilter" } }, + "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/{resourceProviderNamespace}/register": { + "post": { + "tags": [ + "Providers" + ], + "operationId": "Providers_Register", + "description": "Registers a management group with a resource provider.", + "parameters": [ + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider to register." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ] + } + }, "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}": { "delete": { "tags": [ From 111fdb511b839e383915604058e394866dfa9b2a Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 21 Sep 2020 20:26:05 -0700 Subject: [PATCH 2/9] Add response to MG registration description --- .../stable/2020-06-01/resources.json | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index 9f31b2f31e10..2ddd8bc3605f 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -770,7 +770,21 @@ { "$ref": "#/parameters/SubscriptionIdParameter" } - ] + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource provider.", + "schema": { + "$ref": "#/definitions/Provider" + } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } } }, "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}": { From 62ccde472e8aa8c77bd94328d7504b8747460bbc Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Fri, 25 Sep 2020 11:14:30 -0700 Subject: [PATCH 3/9] fix ID parameter for MG register --- .../Microsoft.Resources/stable/2020-06-01/resources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index 2ddd8bc3605f..21f655b41dea 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -768,7 +768,7 @@ "$ref": "#/parameters/ApiVersionParameter" }, { - "$ref": "#/parameters/SubscriptionIdParameter" + "$ref": "#/parameters/GroupIdParameter" } ], "responses": { From e9941fccbf78127f4a4e0a97965705febb336ba0 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Fri, 25 Sep 2020 13:04:57 -0700 Subject: [PATCH 4/9] fix API signature linter error --- .../Microsoft.Resources/stable/2020-06-01/resources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index 21f655b41dea..027afecbd6e8 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -749,7 +749,7 @@ "x-ms-odata": "#/definitions/DeploymentExtendedFilter" } }, - "/providers/Microsoft.Management/managementGroups/{managementGroupId}/providers/{resourceProviderNamespace}/register": { + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register": { "post": { "tags": [ "Providers" From dd88bd185d1ed24522560f8754892bf5de398fda Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Fri, 25 Sep 2020 13:48:21 -0700 Subject: [PATCH 5/9] fix MG register operationID --- .../Microsoft.Resources/stable/2020-06-01/resources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index 027afecbd6e8..30d77ee7d160 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -754,7 +754,7 @@ "tags": [ "Providers" ], - "operationId": "Providers_Register", + "operationId": "ManagementGroup_Register", "description": "Registers a management group with a resource provider.", "parameters": [ { From d243750a32f406ca8685352f0c59d02f578b8237 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Fri, 25 Sep 2020 15:21:35 -0700 Subject: [PATCH 6/9] fix repsonse schema for MG register --- .../Microsoft.Resources/stable/2020-06-01/resources.json | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index 30d77ee7d160..1de9c62b30c7 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -773,10 +773,7 @@ ], "responses": { "200": { - "description": "OK - Returns information about the resource provider.", - "schema": { - "$ref": "#/definitions/Provider" - } + "description": "OK - Returns information about the resource provider." }, "default": { "description": "Error response describing why the operation failed.", From b15efeccad067a7d52027c671538ab1730dc48ca Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Fri, 25 Sep 2020 15:55:05 -0700 Subject: [PATCH 7/9] move MG register to rp section --- .../stable/2020-06-01/resources.json | 70 +++++++++---------- 1 file changed, 35 insertions(+), 35 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index 1de9c62b30c7..a0f7bbac2fcd 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -749,41 +749,6 @@ "x-ms-odata": "#/definitions/DeploymentExtendedFilter" } }, - "/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register": { - "post": { - "tags": [ - "Providers" - ], - "operationId": "ManagementGroup_Register", - "description": "Registers a management group with a resource provider.", - "parameters": [ - { - "name": "resourceProviderNamespace", - "in": "path", - "required": true, - "type": "string", - "description": "The namespace of the resource provider to register." - }, - { - "$ref": "#/parameters/ApiVersionParameter" - }, - { - "$ref": "#/parameters/GroupIdParameter" - } - ], - "responses": { - "200": { - "description": "OK - Returns information about the resource provider." - }, - "default": { - "description": "Error response describing why the operation failed.", - "schema": { - "$ref": "#/definitions/CloudError" - } - } - } - } - }, "/providers/Microsoft.Management/managementGroups/{groupId}/providers/Microsoft.Resources/deployments/{deploymentName}": { "delete": { "tags": [ @@ -2082,6 +2047,41 @@ } } }, + "/providers/Microsoft.Management/managementGroups/{groupId}/providers/{resourceProviderNamespace}/register": { + "post": { + "tags": [ + "Providers" + ], + "operationId": "ManagementGroup_Register", + "description": "Registers a management group with a resource provider.", + "parameters": [ + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider to register." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/GroupIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the resource provider." + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema": { + "$ref": "#/definitions/CloudError" + } + } + } + } + }, "/subscriptions/{subscriptionId}/providers/{resourceProviderNamespace}/register": { "post": { "tags": [ From 79f6835e39fcd2a729d549b1c9f2045aba50488f Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Tue, 29 Sep 2020 12:26:15 -0700 Subject: [PATCH 8/9] update operationId for MG register --- .../Microsoft.Resources/stable/2020-06-01/resources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index a0f7bbac2fcd..10fe8494850c 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -2052,7 +2052,7 @@ "tags": [ "Providers" ], - "operationId": "ManagementGroup_Register", + "operationId": "ManagementGroup_Providers_Register", "description": "Registers a management group with a resource provider.", "parameters": [ { From b68ff4f8bd1628d63a3af95dc861b81245beed56 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Thu, 1 Oct 2020 22:05:44 -0700 Subject: [PATCH 9/9] update operationID for MG register --- .../Microsoft.Resources/stable/2020-06-01/resources.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json index 10fe8494850c..988e044bbe05 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-06-01/resources.json @@ -2052,7 +2052,7 @@ "tags": [ "Providers" ], - "operationId": "ManagementGroup_Providers_Register", + "operationId": "Providers_RegisterAtManagementGroupScope", "description": "Registers a management group with a resource provider.", "parameters": [ {