Skip to content

Commit 1147587

Browse files
t-bzhanBo Zhang
andauthored
[CDN] Fix customDomains property type in Endpoint (#19788)
* [CDN] Fix customDomains property type in Endpoint * Fix linter error Co-authored-by: Bo Zhang <bzhan@microsoft.com>
1 parent 657a108 commit 1147587

File tree

1 file changed

+39
-2
lines changed
  • specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01

1 file changed

+39
-2
lines changed

specification/cdn/resource-manager/Microsoft.Cdn/stable/2021-06-01/cdn.json

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2657,8 +2657,11 @@
26572657
"type": "array",
26582658
"readOnly": true,
26592659
"items": {
2660-
"$ref": "#/definitions/CustomDomain"
2661-
}
2660+
"$ref": "#/definitions/DeepCreatedCustomDomain"
2661+
},
2662+
"x-ms-identifiers": [
2663+
"name"
2664+
]
26622665
},
26632666
"resourceState": {
26642667
"description": "Resource status of the endpoint.",
@@ -5484,6 +5487,40 @@
54845487
}
54855488
}
54865489
},
5490+
"DeepCreatedCustomDomain": {
5491+
"description": "Custom domains created on the CDN endpoint.",
5492+
"type": "object",
5493+
"required": [
5494+
"name"
5495+
],
5496+
"properties": {
5497+
"name": {
5498+
"description": "Custom domain name.",
5499+
"type": "string"
5500+
},
5501+
"properties": {
5502+
"x-ms-client-flatten": true,
5503+
"$ref": "#/definitions/DeepCreatedCustomDomainProperties"
5504+
}
5505+
}
5506+
},
5507+
"DeepCreatedCustomDomainProperties": {
5508+
"description": "Properties of the custom domain created on the CDN endpoint.",
5509+
"type": "object",
5510+
"required": [
5511+
"hostName"
5512+
],
5513+
"properties": {
5514+
"hostName": {
5515+
"description": "The host name of the custom domain. Must be a domain name.",
5516+
"type": "string"
5517+
},
5518+
"validationData": {
5519+
"description": "Special validation or data may be required when delivering CDN to some regions due to local compliance reasons. E.g. ICP license number of a custom domain is required to deliver content in China.",
5520+
"type": "string"
5521+
}
5522+
}
5523+
},
54875524
"CustomDomain": {
54885525
"description": "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com.",
54895526
"type": "object",

0 commit comments

Comments
 (0)