Skip to content

Commit

Permalink
Cdn swagger 2021 06 01 fix (Azure#17278)
Browse files Browse the repository at this point in the history
* Add blockchain to latest profile

* Add additional types

* [CDN] Fix incorrect type for compressionSettings and SharedPrivateLinkResourceProperties

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Update SecurityPolicy patch operation

* Removing originResponseTimeoutSeconds from endpoint level

* Fix the afdendpoint example

* Fix the cacheDuration format

* Adding user assigned identity to managed identity

* Fix the typo and example

* Fix OBJECT_ADDITIONAL_PROPERTIES

* Revert responseBasedAFDOriginErrorDetectionSettings

Co-authored-by: Mark Cowlishaw <markcowl@microsoft.com>
Co-authored-by: Chenglong Liu <chengll@microsoft.com>
Co-authored-by: Bo Zhang <bzhan@microsoft.com>
Co-authored-by: SINADELL <SINADELL@SINADELL-DEV7>
Co-authored-by: Sindhuri <sindhuri.nadella@gmail.com>
Co-authored-by: AJ Brown <ajbrown@microsoft.com>
  • Loading branch information
7 people authored Jan 14, 2022
1 parent 2530fbc commit c3cf8a3
Show file tree
Hide file tree
Showing 17 changed files with 141 additions and 63 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4779,9 +4779,7 @@
"sharedPrivateLinkResource": {
"description": "The properties of the private link resource for private origin.",
"type": "object",
"items": {
"$ref": "#/definitions/SharedPrivateLinkResourceProperties"
}
"$ref": "#/definitions/SharedPrivateLinkResourceProperties"
},
"enabledState": {
"description": "Whether to enable health probes to be made against backends defined under backendPools. Health probes can only be disabled if there is a single enabled backend in single enabled backend pool.",
Expand Down Expand Up @@ -5065,9 +5063,7 @@
"compressionSettings": {
"description": "compression settings.",
"type": "object",
"items": {
"$ref": "#/definitions/CompressionSettings"
}
"$ref": "#/definitions/CompressionSettings"
},
"queryStringCachingBehavior": {
"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.",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2856,12 +2856,12 @@
"type": "string"
},
{
"name": "securityPolicyProperties",
"name": "securityPolicyUpdateProperties",
"in": "body",
"description": "Security policy update properties",
"required": true,
"schema": {
"$ref": "#/definitions/SecurityPolicyProperties"
"$ref": "#/definitions/SecurityPolicyUpdateParameters"
}
},
{
Expand Down Expand Up @@ -4228,6 +4228,7 @@
},
"SecurityPolicyProperties": {
"description": "The json object that contains properties required to create a security policy",
"type": "object",
"allOf": [
{
"$ref": "#/definitions/AFDStateProperties"
Expand All @@ -4241,11 +4242,31 @@
},
"parameters": {
"description": "object which contains security policy parameters",
"$ref": "#/definitions/SecurityPolicyParameters"
"$ref": "#/definitions/SecurityPolicyPropertiesParameters"
}
}
},
"SecurityPolicyUpdateParameters": {
"description": "The JSON object containing security policy update parameters.",
"type": "object",
"properties": {
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/SecurityPolicyUpdateProperties"
}
}
},
"SecurityPolicyParameters": {
"SecurityPolicyUpdateProperties": {
"description": "The json object that contains properties required to update a security policy",
"type": "object",
"properties": {
"parameters": {
"description": "object which contains security policy parameters",
"$ref": "#/definitions/SecurityPolicyPropertiesParameters"
}
}
},
"SecurityPolicyPropertiesParameters": {
"description": "The json object containing security policy parameters",
"discriminator": "type",
"required": [
Expand All @@ -4272,7 +4293,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/SecurityPolicyParameters"
"$ref": "#/definitions/SecurityPolicyPropertiesParameters"
}
],
"properties": {
Expand Down Expand Up @@ -4414,14 +4435,6 @@
"name": "EnabledState",
"modelAsString": true
}
},
"originResponseTimeoutSeconds": {
"description": "Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.",
"type": "integer",
"format": "int32",
"minimum": 16,
"maximum": 240,
"exclusiveMinimum": false
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2458,6 +2458,11 @@
"description": "The pricing tier (defines Azure Front Door Standard or Premium or a CDN provider, feature list and rate) of the profile.",
"$ref": "#/definitions/Sku"
},
"kind": {
"readOnly": true,
"type": "string",
"description": "Kind of the profile. Used by portal to differentiate traditional CDN profile and new AFD profile."
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/ProfileProperties"
Expand Down Expand Up @@ -2499,11 +2504,6 @@
"type": "string",
"description": "The Id of the frontdoor."
},
"kind": {
"readOnly": true,
"type": "string",
"description": "Kind of the profile. Used by portal to differentiate traditional CDN profile and new AFD profile."
},
"originResponseTimeoutSeconds": {
"description": "Send and receive timeout on forwarding request to the origin. When timeout is reached, the request fails and returns.",
"type": "integer",
Expand All @@ -2521,6 +2521,8 @@
"description": "Type of managed service identity.",
"enum": [
"SystemAssigned",
"UserAssigned",
"SystemAssigned, UserAssigned",
"None"
],
"type": "string",
Expand All @@ -2538,6 +2540,29 @@
"description": "Principal Id of managed service identity.",
"type": "string",
"readOnly": true
},
"userAssignedIdentities": {
"description": "The list of user assigned identities associated with the resource. The user identity dictionary key references will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}",
"type": "object",
"additionalProperties": {
"$ref": "#/definitions/userAssignedIdentity"
}
}
}
},
"userAssignedIdentity": {
"description": "User Assigned identity.",
"type": "object",
"properties": {
"principalId": {
"description": "Principal Id of user assigned identity",
"type": "string",
"readOnly": true
},
"clientId": {
"description": "Client Id of user assigned identity",
"type": "string",
"readOnly": true
}
}
},
Expand Down Expand Up @@ -3935,6 +3960,13 @@
"Desktop"
]
}
},
"transforms": {
"description": "List of transforms",
"type": "array",
"items": {
"$ref": "#/definitions/transform"
}
}
}
},
Expand Down Expand Up @@ -3974,6 +4006,13 @@
"items": {
"type": "string"
}
},
"transforms": {
"description": "List of transforms",
"type": "array",
"items": {
"$ref": "#/definitions/transform"
}
}
}
},
Expand Down Expand Up @@ -4021,6 +4060,13 @@
"items": {
"type": "string"
}
},
"transforms": {
"description": "List of transforms",
"type": "array",
"items": {
"$ref": "#/definitions/transform"
}
}
}
},
Expand Down Expand Up @@ -4068,6 +4114,13 @@
"items": {
"type": "string"
}
},
"transforms": {
"description": "List of transforms",
"type": "array",
"items": {
"$ref": "#/definitions/transform"
}
}
}
},
Expand Down Expand Up @@ -4160,6 +4213,13 @@
"items": {
"$ref": "#/definitions/SslProtocol"
}
},
"transforms": {
"description": "List of transforms",
"type": "array",
"items": {
"$ref": "#/definitions/transform"
}
}
}
},
Expand Down Expand Up @@ -4732,8 +4792,7 @@
},
"cacheDuration": {
"description": "The duration for which the content needs to be cached. Allowed format is [d.]hh:mm:ss",
"type": "string",
"format": "duration"
"type": "string"
}
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
"tags": {},
"location": "CentralUs",
"properties": {
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled"
}
}
Expand All @@ -24,7 +23,6 @@
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
Expand All @@ -40,7 +38,6 @@
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted"
Expand All @@ -56,7 +53,6 @@
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "Succeeded"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
"location": "CentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "Succeeded"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
"endpointUpdateProperties": {
"tags": {},
"properties": {
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled"
}
}
Expand All @@ -23,7 +22,6 @@
"location": "WestCentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "InProgress"
Expand All @@ -42,7 +40,6 @@
"location": "WestCentralUs",
"properties": {
"hostName": "endpoint1.azureedge.net",
"originResponseTimeoutSeconds": 30,
"enabledState": "Enabled",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Creating",
"resourceState": "Creating"
Expand All @@ -38,6 +39,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Creating",
"resourceState": "Creating"
Expand All @@ -54,6 +56,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Creating",
"resourceState": "Creating"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active"
Expand All @@ -30,6 +31,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active"
Expand All @@ -31,6 +32,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active"
Expand All @@ -44,6 +45,7 @@
"sku": {
"name": "Premium_AzureFrontDoor"
},
"kind": "frontdoor",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active"
Expand Down
Loading

0 comments on commit c3cf8a3

Please sign in to comment.