Skip to content

Commit

Permalink
[ServiceNetworking.Management] Update TypeSpec to match Swagger (#24225)
Browse files Browse the repository at this point in the history
- Swagger was accidentally updated manually in #24081
  • Loading branch information
malpaniHMC committed May 31, 2023
1 parent 44fe78f commit 4732753
Show file tree
Hide file tree
Showing 2 changed files with 47 additions and 47 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ model Frontend is TrackedResource<FrontendProperties>{
@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;
}

Expand All @@ -55,7 +55,7 @@ model Association is TrackedResource<AssociationProperties> {
@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;
}

Expand Down Expand Up @@ -88,7 +88,7 @@ model TrafficController is TrackedResource<TrafficControllerProperties> {
@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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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": {
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit 4732753

Please sign in to comment.