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

[ARM]: Support resource with multiple paths #234

Open
markcowl opened this issue Feb 7, 2024 · 2 comments
Open

[ARM]: Support resource with multiple paths #234

markcowl opened this issue Feb 7, 2024 · 2 comments
Labels
design:needed A design request has been raised that needs a proposal external:mgmt external:swagger-converter Issues related to the swagger-converter tool lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library

Comments

@markcowl
Copy link
Member

markcowl commented Feb 7, 2024

  • Create a canonical pattern for an ARM resource that can be hosted under multiple paths
    • Resources at each of these paths have the same resource schema and may have the same or different operations
    • example: PolicyDefinition (subscription, resource group)
    • Resources may also have recursive parentage (ManagementGroups)
@markcowl markcowl added the design:needed A design request has been raised that needs a proposal label Feb 7, 2024
@markcowl markcowl added this to the [2024] April milestone Feb 12, 2024
@markcowl markcowl modified the milestones: [2024] April, Backlog Mar 11, 2024
@markcowl markcowl changed the title [ARM]: Support resource with multiple parents [ARM]: Support resource with multiple paths Jul 31, 2024
@ArthurMa1978 ArthurMa1978 added external:mgmt lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library labels Aug 2, 2024
@pshao25
Copy link
Member

pshao25 commented Aug 2, 2024

We have several (maybe we can say many) RPs in which a same resource model defined is used in different clients. For example, this client and this client share the same resource model Site.

/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{name}/slots/{slot}

The only way we could write its TypeSpec now seems like this.

@pshao25
Copy link
Member

pshao25 commented Aug 2, 2024

#1282 should be handled simultaneously.

@ArthurMa1978 ArthurMa1978 added the external:swagger-converter Issues related to the swagger-converter tool label Aug 2, 2024
@markcowl markcowl modified the milestones: Backlog, [2024] December Oct 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design:needed A design request has been raised that needs a proposal external:mgmt external:swagger-converter Issues related to the swagger-converter tool lib:azure-resource-manager Issues for @azure-tools/typespec-azure-core library
Projects
None yet
Development

No branches or pull requests

3 participants