@azure-tools/typespec-azure-resource-manager 0.38.0 → 0.39.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/README.md +22 -22
- package/lib/arm.foundations.tsp +49 -5
- package/lib/common-types.tsp +4 -4
- package/lib/decorators.tsp +20 -20
- package/lib/interfaces.tsp +3 -3
- package/lib/models.tsp +10 -10
- package/lib/operations.tsp +246 -102
- package/lib/private.decorators.tsp +5 -5
- package/lib/responses.tsp +12 -12
- package/package.json +20 -19
|
@@ -5,7 +5,7 @@ namespace Azure.ResourceManager.Private;
|
|
|
5
5
|
using TypeSpec.Reflection;
|
|
6
6
|
|
|
7
7
|
/**
|
|
8
|
-
* Update the
|
|
8
|
+
* Update the Azure Resource Manager provider namespace for a given entity.
|
|
9
9
|
*/
|
|
10
10
|
extern dec armUpdateProviderNamespace(target: Reflection.Operation);
|
|
11
11
|
|
|
@@ -25,7 +25,7 @@ alias ArmCommonTypeVersionSpec = {
|
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
27
|
* @param definitionName Definition name
|
|
28
|
-
* @param version
|
|
28
|
+
* @param version Azure Resource Manager Version
|
|
29
29
|
* @param referenceFile Reference file
|
|
30
30
|
*/
|
|
31
31
|
extern dec armCommonDefinition(
|
|
@@ -37,7 +37,7 @@ extern dec armCommonDefinition(
|
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
39
|
* @param definitionName Definition name
|
|
40
|
-
* @param version
|
|
40
|
+
* @param version Azure Resource Manager Version
|
|
41
41
|
* @param referenceFile Reference file
|
|
42
42
|
*/
|
|
43
43
|
extern dec armCommonParameter(
|
|
@@ -48,7 +48,7 @@ extern dec armCommonParameter(
|
|
|
48
48
|
);
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* This decorator is used to identify
|
|
51
|
+
* This decorator is used to identify Azure Resource Manager resource types and extract their
|
|
52
52
|
* metadata. It is *not* meant to be used directly by a spec author, it instead
|
|
53
53
|
* gets implicitly applied when the spec author defines a model type in this form:
|
|
54
54
|
*
|
|
@@ -58,7 +58,7 @@ extern dec armCommonParameter(
|
|
|
58
58
|
* `@armResource` decorator, so it also gets applied to the type which absorbs the
|
|
59
59
|
* `TrackedResource<Resource>` definition by using the `is` keyword.
|
|
60
60
|
*
|
|
61
|
-
* @param properties
|
|
61
|
+
* @param properties Azure Resource Manager resource properties
|
|
62
62
|
*/
|
|
63
63
|
extern dec armResourceInternal(target: Model, properties: Model);
|
|
64
64
|
|
package/lib/responses.tsp
CHANGED
|
@@ -7,20 +7,20 @@ using Azure.ResourceManager.Private;
|
|
|
7
7
|
namespace Azure.ResourceManager;
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
* The
|
|
10
|
+
* The Azure Resource Manager synchronous OK response
|
|
11
11
|
* @template ResponseBody The contents of the response body
|
|
12
12
|
*/
|
|
13
|
-
@doc("
|
|
13
|
+
@doc("Azure operation completed successfully.")
|
|
14
14
|
model ArmResponse<ResponseBody> {
|
|
15
15
|
...OkResponse;
|
|
16
16
|
...Body<ResponseBody>;
|
|
17
17
|
}
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
|
-
* The
|
|
20
|
+
* The Azure Resource Manager 201 response for a resource
|
|
21
21
|
* @template ResponseBody The contents of the response body
|
|
22
22
|
*/
|
|
23
|
-
@doc("
|
|
23
|
+
@doc("Azure create operation completed successfully.")
|
|
24
24
|
model ArmCreatedResponse<ResponseBody> {
|
|
25
25
|
...CreatedResponse;
|
|
26
26
|
...Azure.Core.Foundations.RetryAfterHeader;
|
|
@@ -36,14 +36,14 @@ model ArmDeletedResponse {
|
|
|
36
36
|
}
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
* @dev The response for asynchronous
|
|
39
|
+
* @dev The response for asynchronous Azure Resource Manager delete ACCEPTED
|
|
40
40
|
* @template LroHeaders Optional. Allows overriding the Lro headers returned in the response.
|
|
41
41
|
*/
|
|
42
42
|
model ArmDeleteAcceptedLroResponse<LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader>
|
|
43
43
|
is ArmAcceptedLroResponse<"Resource deletion accepted.", LroHeaders>;
|
|
44
44
|
|
|
45
45
|
/**
|
|
46
|
-
* @dev The response for synchronous
|
|
46
|
+
* @dev The response for synchronous Azure Resource Manager delete ACCEPTED
|
|
47
47
|
*/
|
|
48
48
|
model ArmDeleteAcceptedResponse is ArmAcceptedResponse<"Resource deletion accepted.">;
|
|
49
49
|
|
|
@@ -58,7 +58,7 @@ model ArmAcceptedResponse<Message extends valueof string = "Resource operation a
|
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
/**
|
|
61
|
-
* @dev The standard
|
|
61
|
+
* @dev The standard Azure Resource Manager response for asynchronous PATCH, POST, and DELETE operations
|
|
62
62
|
* @template Description The description of the response status (defaults to `Resource operation accepted`)
|
|
63
63
|
* @template LroHeaders Optional. The lro headers that appear in the Accepted response
|
|
64
64
|
*/
|
|
@@ -73,7 +73,7 @@ model ArmAcceptedLroResponse<
|
|
|
73
73
|
}
|
|
74
74
|
|
|
75
75
|
/**
|
|
76
|
-
* Standard
|
|
76
|
+
* Standard Azure Resource Manager operation status response
|
|
77
77
|
* @template Properties Optional resource-specific properties
|
|
78
78
|
* @template StatusValues The set of allowed values for operation status
|
|
79
79
|
*/
|
|
@@ -174,12 +174,12 @@ model ArmCombinedLroHeaders<
|
|
|
174
174
|
}
|
|
175
175
|
|
|
176
176
|
/**
|
|
177
|
-
* @dev
|
|
177
|
+
* @dev Azure Resource Manager response for a properly formed delete request, with no resource found
|
|
178
178
|
*/
|
|
179
|
-
model ArmDeletedNoContentResponse is ArmNoContentResponse<"Resource
|
|
179
|
+
model ArmDeletedNoContentResponse is ArmNoContentResponse<"Resource does not exist.">;
|
|
180
180
|
|
|
181
181
|
/**
|
|
182
|
-
* Standard
|
|
182
|
+
* Standard Azure Resource Manager NoContent (204) response
|
|
183
183
|
* @template Message The description of the response status (defaults to `Operation completed successfully`)
|
|
184
184
|
*/
|
|
185
185
|
@doc(Message)
|
|
@@ -226,7 +226,7 @@ model ArmResourceCreatedSyncResponse<Resource extends Azure.ResourceManager.Foun
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
/**
|
|
229
|
-
* The standard
|
|
229
|
+
* The standard Azure Resource Manager error response
|
|
230
230
|
*/
|
|
231
231
|
@error
|
|
232
232
|
@armCommonDefinition("ErrorResponse", Azure.ResourceManager.CommonTypes.Versions.v3)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.39.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",
|
|
@@ -39,27 +39,27 @@
|
|
|
39
39
|
"!dist/test/**"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@typespec/compiler": "~0.52.0",
|
|
43
|
-
"@azure-tools/typespec-azure-core": "~0.38.0",
|
|
44
|
-
"@azure-tools/typespec-autorest": "~0.38.0",
|
|
45
|
-
"@typespec/openapi": "~0.52.0",
|
|
46
|
-
"@typespec/rest": "~0.52.0",
|
|
47
|
-
"@typespec/http": "~0.52.0",
|
|
48
|
-
"@typespec/versioning": "~0.52.0"
|
|
42
|
+
"@typespec/compiler": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
43
|
+
"@azure-tools/typespec-azure-core": "~0.38.0 || >=0.39.0-dev <0.39.0",
|
|
44
|
+
"@azure-tools/typespec-autorest": "~0.38.1 || >=0.39.0-dev <0.39.0",
|
|
45
|
+
"@typespec/openapi": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
46
|
+
"@typespec/rest": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
47
|
+
"@typespec/http": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
48
|
+
"@typespec/versioning": "~0.52.0 || >=0.53.0-dev <0.53.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@typespec/compiler": "~0.52.0",
|
|
52
|
-
"@typespec/openapi": "~0.52.0",
|
|
53
|
-
"@azure-tools/typespec-azure-core": "~0.38.0",
|
|
54
|
-
"@azure-tools/typespec-autorest": "~0.38.0",
|
|
55
|
-
"@typespec/rest": "~0.52.0",
|
|
56
|
-
"@typespec/http": "~0.52.0",
|
|
57
|
-
"@typespec/versioning": "~0.52.0",
|
|
51
|
+
"@typespec/compiler": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
52
|
+
"@typespec/openapi": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
53
|
+
"@azure-tools/typespec-azure-core": "~0.38.0 || >=0.39.0-dev <0.39.0",
|
|
54
|
+
"@azure-tools/typespec-autorest": "~0.38.1 || >=0.39.0-dev <0.39.0",
|
|
55
|
+
"@typespec/rest": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
56
|
+
"@typespec/http": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
57
|
+
"@typespec/versioning": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
58
58
|
"@types/node": "~18.11.9",
|
|
59
|
-
"@typespec/eslint-config-typespec": "~0.52.0",
|
|
60
|
-
"@typespec/library-linter": "~0.52.0",
|
|
61
|
-
"@typespec/eslint-plugin": "~0.52.0",
|
|
62
|
-
"@typespec/tspd": "~0.46.0",
|
|
59
|
+
"@typespec/eslint-config-typespec": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
60
|
+
"@typespec/library-linter": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
61
|
+
"@typespec/eslint-plugin": "~0.52.0 || >=0.53.0-dev <0.53.0",
|
|
62
|
+
"@typespec/tspd": "~0.46.0 || >=0.47.0-dev <0.47.0",
|
|
63
63
|
"eslint": "^8.55.0",
|
|
64
64
|
"vitest": "^1.2.0",
|
|
65
65
|
"@vitest/coverage-v8": "^1.1.0",
|
|
@@ -68,6 +68,7 @@
|
|
|
68
68
|
"rimraf": "~5.0.1",
|
|
69
69
|
"typescript": "~5.3.3"
|
|
70
70
|
},
|
|
71
|
+
"dependencies": {},
|
|
71
72
|
"scripts": {
|
|
72
73
|
"clean": "rimraf ./dist ./temp",
|
|
73
74
|
"build": "tsc -p . && npm run lint-typespec-library",
|