Skip to content

Commit a6405e7

Browse files
author
Deven Chen
committed
Remove conditional readonly attribute name, rename it to ruleName
1 parent c7313dd commit a6405e7

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/Cdn/RuleSet.tsp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,3 +99,4 @@ interface RuleSets {
9999
// Mark batch mode properties as added in version 2025-12-01
100100
@@added(RuleSetProperties.batchMode, Versions.v2025_12_01);
101101
@@added(RuleSetProperties.rules, Versions.v2025_12_01);
102+
@@added(BatchRuleProperties, Versions.v2025_12_01);

specification/cdn/resource-manager/Microsoft.Cdn/Cdn/models.tsp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3319,7 +3319,7 @@ model RuleSetProperties extends AFDStateProperties {
33193319
* A list of rules that are part of this rule set provided the rule set is in batch mode.
33203320
* This property will be ignored if the rule set is not in batch mode.
33213321
*/
3322-
@OpenAPI.extension("x-ms-identifiers", #["name"])
3322+
@OpenAPI.extension("x-ms-identifiers", #["ruleName"])
33233323
rules?: BatchRuleProperties[];
33243324
}
33253325

@@ -3342,7 +3342,7 @@ model BatchRuleProperties {
33423342
@maxLength(60)
33433343
@minLength(1)
33443344
@pattern("^[a-zA-Z][a-zA-Z0-9]{0,59}$")
3345-
name: string;
3345+
ruleName: string;
33463346

33473347
...RuleProperties;
33483348
}

specification/cdn/resource-manager/Microsoft.Cdn/Cdn/stable/2025-12-01/openapi.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11170,7 +11170,7 @@
1117011170
"type": "object",
1117111171
"description": "The JSON object that contains a rule with its name for batch mode operations.",
1117211172
"properties": {
11173-
"name": {
11173+
"ruleName": {
1117411174
"type": "string",
1117511175
"description": "Name of the rule.",
1117611176
"minLength": 1,
@@ -11241,7 +11241,7 @@
1124111241
}
1124211242
},
1124311243
"required": [
11244-
"name"
11244+
"ruleName"
1124511245
]
1124611246
},
1124711247
"CacheBehavior": {
@@ -19783,7 +19783,7 @@
1978319783
"$ref": "#/definitions/BatchRuleProperties"
1978419784
},
1978519785
"x-ms-identifiers": [
19786-
"name"
19786+
"ruleName"
1978719787
]
1978819788
}
1978919789
},

0 commit comments

Comments
 (0)