diff --git a/specification/servicenetworking/ServiceNetworking.Management/main.tsp b/specification/servicenetworking/ServiceNetworking.Management/main.tsp index 4c599c07e25c..a8f828371c71 100644 --- a/specification/servicenetworking/ServiceNetworking.Management/main.tsp +++ b/specification/servicenetworking/ServiceNetworking.Management/main.tsp @@ -31,7 +31,7 @@ model Frontend is TrackedResource{ @visibility("read") @path @segment("frontends") - @pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+") + @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") name : string; } @@ -55,7 +55,7 @@ model Association is TrackedResource { @doc("Name of Association") @path @segment("associations") - @pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+") + @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") name: string; } @@ -88,7 +88,7 @@ model TrafficController is TrackedResource { @path @segment("trafficControllers") @doc("traffic controller name for path") - @pattern("[A-Za-z0-9]+[A-Za-z0-9-_.]{0,62}[A-Za-z0-9_]+") + @pattern("^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$") name: string; } diff --git a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json index 53fc8aced975..e35202106df5 100644 --- a/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json +++ b/specification/servicenetworking/resource-manager/Microsoft.ServiceNetworking/preview/2023-05-01-preview/TrafficController.json @@ -192,8 +192,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" } ], "responses": { @@ -237,8 +237,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "resource", @@ -308,8 +308,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "properties", @@ -362,8 +362,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" } ], "responses": { @@ -427,8 +427,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" } ], "responses": { @@ -477,16 +477,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "associationName", "in": "path", "required": true, "description": "Name of Association", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" } ], "responses": { @@ -530,16 +530,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "associationName", "in": "path", "required": true, "description": "Name of Association", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "resource", @@ -609,16 +609,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "associationName", "in": "path", "required": true, "description": "Name of Association", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "properties", @@ -671,16 +671,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "associationName", "in": "path", "required": true, "description": "Name of Association", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" } ], "responses": { @@ -744,8 +744,8 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" } ], "responses": { @@ -794,16 +794,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "frontendName", "in": "path", "required": true, "description": "Frontends", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" } ], "responses": { @@ -847,16 +847,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "frontendName", "in": "path", "required": true, "description": "Frontends", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "resource", @@ -926,16 +926,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "frontendName", "in": "path", "required": true, "description": "Frontends", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "properties", @@ -988,16 +988,16 @@ "in": "path", "required": true, "description": "traffic controller name for path", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" }, { "name": "frontendName", "in": "path", "required": true, "description": "Frontends", - "type": "string", - "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$" + "pattern": "^[A-Za-z0-9]([A-Za-z0-9-_.]{0,62}[A-Za-z0-9])?$", + "type": "string" } ], "responses": {