Skip to content

Commit

Permalink
Fixing some validation errors
Browse files Browse the repository at this point in the history
  • Loading branch information
gubalasu committed Apr 19, 2022
1 parent aa83d9a commit 24f4471
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@
{
"description": "Properties needed to check if cdn profile or classic frontdoor can be migrated.",
"in": "body",
"name": "canmigrateParameters",
"name": "canMigrateParameters",
"required": true,
"schema": {
"$ref": "#/definitions/CanMigrateParameters"
Expand Down Expand Up @@ -416,7 +416,7 @@
}
],
"responses": {
"202": {
"200": {
"description": "Accepted and the operation will complete asynchronously.",
"schema": {
"$ref": "#/definitions/MigrateResult"
Expand Down Expand Up @@ -2782,7 +2782,7 @@
"type": "object",
"description": "Request body for CanMigrate operation.",
"properties": {
"ClassicResourceReference": {
"classicResourceReference": {
"description": "Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.",
"$ref": "#/definitions/ResourceReference"
}
Expand All @@ -2793,7 +2793,7 @@
"type": "object",
"description": "Request body for Migrate operation.",
"properties": {
"Sku": {
"sku": {
"description": "Sku for the migration",
"type": "string",
"enum": [
Expand All @@ -2805,15 +2805,15 @@
"modelAsString": true
}
},
"ClassicResourceReference": {
"classicResourceReference": {
"description": "Resource reference of the classic cdn profile or classic frontdoor that need to be migrated.",
"$ref": "#/definitions/ResourceReference"
},
"ProfileName": {
"profileName": {
"description": "Name of the new profile that need to be created.",
"type": "string"
},
"MigrationWafMappings": {
"migrationWafMappings": {
"description": "Waf mapping for the migrated profile",
"type": "array",
"items": {
Expand All @@ -2828,11 +2828,11 @@
"description": "Waf mapping",
"type":"object",
"properties": {
"MigratedFrom": {
"migratedFrom": {
"description": "Migration From Waf policy",
"$ref": "#/definitions/ResourceReference"
},
"MigratedTo": {
"migratedTo": {
"description": "Migration to Waf policy",
"$ref": "#/definitions/ResourceReference"
}
Expand All @@ -2842,7 +2842,7 @@
"type": "object",
"description": "Result for canMigrate operation.",
"properties": {
"MigratedProfileArmResourceId": {
"migratedProfileArmResourceId": {
"readOnly": true,
"description": "Arm resource id of the migrated profile",
"$ref": "#/definitions/ResourceReference"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,17 @@
"api-version": "2021-06-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1"
"profileName": "profile1",
"canMigrateParameters": {
"classicResourceReference": {"id":"/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname"}
}
},
"responses": {
"200": {
"body": {
"properties": {
"canMigrate": true,
"defaultSku": "Standard_AzureFrontDoor",
"errors": null
}
"canMigrate": true,
"defaultSku": "Standard_AzureFrontDoor",
"errors": null
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,17 @@
"api-version": "2021-06-01",
"subscriptionId": "subid",
"resourceGroupName": "RG",
"profileName": "profile1",
"properties":{
"sku": "Standard_AzureFrontDoor"
"migrationParameters":{
"sku": "Standard_AzureFrontDoor",
"classicResourceReference": {"id":"/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Network/frontdoors/frontdoorname"},
"profileName": ""
}
},
"responses": {
"200": {
"body": {
"properties": {
"MigratedProfileArmResourceId": {"id":"/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/migratedprofile1"},
"MigratedWafArmResourceIds": null,
"errors": null
}
"migratedProfileArmResourceId": {"id":"/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/migratedprofile1"},
"errors": null
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"profileName": "profile1"
},
"responses": {
"200": {}
"202": {}
}
}

0 comments on commit 24f4471

Please sign in to comment.