Skip to content

Commit

Permalink
Add CDN 2022 05 01 preview version (#18760)
Browse files Browse the repository at this point in the history
* Adds base for updating Microsoft.Cdn from version stable/2021-06-01 to version 2022-05-01-preview

* Updates readme

* Updates API version in new specs and examples

* Afd Migration Swagger updates

* Addressing feedback

* Fix validation errors

* update sku type

* Fixing some validation failures

* Fix more validation issues

* Fix alignment

* Copied from stable version

* Update api response

* Update examples

* update from older version

* Copy from older version

* Fix swagger lint

* More swagger lint fixes
  • Loading branch information
gubalasu authored Aug 31, 2022
1 parent 049107d commit 38ef3fb
Show file tree
Hide file tree
Showing 115 changed files with 20,895 additions and 12 deletions.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"customDomainName": "domain1",
"customDomain": {
"properties": {
"hostName": "www.someDomain.net",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12"
},
"azureDnsZone": {
"id": ""
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
},
"201": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted"
}
}
},
"202": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "",
"expirationDate": ""
},
"domainValidationState": "Submitting",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"customDomainName": "domain1"
},
"responses": {
"200": {},
"202": {},
"204": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"customDomainName": "domain1"
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
},
"domainValidationState": "Pending",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1"
},
"responses": {
"200": {
"body": {
"value": [
{
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": ""
}
},
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
},
"domainValidationState": "Pending",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
]
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"customDomainName": "domain1"
},
"responses": {
"200": {},
"202": {}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"customDomainName": "domain1",
"customDomainUpdateProperties": {
"properties": {
"tlsSettings": {
"certificateType": "CustomerCertificate",
"minimumTlsVersion": "TLS12"
},
"azureDnsZone": {
"id": ""
}
}
}
},
"responses": {
"200": {
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert"
}
},
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
},
"domainValidationState": "Approved",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
},
"202": {
"headers": {
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2022-05-01-preview"
},
"body": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/customdomains/domain1",
"name": "domain1",
"type": "Microsoft.Cdn/profiles/customdomains",
"properties": {
"profileName": "profile1",
"hostName": "www.contoso.com",
"tlsSettings": {
"certificateType": "ManagedCertificate",
"minimumTlsVersion": "TLS12",
"secret": {
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/secrets/mysecert"
}
},
"azureDnsZone": {
"id": ""
},
"preValidatedCustomDomainResourceId": {
"id": ""
},
"validationProperties": {
"validationToken": "8c9912db-c615-4eeb-8465",
"expirationDate": "2009-06-15T13:45:43.0000000Z"
},
"domainValidationState": "Approved",
"provisioningState": "Updating",
"deploymentStatus": "NotStarted"
}
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
{
"parameters": {
"api-version": "2022-05-01-preview",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"endpointName": "endpoint1",
"endpoint": {
"tags": {},
"location": "global",
"properties": {
"enabledState": "Enabled",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
}
},
"responses": {
"200": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "global",
"properties": {
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
}
},
"201": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "global",
"properties": {
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Succeeded",
"deploymentStatus": "NotStarted",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
}
},
"202": {
"body": {
"name": "endpoint1",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/afdendpoints/endpoint1",
"type": "Microsoft.Cdn/profiles/afdendpoints",
"tags": {},
"location": "global",
"properties": {
"hostName": "endpoint1-abcdefghijklmnop.z01.azurefd.net",
"enabledState": "Enabled",
"provisioningState": "Creating",
"deploymentStatus": "NotStarted",
"autoGeneratedDomainNameLabelScope": "TenantReuse"
}
}
}
}
}
Loading

0 comments on commit 38ef3fb

Please sign in to comment.