Skip to content

Commit 7016add

Browse files
TimLovellSmithKayla Ames
authored andcommitted
Refactor cache swagger to deduplicate SkuName enum definitions. (Azure#23049)
1 parent dff97b8 commit 7016add

File tree

1 file changed

+20
-30
lines changed
  • specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview

1 file changed

+20
-30
lines changed

specification/redisenterprise/resource-manager/Microsoft.Cache/preview/2023-03-01-preview/redisenterprise.json

Lines changed: 20 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1300,21 +1300,8 @@
13001300
"type": "object",
13011301
"properties": {
13021302
"name": {
1303-
"type": "string",
1304-
"description": "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)",
1305-
"enum": [
1306-
"Enterprise_E10",
1307-
"Enterprise_E20",
1308-
"Enterprise_E50",
1309-
"Enterprise_E100",
1310-
"EnterpriseFlash_F300",
1311-
"EnterpriseFlash_F700",
1312-
"EnterpriseFlash_F1500"
1313-
],
1314-
"x-ms-enum": {
1315-
"name": "SkuName",
1316-
"modelAsString": true
1317-
}
1303+
"$ref": "#/definitions/SkuName",
1304+
"description": "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)"
13181305
},
13191306
"capacity": {
13201307
"type": "integer",
@@ -1938,24 +1925,27 @@
19381925
"description": "Information about Sku",
19391926
"properties": {
19401927
"name": {
1941-
"type": "string",
1942-
"description": "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)",
1943-
"enum": [
1944-
"Enterprise_E10",
1945-
"Enterprise_E20",
1946-
"Enterprise_E50",
1947-
"Enterprise_E100",
1948-
"EnterpriseFlash_F300",
1949-
"EnterpriseFlash_F700",
1950-
"EnterpriseFlash_F1500"
1951-
],
1952-
"x-ms-enum": {
1953-
"name": "name",
1954-
"modelAsString": true
1955-
}
1928+
"$ref": "#/definitions/SkuName",
1929+
"description": "The type of RedisEnterprise cluster to deploy. Possible values: (Enterprise_E10, EnterpriseFlash_F300 etc.)"
19561930
}
19571931
}
19581932
},
1933+
"SkuName": {
1934+
"type": "string",
1935+
"enum": [
1936+
"Enterprise_E10",
1937+
"Enterprise_E20",
1938+
"Enterprise_E50",
1939+
"Enterprise_E100",
1940+
"EnterpriseFlash_F300",
1941+
"EnterpriseFlash_F700",
1942+
"EnterpriseFlash_F1500"
1943+
],
1944+
"x-ms-enum": {
1945+
"name": "SkuName",
1946+
"modelAsString": true
1947+
}
1948+
},
19591949
"Capability": {
19601950
"type": "object",
19611951
"title": "Capability",

0 commit comments

Comments
 (0)