@azure-tools/typespec-azure-resource-manager 0.40.0-dev.9 → 0.40.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/dist/src/rules/arm-resource-provisioning-state-rule.d.ts +2 -0
- package/dist/src/rules/arm-resource-provisioning-state-rule.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.js +18 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.js.map +1 -1
- package/lib/arm.foundations.tsp +1 -1
- package/lib/models.tsp +3 -1
- package/lib/operations.tsp +37 -15
- package/lib/responses.tsp +16 -0
- package/package.json +19 -20
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
export declare const armResourceProvisioningStateRule: import("@typespec/compiler").LinterRuleDefinition<"arm-resource-provisioning-state", {
|
|
2
2
|
readonly default: "The RP-specific property model in the 'properties' property of this resource must contain a 'provisioningState property. The property type should be an enum or a union of string values, and it must specify known state values 'Succeeded', 'Failed', and 'Canceled'.";
|
|
3
3
|
readonly missingValues: import("@typespec/compiler").CallableMessage<[string]>;
|
|
4
|
+
readonly missingReadOnlyVisibility: "The provisioningState property must have a single read visibility.";
|
|
5
|
+
readonly mustBeOptional: "The provisioningState property must be optional.";
|
|
4
6
|
}>;
|
|
5
7
|
//# sourceMappingURL=arm-resource-provisioning-state-rule.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arm-resource-provisioning-state-rule.d.ts","sourceRoot":"","sources":["../../../src/rules/arm-resource-provisioning-state-rule.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"arm-resource-provisioning-state-rule.d.ts","sourceRoot":"","sources":["../../../src/rules/arm-resource-provisioning-state-rule.ts"],"names":[],"mappings":"AAaA,eAAO,MAAM,gCAAgC;;;;;EA8G3C,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRule, getProperty, paramMessage } from "@typespec/compiler";
|
|
1
|
+
import { createRule, getProperty, getVisibility, paramMessage, } from "@typespec/compiler";
|
|
2
2
|
import { getUnionAsEnum } from "@azure-tools/typespec-azure-core";
|
|
3
3
|
import { getArmResource } from "../resource.js";
|
|
4
4
|
import { getSourceProperty } from "./utils.js";
|
|
@@ -9,6 +9,8 @@ export const armResourceProvisioningStateRule = createRule({
|
|
|
9
9
|
messages: {
|
|
10
10
|
default: "The RP-specific property model in the 'properties' property of this resource must contain a 'provisioningState property. The property type should be an enum or a union of string values, and it must specify known state values 'Succeeded', 'Failed', and 'Canceled'.",
|
|
11
11
|
missingValues: paramMessage `The "@knownValues" decorator for provisioningState, must reference an enum with 'Succeeded', 'Failed', 'Canceled' values. The enum is missing the values: [${"missingValues"}].`,
|
|
12
|
+
missingReadOnlyVisibility: "The provisioningState property must have a single read visibility.",
|
|
13
|
+
mustBeOptional: "The provisioningState property must be optional.",
|
|
12
14
|
},
|
|
13
15
|
create(context) {
|
|
14
16
|
return {
|
|
@@ -85,6 +87,21 @@ export const armResourceProvisioningStateRule = createRule({
|
|
|
85
87
|
target: provisioning,
|
|
86
88
|
});
|
|
87
89
|
}
|
|
90
|
+
// validate provisioning state is optional
|
|
91
|
+
if (provisioning.optional !== true) {
|
|
92
|
+
context.reportDiagnostic({
|
|
93
|
+
messageId: "mustBeOptional",
|
|
94
|
+
target: provisioning,
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
// validate it must has a read only visibility
|
|
98
|
+
const visibilities = getVisibility(context.program, provisioning);
|
|
99
|
+
if (!(visibilities !== undefined && visibilities.length === 1 && visibilities[0] === "read")) {
|
|
100
|
+
context.reportDiagnostic({
|
|
101
|
+
messageId: "missingReadOnlyVisibility",
|
|
102
|
+
target: provisioning,
|
|
103
|
+
});
|
|
104
|
+
}
|
|
88
105
|
}
|
|
89
106
|
},
|
|
90
107
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"arm-resource-provisioning-state-rule.js","sourceRoot":"","sources":["../../../src/rules/arm-resource-provisioning-state-rule.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"arm-resource-provisioning-state-rule.js","sourceRoot":"","sources":["../../../src/rules/arm-resource-provisioning-state-rule.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,WAAW,EACX,aAAa,EACb,YAAY,GACb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAE/C,MAAM,CAAC,MAAM,gCAAgC,GAAG,UAAU,CAAC;IACzD,IAAI,EAAE,iCAAiC;IACvC,QAAQ,EAAE,SAAS;IACnB,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE;QACR,OAAO,EACL,0QAA0Q;QAC5Q,aAAa,EAAE,YAAY,CAAA,8JAA8J,eAAe,IAAI;QAC5M,yBAAyB,EAAE,oEAAoE;QAC/F,cAAc,EAAE,kDAAkD;KACnE;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,KAAK,EAAE,CAAC,KAAY,EAAE,EAAE;;gBACtB,MAAM,aAAa,GAAG,cAAc,CAAC,OAAO,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC;gBAC7D,IAAI,aAAa,KAAK,SAAS,EAAE,CAAC;oBAChC,OAAO;gBACT,CAAC;gBACD,MAAM,kBAAkB,GAAG,MAAA,WAAW,CAAC,KAAK,EAAE,YAAY,CAAC,0CAAE,IAAI,CAAC;gBAClE,IAAI,kBAAkB,KAAK,SAAS,IAAI,kBAAkB,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;oBAC5E,OAAO;gBACT,CAAC;gBAED,IAAI,YAAY,GAAG,WAAW,CAAC,kBAAkB,EAAE,mBAAmB,CAAC,CAAC;gBACxE,IAAI,YAAY,KAAK,SAAS,EAAE,CAAC;oBAC/B,OAAO,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ClE,IACE,CAAC,CAAC,YAAY,KAAK,SAAS,IAAI,YAAY,CAAC,MAAM,KAAK,CAAC,IAAI,YAAY,CAAC,CAAC,CAAC,KAAK,MAAM,CAAC,EACxF,CAAC;wBACD,OAAO,CAAC,gBAAgB,CAAC;4BACvB,SAAS,EAAE,2BAA2B;4BACtC,MAAM,EAAE,YAAY;yBACrB,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
package/lib/arm.foundations.tsp
CHANGED
|
@@ -753,7 +753,7 @@ op checkNameAvailability<
|
|
|
753
753
|
): Response | ErrorResponse;
|
|
754
754
|
|
|
755
755
|
/**
|
|
756
|
-
* @dev The base template for Azure Resource Manager GET Operations.
|
|
756
|
+
* @dev The base template for Azure Resource Manager GET and HEAD Operations.
|
|
757
757
|
* @param Parameters The parameter object for the operation.
|
|
758
758
|
* @param Response The response or union of responses for success.
|
|
759
759
|
* @param ErrorResponse The error response.
|
package/lib/models.tsp
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
using TypeSpec.Http;
|
|
2
2
|
using TypeSpec.Rest;
|
|
3
3
|
using TypeSpec.OpenAPI;
|
|
4
|
+
using Azure.Core;
|
|
4
5
|
using Azure.ResourceManager.Foundations;
|
|
5
6
|
using Azure.ResourceManager.Private;
|
|
6
7
|
|
|
@@ -169,7 +170,8 @@ enum ResourceProvisioningState {
|
|
|
169
170
|
@doc("Contains a default provisioningState property to be spread into resource property types")
|
|
170
171
|
model DefaultProvisioningStateProperty {
|
|
171
172
|
@doc("The provisioning state of the resource.")
|
|
172
|
-
|
|
173
|
+
@visibility("read")
|
|
174
|
+
provisioningState?: ResourceProvisioningState;
|
|
173
175
|
}
|
|
174
176
|
|
|
175
177
|
/**
|
package/lib/operations.tsp
CHANGED
|
@@ -55,7 +55,7 @@ op ArmResourceListByParent<
|
|
|
55
55
|
> is ArmReadOperation<
|
|
56
56
|
ResourceParentParameters<Resource, BaseParameters> & Parameters,
|
|
57
57
|
Response,
|
|
58
|
-
|
|
58
|
+
Error
|
|
59
59
|
>;
|
|
60
60
|
|
|
61
61
|
/**
|
|
@@ -81,12 +81,12 @@ op ArmResourceListAtScope<
|
|
|
81
81
|
> is ArmReadOperation<
|
|
82
82
|
ResourceParentParameters<Resource, BaseParameters> & Parameters,
|
|
83
83
|
Response,
|
|
84
|
-
|
|
84
|
+
Error
|
|
85
85
|
>;
|
|
86
86
|
|
|
87
87
|
/**
|
|
88
88
|
* A resource GET operation
|
|
89
|
-
* @template Resource the resource being
|
|
89
|
+
* @template Resource the resource being read
|
|
90
90
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
91
91
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
92
92
|
* @template Response Optional. The success response for the read operation
|
|
@@ -105,12 +105,35 @@ op ArmResourceRead<
|
|
|
105
105
|
> is ArmReadOperation<
|
|
106
106
|
ResourceInstanceParameters<Resource, BaseParameters> & Parameters,
|
|
107
107
|
Response,
|
|
108
|
-
|
|
108
|
+
Error
|
|
109
|
+
>;
|
|
110
|
+
|
|
111
|
+
/**
|
|
112
|
+
* Check a resource's existence via HEAD operation
|
|
113
|
+
* @template Resource the resource being checked
|
|
114
|
+
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
115
|
+
* @template Parameters Optional. Additional parameters after the path parameters
|
|
116
|
+
* @template Response Optional. The success response for the read operation
|
|
117
|
+
* @template Error Optional. The error response, if non-standard.
|
|
118
|
+
*/
|
|
119
|
+
@autoRoute
|
|
120
|
+
@doc("Check for the existence of a {name}", Resource)
|
|
121
|
+
@head
|
|
122
|
+
op ArmResourceCheckExistence<
|
|
123
|
+
Resource extends ArmResourceBase,
|
|
124
|
+
BaseParameters = DefaultBaseParameters<Resource>,
|
|
125
|
+
Parameters extends {} = {},
|
|
126
|
+
Response extends {} = ArmResourceExistsResponse | ArmResourceNotFoundResponse,
|
|
127
|
+
Error extends {} = ErrorResponse
|
|
128
|
+
> is ArmReadOperation<
|
|
129
|
+
ResourceInstanceParameters<Resource, BaseParameters> & Parameters,
|
|
130
|
+
Response,
|
|
131
|
+
Error
|
|
109
132
|
>;
|
|
110
133
|
|
|
111
134
|
/**
|
|
112
135
|
* A long-running resource CreateOrUpdate (PUT)
|
|
113
|
-
* @template Resource the resource being
|
|
136
|
+
* @template Resource the resource being created or updated
|
|
114
137
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
115
138
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
116
139
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -141,13 +164,13 @@ op ArmResourceCreateOrUpdateAsync<
|
|
|
141
164
|
> is ArmCreateOperation<
|
|
142
165
|
ResourceInstanceParameters<Resource, BaseParameters> & Parameters,
|
|
143
166
|
Resource,
|
|
144
|
-
|
|
167
|
+
Response,
|
|
145
168
|
Error
|
|
146
169
|
>;
|
|
147
170
|
|
|
148
171
|
/**
|
|
149
172
|
* DEPRECATED: Please use ArmResourceCreateOrReplaceSync instead
|
|
150
|
-
* @template Resource the resource being
|
|
173
|
+
* @template Resource the resource being created or updated
|
|
151
174
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
152
175
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
153
176
|
* @template Response Optional. The success response for the createOrUpdate operation
|
|
@@ -173,7 +196,7 @@ op ArmResourceCreateOrUpdateSync<
|
|
|
173
196
|
|
|
174
197
|
/**
|
|
175
198
|
* Synchronous PUT operation for Azure Resource Manager resources
|
|
176
|
-
* @template Resource the resource being
|
|
199
|
+
* @template Resource the resource being created or replaced
|
|
177
200
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
178
201
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
179
202
|
* @template Response Optional. The success response for the createOrUpdate operation
|
|
@@ -198,7 +221,7 @@ op ArmResourceCreateOrReplaceSync<
|
|
|
198
221
|
|
|
199
222
|
/**
|
|
200
223
|
* @dev A long-running resource CreateOrUpdate (PUT)
|
|
201
|
-
* @template Resource the resource being
|
|
224
|
+
* @template Resource the resource being created or replaced
|
|
202
225
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
203
226
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
204
227
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -569,17 +592,16 @@ op ArmResourceActionNoContentAsync<
|
|
|
569
592
|
Resource extends ArmResource,
|
|
570
593
|
Request extends TypeSpec.Reflection.Model | void,
|
|
571
594
|
BaseParameters extends TypeSpec.Reflection.Model = DefaultBaseParameters<Resource>,
|
|
572
|
-
LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader
|
|
573
|
-
Azure.Core.StatusMonitorPollingOptions<ArmOperationStatus>,
|
|
574
|
-
void,
|
|
575
|
-
string
|
|
576
|
-
>,
|
|
595
|
+
LroHeaders extends TypeSpec.Reflection.Model = ArmLroLocationHeader,
|
|
577
596
|
Parameters extends {} = {},
|
|
578
597
|
Error extends {} = ErrorResponse
|
|
579
598
|
> is ArmResourceActionAsyncBase<
|
|
580
599
|
Resource,
|
|
581
600
|
Request,
|
|
582
|
-
ArmAcceptedLroResponse
|
|
601
|
+
ArmAcceptedLroResponse<
|
|
602
|
+
"Resource operation accepted.",
|
|
603
|
+
LroHeaders
|
|
604
|
+
> | ArmNoContentResponse<"Action completed successfully.">,
|
|
583
605
|
BaseParameters,
|
|
584
606
|
Parameters,
|
|
585
607
|
Error
|
package/lib/responses.tsp
CHANGED
|
@@ -237,3 +237,19 @@ model ErrorResponse {
|
|
|
237
237
|
@doc("The error object.")
|
|
238
238
|
error?: ErrorDetail;
|
|
239
239
|
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* @dev Resource exists response
|
|
243
|
+
*/
|
|
244
|
+
@doc("The Azure resource exists")
|
|
245
|
+
model ArmResourceExistsResponse {
|
|
246
|
+
...NoContentResponse;
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
/**
|
|
250
|
+
* @dev Resource is not found response
|
|
251
|
+
*/
|
|
252
|
+
@doc("The Azure resource is not found")
|
|
253
|
+
model ArmResourceNotFoundResponse {
|
|
254
|
+
...NotFoundResponse;
|
|
255
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.40.0
|
|
3
|
+
"version": "0.40.0",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -39,26 +39,16 @@
|
|
|
39
39
|
"!dist/test/**"
|
|
40
40
|
],
|
|
41
41
|
"peerDependencies": {
|
|
42
|
-
"@azure-tools/typespec-autorest": "~0.
|
|
43
|
-
"@azure-tools/typespec-azure-core": "~0.
|
|
44
|
-
"@typespec/compiler": "~0.
|
|
45
|
-
"@typespec/http": "~0.
|
|
46
|
-
"@typespec/openapi": "~0.
|
|
47
|
-
"@typespec/rest": "~0.
|
|
48
|
-
"@typespec/versioning": "~0.
|
|
42
|
+
"@azure-tools/typespec-autorest": "~0.40.0",
|
|
43
|
+
"@azure-tools/typespec-azure-core": "~0.40.0",
|
|
44
|
+
"@typespec/compiler": "~0.54.0",
|
|
45
|
+
"@typespec/http": "~0.54.0",
|
|
46
|
+
"@typespec/openapi": "~0.54.0",
|
|
47
|
+
"@typespec/rest": "~0.54.0",
|
|
48
|
+
"@typespec/versioning": "~0.54.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@azure-tools/typespec-autorest": "~0.39.2 || >=0.40.0-dev <0.40.0",
|
|
52
|
-
"@azure-tools/typespec-azure-core": "~0.39.1 || >=0.40.0-dev <0.40.0",
|
|
53
51
|
"@types/node": "~18.11.19",
|
|
54
|
-
"@typespec/compiler": "~0.53.1 || >=0.54.0-dev <0.54.0",
|
|
55
|
-
"@typespec/eslint-config-typespec": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
56
|
-
"@typespec/eslint-plugin": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
57
|
-
"@typespec/http": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
58
|
-
"@typespec/library-linter": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
59
|
-
"@typespec/openapi": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
60
|
-
"@typespec/rest": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
61
|
-
"@typespec/versioning": "~0.53.0 || >=0.54.0-dev <0.54.0",
|
|
62
52
|
"@vitest/coverage-v8": "^1.2.2",
|
|
63
53
|
"@vitest/ui": "^1.2.2",
|
|
64
54
|
"c8": "^9.1.0",
|
|
@@ -66,9 +56,18 @@
|
|
|
66
56
|
"rimraf": "~5.0.5",
|
|
67
57
|
"typescript": "~5.3.3",
|
|
68
58
|
"vitest": "^1.2.2",
|
|
69
|
-
"@typespec
|
|
59
|
+
"@azure-tools/typespec-autorest": "~0.40.0",
|
|
60
|
+
"@azure-tools/typespec-azure-core": "~0.40.0",
|
|
61
|
+
"@typespec/eslint-config-typespec": "~0.54.0",
|
|
62
|
+
"@typespec/compiler": "~0.54.0",
|
|
63
|
+
"@typespec/eslint-plugin": "~0.54.0",
|
|
64
|
+
"@typespec/http": "~0.54.0",
|
|
65
|
+
"@typespec/library-linter": "~0.54.0",
|
|
66
|
+
"@typespec/openapi": "~0.54.0",
|
|
67
|
+
"@typespec/rest": "~0.54.0",
|
|
68
|
+
"@typespec/tspd": "~0.46.0",
|
|
69
|
+
"@typespec/versioning": "~0.54.0"
|
|
70
70
|
},
|
|
71
|
-
"dependencies": {},
|
|
72
71
|
"scripts": {
|
|
73
72
|
"clean": "rimraf ./dist ./temp",
|
|
74
73
|
"build": "tsc -p . && npm run lint-typespec-library",
|