Skip to content

Commit

Permalink
[Afdx] Changed all "accepted" to 202 (#12421)
Browse files Browse the repository at this point in the history
* 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>
  • Loading branch information
ShirleyJ27 and Shirley Jiang committed Jan 26, 2021
1 parent 4be1743 commit c393b16
Show file tree
Hide file tree
Showing 26 changed files with 359 additions and 70 deletions.
1 change: 1 addition & 0 deletions custom-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ adminmanagement
ADSIs
ADTO
adultscore
afd
affinitized
AFRINIC
agentpool
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -297,6 +297,12 @@
"$ref": "#/definitions/AFDDomain"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/AFDDomain"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -417,6 +423,9 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted"
},
"204": {
Expand Down Expand Up @@ -651,6 +660,12 @@
"$ref": "#/definitions/AFDEndpoint"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/AFDEndpoint"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -771,6 +786,9 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted"
},
"204": {
Expand Down Expand Up @@ -1132,6 +1150,12 @@
"$ref": "#/definitions/AFDOriginGroup"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/AFDOriginGroup"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -1252,6 +1276,9 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted"
},
"204": {
Expand Down Expand Up @@ -1506,6 +1533,12 @@
"$ref": "#/definitions/AFDOrigin"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/AFDOrigin"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -1640,6 +1673,9 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted"
},
"204": {
Expand Down Expand Up @@ -1838,6 +1874,12 @@
"$ref": "#/definitions/Route"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/Route"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -1972,6 +2014,9 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted"
},
"204": {
Expand Down Expand Up @@ -2149,6 +2194,12 @@
"$ref": "#/definitions/RuleSet"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/RuleSet"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -2453,6 +2504,12 @@
"$ref": "#/definitions/Rule"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/Rule"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -2587,6 +2644,9 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted"
},
"204": {
Expand Down Expand Up @@ -2764,6 +2824,12 @@
"$ref": "#/definitions/SecurityPolicy"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/SecurityPolicy"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -2806,12 +2872,12 @@
"type": "string"
},
{
"name": "securityPolicyParameters",
"name": "securityPolicyProperties",
"in": "body",
"description": "Security policy update properties",
"required": true,
"schema": {
"$ref": "#/definitions/SecurityPolicyWebApplicationFirewallParameters"
"$ref": "#/definitions/SecurityPolicyProperties"
}
},
{
Expand Down Expand Up @@ -2884,6 +2950,9 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted"
},
"204": {
Expand Down Expand Up @@ -3061,6 +3130,12 @@
"$ref": "#/definitions/Secret"
}
},
"202": {
"description": "Accepted. The request has been accepted for processing and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/Secret"
}
},
"default": {
"description": "CDN error response describing why the operation failed.",
"schema": {
Expand Down Expand Up @@ -3181,6 +3256,9 @@
],
"responses": {
"200": {
"description": "OK. The request has succeeded."
},
"202": {
"description": "Accepted"
},
"204": {
Expand Down Expand Up @@ -3449,7 +3527,8 @@
"name": "maxRanking",
"in": "query",
"required": true,
"type": "number"
"type": "integer",
"format": "int32"
},
{
"name": "dateTimeBegin",
Expand Down Expand Up @@ -3767,7 +3846,8 @@
"name": "maxRanking",
"in": "query",
"required": true,
"type": "number"
"type": "integer",
"format": "int32"
},
{
"name": "rankings",
Expand Down Expand Up @@ -4148,7 +4228,7 @@
"properties": {
"parameters": {
"description": "object which contains security policy parameters",
"$ref": "#/definitions/SecurityPolicyWebApplicationFirewallParameters"
"$ref": "#/definitions/SecurityPolicyParameters"
}
}
},
Expand Down Expand Up @@ -4460,9 +4540,6 @@
"allOf": [
{
"$ref": "#/definitions/SecretParameters"
},
{
"$ref": "#/definitions/Certificate"
}
]
},
Expand All @@ -4473,9 +4550,6 @@
"allOf": [
{
"$ref": "#/definitions/SecretParameters"
},
{
"$ref": "#/definitions/Certificate"
}
],
"required": [
Expand Down Expand Up @@ -4931,12 +5005,17 @@
}
},
"queryStringCachingBehavior": {
"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.",
"$ref": "./cdn.json#/definitions/QueryStringCachingBehavior"
},
"optimizationType": {
"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.",
"$ref": "./cdn.json#/definitions/OptimizationType"
"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.",
"enum": [
"IgnoreQueryString",
"UseQueryString",
"NotSet"
],
"type": "string",
"x-ms-enum": {
"name": "afdQueryStringCachingBehavior",
"modelAsString": false
}
},
"forwardingProtocol": {
"description": "Protocol this rule will use when forwarding traffic to backends.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,33 @@
"deploymentStatus": "NotStarted"
}
}
},
"202": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/domains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/Profiles/CustomDomains",
"properties": {
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,22 @@
"deploymentStatus": "NotStarted"
}
}
},
"202": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdEndpoints",
"tags": {},
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,30 @@
"deploymentStatus": "NotStarted"
}
}
},
"202": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/origingroups/origingroup1",
"type": "Microsoft.Cdn/profiles/origingroups",
"name": "origingroup1",
"properties": {
"loadBalancingSettings": {
"sampleSize": 3,
"successfulSamplesRequired": 3,
"additionalLatencyInMilliseconds": 1000
},
"healthProbeSettings": {
"probePath": "/path1",
"probeRequestType": "HEAD",
"probeProtocol": "Http",
"probeIntervalInSeconds": 10
},
"responseBasedAfdOriginErrorDetectionSettings": null,
"trafficRestorationTimeToHealedOrNewEndpointsInMinutes": 5,
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Loading

0 comments on commit c393b16

Please sign in to comment.