From aceee26b40a3251a1dbcc76e57fb1e0860f1c76d Mon Sep 17 00:00:00 2001 From: t-bzhan <61817681+t-bzhan@users.noreply.github.com> Date: Thu, 30 Mar 2023 14:46:49 +0800 Subject: [PATCH] [CDN] Add missing default values to fix swagger quality issues in s360 (#23029) * Add missing default value to fix s360 * Fix PrettierCheck issue --------- Co-authored-by: Bo Zhang --- .../preview/2022-05-01-preview/afdx.json | 62 ++++++++++++++--- .../preview/2022-05-01-preview/cdn.json | 69 ++++++++++++------- .../preview/2022-11-01-preview/afdx.json | 62 ++++++++++++++--- .../preview/2022-11-01-preview/cdn.json | 69 ++++++++++++------- .../Microsoft.Cdn/stable/2020-09-01/afdx.json | 18 +++-- .../Microsoft.Cdn/stable/2021-06-01/afdx.json | 18 +++-- 6 files changed, 226 insertions(+), 72 deletions(-) diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/afdx.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/afdx.json index 8126622bb420..4ffef470bf3b 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/afdx.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/afdx.json @@ -4736,7 +4736,43 @@ { "$ref": "#/definitions/SecretParameters" } - ] + ], + "properties": { + "secretSource": { + "description": "Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​", + "type": "object", + "$ref": "./cdn.json#/definitions/ResourceReference", + "readOnly": true + }, + "subject": { + "description": "Subject name in the certificate.", + "type": "string", + "readOnly": true + }, + "expirationDate": { + "description": "Certificate expiration date.", + "type": "string", + "readOnly": true + }, + "certificateAuthority": { + "description": "Certificate issuing authority.", + "type": "string", + "readOnly": true + }, + "subjectAlternativeNames": { + "description": "The list of SANs.", + "type": "array", + "items": { + "type": "string", + "readOnly": true + } + }, + "thumbprint": { + "description": "Certificate thumbprint.", + "type": "string", + "readOnly": true + } + } }, "RuleSetListResult": { "description": "Result of the request to list rule sets. It contains a list of rule set objects and a URL link to get the next set of results.", @@ -4850,7 +4886,8 @@ "maximum": 65535, "exclusiveMaximum": false, "minimum": 1, - "exclusiveMinimum": false + "exclusiveMinimum": false, + "default": 80 }, "httpsPort": { "description": "The value of the HTTPS port. Must be between 1 and 65535.", @@ -4859,7 +4896,8 @@ "format": "int32", "exclusiveMaximum": false, "minimum": 1, - "exclusiveMinimum": false + "exclusiveMinimum": false, + "default": 443 }, "originHostHeader": { "description": "The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint", @@ -5163,7 +5201,11 @@ "type": "array", "items": { "$ref": "#/definitions/AFDEndpointProtocols" - } + }, + "default": [ + "Http", + "Https" + ] }, "patternsToMatch": { "description": "The route patterns of the rule.", @@ -5189,7 +5231,8 @@ "x-ms-enum": { "name": "ForwardingProtocol", "modelAsString": true - } + }, + "default": "MatchRequest" }, "linkToDefaultDomain": { "description": "whether this route will be linked to the default endpoint domain.", @@ -5201,7 +5244,8 @@ "x-ms-enum": { "name": "LinkToDefaultDomain", "modelAsString": true - } + }, + "default": "Disabled" }, "httpsRedirect": { "description": "Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.", @@ -5213,7 +5257,8 @@ "x-ms-enum": { "name": "httpsRedirect", "modelAsString": true - } + }, + "default": "Disabled" }, "enabledState": { "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", @@ -5359,7 +5404,8 @@ "x-ms-enum": { "name": "MatchProcessingBehavior", "modelAsString": true - } + }, + "default": "Continue" } } }, diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json index 156714bd5a84..93495c52c0d0 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-05-01-preview/cdn.json @@ -2690,7 +2690,8 @@ "type": "object", "additionalProperties": { "type": "string" - } + }, + "readOnly": true }, "frontDoorId": { "readOnly": true, @@ -3075,15 +3076,18 @@ }, "isHttpAllowed": { "description": "Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.", - "type": "boolean" + "type": "boolean", + "default": true }, "isHttpsAllowed": { "description": "Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.", - "type": "boolean" + "type": "boolean", + "default": true }, "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.", - "$ref": "#/definitions/QueryStringCachingBehavior" + "$ref": "#/definitions/QueryStringCachingBehavior", + "default": "NotSet" }, "optimizationType": { "description": "Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization.", @@ -3603,7 +3607,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.", @@ -3647,7 +3652,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "transforms": { "description": "List of transforms", @@ -3709,7 +3715,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -3766,7 +3773,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -3819,7 +3827,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -3876,7 +3885,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -3929,7 +3939,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -3969,7 +3980,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "transforms": { "description": "List of transforms", @@ -4027,7 +4039,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4080,7 +4093,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4133,7 +4147,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4177,7 +4192,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4234,7 +4250,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4278,7 +4295,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4328,7 +4346,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4382,7 +4401,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4436,7 +4456,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4490,7 +4511,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4535,7 +4557,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/afdx.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/afdx.json index 9b1f7c6b7a70..f51b1e0531ee 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/afdx.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/afdx.json @@ -5025,7 +5025,43 @@ { "$ref": "#/definitions/SecretParameters" } - ] + ], + "properties": { + "secretSource": { + "description": "Resource reference to the Azure Key Vault certificate. Expected to be in format of /subscriptions/{​​​​​​​​​subscriptionId}​​​​​​​​​/resourceGroups/{​​​​​​​​​resourceGroupName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/providers/Microsoft.KeyVault/vaults/{vaultName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​/secrets/{certificateName}​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​​", + "type": "object", + "$ref": "./cdn.json#/definitions/ResourceReference", + "readOnly": true + }, + "subject": { + "description": "Subject name in the certificate.", + "type": "string", + "readOnly": true + }, + "expirationDate": { + "description": "Certificate expiration date.", + "type": "string", + "readOnly": true + }, + "certificateAuthority": { + "description": "Certificate issuing authority.", + "type": "string", + "readOnly": true + }, + "subjectAlternativeNames": { + "description": "The list of SANs.", + "type": "array", + "items": { + "type": "string", + "readOnly": true + } + }, + "thumbprint": { + "description": "Certificate thumbprint.", + "type": "string", + "readOnly": true + } + } }, "RuleSetListResult": { "description": "Result of the request to list rule sets. It contains a list of rule set objects and a URL link to get the next set of results.", @@ -5139,7 +5175,8 @@ "maximum": 65535, "exclusiveMaximum": false, "minimum": 1, - "exclusiveMinimum": false + "exclusiveMinimum": false, + "default": 80 }, "httpsPort": { "description": "The value of the HTTPS port. Must be between 1 and 65535.", @@ -5148,7 +5185,8 @@ "format": "int32", "exclusiveMaximum": false, "minimum": 1, - "exclusiveMinimum": false + "exclusiveMinimum": false, + "default": 443 }, "originHostHeader": { "description": "The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure Front Door origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint", @@ -5452,7 +5490,11 @@ "type": "array", "items": { "$ref": "#/definitions/AFDEndpointProtocols" - } + }, + "default": [ + "Http", + "Https" + ] }, "patternsToMatch": { "description": "The route patterns of the rule.", @@ -5478,7 +5520,8 @@ "x-ms-enum": { "name": "ForwardingProtocol", "modelAsString": true - } + }, + "default": "MatchRequest" }, "linkToDefaultDomain": { "description": "whether this route will be linked to the default endpoint domain.", @@ -5490,7 +5533,8 @@ "x-ms-enum": { "name": "LinkToDefaultDomain", "modelAsString": true - } + }, + "default": "Disabled" }, "httpsRedirect": { "description": "Whether to automatically redirect HTTP traffic to HTTPS traffic. Note that this is a easy way to set up this rule and it will be the first rule that gets executed.", @@ -5502,7 +5546,8 @@ "x-ms-enum": { "name": "httpsRedirect", "modelAsString": true - } + }, + "default": "Disabled" }, "enabledState": { "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", @@ -5648,7 +5693,8 @@ "x-ms-enum": { "name": "MatchProcessingBehavior", "modelAsString": true - } + }, + "default": "Continue" } } }, diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/cdn.json b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/cdn.json index 227b06d70895..38e82e73e90f 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/cdn.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/preview/2022-11-01-preview/cdn.json @@ -2795,7 +2795,8 @@ "type": "object", "additionalProperties": { "type": "string" - } + }, + "readOnly": true }, "frontDoorId": { "readOnly": true, @@ -3185,15 +3186,18 @@ }, "isHttpAllowed": { "description": "Indicates whether HTTP traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.", - "type": "boolean" + "type": "boolean", + "default": true }, "isHttpsAllowed": { "description": "Indicates whether HTTPS traffic is allowed on the endpoint. Default value is true. At least one protocol (HTTP or HTTPS) must be allowed.", - "type": "boolean" + "type": "boolean", + "default": true }, "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.", - "$ref": "#/definitions/QueryStringCachingBehavior" + "$ref": "#/definitions/QueryStringCachingBehavior", + "default": "NotSet" }, "optimizationType": { "description": "Specifies what scenario the customer wants this CDN endpoint to optimize for, e.g. Download, Media services. With this information, CDN can apply scenario driven optimization.", @@ -3713,7 +3717,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "Match values to match against. The operator will apply to each value in here with OR semantics. If any of them match the variable with the given operator this match condition is considered a match.", @@ -3757,7 +3762,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "transforms": { "description": "List of transforms", @@ -3819,7 +3825,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -3876,7 +3883,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -3929,7 +3937,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -3986,7 +3995,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4039,7 +4049,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4079,7 +4090,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "transforms": { "description": "List of transforms", @@ -4137,7 +4149,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4190,7 +4203,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4243,7 +4257,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4287,7 +4302,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4344,7 +4360,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4388,7 +4405,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4438,7 +4456,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4492,7 +4511,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4546,7 +4566,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4600,7 +4621,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", @@ -4645,7 +4667,8 @@ }, "negateCondition": { "description": "Describes if this is negate condition or not", - "type": "boolean" + "type": "boolean", + "default": false }, "matchValues": { "description": "The match value for the condition of the delivery rule", diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/afdx.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/afdx.json index ebbd78d01bf5..10699a1f1d16 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/afdx.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2020-09-01/afdx.json @@ -4747,7 +4747,8 @@ "maximum": 65535, "exclusiveMaximum": false, "minimum": 1, - "exclusiveMinimum": false + "exclusiveMinimum": false, + "default": 80 }, "httpsPort": { "description": "The value of the HTTPS port. Must be between 1 and 65535.", @@ -4756,7 +4757,8 @@ "format": "int32", "exclusiveMaximum": false, "minimum": 1, - "exclusiveMinimum": false + "exclusiveMinimum": false, + "default": 443 }, "originHostHeader": { "description": "The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint", @@ -5050,7 +5052,11 @@ "type": "array", "items": { "$ref": "#/definitions/AFDEndpointProtocols" - } + }, + "default": [ + "Http", + "Https" + ] }, "patternsToMatch": { "description": "The route patterns of the rule.", @@ -5113,7 +5119,8 @@ "x-ms-enum": { "name": "httpsRedirect", "modelAsString": true - } + }, + "default": "Disabled" }, "enabledState": { "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", @@ -5219,7 +5226,8 @@ "x-ms-enum": { "name": "MatchProcessingBehavior", "modelAsString": true - } + }, + "default": "Continue" } } }, diff --git a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/afdx.json b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/afdx.json index 692889a7b441..3de8e6432af0 100644 --- a/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/afdx.json +++ b/specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/afdx.json @@ -4843,7 +4843,8 @@ "maximum": 65535, "exclusiveMaximum": false, "minimum": 1, - "exclusiveMinimum": false + "exclusiveMinimum": false, + "default": 80 }, "httpsPort": { "description": "The value of the HTTPS port. Must be between 1 and 65535.", @@ -4852,7 +4853,8 @@ "format": "int32", "exclusiveMaximum": false, "minimum": 1, - "exclusiveMinimum": false + "exclusiveMinimum": false, + "default": 443 }, "originHostHeader": { "description": "The host header value sent to the origin with each request. If you leave this blank, the request hostname determines this value. Azure CDN origins, such as Web Apps, Blob Storage, and Cloud Services require this host header value to match the origin hostname by default. This overrides the host header defined at Endpoint", @@ -5156,7 +5158,11 @@ "type": "array", "items": { "$ref": "#/definitions/AFDEndpointProtocols" - } + }, + "default": [ + "Http", + "Https" + ] }, "patternsToMatch": { "description": "The route patterns of the rule.", @@ -5206,7 +5212,8 @@ "x-ms-enum": { "name": "httpsRedirect", "modelAsString": true - } + }, + "default": "Disabled" }, "enabledState": { "description": "Whether to enable use of this rule. Permitted values are 'Enabled' or 'Disabled'", @@ -5352,7 +5359,8 @@ "x-ms-enum": { "name": "MatchProcessingBehavior", "modelAsString": true - } + }, + "default": "Continue" } } },