@azure-tools/typespec-azure-resource-manager 0.57.0-dev.0 → 0.57.0-dev.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/operations.tsp +2 -2
- package/lib/parameters.tsp +15 -0
- package/package.json +3 -3
package/lib/operations.tsp
CHANGED
|
@@ -699,7 +699,7 @@ op checkLocalNameAvailability<
|
|
|
699
699
|
* @dev A provider action performed over a tenant
|
|
700
700
|
* @template Request The request model for the action
|
|
701
701
|
* @template Response The response type for the action
|
|
702
|
-
* @template Scope The scope of the action (SubscriptionActionScope or
|
|
702
|
+
* @template Scope The scope of the action (SubscriptionActionScope, TenantActionScope, or ExtensionResourceActionScope)
|
|
703
703
|
* @template Parameters Optional. Additional parameters after the path parameters (e.g. Location)
|
|
704
704
|
* @template Error Optional. The error response, if non-standard.
|
|
705
705
|
*/
|
|
@@ -726,7 +726,7 @@ op ArmProviderActionSync<
|
|
|
726
726
|
* @dev A long-running provider action.
|
|
727
727
|
* @template Request The request model for the action
|
|
728
728
|
* @template Response The response type for the action
|
|
729
|
-
* @template Scope The scope of the action (SubscriptionActionScope or
|
|
729
|
+
* @template Scope The scope of the action (SubscriptionActionScope, TenantActionScope, or ExtensionResourceActionScope)
|
|
730
730
|
* @template Parameters Optional. Additional parameters after the path parameters (e.g. Location)
|
|
731
731
|
* @template LroHeaders Optional. Allows overriding the lro headers returned in the Accepted response
|
|
732
732
|
* @template Error Optional. The error response, if non-standard.
|
package/lib/parameters.tsp
CHANGED
|
@@ -169,3 +169,18 @@ model TenantActionScope {
|
|
|
169
169
|
@segment("tenant")
|
|
170
170
|
name: string;
|
|
171
171
|
}
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Template used by ArmProviderAction templates. This produces following action route:
|
|
175
|
+
* `/{resourceUri}/providers/Microsoft.SomeRP/someAction`
|
|
176
|
+
*/
|
|
177
|
+
@armVirtualResource
|
|
178
|
+
@extensionResource
|
|
179
|
+
model ExtensionResourceActionScope {
|
|
180
|
+
@doc("Symbolic name of scope")
|
|
181
|
+
@path
|
|
182
|
+
@visibility(Lifecycle.Read)
|
|
183
|
+
@key
|
|
184
|
+
@segment("extensionresource")
|
|
185
|
+
name: string;
|
|
186
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.57.0-dev.
|
|
3
|
+
"version": "0.57.0-dev.1",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -46,7 +46,7 @@
|
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@azure-tools/typespec-azure-core": "^0.56.0 || >=0.57.0-dev <0.57.0",
|
|
48
48
|
"@typespec/compiler": "^1.0.0",
|
|
49
|
-
"@typespec/http": "^1.0.
|
|
49
|
+
"@typespec/http": "^1.0.1",
|
|
50
50
|
"@typespec/openapi": "^1.0.0",
|
|
51
51
|
"@typespec/rest": "^0.70.0 || >=0.71.0-dev <0.71.0",
|
|
52
52
|
"@typespec/versioning": "^0.70.0 || >=0.71.0-dev <0.71.0"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
"@types/node": "~22.13.11",
|
|
57
57
|
"@types/pluralize": "^0.0.33",
|
|
58
58
|
"@typespec/compiler": "^1.0.0",
|
|
59
|
-
"@typespec/http": "^1.0.
|
|
59
|
+
"@typespec/http": "^1.0.1",
|
|
60
60
|
"@typespec/library-linter": "^0.70.0 || >=0.71.0-dev <0.71.0",
|
|
61
61
|
"@typespec/openapi": "^1.0.0",
|
|
62
62
|
"@typespec/rest": "^0.70.0 || >=0.71.0-dev <0.71.0",
|