Skip to content

Commit 074f615

Browse files
ChenglongLiuChenglong Liu
authored andcommitted
format cdn pramter type string to enum (Azure#19061)
* format string to enum * format string to enum * fix break change Co-authored-by: Chenglong Liu <[email protected]>
1 parent 5e5986e commit 074f615

File tree

1 file changed

+70
-8
lines changed
  • specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01

1 file changed

+70
-8
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/cdn.json

Lines changed: 70 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2493,7 +2493,18 @@
24932493
"provisioningState": {
24942494
"readOnly": true,
24952495
"description": "Provisioning status of the profile.",
2496-
"type": "string"
2496+
"type": "string",
2497+
"enum": [
2498+
"Succeeded",
2499+
"Failed",
2500+
"Updating",
2501+
"Deleting",
2502+
"Creating"
2503+
],
2504+
"x-ms-enum": {
2505+
"name": "ProfileProvisioningState",
2506+
"modelAsString": true
2507+
}
24972508
},
24982509
"frontDoorId": {
24992510
"readOnly": true,
@@ -2661,7 +2672,18 @@
26612672
"provisioningState": {
26622673
"readOnly": true,
26632674
"description": "Provisioning status of the endpoint.",
2664-
"type": "string"
2675+
"type": "string",
2676+
"enum": [
2677+
"Succeeded",
2678+
"Failed",
2679+
"Updating",
2680+
"Deleting",
2681+
"Creating"
2682+
],
2683+
"x-ms-enum": {
2684+
"name": "EndpointProvisioningState",
2685+
"modelAsString": true
2686+
}
26652687
}
26662688
}
26672689
},
@@ -5129,7 +5151,18 @@
51295151
"provisioningState": {
51305152
"readOnly": true,
51315153
"description": "Provisioning status of the origin.",
5132-
"type": "string"
5154+
"type": "string",
5155+
"enum": [
5156+
"Succeeded",
5157+
"Failed",
5158+
"Updating",
5159+
"Deleting",
5160+
"Creating"
5161+
],
5162+
"x-ms-enum": {
5163+
"name": "OriginProvisioningState",
5164+
"modelAsString": true
5165+
}
51335166
},
51345167
"privateEndpointStatus": {
51355168
"description": "The approval status for the connection to the Private Link",
@@ -5276,7 +5309,18 @@
52765309
"provisioningState": {
52775310
"readOnly": true,
52785311
"description": "Provisioning status of the origin group.",
5279-
"type": "string"
5312+
"type": "string",
5313+
"enum": [
5314+
"Succeeded",
5315+
"Failed",
5316+
"Updating",
5317+
"Deleting",
5318+
"Creating"
5319+
],
5320+
"x-ms-enum": {
5321+
"name": "OriginGroupProvisioningState",
5322+
"modelAsString": true
5323+
}
52805324
}
52815325
}
52825326
},
@@ -5472,7 +5516,7 @@
54725516
}
54735517
},
54745518
"customHttpsProvisioningState": {
5475-
"description": "Provisioning status of Custom Https of the custom domain.",
5519+
"description": "Provisioning status of the custom domain.",
54765520
"readOnly": true,
54775521
"enum": [
54785522
"Enabling",
@@ -5517,9 +5561,20 @@
55175561
"type": "string"
55185562
},
55195563
"provisioningState": {
5564+
"description": "Provisioning status of Custom Https of the custom domain.",
55205565
"readOnly": true,
5521-
"description": "Provisioning status of the custom domain.",
5522-
"type": "string"
5566+
"enum": [
5567+
"Enabling",
5568+
"Enabled",
5569+
"Disabling",
5570+
"Disabled",
5571+
"Failed"
5572+
],
5573+
"type": "string",
5574+
"x-ms-enum": {
5575+
"name": "CustomHttpsProvisioningState",
5576+
"modelAsString": true
5577+
}
55235578
}
55245579
}
55255580
},
@@ -5873,7 +5928,14 @@
58735928
"unit": {
58745929
"type": "string",
58755930
"readOnly": true,
5876-
"description": "Unit of the usage. e.g. Count."
5931+
"description": "Unit of the usage. e.g. count.",
5932+
"enum": [
5933+
"count"
5934+
],
5935+
"x-ms-enum": {
5936+
"name": "ResourceUsageUnit",
5937+
"modelAsString": true
5938+
}
58775939
},
58785940
"currentValue": {
58795941
"type": "integer",

0 commit comments

Comments
 (0)