From a8dd2f32304f21e511cf4ce2c05b8d68907c6e78 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Wed, 17 Mar 2021 12:59:25 -0700 Subject: [PATCH 01/17] remove name validation from client side --- .../stable/2020-10-01/resources.json | 24 ------------------- 1 file changed, 24 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/resources.json index dc6eaab3d311..5020a4a3771e 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/resources.json @@ -1540,7 +1540,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployment to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1583,7 +1582,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployment to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1626,7 +1624,6 @@ "required": true, "type": "string", "description": "The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1698,7 +1695,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1743,7 +1739,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1785,7 +1780,6 @@ "required": true, "type": "string", "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1847,7 +1841,6 @@ "required": true, "type": "string", "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1922,7 +1915,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1966,7 +1958,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployments to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2384,7 +2375,6 @@ "required": true, "type": "string", "description": "The resource group with the resources to get.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2451,7 +2441,6 @@ "required": true, "type": "string", "description": "The name of the resource group to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2495,7 +2484,6 @@ "required": true, "type": "string", "description": "The name of the resource group to create or update. Can include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed characters.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2550,7 +2538,6 @@ "required": true, "type": "string", "description": "The name of the resource group to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2590,7 +2577,6 @@ "required": true, "type": "string", "description": "The name of the resource group to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2630,7 +2616,6 @@ "required": true, "type": "string", "description": "The name of the resource group to update. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2789,7 +2774,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resources to move.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2841,7 +2825,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resources to validate for move.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2949,7 +2932,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resource to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3023,7 +3005,6 @@ "required": true, "type": "string", "description": "The name of the resource group that contains the resource to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3101,7 +3082,6 @@ "required": true, "type": "string", "description": "The name of the resource group for the resource. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3194,7 +3174,6 @@ "required": true, "type": "string", "description": "The name of the resource group for the resource. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3281,7 +3260,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resource to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -4141,7 +4119,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -4192,7 +4169,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, From d94dfb59fbdc86a9e51b020303a769fded996518 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Wed, 17 Mar 2021 13:17:34 -0700 Subject: [PATCH 02/17] remove name check from deploymentScripts swagger --- .../Microsoft.Resources/stable/2020-10-01/deploymentScripts.json | 1 - 1 file changed, 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json index b05f6d197dd4..cb6e0ed5e960 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/deploymentScripts.json @@ -920,7 +920,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90, "x-ms-parameter-location": "method" From 0c797c2599a4f6400fb47a8efc56e553ef382bd3 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Wed, 17 Mar 2021 17:05:24 -0700 Subject: [PATCH 03/17] remove name check from previous swagger versions --- .../stable/2020-06-01/resources.json | 24 ------------------- .../stable/2020-08-01/resources.json | 24 ------------------- 2 files changed, 48 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 9a5a19d43daf..d914a28e9c58 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 @@ -1540,7 +1540,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployment to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1583,7 +1582,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployment to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1626,7 +1624,6 @@ "required": true, "type": "string", "description": "The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1695,7 +1692,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1740,7 +1736,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1782,7 +1777,6 @@ "required": true, "type": "string", "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1844,7 +1838,6 @@ "required": true, "type": "string", "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1919,7 +1912,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1963,7 +1955,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployments to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2321,7 +2312,6 @@ "required": true, "type": "string", "description": "The resource group with the resources to get.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2388,7 +2378,6 @@ "required": true, "type": "string", "description": "The name of the resource group to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2432,7 +2421,6 @@ "required": true, "type": "string", "description": "The name of the resource group to create or update. Can include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed characters.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2487,7 +2475,6 @@ "required": true, "type": "string", "description": "The name of the resource group to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2542,7 +2529,6 @@ "required": true, "type": "string", "description": "The name of the resource group to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2582,7 +2568,6 @@ "required": true, "type": "string", "description": "The name of the resource group to update. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2741,7 +2726,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resources to move.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2793,7 +2777,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resources to validate for move.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2901,7 +2884,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resource to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2975,7 +2957,6 @@ "required": true, "type": "string", "description": "The name of the resource group that contains the resource to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3053,7 +3034,6 @@ "required": true, "type": "string", "description": "The name of the resource group for the resource. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3146,7 +3126,6 @@ "required": true, "type": "string", "description": "The name of the resource group for the resource. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3233,7 +3212,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resource to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -4093,7 +4071,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -4144,7 +4121,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-08-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-08-01/resources.json index 554c1093ab41..eba6d84b953c 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-08-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-08-01/resources.json @@ -1540,7 +1540,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployment to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1583,7 +1582,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployment to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1626,7 +1624,6 @@ "required": true, "type": "string", "description": "The name of the resource group to deploy the resources to. The name is case insensitive. The resource group must already exist.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1695,7 +1692,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1740,7 +1736,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1782,7 +1777,6 @@ "required": true, "type": "string", "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1844,7 +1838,6 @@ "required": true, "type": "string", "description": "The name of the resource group the template will be deployed to. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1919,7 +1912,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -1963,7 +1955,6 @@ "required": true, "type": "string", "description": "The name of the resource group with the deployments to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2346,7 +2337,6 @@ "required": true, "type": "string", "description": "The resource group with the resources to get.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2413,7 +2403,6 @@ "required": true, "type": "string", "description": "The name of the resource group to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2457,7 +2446,6 @@ "required": true, "type": "string", "description": "The name of the resource group to create or update. Can include alphanumeric, underscore, parentheses, hyphen, period (except at end), and Unicode characters that match the allowed characters.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2512,7 +2500,6 @@ "required": true, "type": "string", "description": "The name of the resource group to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2552,7 +2539,6 @@ "required": true, "type": "string", "description": "The name of the resource group to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2592,7 +2578,6 @@ "required": true, "type": "string", "description": "The name of the resource group to update. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2751,7 +2736,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resources to move.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2803,7 +2787,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resources to validate for move.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2911,7 +2894,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resource to check. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -2985,7 +2967,6 @@ "required": true, "type": "string", "description": "The name of the resource group that contains the resource to delete. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3063,7 +3044,6 @@ "required": true, "type": "string", "description": "The name of the resource group for the resource. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3156,7 +3136,6 @@ "required": true, "type": "string", "description": "The name of the resource group for the resource. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -3243,7 +3222,6 @@ "required": true, "type": "string", "description": "The name of the resource group containing the resource to get. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -4103,7 +4081,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, @@ -4154,7 +4131,6 @@ "required": true, "type": "string", "description": "The name of the resource group. The name is case insensitive.", - "pattern": "^[-\\w\\._\\(\\)]+$", "minLength": 1, "maxLength": 90 }, From ad763f105c88e258b508934f66d7393ce10375b4 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Wed, 17 Mar 2021 17:34:37 -0700 Subject: [PATCH 04/17] remove pattern from resourcegroupname parameter --- .../Microsoft.Resources/stable/2020-06-01/resources.json | 4 +--- .../Microsoft.Resources/stable/2020-08-01/resources.json | 4 +--- .../Microsoft.Resources/stable/2020-10-01/resources.json | 4 +--- 3 files changed, 3 insertions(+), 9 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 d914a28e9c58..a4f3c9e3170f 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 @@ -5238,8 +5238,7 @@ }, "kind": { "type": "string", - "description": "The kind of the resource.", - "pattern": "^[-\\w\\._,\\(\\)]+$" + "description": "The kind of the resource." }, "managedBy": { "type": "string", @@ -6231,7 +6230,6 @@ "in": "path", "required": true, "type": "string", - "pattern": "^[-\\w\\._\\(\\)]+$", "x-ms-parameter-location": "method", "minLength": 1, "maxLength": 64, diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-08-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-08-01/resources.json index eba6d84b953c..23dbef4af52d 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-08-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-08-01/resources.json @@ -5288,8 +5288,7 @@ }, "kind": { "type": "string", - "description": "The kind of the resource.", - "pattern": "^[-\\w\\._,\\(\\)]+$" + "description": "The kind of the resource." }, "managedBy": { "type": "string", @@ -6263,7 +6262,6 @@ "in": "path", "required": true, "type": "string", - "pattern": "^[-\\w\\._\\(\\)]+$", "x-ms-parameter-location": "method", "minLength": 1, "maxLength": 64, diff --git a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/resources.json b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/resources.json index 5020a4a3771e..220272162b32 100644 --- a/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/resources.json +++ b/specification/resources/resource-manager/Microsoft.Resources/stable/2020-10-01/resources.json @@ -5334,8 +5334,7 @@ }, "kind": { "type": "string", - "description": "The kind of the resource.", - "pattern": "^[-\\w\\._,\\(\\)]+$" + "description": "The kind of the resource." }, "managedBy": { "type": "string", @@ -6327,7 +6326,6 @@ "in": "path", "required": true, "type": "string", - "pattern": "^[-\\w\\._\\(\\)]+$", "x-ms-parameter-location": "method", "minLength": 1, "maxLength": 64, From 4a6cbabb5616fe2dd5aa02f844a50d6d64e3d7be Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 19 Jul 2021 12:01:23 -0700 Subject: [PATCH 05/17] add missing locks versions --- .../examples/ListProviderOperations.json | 21 + ...ks_CreateOrUpdateAtResourceGroupLevel.json | 35 + ...ntLocks_CreateOrUpdateAtResourceLevel.json | 39 + ...ManagementLocks_CreateOrUpdateAtScope.json | 34 + ...cks_CreateOrUpdateAtSubscriptionLevel.json | 34 + ...ementLocks_DeleteAtResourceGroupLevel.json | 12 + ...ManagementLocks_DeleteAtResourceLevel.json | 16 + .../ManagementLocks_DeleteAtScope.json | 11 + ...gementLocks_DeleteAtSubscriptionLevel.json | 11 + ...nagementLocks_GetAtResourceGroupLevel.json | 20 + .../ManagementLocks_GetAtResourceLevel.json | 24 + .../examples/ManagementLocks_GetAtScope.json | 19 + ...anagementLocks_GetAtSubscriptionLevel.json | 20 + ...agementLocks_ListAtResourceGroupLevel.json | 23 + .../ManagementLocks_ListAtResourceLevel.json | 27 + .../examples/ManagementLocks_ListAtScope.json | 22 + ...nagementLocks_ListAtSubscriptionLevel.json | 22 + .../stable/2017-04-01/locks.json | 1089 +++++++++++++++++ .../examples/ListProviderOperations.json | 21 + ...ks_CreateOrUpdateAtResourceGroupLevel.json | 35 + ...ntLocks_CreateOrUpdateAtResourceLevel.json | 39 + ...ManagementLocks_CreateOrUpdateAtScope.json | 34 + ...cks_CreateOrUpdateAtSubscriptionLevel.json | 34 + ...ementLocks_DeleteAtResourceGroupLevel.json | 12 + ...ManagementLocks_DeleteAtResourceLevel.json | 16 + .../ManagementLocks_DeleteAtScope.json | 11 + ...gementLocks_DeleteAtSubscriptionLevel.json | 11 + ...nagementLocks_GetAtResourceGroupLevel.json | 20 + .../ManagementLocks_GetAtResourceLevel.json | 24 + .../examples/ManagementLocks_GetAtScope.json | 19 + ...anagementLocks_GetAtSubscriptionLevel.json | 20 + ...agementLocks_ListAtResourceGroupLevel.json | 23 + .../ManagementLocks_ListAtResourceLevel.json | 27 + .../examples/ManagementLocks_ListAtScope.json | 22 + ...nagementLocks_ListAtSubscriptionLevel.json | 22 + .../stable/2020-05-01/locks.json | 1089 +++++++++++++++++ 36 files changed, 2958 insertions(+) create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json create mode 100644 specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json new file mode 100644 index 000000000000..5c15ac1c0475 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Authorization/locks/read", + "display": { + "provider": "Microsoft.Authorization", + "resource": "locks", + "operation": "read" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json new file mode 100644 index 000000000000..0d1a17d79841 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json new file mode 100644 index 000000000000..601b91d1ef3f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json new file mode 100644 index 000000000000..b9efc85edd71 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json new file mode 100644 index 000000000000..38311972abf6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json new file mode 100644 index 000000000000..485daca86bd3 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json new file mode 100644 index 000000000000..5f4ab8b56bfd --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json new file mode 100644 index 000000000000..eb52b025e28e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json new file mode 100644 index 000000000000..20b598d9a186 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json new file mode 100644 index 000000000000..b1a7b8d4206d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json new file mode 100644 index 000000000000..fc4efee8ad97 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json new file mode 100644 index 000000000000..caeab93e4c24 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json new file mode 100644 index 000000000000..b1a7b8d4206d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json new file mode 100644 index 000000000000..7dcbe5b9e854 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json new file mode 100644 index 000000000000..139b5b75c7fe --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json new file mode 100644 index 000000000000..219052cfc3e7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json new file mode 100644 index 000000000000..fab8c451fd03 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json new file mode 100644 index 000000000000..325c4b7d28a3 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json @@ -0,0 +1,1089 @@ +{ + "swagger": "2.0", + "info": { + "title": "ManagementLockClient", + "version": "2017-04-01", + "description": "Azure resources can be locked to prevent other users in your organization from deleting or modifying resources." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Authorization/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "AuthorizationOperations_List", + "description": "Lists all of the available Microsoft.Authorization REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List provider operations": { + "$ref": "./examples/ListProviderOperations.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtResourceGroupLevel", + "summary": "Creates or updates a management lock at the resource group level.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to lock.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Create management lock at resource group level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtResourceGroupLevel", + "summary": "Deletes a management lock at the resource group level.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the lock.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + } + }, + "x-ms-examples": { + "Delete management lock at resource group level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceGroupLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtResourceGroupLevel", + "description": "Gets a management lock at the resource group level.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the locked resource group.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Get management lock at resource group level": { + "$ref": "./examples/ManagementLocks_GetAtResourceGroupLevel.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateByScope", + "description": "Create or update a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "Create or update management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Create management lock at scope": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtScope.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteByScope", + "description": "Delete a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. " + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + } + }, + "x-ms-examples": { + "Delete management lock at scope": { + "$ref": "./examples/ManagementLocks_DeleteAtScope.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetByScope", + "description": "Get a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. " + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Get management lock at scope": { + "$ref": "./examples/ManagementLocks_GetAtScope.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtResourceLevel", + "summary": "Creates or updates a management lock at the resource level or any level below the resource.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource to lock. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider namespace of the resource to lock." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource to lock.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to lock." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "Parameters for creating or updating a management lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Create management lock at resource level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtResourceLevel", + "summary": "Deletes the management lock of a resource or any level below the resource.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource with the lock to delete. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider namespace of the resource with the lock to delete." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource with the lock to delete.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource with the lock to delete." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + } + }, + "x-ms-examples": { + "Delete management lock at resource level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtResourceLevel", + "description": "Get the management lock of a resource or any level below resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "An extra path parameter needed in some services, like SQL Databases.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of the resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Get management lock at resource level": { + "$ref": "./examples/ManagementLocks_GetAtResourceLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtSubscriptionLevel", + "summary": "Creates or updates a management lock at the subscription level.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Create management lock at subscription level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtSubscriptionLevel", + "summary": "Deletes the management lock at the subscription level.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + } + }, + "x-ms-examples": { + "Delete management lock at subscription level": { + "$ref": "./examples/ManagementLocks_DeleteAtSubscriptionLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtSubscriptionLevel", + "description": "Gets a management lock at the subscription level.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Get management lock at subscription level": { + "$ref": "./examples/ManagementLocks_GetAtSubscriptionLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtResourceGroupLevel", + "description": "Gets all the management locks for a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the locks to get.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management groups at resource group level": { + "$ref": "./examples/ManagementLocks_ListAtResourceGroupLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtResourceLevel", + "description": "Gets all the management locks for a resource or any level below resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the locked resource. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the locked resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the locked resource." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at resource level": { + "$ref": "./examples/ManagementLocks_ListAtResourceLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtSubscriptionLevel", + "description": "Gets all the management locks for a subscription.", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at subscription level": { + "$ref": "./examples/ManagementLocks_ListAtSubscriptionLevel.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListByScope", + "description": "Gets all the management locks for a scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at scope": { + "$ref": "./examples/ManagementLocks_ListAtScope.json" + } + } + } + } + }, + "definitions": { + "ManagementLockOwner": { + "properties": { + "applicationId": { + "type": "string", + "description": "The application ID of the lock owner." + } + }, + "description": "Lock owner properties." + }, + "ManagementLockProperties": { + "properties": { + "level": { + "type": "string", + "description": "The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.", + "enum": [ + "NotSpecified", + "CanNotDelete", + "ReadOnly" + ], + "x-ms-enum": { + "name": "LockLevel", + "modelAsString": true + } + }, + "notes": { + "type": "string", + "description": "Notes about the lock. Maximum of 512 characters." + }, + "owners": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementLockOwner" + }, + "description": "The owners of the lock." + } + }, + "required": [ + "level" + ], + "description": "The lock properties." + }, + "ManagementLockObject": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementLockProperties", + "description": "The properties of the lock." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The resource ID of the lock." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The resource type of the lock - Microsoft.Authorization/locks." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the lock." + } + }, + "required": [ + "properties" + ], + "description": "The lock information.", + "x-ms-azure-resource": true + }, + "ManagementLockListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The list of locks." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "The list of locks." + }, + "Operation": { + "description": "Microsoft.Authorization operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Authorization", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Authorization operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Authorization operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation." + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json new file mode 100644 index 000000000000..5c15ac1c0475 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json @@ -0,0 +1,21 @@ +{ + "parameters": { + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "name": "Microsoft.Authorization/locks/read", + "display": { + "provider": "Microsoft.Authorization", + "resource": "locks", + "operation": "read" + } + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json new file mode 100644 index 000000000000..0d1a17d79841 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json @@ -0,0 +1,35 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json new file mode 100644 index 000000000000..601b91d1ef3f --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json @@ -0,0 +1,39 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json new file mode 100644 index 000000000000..b9efc85edd71 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json new file mode 100644 index 000000000000..38311972abf6 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -0,0 +1,34 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01", + "parameters": { + "properties": { + "level": "ReadOnly" + } + } + }, + "responses": { + "201": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + }, + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json new file mode 100644 index 000000000000..485daca86bd3 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json @@ -0,0 +1,12 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json new file mode 100644 index 000000000000..5f4ab8b56bfd --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json @@ -0,0 +1,16 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json new file mode 100644 index 000000000000..eb52b025e28e --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json new file mode 100644 index 000000000000..20b598d9a186 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json @@ -0,0 +1,11 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "204": {}, + "200": {} + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json new file mode 100644 index 000000000000..b1a7b8d4206d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json new file mode 100644 index 000000000000..fc4efee8ad97 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json @@ -0,0 +1,24 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json new file mode 100644 index 000000000000..caeab93e4c24 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json @@ -0,0 +1,19 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json new file mode 100644 index 000000000000..b1a7b8d4206d --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -0,0 +1,20 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "lockName": "testlock", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json new file mode 100644 index 000000000000..7dcbe5b9e854 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -0,0 +1,23 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json new file mode 100644 index 000000000000..139b5b75c7fe --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json @@ -0,0 +1,27 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "resourceGroupName": "resourcegroupname", + "resourceProviderNamespace": "Microsoft.Storage", + "parentResourcePath": "parentResourcePath", + "resourceType": "storageAccounts", + "resourceName": "teststorageaccount", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json new file mode 100644 index 000000000000..219052cfc3e7 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "scope": "subscriptions/subscriptionId", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json new file mode 100644 index 000000000000..fab8c451fd03 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -0,0 +1,22 @@ +{ + "parameters": { + "subscriptionId": "subscriptionId", + "api-version": "2016-09-01" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "properties": { + "level": "ReadOnly" + }, + "id": "/providers/Microsoft.Authorization/locks/testlock", + "type": "Microsoft.Authorization/locks", + "name": "testlock" + } + ] + } + } + } +} diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json new file mode 100644 index 000000000000..00e4346bf624 --- /dev/null +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -0,0 +1,1089 @@ +{ + "swagger": "2.0", + "info": { + "title": "ManagementLockClient", + "version": "2020-05-01", + "description": "Azure resources can be locked to prevent other users in your organization from deleting or modifying resources." + }, + "host": "management.azure.com", + "schemes": [ + "https" + ], + "consumes": [ + "application/json" + ], + "produces": [ + "application/json" + ], + "security": [ + { + "azure_auth": [ + "user_impersonation" + ] + } + ], + "securityDefinitions": { + "azure_auth": { + "type": "oauth2", + "authorizationUrl": "https://login.microsoftonline.com/common/oauth2/authorize", + "flow": "implicit", + "description": "Azure Active Directory OAuth2 Flow", + "scopes": { + "user_impersonation": "impersonate your user account" + } + } + }, + "paths": { + "/providers/Microsoft.Authorization/operations": { + "get": { + "tags": [ + "Operations" + ], + "operationId": "AuthorizationOperations_List", + "description": "Lists all of the available Microsoft.Authorization REST API operations.", + "parameters": [ + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK. The request has succeeded.", + "schema": { + "$ref": "#/definitions/OperationListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-examples": { + "List provider operations": { + "$ref": "./examples/ListProviderOperations.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtResourceGroupLevel", + "summary": "Creates or updates a management lock at the resource group level.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group to lock.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The lock name. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Create management lock at resource group level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtResourceGroupLevel", + "summary": "Deletes a management lock at the resource group level.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the lock.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + } + }, + "x-ms-examples": { + "Delete management lock at resource group level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceGroupLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtResourceGroupLevel", + "description": "Gets a management lock at the resource group level.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the locked resource group.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Get management lock at resource group level": { + "$ref": "./examples/ManagementLocks_GetAtResourceGroupLevel.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateByScope", + "description": "Create or update a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "Create or update management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Create management lock at scope": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtScope.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteByScope", + "description": "Delete a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. " + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + } + }, + "x-ms-examples": { + "Delete management lock at scope": { + "$ref": "./examples/ManagementLocks_DeleteAtScope.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetByScope", + "description": "Get a management lock by scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. " + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Get management lock at scope": { + "$ref": "./examples/ManagementLocks_GetAtScope.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtResourceLevel", + "summary": "Creates or updates a management lock at the resource level or any level below the resource.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource to lock. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider namespace of the resource to lock." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource to lock.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource to lock." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "Parameters for creating or updating a management lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Create management lock at resource level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtResourceLevel", + "summary": "Deletes the management lock of a resource or any level below the resource.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the resource with the lock to delete. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The resource provider namespace of the resource with the lock to delete." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the resource with the lock to delete.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource with the lock to delete." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + } + }, + "x-ms-examples": { + "Delete management lock at resource level": { + "$ref": "./examples/ManagementLocks_DeleteAtResourceLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtResourceLevel", + "description": "Get the management lock of a resource or any level below resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group. ", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "An extra path parameter needed in some services, like SQL Databases.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The type of the resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource." + }, + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Get management lock at resource level": { + "$ref": "./examples/ManagementLocks_GetAtResourceLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks/{lockName}": { + "put": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_CreateOrUpdateAtSubscriptionLevel", + "summary": "Creates or updates a management lock at the subscription level.", + "description": "When you apply a lock at a parent scope, all child resources inherit the same lock. To create management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock. The lock name can be a maximum of 260 characters. It cannot contain <, > %, &, :, \\, ?, /, or any control characters." + }, + { + "name": "parameters", + "in": "body", + "required": true, + "schema": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The management lock parameters." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "201": { + "description": "Created - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + }, + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Create management lock at subscription level": { + "$ref": "./examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json" + } + } + }, + "delete": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_DeleteAtSubscriptionLevel", + "summary": "Deletes the management lock at the subscription level.", + "description": "To delete management locks, you must have access to Microsoft.Authorization/* or Microsoft.Authorization/locks/* actions. Of the built-in roles, only Owner and User Access Administrator are granted those actions.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of lock to delete." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "204": { + "description": "NoContent" + }, + "200": { + "description": "OK" + } + }, + "x-ms-examples": { + "Delete management lock at subscription level": { + "$ref": "./examples/ManagementLocks_DeleteAtSubscriptionLevel.json" + } + } + }, + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_GetAtSubscriptionLevel", + "description": "Gets a management lock at the subscription level.", + "parameters": [ + { + "name": "lockName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the lock to get." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns information about the lock.", + "schema": { + "$ref": "#/definitions/ManagementLockObject" + } + } + }, + "x-ms-examples": { + "Get management lock at subscription level": { + "$ref": "./examples/ManagementLocks_GetAtSubscriptionLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtResourceGroupLevel", + "description": "Gets all the management locks for a resource group.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the locks to get.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management groups at resource group level": { + "$ref": "./examples/ManagementLocks_ListAtResourceGroupLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePath}/{resourceType}/{resourceName}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtResourceLevel", + "description": "Gets all the management locks for a resource or any level below resource.", + "parameters": [ + { + "name": "resourceGroupName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the resource group containing the locked resource. The name is case insensitive.", + "pattern": "^[-\\w\\._\\(\\)]+$", + "minLength": 1, + "maxLength": 90 + }, + { + "name": "resourceProviderNamespace", + "in": "path", + "required": true, + "type": "string", + "description": "The namespace of the resource provider." + }, + { + "name": "parentResourcePath", + "in": "path", + "required": true, + "type": "string", + "description": "The parent resource identity.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceType", + "in": "path", + "required": true, + "type": "string", + "description": "The resource type of the locked resource.", + "x-ms-skip-url-encoding": true + }, + { + "name": "resourceName", + "in": "path", + "required": true, + "type": "string", + "description": "The name of the locked resource." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at resource level": { + "$ref": "./examples/ManagementLocks_ListAtResourceLevel.json" + } + } + } + }, + "/subscriptions/{subscriptionId}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListAtSubscriptionLevel", + "description": "Gets all the management locks for a subscription.", + "parameters": [ + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + }, + { + "$ref": "#/parameters/SubscriptionIdParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at subscription level": { + "$ref": "./examples/ManagementLocks_ListAtSubscriptionLevel.json" + } + } + } + }, + "/{scope}/providers/Microsoft.Authorization/locks": { + "get": { + "tags": [ + "ManagementLocks" + ], + "operationId": "ManagementLocks_ListByScope", + "description": "Gets all the management locks for a scope.", + "parameters": [ + { + "name": "scope", + "in": "path", + "required": true, + "type": "string", + "description": "The scope for the lock. When providing a scope for the assignment, use '/subscriptions/{subscriptionId}' for subscriptions, '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}' for resource groups, and '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{parentResourcePathIfPresent}/{resourceType}/{resourceName}' for resources." + }, + { + "name": "$filter", + "in": "query", + "required": false, + "type": "string", + "description": "The filter to apply on the operation." + }, + { + "$ref": "#/parameters/ApiVersionParameter" + } + ], + "responses": { + "200": { + "description": "OK - Returns an array of resource locks.", + "schema": { + "$ref": "#/definitions/ManagementLockListResult" + } + } + }, + "x-ms-pageable": { + "nextLinkName": "nextLink" + }, + "x-ms-odata": "#/definitions/ManagementLockObject", + "x-ms-examples": { + "List management locks at scope": { + "$ref": "./examples/ManagementLocks_ListAtScope.json" + } + } + } + } + }, + "definitions": { + "ManagementLockOwner": { + "properties": { + "applicationId": { + "type": "string", + "description": "The application ID of the lock owner." + } + }, + "description": "Lock owner properties." + }, + "ManagementLockProperties": { + "properties": { + "level": { + "type": "string", + "description": "The level of the lock. Possible values are: NotSpecified, CanNotDelete, ReadOnly. CanNotDelete means authorized users are able to read and modify the resources, but not delete. ReadOnly means authorized users can only read from a resource, but they can't modify or delete it.", + "enum": [ + "NotSpecified", + "CanNotDelete", + "ReadOnly" + ], + "x-ms-enum": { + "name": "LockLevel", + "modelAsString": true + } + }, + "notes": { + "type": "string", + "description": "Notes about the lock. Maximum of 512 characters." + }, + "owners": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementLockOwner" + }, + "description": "The owners of the lock." + } + }, + "required": [ + "level" + ], + "description": "The lock properties." + }, + "ManagementLockObject": { + "properties": { + "properties": { + "x-ms-client-flatten": true, + "$ref": "#/definitions/ManagementLockProperties", + "description": "The properties of the lock." + }, + "id": { + "readOnly": true, + "type": "string", + "description": "The resource ID of the lock." + }, + "type": { + "readOnly": true, + "type": "string", + "description": "The resource type of the lock - Microsoft.Authorization/locks." + }, + "name": { + "readOnly": true, + "type": "string", + "description": "The name of the lock." + } + }, + "required": [ + "properties" + ], + "description": "The lock information.", + "x-ms-azure-resource": true + }, + "ManagementLockListResult": { + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/ManagementLockObject" + }, + "description": "The list of locks." + }, + "nextLink": { + "type": "string", + "description": "The URL to use for getting the next set of results." + } + }, + "description": "The list of locks." + }, + "Operation": { + "description": "Microsoft.Authorization operation", + "type": "object", + "properties": { + "name": { + "description": "Operation name: {provider}/{resource}/{operation}", + "type": "string" + }, + "display": { + "description": "The object that represents the operation.", + "properties": { + "provider": { + "description": "Service provider: Microsoft.Authorization", + "type": "string" + }, + "resource": { + "description": "Resource on which the operation is performed: Profile, endpoint, etc.", + "type": "string" + }, + "operation": { + "description": "Operation type: Read, write, delete, etc.", + "type": "string" + } + } + } + } + }, + "OperationListResult": { + "description": "Result of the request to list Microsoft.Authorization operations. It contains a list of operations and a URL link to get the next set of results.", + "properties": { + "value": { + "type": "array", + "items": { + "$ref": "#/definitions/Operation" + }, + "description": "List of Microsoft.Authorization operations." + }, + "nextLink": { + "type": "string", + "description": "URL to get the next set of operation list results if there are any." + } + } + } + }, + "parameters": { + "SubscriptionIdParameter": { + "name": "subscriptionId", + "in": "path", + "required": true, + "type": "string", + "description": "The ID of the target subscription." + }, + "ApiVersionParameter": { + "name": "api-version", + "in": "query", + "required": true, + "type": "string", + "description": "The API version to use for the operation." + } + } +} From 822b3657d7b560d853b418c9a9bd9dd21fa4f128 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Tue, 20 Jul 2021 14:44:22 -0700 Subject: [PATCH 06/17] add locks to readme --- .../resources/resource-manager/readme.md | 21 ++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/readme.md b/specification/resources/resource-manager/readme.md index 1c34b373b0f2..d60c5b4c1a63 100644 --- a/specification/resources/resource-manager/readme.md +++ b/specification/resources/resource-manager/readme.md @@ -33,7 +33,7 @@ tag: package-features-2021-07 ``` ``` yaml $(package-locks) -tag: package-locks-2016-09 +tag: package-locks-2020-05 ``` ``` yaml $(package-policy) @@ -75,6 +75,16 @@ input-file: - Microsoft.Authorization/stable/2020-05-01/privateLinks.json ``` +### Tag: package-locks-2020-05 + +These settings apply only when `--tag=package-locks-2020-05` is specified on the command line. + +``` yaml $(tag) == 'package-locks-2020-05' +input-file: +- Microsoft.Authorization/stable/2020-05-01/locks.json +``` + + ### Tag: package-resources-2021-04 @@ -101,6 +111,15 @@ input-file: override-info: title: PolicyClient ``` +### Tag: package-locks-2017-04 + +These settings apply only when `--tag=package-locks-2017-04` is specified on the command line. + +``` yaml $(tag) == 'package-locks-2017-04' +input-file: +- Microsoft.Authorization/stable/2017-04-01/locks.json +``` + ### Tag: package-preview-2020-08 From f15dd75b4905b3f645d41e74fcec20d2450ad8e1 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Thu, 22 Jul 2021 13:38:19 -0700 Subject: [PATCH 07/17] fix linter errors --- .../stable/2020-05-01/locks.json | 55 +++++++++++++++++++ 1 file changed, 55 insertions(+) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index 00e4346bf624..a6042b350277 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -52,6 +52,9 @@ "schema": { "$ref": "#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-pageable": { @@ -118,6 +121,9 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -164,6 +170,9 @@ }, "200": { "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -209,6 +218,9 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -265,6 +277,9 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -304,6 +319,9 @@ }, "200": { "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -343,6 +361,9 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -436,6 +457,9 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -512,6 +536,9 @@ }, "200": { "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -587,6 +614,9 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -640,6 +670,9 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -676,6 +709,9 @@ }, "200": { "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -711,6 +747,9 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-examples": { @@ -758,6 +797,9 @@ "schema": { "$ref": "#/definitions/ManagementLockListResult" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-pageable": { @@ -839,6 +881,9 @@ "schema": { "$ref": "#/definitions/ManagementLockListResult" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-pageable": { @@ -880,6 +925,9 @@ "schema": { "$ref": "#/definitions/ManagementLockListResult" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-pageable": { @@ -925,6 +973,9 @@ "schema": { "$ref": "#/definitions/ManagementLockListResult" } + }, + "default": { + "description": "Error response describing why the operation failed." } }, "x-ms-pageable": { @@ -1002,6 +1053,10 @@ "readOnly": true, "type": "string", "description": "The name of the lock." + }, + "systemData": { + "$ref": "v2/types.json#/definitions/systemData", + "readOnly" : true } }, "required": [ From 6c39c0d38dd87e49644dffc0025c391b6c1fecf4 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Thu, 22 Jul 2021 13:46:54 -0700 Subject: [PATCH 08/17] fix prettier errors --- .../Microsoft.Authorization/stable/2020-05-01/locks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index a6042b350277..ce2b74bc10a2 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -1056,7 +1056,7 @@ }, "systemData": { "$ref": "v2/types.json#/definitions/systemData", - "readOnly" : true + "readOnly": true } }, "required": [ From 066a76289fcd67c06228802f3dbbb2b61ab63d92 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 26 Jul 2021 10:35:26 -0700 Subject: [PATCH 09/17] fix property reference --- .../Microsoft.Authorization/stable/2020-05-01/locks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index ce2b74bc10a2..3ba6eb375c8b 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -1055,7 +1055,7 @@ "description": "The name of the lock." }, "systemData": { - "$ref": "v2/types.json#/definitions/systemData", + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/systemData", "readOnly": true } }, From f61d0e43fe46945bccc8b23fd9454f98a55d2837 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 2 Aug 2021 10:54:23 -0700 Subject: [PATCH 10/17] add requested changes --- ...ks_CreateOrUpdateAtResourceGroupLevel.json | 4 +- ...ntLocks_CreateOrUpdateAtResourceLevel.json | 4 +- ...ManagementLocks_CreateOrUpdateAtScope.json | 4 +- ...cks_CreateOrUpdateAtSubscriptionLevel.json | 4 +- ...nagementLocks_GetAtResourceGroupLevel.json | 2 +- .../ManagementLocks_GetAtResourceLevel.json | 2 +- .../examples/ManagementLocks_GetAtScope.json | 2 +- ...anagementLocks_GetAtSubscriptionLevel.json | 2 +- ...agementLocks_ListAtResourceGroupLevel.json | 2 +- .../ManagementLocks_ListAtResourceLevel.json | 2 +- .../examples/ManagementLocks_ListAtScope.json | 2 +- ...nagementLocks_ListAtSubscriptionLevel.json | 2 +- .../stable/2017-04-01/locks.json | 102 ++++++++++++++++++ .../examples/ListProviderOperations.json | 2 +- ...ks_CreateOrUpdateAtResourceGroupLevel.json | 6 +- ...ntLocks_CreateOrUpdateAtResourceLevel.json | 6 +- ...ManagementLocks_CreateOrUpdateAtScope.json | 4 +- ...cks_CreateOrUpdateAtSubscriptionLevel.json | 4 +- ...nagementLocks_GetAtResourceGroupLevel.json | 2 +- .../ManagementLocks_GetAtResourceLevel.json | 2 +- .../examples/ManagementLocks_GetAtScope.json | 2 +- ...anagementLocks_GetAtSubscriptionLevel.json | 2 +- ...agementLocks_ListAtResourceGroupLevel.json | 2 +- .../ManagementLocks_ListAtResourceLevel.json | 2 +- .../examples/ManagementLocks_ListAtScope.json | 2 +- ...nagementLocks_ListAtSubscriptionLevel.json | 2 +- .../stable/2020-05-01/locks.json | 85 ++++++++++++--- 27 files changed, 205 insertions(+), 52 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json index 0d1a17d79841..e7e9a0ed39d8 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json @@ -16,7 +16,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } @@ -26,7 +26,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json index 601b91d1ef3f..5293b5dc24ab 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json @@ -20,7 +20,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } @@ -30,7 +30,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json index b9efc85edd71..01a22f26a4f4 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -15,7 +15,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } @@ -25,7 +25,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json index 38311972abf6..fa64070c64f2 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -15,7 +15,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } @@ -25,7 +25,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json index b1a7b8d4206d..eea0bf5052ba 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -11,7 +11,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json index fc4efee8ad97..e1e56407a13c 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json @@ -15,7 +15,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json index caeab93e4c24..7e4bb998f8f6 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json @@ -10,7 +10,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json index b1a7b8d4206d..eea0bf5052ba 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -11,7 +11,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json index 7dcbe5b9e854..cbbe4058175f 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -12,7 +12,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json index 139b5b75c7fe..529ebba34e9f 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json @@ -16,7 +16,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json index 219052cfc3e7..20b21b76a75b 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json @@ -11,7 +11,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json index fab8c451fd03..4755d537cda5 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -11,7 +11,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json index 325c4b7d28a3..a771f0a9c0b9 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json @@ -52,6 +52,12 @@ "schema": { "$ref": "#/definitions/OperationListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -118,6 +124,12 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -164,6 +176,12 @@ }, "200": { "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -209,6 +227,12 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -265,6 +289,12 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -304,6 +334,12 @@ }, "200": { "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -343,6 +379,12 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -436,6 +478,12 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -512,6 +560,12 @@ }, "200": { "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -587,6 +641,12 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -640,6 +700,12 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -676,6 +742,12 @@ }, "200": { "description": "OK" + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -711,6 +783,12 @@ "schema": { "$ref": "#/definitions/ManagementLockObject" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -758,6 +836,12 @@ "schema": { "$ref": "#/definitions/ManagementLockListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -839,6 +923,12 @@ "schema": { "$ref": "#/definitions/ManagementLockListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -880,6 +970,12 @@ "schema": { "$ref": "#/definitions/ManagementLockListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -925,6 +1021,12 @@ "schema": { "$ref": "#/definitions/ManagementLockListResult" } + }, + "default": { + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json index 5c15ac1c0475..714673520b3f 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ListProviderOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json index 0d1a17d79841..8a4c2f9655aa 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", "lockName": "testlock", - "api-version": "2016-09-01", + "api-version": "2020-05-01", "parameters": { "properties": { "level": "ReadOnly" @@ -16,7 +16,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } @@ -26,7 +26,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json index 601b91d1ef3f..3dec34a5440d 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json @@ -7,7 +7,7 @@ "resourceType": "storageAccounts", "resourceName": "teststorageaccount", "lockName": "testlock", - "api-version": "2016-09-01", + "api-version": "2020-05-01", "parameters": { "properties": { "level": "ReadOnly" @@ -20,7 +20,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } @@ -30,7 +30,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json index b9efc85edd71..01a22f26a4f4 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -15,7 +15,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } @@ -25,7 +25,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json index 38311972abf6..fa64070c64f2 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -15,7 +15,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } @@ -25,7 +25,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json index b1a7b8d4206d..eea0bf5052ba 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -11,7 +11,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json index fc4efee8ad97..e1e56407a13c 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json @@ -15,7 +15,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json index caeab93e4c24..7e4bb998f8f6 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json @@ -10,7 +10,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json index b1a7b8d4206d..eea0bf5052ba 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -11,7 +11,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json index 7dcbe5b9e854..cbbe4058175f 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -12,7 +12,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json index 139b5b75c7fe..529ebba34e9f 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json @@ -16,7 +16,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json index 219052cfc3e7..20b21b76a75b 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json @@ -11,7 +11,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json index fab8c451fd03..4755d537cda5 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -11,7 +11,7 @@ "properties": { "level": "ReadOnly" }, - "id": "/providers/Microsoft.Authorization/locks/testlock", + "id": "/subscriptions/subscriptionId/resourceGroups/resourcegroupname/providers/Microsoft.Authorization/locks/testlock", "type": "Microsoft.Authorization/locks", "name": "testlock" } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index 3ba6eb375c8b..0d3a1ac0d58b 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -54,7 +54,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -123,7 +126,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -172,7 +178,10 @@ "description": "OK" }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -220,7 +229,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -279,7 +291,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -321,7 +336,10 @@ "description": "OK" }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -363,7 +381,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -459,7 +480,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -538,7 +562,10 @@ "description": "OK" }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -616,7 +643,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -672,7 +702,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -711,7 +744,10 @@ "description": "OK" }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -749,7 +785,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-examples": { @@ -799,7 +838,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -883,7 +925,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -927,7 +972,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { @@ -975,7 +1023,10 @@ } }, "default": { - "description": "Error response describing why the operation failed." + "description": "Error response describing why the operation failed.", + "schema":{ + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + } } }, "x-ms-pageable": { From 6d60a192d30f22be20e046a220e8e812672038d8 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 2 Aug 2021 11:13:56 -0700 Subject: [PATCH 11/17] prettier fix --- .../stable/2017-04-01/locks.json | 34 +++++++++---------- .../stable/2020-05-01/locks.json | 34 +++++++++---------- 2 files changed, 34 insertions(+), 34 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json index a771f0a9c0b9..aea219f7f328 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/locks.json @@ -55,7 +55,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -127,7 +127,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -179,7 +179,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -230,7 +230,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -292,7 +292,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -337,7 +337,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -382,7 +382,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -481,7 +481,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -563,7 +563,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -644,7 +644,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -703,7 +703,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -745,7 +745,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -786,7 +786,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -839,7 +839,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -926,7 +926,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -973,7 +973,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -1024,7 +1024,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index 0d3a1ac0d58b..18a663f125fd 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -55,7 +55,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -127,7 +127,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -179,7 +179,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -230,7 +230,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -292,7 +292,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -337,7 +337,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -382,7 +382,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -481,7 +481,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -563,7 +563,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -644,7 +644,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -703,7 +703,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -745,7 +745,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -786,7 +786,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -839,7 +839,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -926,7 +926,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -973,7 +973,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } @@ -1024,7 +1024,7 @@ }, "default": { "description": "Error response describing why the operation failed.", - "schema":{ + "schema": { "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } From f6bbb76badd597093b88d6a6d59371bd066726e1 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 2 Aug 2021 19:34:01 -0700 Subject: [PATCH 12/17] unifying common type reference --- .../stable/2017-04-01/examples/ListProviderOperations.json | 2 +- .../ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json | 2 +- .../examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json | 2 +- .../examples/ManagementLocks_CreateOrUpdateAtScope.json | 2 +- .../ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json | 2 +- .../examples/ManagementLocks_DeleteAtResourceGroupLevel.json | 2 +- .../examples/ManagementLocks_DeleteAtResourceLevel.json | 2 +- .../2017-04-01/examples/ManagementLocks_DeleteAtScope.json | 2 +- .../examples/ManagementLocks_DeleteAtSubscriptionLevel.json | 2 +- .../examples/ManagementLocks_GetAtResourceGroupLevel.json | 2 +- .../2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json | 2 +- .../stable/2017-04-01/examples/ManagementLocks_GetAtScope.json | 2 +- .../examples/ManagementLocks_GetAtSubscriptionLevel.json | 2 +- .../examples/ManagementLocks_ListAtResourceGroupLevel.json | 2 +- .../examples/ManagementLocks_ListAtResourceLevel.json | 2 +- .../stable/2017-04-01/examples/ManagementLocks_ListAtScope.json | 2 +- .../examples/ManagementLocks_ListAtSubscriptionLevel.json | 2 +- .../examples/ManagementLocks_CreateOrUpdateAtScope.json | 2 +- .../ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json | 2 +- .../examples/ManagementLocks_DeleteAtResourceGroupLevel.json | 2 +- .../examples/ManagementLocks_DeleteAtResourceLevel.json | 2 +- .../2020-05-01/examples/ManagementLocks_DeleteAtScope.json | 2 +- .../examples/ManagementLocks_DeleteAtSubscriptionLevel.json | 2 +- .../examples/ManagementLocks_GetAtResourceGroupLevel.json | 2 +- .../2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json | 2 +- .../examples/ManagementLocks_GetAtSubscriptionLevel.json | 2 +- .../examples/ManagementLocks_ListAtResourceGroupLevel.json | 2 +- .../examples/ManagementLocks_ListAtResourceLevel.json | 2 +- .../stable/2020-05-01/examples/ManagementLocks_ListAtScope.json | 2 +- .../examples/ManagementLocks_ListAtSubscriptionLevel.json | 2 +- .../Microsoft.Authorization/stable/2020-05-01/privateLinks.json | 2 +- 31 files changed, 31 insertions(+), 31 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json index 5c15ac1c0475..ca48011201b5 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ListProviderOperations.json @@ -1,6 +1,6 @@ { "parameters": { - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json index e7e9a0ed39d8..6f438e1d39dd 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceGroupLevel.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", "lockName": "testlock", - "api-version": "2016-09-01", + "api-version": "2017-04-01", "parameters": { "properties": { "level": "ReadOnly" diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json index 5293b5dc24ab..deaa709d7c6d 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtResourceLevel.json @@ -7,7 +7,7 @@ "resourceType": "storageAccounts", "resourceName": "teststorageaccount", "lockName": "testlock", - "api-version": "2016-09-01", + "api-version": "2017-04-01", "parameters": { "properties": { "level": "ReadOnly" diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json index 01a22f26a4f4..978b6f0e6a35 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01", + "api-version": "2017-04-01", "parameters": { "properties": { "level": "ReadOnly" diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json index fa64070c64f2..101f79079cd8 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01", + "api-version": "2017-04-01", "parameters": { "properties": { "level": "ReadOnly" diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json index 485daca86bd3..3f53e41f0712 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "204": {}, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json index 5f4ab8b56bfd..9b5def12fc67 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtResourceLevel.json @@ -7,7 +7,7 @@ "resourceType": "storageAccounts", "resourceName": "teststorageaccount", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "204": {}, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json index eb52b025e28e..4d0e98094bf1 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtScope.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "204": {}, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json index 20b598d9a186..660fe763ff48 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "204": {}, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json index eea0bf5052ba..57c4829b8ca6 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json index e1e56407a13c..116abc47a57d 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtResourceLevel.json @@ -7,7 +7,7 @@ "resourceType": "storageAccounts", "resourceName": "teststorageaccount", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json index 7e4bb998f8f6..451fd0e4ae62 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtScope.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json index eea0bf5052ba..57c4829b8ca6 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json index cbbe4058175f..6b710eb40f1f 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json index 529ebba34e9f..7e49925a349a 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtResourceLevel.json @@ -6,7 +6,7 @@ "parentResourcePath": "parentResourcePath", "resourceType": "storageAccounts", "resourceName": "teststorageaccount", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json index 20b21b76a75b..c859a8028b66 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtScope.json @@ -1,7 +1,7 @@ { "parameters": { "scope": "subscriptions/subscriptionId", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json index 4755d537cda5..b95519f6eff9 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2017-04-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subscriptionId", - "api-version": "2016-09-01" + "api-version": "2017-04-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json index 01a22f26a4f4..c0c317056ac6 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtScope.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01", + "api-version": "2020-05-01", "parameters": { "properties": { "level": "ReadOnly" diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json index fa64070c64f2..2973fee11cff 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_CreateOrUpdateAtSubscriptionLevel.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01", + "api-version": "2020-05-01", "parameters": { "properties": { "level": "ReadOnly" diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json index 485daca86bd3..96bfcaaf6d6d 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceGroupLevel.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "204": {}, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json index 5f4ab8b56bfd..5b5157440d52 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtResourceLevel.json @@ -7,7 +7,7 @@ "resourceType": "storageAccounts", "resourceName": "teststorageaccount", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "204": {}, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json index eb52b025e28e..c7cdc3201dc4 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtScope.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "204": {}, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json index 20b598d9a186..69f83a3055a1 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_DeleteAtSubscriptionLevel.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "204": {}, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json index eea0bf5052ba..0a188c2b2037 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceGroupLevel.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json index e1e56407a13c..e8d9cdc460ac 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtResourceLevel.json @@ -7,7 +7,7 @@ "resourceType": "storageAccounts", "resourceName": "teststorageaccount", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json index eea0bf5052ba..0a188c2b2037 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtSubscriptionLevel.json @@ -3,7 +3,7 @@ "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json index cbbe4058175f..d3b533b5db93 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceGroupLevel.json @@ -2,7 +2,7 @@ "parameters": { "subscriptionId": "subscriptionId", "resourceGroupName": "resourcegroupname", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json index 529ebba34e9f..2c06a3a26f86 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtResourceLevel.json @@ -6,7 +6,7 @@ "parentResourcePath": "parentResourcePath", "resourceType": "storageAccounts", "resourceName": "teststorageaccount", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json index 20b21b76a75b..7cc5c9b65fd6 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtScope.json @@ -1,7 +1,7 @@ { "parameters": { "scope": "subscriptions/subscriptionId", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json index 4755d537cda5..2c6ef36b9ea3 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_ListAtSubscriptionLevel.json @@ -1,7 +1,7 @@ { "parameters": { "subscriptionId": "subscriptionId", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json index 20bbc6b91487..ec8995429f18 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json @@ -494,7 +494,7 @@ "x-ms-external": true, "properties": { "error": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } }, "description": "An error response for a resource management request." From e96e1ca5b49a4cc85e3c7cc84ca43c430fde5530 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 2 Aug 2021 20:04:01 -0700 Subject: [PATCH 13/17] use v1 common type --- .../examples/ManagementLocks_GetAtScope.json | 2 +- .../stable/2020-05-01/locks.json | 34 +++++++++---------- .../stable/2020-05-01/privateLinks.json | 2 +- 3 files changed, 19 insertions(+), 19 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json index 7e4bb998f8f6..f523f551aa8e 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/examples/ManagementLocks_GetAtScope.json @@ -2,7 +2,7 @@ "parameters": { "scope": "subscriptions/subscriptionId", "lockName": "testlock", - "api-version": "2016-09-01" + "api-version": "2020-05-01" }, "responses": { "200": { diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index 18a663f125fd..b5cb65837635 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -128,7 +128,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -180,7 +180,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -231,7 +231,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -293,7 +293,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -338,7 +338,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -383,7 +383,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -482,7 +482,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -564,7 +564,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -645,7 +645,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -704,7 +704,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -746,7 +746,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -787,7 +787,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -840,7 +840,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -927,7 +927,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -974,7 +974,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, @@ -1025,7 +1025,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } } }, diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json index ec8995429f18..20bbc6b91487 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/privateLinks.json @@ -494,7 +494,7 @@ "x-ms-external": true, "properties": { "error": { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" } }, "description": "An error response for a resource management request." From 57eda41e7a31405b6ec861181a71125b4f34cdc2 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Thu, 5 Aug 2021 12:40:31 -0700 Subject: [PATCH 14/17] remove local ApiVersionParameter --- .../stable/2020-05-01/locks.json | 41 ++++++++----------- 1 file changed, 17 insertions(+), 24 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index b5cb65837635..7fc7f1622a9a 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -43,7 +43,7 @@ "description": "Lists all of the available Microsoft.Authorization REST API operations.", "parameters": [ { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -106,7 +106,7 @@ "description": "The management lock parameters." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -164,7 +164,7 @@ "description": "The name of lock to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -215,7 +215,7 @@ "description": "The name of the lock to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -274,7 +274,7 @@ "description": "Create or update management lock parameters." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -325,7 +325,7 @@ "description": "The name of lock." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -370,7 +370,7 @@ "description": "The name of lock." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -460,7 +460,7 @@ "description": "Parameters for creating or updating a management lock." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -548,7 +548,7 @@ "description": "The name of the lock to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -629,7 +629,7 @@ "description": "The name of lock." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -682,7 +682,7 @@ "description": "The management lock parameters." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -730,7 +730,7 @@ "description": "The name of lock to delete." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -771,7 +771,7 @@ "description": "The name of the lock to get." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -824,7 +824,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -911,7 +911,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -958,7 +958,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -1012,7 +1012,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "#/parameters/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" } ], "responses": { @@ -1183,13 +1183,6 @@ "required": true, "type": "string", "description": "The ID of the target subscription." - }, - "ApiVersionParameter": { - "name": "api-version", - "in": "query", - "required": true, - "type": "string", - "description": "The API version to use for the operation." } } } From 60ac7a94ebe9ec13dcb38ac2e086c1756cc16c42 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Mon, 16 Aug 2021 02:06:45 -0700 Subject: [PATCH 15/17] Update specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json Co-authored-by: JianyeXi <59603451+jianyexi@users.noreply.github.com> --- .../Microsoft.Authorization/stable/2020-05-01/locks.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index 7fc7f1622a9a..a14beb73e84c 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -43,7 +43,7 @@ "description": "Lists all of the available Microsoft.Authorization REST API operations.", "parameters": [ { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { From 88a53097b583720b4a2ebf1281353f476f095210 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Tue, 17 Aug 2021 13:03:49 -0700 Subject: [PATCH 16/17] update APIVersion Parameter --- .../stable/2020-05-01/locks.json | 32 +++++++++---------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index a14beb73e84c..159d13d84b84 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -106,7 +106,7 @@ "description": "The management lock parameters." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -164,7 +164,7 @@ "description": "The name of lock to delete." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -215,7 +215,7 @@ "description": "The name of the lock to get." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -274,7 +274,7 @@ "description": "Create or update management lock parameters." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -325,7 +325,7 @@ "description": "The name of lock." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -370,7 +370,7 @@ "description": "The name of lock." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { @@ -460,7 +460,7 @@ "description": "Parameters for creating or updating a management lock." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -548,7 +548,7 @@ "description": "The name of the lock to delete." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -629,7 +629,7 @@ "description": "The name of lock." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -682,7 +682,7 @@ "description": "The management lock parameters." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -730,7 +730,7 @@ "description": "The name of lock to delete." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -771,7 +771,7 @@ "description": "The name of the lock to get." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -824,7 +824,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -911,7 +911,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -958,7 +958,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" }, { "$ref": "#/parameters/SubscriptionIdParameter" @@ -1012,7 +1012,7 @@ "description": "The filter to apply on the operation." }, { - "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ApiVersionParameter" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/parameters/ApiVersionParameter" } ], "responses": { From 13aac0e362358da557a3f719344ce3eb020a4bc4 Mon Sep 17 00:00:00 2001 From: TJ Egbejimba Date: Fri, 27 Aug 2021 11:08:14 -0700 Subject: [PATCH 17/17] add correct default error response schema --- .../stable/2020-05-01/locks.json | 34 +++++++++---------- 1 file changed, 17 insertions(+), 17 deletions(-) diff --git a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json index 159d13d84b84..9a58ec7f0eca 100644 --- a/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json +++ b/specification/resources/resource-manager/Microsoft.Authorization/stable/2020-05-01/locks.json @@ -56,7 +56,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -128,7 +128,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -180,7 +180,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -231,7 +231,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -293,7 +293,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -338,7 +338,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -383,7 +383,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -482,7 +482,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -564,7 +564,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -645,7 +645,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -704,7 +704,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -746,7 +746,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -787,7 +787,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -840,7 +840,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -927,7 +927,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -974,7 +974,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } }, @@ -1025,7 +1025,7 @@ "default": { "description": "Error response describing why the operation failed.", "schema": { - "$ref": "../../../../../common-types/resource-management/v1/types.json#/definitions/ErrorResponse" + "$ref": "../../../../../common-types/resource-management/v2/types.json#/definitions/ErrorResponse" } } },