Add ArmListBySubscriptionScope operation template for subscription-level listing#4185
Add ArmListBySubscriptionScope operation template for subscription-level listing#4185
Conversation
…subscription-level listing
Adds a new operation template that generates the correct subscription-level
list path for child resources, omitting parent resource path segments.
For example, for an Employee child resource under a Test parent, this generates:
/subscriptions/{subscriptionId}/providers/Microsoft.ContosoProviderHub/employees
Includes tests in resource-resolution and typespec-autorest, updated how-to
documentation, and regenerated reference docs.
Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/ed038532-137a-45fa-8f23-27bce702d52a
Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
markcowl
left a comment
There was a problem hiding this comment.
Pull the latest from main. Create a changeset for this change. Make the suggested changes.
Then verify that all tests pass, all files are correctly formatted and there are no merge issues with main
website/src/content/docs/docs/howtos/ARM/resource-operations.md
Outdated
Show resolved
Hide resolved
…d-path-listbysubscription Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
…geset, merge main Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/0677a3f4-5b39-442d-836d-1ecc4083feda Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Done in 2ec3635 — merged latest from main (no conflicts), applied all suggested changes, created changeset, regenerated docs, verified formatting and all tests pass (47 resource-resolution + 16 autorest ARM tests). |
| @@ -188,6 +188,10 @@ Arm Resource list operations return a list of Tracked or Proxy Resources at a pa | |||
| | ListBySubscription | `listBySubscription is ArmListBySubscription<ResourceType>` | | |||
There was a problem hiding this comment.
This line should use ArmListBySubscriptionScope
There was a problem hiding this comment.
There should be no line in this table that uses ArmListBySubscription
…d-path-listbysubscription Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
website/src/content/docs/docs/howtos/ARM/resource-operations.md
Outdated
Show resolved
Hide resolved
…bscription Agent-Logs-Url: https://github.com/Azure/typespec-azure/sessions/2a4ef512-97b6-4c0f-b0d6-e83999987a1f Co-authored-by: markcowl <1054056+markcowl@users.noreply.github.com>
Fixed in 6ee7d9b — updated the table row to use |
ArmListBySubscriptionScopeoperation template inoperations.tspresource-resolution.test.tsverifying resolveArmResources for child resource subscription scopetypespec-autorest/test/arm/resources.test.tsverifying correct OpenAPI path outputresource-operations.mdArmListBySubscriptionScopeinstead ofArmListBySubscription