From 8e763d7b80e47a7e1d18c69c597fd05208858db3 Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Wed, 20 Oct 2021 07:35:10 +0200 Subject: [PATCH 1/2] trafficmanager: adding the missing enum values for traffic manager endpoint These are required in the API but undocumented - so pulling these out explicitly --- .../stable/2018-08-01/trafficmanager.json | 44 +++++++++++++++++-- 1 file changed, 40 insertions(+), 4 deletions(-) diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/trafficmanager.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/trafficmanager.json index 021b1aafa6cc..f3e8ae8cbf90 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/trafficmanager.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/trafficmanager.json @@ -42,7 +42,16 @@ "in": "path", "required": true, "type": "string", - "description": "The type of the Traffic Manager endpoint to be updated." + "description": "The type of the Traffic Manager endpoint to be updated.", + "enum": [ + "azureEndpoints", + "externalEndpoints", + "nestedEndpoints" + ], + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": false + } }, { "name": "endpointName", @@ -113,7 +122,16 @@ "in": "path", "required": true, "type": "string", - "description": "The type of the Traffic Manager endpoint." + "description": "The type of the Traffic Manager endpoint.", + "enum": [ + "azureEndpoints", + "externalEndpoints", + "nestedEndpoints" + ], + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": false + } }, { "name": "endpointName", @@ -181,7 +199,16 @@ "in": "path", "required": true, "type": "string", - "description": "The type of the Traffic Manager endpoint to be created or updated." + "description": "The type of the Traffic Manager endpoint to be created or updated.", + "enum": [ + "azureEndpoints", + "externalEndpoints", + "nestedEndpoints" + ], + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": false + } }, { "name": "endpointName", @@ -267,7 +294,16 @@ "in": "path", "required": true, "type": "string", - "description": "The type of the Traffic Manager endpoint to be deleted." + "description": "The type of the Traffic Manager endpoint to be deleted.", + "enum": [ + "azureEndpoints", + "externalEndpoints", + "nestedEndpoints" + ], + "x-ms-enum": { + "name": "EndpointType", + "modelAsString": false + } }, { "name": "endpointName", From bfd97ebfa7efc0d0b75d8daf4be20a4db4d4d43f Mon Sep 17 00:00:00 2001 From: tombuildsstuff Date: Fri, 29 Oct 2021 07:43:11 +0200 Subject: [PATCH 2/2] trafficmanager: casing to TitleCase --- .../stable/2018-08-01/trafficmanager.json | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/trafficmanager.json b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/trafficmanager.json index f3e8ae8cbf90..a57ff9a37790 100644 --- a/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/trafficmanager.json +++ b/specification/trafficmanager/resource-manager/Microsoft.Network/stable/2018-08-01/trafficmanager.json @@ -44,9 +44,9 @@ "type": "string", "description": "The type of the Traffic Manager endpoint to be updated.", "enum": [ - "azureEndpoints", - "externalEndpoints", - "nestedEndpoints" + "AzureEndpoints", + "ExternalEndpoints", + "NestedEndpoints" ], "x-ms-enum": { "name": "EndpointType", @@ -124,9 +124,9 @@ "type": "string", "description": "The type of the Traffic Manager endpoint.", "enum": [ - "azureEndpoints", - "externalEndpoints", - "nestedEndpoints" + "AzureEndpoints", + "ExternalEndpoints", + "NestedEndpoints" ], "x-ms-enum": { "name": "EndpointType", @@ -201,9 +201,9 @@ "type": "string", "description": "The type of the Traffic Manager endpoint to be created or updated.", "enum": [ - "azureEndpoints", - "externalEndpoints", - "nestedEndpoints" + "AzureEndpoints", + "ExternalEndpoints", + "NestedEndpoints" ], "x-ms-enum": { "name": "EndpointType", @@ -296,9 +296,9 @@ "type": "string", "description": "The type of the Traffic Manager endpoint to be deleted.", "enum": [ - "azureEndpoints", - "externalEndpoints", - "nestedEndpoints" + "AzureEndpoints", + "ExternalEndpoints", + "NestedEndpoints" ], "x-ms-enum": { "name": "EndpointType",