Skip to content

Commit

Permalink
Fix swagger issues for cdn preview version (#20903)
Browse files Browse the repository at this point in the history
* Fix swagger issues for cdn preview version

* Updates

* Updates
  • Loading branch information
gubalasu authored Oct 18, 2022
1 parent fead0de commit 42c3b0c
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -477,6 +477,9 @@
}
],
"responses": {
"200": {
"description": "Ok."
},
"202": {
"description": "Accepted and the operation will complete asynchronously.",
"headers": {
Expand Down Expand Up @@ -2773,18 +2776,6 @@
"modelAsString": true
}
},
"errors": {
"readOnly": true,
"description": "List of validation errors",
"$ref": "#/definitions/MigrationErrorsListResponse"
}
},
"x-ms-azure-resource": true
},
"MigrationErrorsListResponse": {
"description": "Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.",
"type": "object",
"properties": {
"errors": {
"items": {
"description": "List of migration errors",
Expand All @@ -2793,7 +2784,8 @@
"type": "array",
"x-ms-identifiers": []
}
}
},
"x-ms-azure-resource": true
},
"MigrationErrorType": {
"description": "Error response indicates CDN service is not able to process the incoming request. The reason is provided in the error message.",
Expand Down Expand Up @@ -2824,6 +2816,9 @@
"CanMigrateParameters": {
"type": "object",
"description": "Request body for CanMigrate operation.",
"required": [
"classicResourceReference"
],
"properties": {
"classicResourceReference": {
"description": "Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.",
Expand All @@ -2835,6 +2830,11 @@
"MigrationParameters": {
"type": "object",
"description": "Request body for Migrate operation.",
"required": [
"classicResourceReference",
"sku",
"profileName"
],
"properties": {
"sku": {
"description": "Sku for the migration",
Expand Down Expand Up @@ -2884,9 +2884,12 @@
"$ref": "#/definitions/ResourceReference"
},
"errors": {
"readOnly": true,
"description": "List of validation errors",
"$ref": "#/definitions/MigrationErrorsListResponse"
"items": {
"description": "List of migration errors",
"$ref": "#/definitions/MigrationErrorType"
},
"type": "array",
"x-ms-identifiers": []
}
},
"x-ms-azure-resource": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"profileName": "profile1"
},
"responses": {
"200": {},
"202": {
"headers": {
"azure-asyncoperation": "https://management.azure.com/subscriptions/subid/resourcegroups/resourceGroupName/providers/Microsoft.Cdn/operationresults/operationId?api-version=2021-06-01"
Expand Down

0 comments on commit 42c3b0c

Please sign in to comment.