-
Couldn't load subscription status.
- Fork 5.1k
scope resource support. #52598
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
scope resource support. #52598
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,33 @@ | ||
| import "@azure-tools/typespec-azure-core"; | ||
| import "@azure-tools/typespec-azure-resource-manager"; | ||
| import "@typespec/openapi"; | ||
| import "@typespec/rest"; | ||
|
|
||
| using Azure.ResourceManager; | ||
| using TypeSpec.Http; | ||
| using TypeSpec.OpenAPI; | ||
|
|
||
| namespace MgmtTypeSpec; | ||
|
|
||
| model SelfHelpResource | ||
| is Azure.ResourceManager.ExtensionResource<SelfHelpResourceProperties> { | ||
| ...ResourceNameParameter< | ||
| Resource = SelfHelpResource, | ||
| KeyName = "selfHelpName", | ||
| SegmentName = "selfHelps", | ||
| NamePattern = "" | ||
| >; | ||
| } | ||
|
|
||
| model SelfHelpResourceProperties { | ||
| selfHelpId: string; | ||
| } | ||
|
|
||
| // get is Extension.Read<Extension.ScopeParameter, SelfHelpResource>; | ||
haiyuazhang marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
|
|
||
| #suppress "@azure-tools/typespec-azure-resource-manager/no-resource-delete-operation" "FIXME: Update justification, follow aka.ms/tsp/conversion-fix for details" | ||
| @armResourceOperations | ||
| interface SolutionResources { | ||
| get is Extension.Read<Extension.ScopeParameter, SelfHelpResource>; | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.