Skip to content

Commit

Permalink
Refactor cache swagger to deduplicate SkuName enum definitions. (Azur…
Browse files Browse the repository at this point in the history
  • Loading branch information
TimLovellSmith authored and Kayla Ames committed Mar 17, 2023
1 parent dff97b8 commit 7016add
Showing 1 changed file with 20 additions and 30 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1300,21 +1300,8 @@
"type": "object",
"properties": {
"name": {
"type": "string",
"description": "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)",
"enum": [
"Enterprise_E10",
"Enterprise_E20",
"Enterprise_E50",
"Enterprise_E100",
"EnterpriseFlash_F300",
"EnterpriseFlash_F700",
"EnterpriseFlash_F1500"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
"$ref": "#/definitions/SkuName",
"description": "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)"
},
"capacity": {
"type": "integer",
Expand Down Expand Up @@ -1938,24 +1925,27 @@
"description": "Information about Sku",
"properties": {
"name": {
"type": "string",
"description": "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)",
"enum": [
"Enterprise_E10",
"Enterprise_E20",
"Enterprise_E50",
"Enterprise_E100",
"EnterpriseFlash_F300",
"EnterpriseFlash_F700",
"EnterpriseFlash_F1500"
],
"x-ms-enum": {
"name": "name",
"modelAsString": true
}
"$ref": "#/definitions/SkuName",
"description": "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)"
}
}
},
"SkuName": {
"type": "string",
"enum": [
"Enterprise_E10",
"Enterprise_E20",
"Enterprise_E50",
"Enterprise_E100",
"EnterpriseFlash_F300",
"EnterpriseFlash_F700",
"EnterpriseFlash_F1500"
],
"x-ms-enum": {
"name": "SkuName",
"modelAsString": true
}
},
"Capability": {
"type": "object",
"title": "Capability",
Expand Down

0 comments on commit 7016add

Please sign in to comment.