@azure-tools/typespec-azure-resource-manager 0.59.0-dev.7 → 0.59.0
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/Legacy/operations.tsp +1 -1
- package/lib/operations.tsp +2 -0
- package/lib/parameters.tsp +8 -0
- package/package.json +16 -16
|
@@ -273,11 +273,11 @@ interface RoutedOperations<
|
|
|
273
273
|
* @template OverrideErrorType Optional. The error response, if non-standard.
|
|
274
274
|
* @template OverrideRouteOptions Optional. The route options for the operation.
|
|
275
275
|
*/
|
|
276
|
+
@segmentOf(ResourceTypeParameter)
|
|
276
277
|
@doc("List a {name}", Resource)
|
|
277
278
|
@get
|
|
278
279
|
@list
|
|
279
280
|
@listsResource(Resource)
|
|
280
|
-
@segmentOf(ResourceTypeParameter)
|
|
281
281
|
@armOperationRoute(OverrideRouteOptions)
|
|
282
282
|
@armResourceList(Resource)
|
|
283
283
|
@Private.armUpdateProviderNamespace
|
package/lib/operations.tsp
CHANGED
|
@@ -737,6 +737,7 @@ op ArmProviderActionSync<
|
|
|
737
737
|
OptionalRequestBody extends valueof boolean = false
|
|
738
738
|
>(
|
|
739
739
|
...Azure.ResourceManager.Foundations.DefaultBaseParameters<Scope>,
|
|
740
|
+
...Scope,
|
|
740
741
|
...ProviderNamespace<Scope>,
|
|
741
742
|
...Parameters,
|
|
742
743
|
|
|
@@ -773,6 +774,7 @@ op ArmProviderActionAsync<
|
|
|
773
774
|
OptionalRequestBody extends valueof boolean = false
|
|
774
775
|
>(
|
|
775
776
|
...Azure.ResourceManager.Foundations.DefaultBaseParameters<Scope>,
|
|
777
|
+
...Scope,
|
|
776
778
|
...ProviderNamespace<Scope>,
|
|
777
779
|
...Parameters,
|
|
778
780
|
|
package/lib/parameters.tsp
CHANGED
|
@@ -234,3 +234,11 @@ model ExtensionResourceActionScope {
|
|
|
234
234
|
@segment("extensionresource")
|
|
235
235
|
name: string;
|
|
236
236
|
}
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Template used by ArmProviderAction templates. This produces following action route:
|
|
240
|
+
* `/{scope}/providers/Microsoft.SomeRP/someAction`
|
|
241
|
+
* @template StringType The type of the scope name parameter, defaults to string.
|
|
242
|
+
*/
|
|
243
|
+
model ExtensionActionScope<StringType extends string = string>
|
|
244
|
+
is Extension.ScopeParameter<StringType>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.59.0
|
|
3
|
+
"version": "0.59.0",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -44,30 +44,30 @@
|
|
|
44
44
|
"pluralize": "^8.0.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
|
-
"@
|
|
48
|
-
"@typespec
|
|
49
|
-
"@typespec/
|
|
50
|
-
"@typespec/
|
|
51
|
-
"@typespec/
|
|
52
|
-
"@typespec/
|
|
47
|
+
"@typespec/compiler": "^1.3.0",
|
|
48
|
+
"@azure-tools/typespec-azure-core": "^0.59.0",
|
|
49
|
+
"@typespec/openapi": "^1.3.0",
|
|
50
|
+
"@typespec/http": "^1.3.0",
|
|
51
|
+
"@typespec/versioning": "^0.73.0",
|
|
52
|
+
"@typespec/rest": "^0.73.0"
|
|
53
53
|
},
|
|
54
54
|
"devDependencies": {
|
|
55
|
-
"@azure-tools/typespec-azure-core": "^0.58.0 || >=0.59.0-dev <0.59.0",
|
|
56
55
|
"@types/node": "~24.1.0",
|
|
57
56
|
"@types/pluralize": "^0.0.33",
|
|
58
|
-
"@typespec/compiler": "^1.2.1",
|
|
59
|
-
"@typespec/http": "^1.2.1",
|
|
60
|
-
"@typespec/library-linter": "^0.72.1 || >=0.73.0-dev <0.73.0",
|
|
61
|
-
"@typespec/openapi": "^1.2.1",
|
|
62
|
-
"@typespec/rest": "^0.72.1 || >=0.73.0-dev <0.73.0",
|
|
63
|
-
"@typespec/tspd": "^0.72.1 || >=0.73.0-dev <0.73.0",
|
|
64
|
-
"@typespec/versioning": "^0.72.1 || >=0.73.0-dev <0.73.0",
|
|
65
57
|
"@vitest/coverage-v8": "^3.1.2",
|
|
66
58
|
"@vitest/ui": "^3.1.2",
|
|
67
59
|
"c8": "^10.1.3",
|
|
68
60
|
"rimraf": "~6.0.1",
|
|
69
61
|
"typescript": "~5.8.2",
|
|
70
|
-
"vitest": "^3.1.2"
|
|
62
|
+
"vitest": "^3.1.2",
|
|
63
|
+
"@azure-tools/typespec-azure-core": "^0.59.0",
|
|
64
|
+
"@typespec/http": "^1.3.0",
|
|
65
|
+
"@typespec/library-linter": "^0.73.0",
|
|
66
|
+
"@typespec/compiler": "^1.3.0",
|
|
67
|
+
"@typespec/openapi": "^1.3.0",
|
|
68
|
+
"@typespec/rest": "^0.73.0",
|
|
69
|
+
"@typespec/tspd": "^0.72.2",
|
|
70
|
+
"@typespec/versioning": "^0.73.0"
|
|
71
71
|
},
|
|
72
72
|
"scripts": {
|
|
73
73
|
"clean": "rimraf ./dist ./temp",
|