Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Hub Generated] Review request for Microsoft.ResourceGraph to add version preview/2020-04-01-preview #11070

Merged
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,16 @@
"readOnly": true,
"description": "Azure resource name. This is GUID value. The display name should be assigned within properties field."
},
"subscriptionId": {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not understand the change here. This "Resource" definition was more or less aligned with standard "TrackedResource" definition. But now you are adding subscription ID and resource group here, it is messing up this base definition. I would suggest this to go on to the specific query definition.

Also in terms of the name GraphQueryResource, if feels more like XXXQuery rather a XXXResource. Anyway, I guess that boat has sailed.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually you are correct.. We are returning extra fields in the RP. Let me revert this change and fix our RP side.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reverted changes for subscriptionId/resourceGroup. Also fixed a casing issue for etag field.

"type": "string",
"readOnly": true,
"description": "The Id of the subscription to which the resource belongs."
},
"resourceGroup": {
"type": "string",
"readOnly": true,
"description": "The name of the resource group this resource belongs to."
},
"location": {
"type": "string",
"readOnly": false,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,6 +267,16 @@
"readOnly": true,
"description": "Azure resource name. This is GUID value. The display name should be assigned within properties field."
},
"subscriptionId": {
"type": "string",
"readOnly": true,
"description": "The Id of the subscription to which the resource belongs."
},
"resourceGroup": {
"type": "string",
"readOnly": true,
"description": "The name of the resource group this resource belongs to."
},
"location": {
"type": "string",
"readOnly": true,
Expand Down
Loading