Skip to content

Commit c393b16

Browse files
ShirleyJ27Shirley Jiang
andauthored
[Afdx] Changed all "accepted" to 202 (#12421)
* changed all "accepted" to 202 * fix validation errors * adding 202 to examples * prettier check * updated maxRanking, removed certificate association, and reverted prettifier changes to KV * reverting prettifier changes again * revert yet again * fixed secrets examples * remove optimization type * add 202 for all PUT calls, change validateSecret from 200 to 202 for async, removed bypasscache for afdx * correct validation errors * fixes * add afdx into custom words * revert the validate secret api change * missed the message * change from afdx to afd * fix security policies * remove addtional properties * prettier Co-authored-by: Shirley Jiang <xujia@microsoft.com>
1 parent 4be1743 commit c393b16

26 files changed

+359
-70
lines changed

custom-words.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ adminmanagement
3838
ADSIs
3939
ADTO
4040
adultscore
41+
afd
4142
affinitized
4243
AFRINIC
4344
agentpool

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/afdx.json

Lines changed: 96 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,12 @@
297297
"$ref": "#/definitions/AFDDomain"
298298
}
299299
},
300+
"202": {
301+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
302+
"schema": {
303+
"$ref": "#/definitions/AFDDomain"
304+
}
305+
},
300306
"default": {
301307
"description": "CDN error response describing why the operation failed.",
302308
"schema": {
@@ -417,6 +423,9 @@
417423
],
418424
"responses": {
419425
"200": {
426+
"description": "OK. The request has succeeded."
427+
},
428+
"202": {
420429
"description": "Accepted"
421430
},
422431
"204": {
@@ -651,6 +660,12 @@
651660
"$ref": "#/definitions/AFDEndpoint"
652661
}
653662
},
663+
"202": {
664+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
665+
"schema": {
666+
"$ref": "#/definitions/AFDEndpoint"
667+
}
668+
},
654669
"default": {
655670
"description": "CDN error response describing why the operation failed.",
656671
"schema": {
@@ -771,6 +786,9 @@
771786
],
772787
"responses": {
773788
"200": {
789+
"description": "OK. The request has succeeded."
790+
},
791+
"202": {
774792
"description": "Accepted"
775793
},
776794
"204": {
@@ -1132,6 +1150,12 @@
11321150
"$ref": "#/definitions/AFDOriginGroup"
11331151
}
11341152
},
1153+
"202": {
1154+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
1155+
"schema": {
1156+
"$ref": "#/definitions/AFDOriginGroup"
1157+
}
1158+
},
11351159
"default": {
11361160
"description": "CDN error response describing why the operation failed.",
11371161
"schema": {
@@ -1252,6 +1276,9 @@
12521276
],
12531277
"responses": {
12541278
"200": {
1279+
"description": "OK. The request has succeeded."
1280+
},
1281+
"202": {
12551282
"description": "Accepted"
12561283
},
12571284
"204": {
@@ -1506,6 +1533,12 @@
15061533
"$ref": "#/definitions/AFDOrigin"
15071534
}
15081535
},
1536+
"202": {
1537+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
1538+
"schema": {
1539+
"$ref": "#/definitions/AFDOrigin"
1540+
}
1541+
},
15091542
"default": {
15101543
"description": "CDN error response describing why the operation failed.",
15111544
"schema": {
@@ -1640,6 +1673,9 @@
16401673
],
16411674
"responses": {
16421675
"200": {
1676+
"description": "OK. The request has succeeded."
1677+
},
1678+
"202": {
16431679
"description": "Accepted"
16441680
},
16451681
"204": {
@@ -1838,6 +1874,12 @@
18381874
"$ref": "#/definitions/Route"
18391875
}
18401876
},
1877+
"202": {
1878+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
1879+
"schema": {
1880+
"$ref": "#/definitions/Route"
1881+
}
1882+
},
18411883
"default": {
18421884
"description": "CDN error response describing why the operation failed.",
18431885
"schema": {
@@ -1972,6 +2014,9 @@
19722014
],
19732015
"responses": {
19742016
"200": {
2017+
"description": "OK. The request has succeeded."
2018+
},
2019+
"202": {
19752020
"description": "Accepted"
19762021
},
19772022
"204": {
@@ -2149,6 +2194,12 @@
21492194
"$ref": "#/definitions/RuleSet"
21502195
}
21512196
},
2197+
"202": {
2198+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
2199+
"schema": {
2200+
"$ref": "#/definitions/RuleSet"
2201+
}
2202+
},
21522203
"default": {
21532204
"description": "CDN error response describing why the operation failed.",
21542205
"schema": {
@@ -2453,6 +2504,12 @@
24532504
"$ref": "#/definitions/Rule"
24542505
}
24552506
},
2507+
"202": {
2508+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
2509+
"schema": {
2510+
"$ref": "#/definitions/Rule"
2511+
}
2512+
},
24562513
"default": {
24572514
"description": "CDN error response describing why the operation failed.",
24582515
"schema": {
@@ -2587,6 +2644,9 @@
25872644
],
25882645
"responses": {
25892646
"200": {
2647+
"description": "OK. The request has succeeded."
2648+
},
2649+
"202": {
25902650
"description": "Accepted"
25912651
},
25922652
"204": {
@@ -2764,6 +2824,12 @@
27642824
"$ref": "#/definitions/SecurityPolicy"
27652825
}
27662826
},
2827+
"202": {
2828+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
2829+
"schema": {
2830+
"$ref": "#/definitions/SecurityPolicy"
2831+
}
2832+
},
27672833
"default": {
27682834
"description": "CDN error response describing why the operation failed.",
27692835
"schema": {
@@ -2806,12 +2872,12 @@
28062872
"type": "string"
28072873
},
28082874
{
2809-
"name": "securityPolicyParameters",
2875+
"name": "securityPolicyProperties",
28102876
"in": "body",
28112877
"description": "Security policy update properties",
28122878
"required": true,
28132879
"schema": {
2814-
"$ref": "#/definitions/SecurityPolicyWebApplicationFirewallParameters"
2880+
"$ref": "#/definitions/SecurityPolicyProperties"
28152881
}
28162882
},
28172883
{
@@ -2884,6 +2950,9 @@
28842950
],
28852951
"responses": {
28862952
"200": {
2953+
"description": "OK. The request has succeeded."
2954+
},
2955+
"202": {
28872956
"description": "Accepted"
28882957
},
28892958
"204": {
@@ -3061,6 +3130,12 @@
30613130
"$ref": "#/definitions/Secret"
30623131
}
30633132
},
3133+
"202": {
3134+
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
3135+
"schema": {
3136+
"$ref": "#/definitions/Secret"
3137+
}
3138+
},
30643139
"default": {
30653140
"description": "CDN error response describing why the operation failed.",
30663141
"schema": {
@@ -3181,6 +3256,9 @@
31813256
],
31823257
"responses": {
31833258
"200": {
3259+
"description": "OK. The request has succeeded."
3260+
},
3261+
"202": {
31843262
"description": "Accepted"
31853263
},
31863264
"204": {
@@ -3449,7 +3527,8 @@
34493527
"name": "maxRanking",
34503528
"in": "query",
34513529
"required": true,
3452-
"type": "number"
3530+
"type": "integer",
3531+
"format": "int32"
34533532
},
34543533
{
34553534
"name": "dateTimeBegin",
@@ -3767,7 +3846,8 @@
37673846
"name": "maxRanking",
37683847
"in": "query",
37693848
"required": true,
3770-
"type": "number"
3849+
"type": "integer",
3850+
"format": "int32"
37713851
},
37723852
{
37733853
"name": "rankings",
@@ -4148,7 +4228,7 @@
41484228
"properties": {
41494229
"parameters": {
41504230
"description": "object which contains security policy parameters",
4151-
"$ref": "#/definitions/SecurityPolicyWebApplicationFirewallParameters"
4231+
"$ref": "#/definitions/SecurityPolicyParameters"
41524232
}
41534233
}
41544234
},
@@ -4460,9 +4540,6 @@
44604540
"allOf": [
44614541
{
44624542
"$ref": "#/definitions/SecretParameters"
4463-
},
4464-
{
4465-
"$ref": "#/definitions/Certificate"
44664543
}
44674544
]
44684545
},
@@ -4473,9 +4550,6 @@
44734550
"allOf": [
44744551
{
44754552
"$ref": "#/definitions/SecretParameters"
4476-
},
4477-
{
4478-
"$ref": "#/definitions/Certificate"
44794553
}
44804554
],
44814555
"required": [
@@ -4931,12 +5005,17 @@
49315005
}
49325006
},
49335007
"queryStringCachingBehavior": {
4934-
"description": "Defines how AzureFrontDoor caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.",
4935-
"$ref": "./cdn.json#/definitions/QueryStringCachingBehavior"
4936-
},
4937-
"optimizationType": {
4938-
"description": "Specifies what scenario the customer wants this AzureFrontDoor endpoint to optimize for, e.g. Download, Media services. With this information, AzureFrontDoor can apply scenario driven optimization.",
4939-
"$ref": "./cdn.json#/definitions/OptimizationType"
5008+
"description": "Defines how CDN caches requests that include query strings. You can ignore any query strings when caching, bypass caching to prevent requests that contain query strings from being cached, or cache every request with a unique URL.",
5009+
"enum": [
5010+
"IgnoreQueryString",
5011+
"UseQueryString",
5012+
"NotSet"
5013+
],
5014+
"type": "string",
5015+
"x-ms-enum": {
5016+
"name": "afdQueryStringCachingBehavior",
5017+
"modelAsString": false
5018+
}
49405019
},
49415020
"forwardingProtocol": {
49425021
"description": "Protocol this rule will use when forwarding traffic to backends.",

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/examples/AFDCustomDomains_Create.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,33 @@
7272
"deploymentStatus": "NotStarted"
7373
}
7474
}
75+
},
76+
"202": {
77+
"body": {
78+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
79+
"name": "domain1",
80+
"type": "Microsoft.Cdn/Profiles/CustomDomains",
81+
"properties": {
82+
"hostName": "www.contoso.com",
83+
"tlsSettings": {
84+
"certificateType": "ManagedCertificate",
85+
"minimumTlsVersion": "TLS12",
86+
"secret": {
87+
"id": ""
88+
}
89+
},
90+
"azureDnsZone": {
91+
"id": ""
92+
},
93+
"validationProperties": {
94+
"validationToken": "",
95+
"expirationDate": ""
96+
},
97+
"domainValidationState": "Submitting",
98+
"provisioningState": "Updating",
99+
"deploymentStatus": "NotStarted"
100+
}
101+
}
75102
}
76103
}
77104
}

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/examples/AFDCustomDomains_Delete.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"responses": {
1010
"200": {},
11+
"202": {},
1112
"204": {}
1213
}
1314
}

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/examples/AFDEndpoints_Create.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,22 @@
4646
"deploymentStatus": "NotStarted"
4747
}
4848
}
49+
},
50+
"202": {
51+
"body": {
52+
"name": "endpoint1",
53+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
54+
"type": "Microsoft.Cdn/profiles/afdEndpoints",
55+
"tags": {},
56+
"location": "CentralUs",
57+
"properties": {
58+
"hostName": "endpoint1.azureedge.net",
59+
"originResponseTimeoutSeconds": 30,
60+
"enabledState": "Enabled",
61+
"provisioningState": "Creating",
62+
"deploymentStatus": "NotStarted"
63+
}
64+
}
4965
}
5066
}
5167
}

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/examples/AFDEndpoints_Delete.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
},
99
"responses": {
1010
"200": {},
11+
"202": {},
1112
"204": {}
1213
}
1314
}

specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/examples/AFDOriginGroups_Create.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,30 @@
7070
"deploymentStatus": "NotStarted"
7171
}
7272
}
73+
},
74+
"202": {
75+
"body": {
76+
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/origingroups/origingroup1",
77+
"type": "Microsoft.Cdn/profiles/origingroups",
78+
"name": "origingroup1",
79+
"properties": {
80+
"loadBalancingSettings": {
81+
"sampleSize": 3,
82+
"successfulSamplesRequired": 3,
83+
"additionalLatencyInMilliseconds": 1000
84+
},
85+
"healthProbeSettings": {
86+
"probePath": "/path1",
87+
"probeRequestType": "HEAD",
88+
"probeProtocol": "Http",
89+
"probeIntervalInSeconds": 10
90+
},
91+
"responseBasedAfdOriginErrorDetectionSettings": null,
92+
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5,
93+
"provisioningState": "Succeeded",
94+
"deploymentStatus": "NotStarted"
95+
}
96+
}
7397
}
7498
}
7599
}

0 commit comments

Comments
 (0)