Commit fc86e64
authored
Fix parent class of ClusterResource and DataCenterResource in .NET SDK (#13244)
* Fix parent class of ClusterResource and DataCenterResource in .NET SDK
Removed x-ms-azure-resource from ClusterResource and DataCenterResource. x-ms-azure-resource is already set on the ProxyResource and TrackedResource definitions that ClusterResource and DataCenterResource, and when it's applied it on ClusterResource or DataCenterResource directly, it forces the parent class to be IResource in the .NET SDK and loses the location, type, id, etc. parameters.
* Switched to CosmosDB's ARM resource parents.
The types.json ones throw errors. In particular, I can't use TrackedResource because it sets location to be required, and the same field is not found by the linter.
* Remove required properties since they are forbidden for PATCH.
* Remove x-ms-client-flatten to avoid breaking changes.1 parent 66f033f commit fc86e64
File tree
1 file changed
+2
-4
lines changed- specification/cosmos-db/resource-manager/Microsoft.DocumentDB/preview/2021-03-01-preview
1 file changed
+2
-4
lines changedLines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
771 | 771 | | |
772 | 772 | | |
773 | 773 | | |
774 | | - | |
775 | 774 | | |
776 | 775 | | |
777 | 776 | | |
| |||
991 | 990 | | |
992 | 991 | | |
993 | 992 | | |
994 | | - | |
| 993 | + | |
995 | 994 | | |
996 | 995 | | |
997 | 996 | | |
| |||
1056 | 1055 | | |
1057 | 1056 | | |
1058 | 1057 | | |
1059 | | - | |
1060 | 1058 | | |
1061 | 1059 | | |
1062 | | - | |
| 1060 | + | |
1063 | 1061 | | |
1064 | 1062 | | |
1065 | 1063 | | |
| |||
0 commit comments