Skip to content

Commit

Permalink
Make origin a ProxyResource instead of TrackedResource (Azure#10126)
Browse files Browse the repository at this point in the history
* Make origin a ProxyResource instead of TrackedResource

* Fix model validation error

* Fix model validation errors

* Fix prettier errors

* Make origin a proxyresource for all API versions starting from 12-30-2019
  • Loading branch information
nachakra authored Jul 17, 2020
1 parent 647194e commit 3657725
Show file tree
Hide file tree
Showing 15 changed files with 3 additions and 117 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4332,7 +4332,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/TrackedResource"
"$ref": "#/definitions/ProxyResource"
}
],
"properties": {
Expand Down Expand Up @@ -4378,13 +4378,6 @@
"type": "object",
"description": "Origin properties needed for origin update.",
"properties": {
"tags": {
"description": "Origin tags.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/OriginUpdatePropertiesParameters"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
"endpointName": "endpoint1",
"originName": "www-someDomain-net",
"origin": {
"location": "WestUs",
"properties": {
"hostName": "www.someDomain.net",
"httpPort": 80,
Expand All @@ -25,7 +24,6 @@
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"location": "WestUs",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active",
Expand All @@ -44,7 +42,6 @@
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"location": "WestUs",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active",
Expand All @@ -63,7 +60,6 @@
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"location": "WestUs",
"properties": {
"provisioningState": "Succeeded",
"resourceState": "Active",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
"200": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
"value": [
{
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"endpointName": "endpoint1",
"originName": "www-someDomain-net",
"originUpdateProperties": {
"tags": {
"key1": "value1"
},
"properties": {
"httpPort": 42,
"httpsPort": 43,
Expand All @@ -24,10 +21,6 @@
"200": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand All @@ -47,10 +40,6 @@
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
"provisioningState": "Succeeded",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4428,7 +4428,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/TrackedResource"
"$ref": "#/definitions/ProxyResource"
}
],
"properties": {
Expand Down Expand Up @@ -4474,13 +4474,6 @@
"type": "object",
"description": "Origin properties needed for origin update.",
"properties": {
"tags": {
"description": "Origin tags.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/OriginUpdatePropertiesParameters"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
"endpointName": "endpoint1",
"originName": "www-someDomain-net",
"origin": {
"location": "WestUs",
"tags": {
"key1": "value1"
},
"properties": {
"hostName": "www.someDomain.net",
"httpPort": 80,
Expand All @@ -26,10 +22,6 @@
"200": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand All @@ -48,10 +40,6 @@
"201": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand All @@ -70,10 +58,6 @@
"202": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
"200": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
"value": [
{
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"endpointName": "endpoint1",
"originName": "www-someDomain-net",
"originUpdateProperties": {
"tags": {
"key1": "value1"
},
"properties": {
"httpPort": 42,
"httpsPort": 43,
Expand All @@ -24,10 +21,6 @@
"200": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand All @@ -47,10 +40,6 @@
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
"provisioningState": "Succeeded",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4452,7 +4452,7 @@
"type": "object",
"allOf": [
{
"$ref": "#/definitions/TrackedResource"
"$ref": "#/definitions/ProxyResource"
}
],
"properties": {
Expand Down Expand Up @@ -4514,13 +4514,6 @@
"type": "object",
"description": "Origin properties needed for origin update.",
"properties": {
"tags": {
"description": "Origin tags.",
"type": "object",
"additionalProperties": {
"type": "string"
}
},
"properties": {
"x-ms-client-flatten": true,
"$ref": "#/definitions/OriginUpdatePropertiesParameters"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@
"endpointName": "endpoint1",
"originName": "www-someDomain-net",
"origin": {
"location": "WestUs",
"tags": {
"key1": "value1"
},
"properties": {
"hostName": "www.someDomain.net",
"httpPort": 80,
Expand All @@ -29,10 +25,6 @@
"200": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand All @@ -55,10 +47,6 @@
"201": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand All @@ -81,10 +69,6 @@
"202": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,6 @@
"200": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,6 @@
"value": [
{
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
"endpointName": "endpoint1",
"originName": "www-someDomain-net",
"originUpdateProperties": {
"tags": {
"key1": "value1"
},
"properties": {
"httpPort": 42,
"httpsPort": 43,
Expand All @@ -25,10 +22,6 @@
"200": {
"body": {
"name": "www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
Expand All @@ -51,10 +44,6 @@
"body": {
"name": "www-someDomain-net",
"id": "/subscriptions/subid/resourcegroups/RG/providers/Microsoft.Cdn/profiles/profile1/endpoints/endpoint1/origins/www-someDomain-net",
"location": "WestUs",
"tags": {
"key1": "value1"
},
"type": "Microsoft.Cdn/profiles/endpoints/origins",
"properties": {
"provisioningState": "Succeeded",
Expand Down

0 comments on commit 3657725

Please sign in to comment.