From 4c7d251d52d90ddb3c845203fbc890658316e0c9 Mon Sep 17 00:00:00 2001 From: Samir Solanki Date: Mon, 25 Feb 2019 13:37:40 -0800 Subject: [PATCH] switch to plural example file names for LIST --- .../preview/2018-06-01-preview/apimapis.json | 20 +++----------- .../2018-06-01-preview/apimpolicies.json | 4 +-- .../2018-06-01-preview/apimproducts.json | 8 +++--- .../2018-06-01-preview/apimproperties.json | 4 +-- .../preview/2018-06-01-preview/apimusers.json | 4 +-- ...piManagementListApiOperationPolicies.json} | 0 .../ApiManagementListApiPolicies.json | 26 +++++++++++++++++++ .../examples/ApiManagementListApiPolicys.json | 26 ------------------- ...ys.json => ApiManagementListPolicies.json} | 0 ... => ApiManagementListProductPolicies.json} | 0 ...json => ApiManagementListProductTags.json} | 0 ....json => ApiManagementListProperties.json} | 0 ...n => ApiManagementListUserIdentities.json} | 0 13 files changed, 40 insertions(+), 52 deletions(-) rename specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/{ApiManagementListApiOperationPolicys.json => ApiManagementListApiOperationPolicies.json} (100%) create mode 100644 specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiPolicies.json delete mode 100644 specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiPolicys.json rename specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/{ApiManagementListPolicys.json => ApiManagementListPolicies.json} (100%) rename specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/{ApiManagementListProductPolicys.json => ApiManagementListProductPolicies.json} (100%) rename specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/{ApiManagementGetTagsForProduct.json => ApiManagementListProductTags.json} (100%) rename specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/{ApiManagementListPropertys.json => ApiManagementListProperties.json} (100%) rename specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/{ApiManagementListUserIdentitys.json => ApiManagementListUserIdentities.json} (100%) diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json index 7687b248683d..a3a79ea8a71f 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimapis.json @@ -1198,8 +1198,8 @@ "operationId": "ApiOperationPolicy_ListByOperation", "description": "Get the list of policy configuration at the API Operation level.", "x-ms-examples": { - "ApiManagementListApiOperationPolicys": { - "$ref": "./examples/ApiManagementListApiOperationPolicys.json" + "ApiManagementListApiOperationPolicies": { + "$ref": "./examples/ApiManagementListApiOperationPolicies.json" } }, "parameters": [ @@ -1678,9 +1678,6 @@ { "$ref": "./apimanagement.json#/parameters/TagIdParameter" }, - { - "$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter" - }, { "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" }, @@ -1736,9 +1733,6 @@ { "$ref": "./apimanagement.json#/parameters/TagIdParameter" }, - { - "$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter" - }, { "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" }, @@ -1832,8 +1826,8 @@ "operationId": "ApiPolicy_ListByApi", "description": "Get the policy configuration at the API level.", "x-ms-examples": { - "ApiManagementListApiPolicys": { - "$ref": "./examples/ApiManagementListApiPolicys.json" + "ApiManagementListApiPolicies": { + "$ref": "./examples/ApiManagementListApiPolicies.json" } }, "parameters": [ @@ -4198,9 +4192,6 @@ { "$ref": "./apimanagement.json#/parameters/TagIdParameter" }, - { - "$ref": "./apimanagement.json#/parameters/IfMatchOptionalParameter" - }, { "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" }, @@ -4265,9 +4256,6 @@ { "$ref": "./apimanagement.json#/parameters/TagIdParameter" }, - { - "$ref": "./apimanagement.json#/parameters/IfMatchRequiredParameter" - }, { "$ref": "./apimanagement.json#/parameters/ApiVersionParameter" }, diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json index 21edee317ed7..b75f16bfad9e 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimpolicies.json @@ -42,8 +42,8 @@ "operationId": "Policy_ListByService", "description": "Lists all the Global Policy definitions of the Api Management service.", "x-ms-examples": { - "ApiManagementListPolicys": { - "$ref": "./examples/ApiManagementListPolicys.json" + "ApiManagementListPolicies": { + "$ref": "./examples/ApiManagementListPolicies.json" } }, "parameters": [ diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json index 1d8556979bf0..7be672f95b6f 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproducts.json @@ -862,8 +862,8 @@ "operationId": "ProductPolicy_ListByProduct", "description": "Get the policy configuration at the Product level.", "x-ms-examples": { - "ApiManagementListProductPolicys": { - "$ref": "./examples/ApiManagementListProductPolicys.json" + "ApiManagementListProductPolicies": { + "$ref": "./examples/ApiManagementListProductPolicies.json" } }, "parameters": [ @@ -1135,8 +1135,8 @@ "operationId": "Tag_ListByProduct", "description": "Lists all Tags associated with the Product.", "x-ms-examples": { - "ApiManagementGetTagsForProduct": { - "$ref": "./examples/ApiManagementGetTagsForProduct.json" + "ApiManagementListProductTags": { + "$ref": "./examples/ApiManagementListProductTags.json" } }, "parameters": [ diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json index 637c868c4c1c..5cd10bb699a7 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimproperties.json @@ -45,8 +45,8 @@ "url": "https://docs.microsoft.com/en-us/azure/api-management/api-management-howto-properties" }, "x-ms-examples": { - "ApiManagementListPropertys": { - "$ref": "./examples/ApiManagementListPropertys.json" + "ApiManagementListProperties": { + "$ref": "./examples/ApiManagementListProperties.json" } }, "parameters": [ diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json index ff81db84bb66..37ae3a95eb6b 100644 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/apimusers.json @@ -558,8 +558,8 @@ "operationId": "UserIdentities_List", "description": "Lists all user identities.", "x-ms-examples": { - "ApiManagementListUserIdentitys": { - "$ref": "./examples/ApiManagementListUserIdentitys.json" + "ApiManagementListUserIdentities": { + "$ref": "./examples/ApiManagementListUserIdentities.json" } }, "parameters": [ diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiOperationPolicys.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiOperationPolicies.json similarity index 100% rename from specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiOperationPolicys.json rename to specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiOperationPolicies.json diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiPolicies.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiPolicies.json new file mode 100644 index 000000000000..8670cead052c --- /dev/null +++ b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiPolicies.json @@ -0,0 +1,26 @@ +{ + "parameters": { + "serviceName": "apimService1", + "resourceGroupName": "rg1", + "api-version": "2018-06-01-preview", + "subscriptionId": "subid", + "apiId": "5600b59475ff190048040001" + }, + "responses": { + "200": { + "body": { + "value": [ + { + "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5600b59475ff190048040001/policies/policy", + "type": "Microsoft.ApiManagement/service/apis/policies", + "name": "policy", + "properties": { + "policyContent": "\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n@{\r\n\tRandom Random = new Random();\r\n\t\t\t\tconst string Chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \"; \r\n return string.Join(\",\", DateTime.UtcNow, new string(\r\n Enumerable.Repeat(Chars, Random.Next(2150400))\r\n .Select(s => s[Random.Next(s.Length)])\r\n .ToArray()));\r\n } \r\n \r\n \r\n \r\n" + } + } + ], + "nextLink": "" + } + } + } +} \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiPolicys.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiPolicys.json deleted file mode 100644 index 9258e5ff1253..000000000000 --- a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListApiPolicys.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "parameters": { - "serviceName": "apimService1", - "resourceGroupName": "rg1", - "api-version": "2018-06-01-preview", - "subscriptionId": "subid", - "apiId": "5600b59475ff190048040001" - }, - "responses": { - "200": { - "body": { - "value": [ - { - "id": "/subscriptions/subid/resourceGroups/rg1/providers/Microsoft.ApiManagement/service/apimService1/apis/5600b59475ff190048040001/policies/policy", - "type": "Microsoft.ApiManagement/service/apis/policies", - "name": "policy", - "properties": { - "policyContent": "\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n@{\r\n\tRandom Random = new Random();\r\n\t\t\t\tconst string Chars = \"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz \"; \r\n return string.Join(\",\", DateTime.UtcNow, new string(\r\n Enumerable.Repeat(Chars, Random.Next(2150400))\r\n .Select(s => s[Random.Next(s.Length)])\r\n .ToArray()));\r\n } \r\n \r\n \r\n \r\n" - } - } - ], - "nextLink": "" - } - } - } -} \ No newline at end of file diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListPolicys.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListPolicies.json similarity index 100% rename from specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListPolicys.json rename to specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListPolicies.json diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListProductPolicys.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListProductPolicies.json similarity index 100% rename from specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListProductPolicys.json rename to specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListProductPolicies.json diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementGetTagsForProduct.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListProductTags.json similarity index 100% rename from specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementGetTagsForProduct.json rename to specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListProductTags.json diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListPropertys.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListProperties.json similarity index 100% rename from specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListPropertys.json rename to specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListProperties.json diff --git a/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListUserIdentitys.json b/specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListUserIdentities.json similarity index 100% rename from specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListUserIdentitys.json rename to specification/apimanagement/resource-manager/Microsoft.ApiManagement/preview/2018-06-01-preview/examples/ApiManagementListUserIdentities.json