@azure-tools/typespec-azure-resource-manager 0.41.0-dev.8 → 0.41.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/README.md +1 -0
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +2 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/rules/lro-location-header.d.ts +7 -0
- package/dist/src/rules/lro-location-header.d.ts.map +1 -0
- package/dist/src/rules/lro-location-header.js +47 -0
- package/dist/src/rules/lro-location-header.js.map +1 -0
- package/lib/customer-managed-keys.tsp +1 -1
- package/lib/models.tsp +5 -32
- package/lib/private-links.tsp +1 -1
- package/package.json +20 -21
package/README.md
CHANGED
|
@@ -51,6 +51,7 @@ Available ruleSets:
|
|
|
51
51
|
| `@azure-tools/typespec-azure-resource-manager/arm-resource-interface-requires-decorator` | Each resource interface must have an @armResourceOperations decorator. |
|
|
52
52
|
| `@azure-tools/typespec-azure-resource-manager/arm-resource-invalid-action-verb` | Actions must be HTTP Post operations. |
|
|
53
53
|
| `@azure-tools/typespec-azure-resource-manager/improper-subscription-list-operation` | Tenant and Extension resources should not define a list by subscription operation. |
|
|
54
|
+
| [`@azure-tools/typespec-azure-resource-manager/lro-location-header`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/lro-location-header) | A 202 response should include a Location response header. |
|
|
54
55
|
| [`@azure-tools/typespec-azure-resource-manager/missing-x-ms-identifiers`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/missing-x-ms-identifiers) | Azure services should not use enums. |
|
|
55
56
|
| `@azure-tools/typespec-azure-resource-manager/no-response-body` | The body of 202 response should be empty. |
|
|
56
57
|
| `@azure-tools/typespec-azure-resource-manager/missing-operations-endpoint` | Check for missing Operations interface. |
|
package/dist/src/linter.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"linter.d.ts","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAqEA,eAAO,MAAM,OAAO,+CAmBlB,CAAC"}
|
package/dist/src/linter.js
CHANGED
|
@@ -21,6 +21,7 @@ import { coreOperationsRule } from "./rules/core-operations.js";
|
|
|
21
21
|
import { deleteOperationMissingRule } from "./rules/delete-operation.js";
|
|
22
22
|
import { envelopePropertiesRules } from "./rules/envelope-properties.js";
|
|
23
23
|
import { listBySubscriptionRule } from "./rules/list-operation.js";
|
|
24
|
+
import { lroLocationHeaderRule } from "./rules/lro-location-header.js";
|
|
24
25
|
import { missingXmsIdentifiersRule } from "./rules/missing-x-ms-identifiers.js";
|
|
25
26
|
import { noResponseBodyRule } from "./rules/no-response-body.js";
|
|
26
27
|
import { operationsInterfaceMissingRule } from "./rules/operations-interface-missing.js";
|
|
@@ -50,6 +51,7 @@ const rules = [
|
|
|
50
51
|
interfacesRule,
|
|
51
52
|
invalidActionVerbRule,
|
|
52
53
|
listBySubscriptionRule,
|
|
54
|
+
lroLocationHeaderRule,
|
|
53
55
|
missingXmsIdentifiersRule,
|
|
54
56
|
noResponseBodyRule,
|
|
55
57
|
operationsInterfaceMissingRule,
|
package/dist/src/linter.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"linter.js","sourceRoot":"","sources":["../../src/linter.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,qCAAqC,CAAC;AAChF,OAAO,EAAE,0BAA0B,EAAE,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,OAAO,EAAE,wBAAwB,EAAE,MAAM,oCAAoC,CAAC;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAC;AAC5E,OAAO,EAAE,8BAA8B,EA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aAChD;SACF;KACF;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Ensure that LRO 202 responses have a Location Header.
|
|
3
|
+
*/
|
|
4
|
+
export declare const lroLocationHeaderRule: import("@typespec/compiler").LinterRuleDefinition<"lro-location-header", {
|
|
5
|
+
readonly default: "A 202 response should include a Location response header.";
|
|
6
|
+
}>;
|
|
7
|
+
//# sourceMappingURL=lro-location-header.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lro-location-header.d.ts","sourceRoot":"","sources":["../../../src/rules/lro-location-header.ts"],"names":[],"mappings":"AAkBA;;GAEG;AACH,eAAO,MAAM,qBAAqB;;EA6BhC,CAAC"}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createRule } from "@typespec/compiler";
|
|
2
|
+
import { getHttpOperation } from "@typespec/http";
|
|
3
|
+
function getCaseInsensitiveHeader(headers, key) {
|
|
4
|
+
if (!headers) {
|
|
5
|
+
return undefined;
|
|
6
|
+
}
|
|
7
|
+
for (const header of Object.keys(headers)) {
|
|
8
|
+
if (header.toLowerCase() === key.toLowerCase()) {
|
|
9
|
+
return header;
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
return undefined;
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Ensure that LRO 202 responses have a Location Header.
|
|
16
|
+
*/
|
|
17
|
+
export const lroLocationHeaderRule = createRule({
|
|
18
|
+
name: "lro-location-header",
|
|
19
|
+
severity: "warning",
|
|
20
|
+
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/lro-location-header",
|
|
21
|
+
description: "A 202 response should include a Location response header.",
|
|
22
|
+
messages: {
|
|
23
|
+
default: `A 202 response should include a Location response header.`,
|
|
24
|
+
},
|
|
25
|
+
create(context) {
|
|
26
|
+
return {
|
|
27
|
+
operation: (op) => {
|
|
28
|
+
const [httpOperation, _] = getHttpOperation(context.program, op);
|
|
29
|
+
const responses = httpOperation.responses;
|
|
30
|
+
for (const response of responses) {
|
|
31
|
+
if (response.statusCodes !== 202) {
|
|
32
|
+
continue;
|
|
33
|
+
}
|
|
34
|
+
for (const resp of response.responses) {
|
|
35
|
+
if (getCaseInsensitiveHeader(resp.headers, "Location") === undefined) {
|
|
36
|
+
context.reportDiagnostic({
|
|
37
|
+
target: op,
|
|
38
|
+
});
|
|
39
|
+
return;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
};
|
|
45
|
+
},
|
|
46
|
+
});
|
|
47
|
+
//# sourceMappingURL=lro-location-header.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lro-location-header.js","sourceRoot":"","sources":["../../../src/rules/lro-location-header.ts"],"names":[],"mappings":"AAAA,OAAO,EAA4B,UAAU,EAAE,MAAM,oBAAoB,CAAC;AAC1E,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAElD,SAAS,wBAAwB,CAC/B,OAAkD,EAClD,GAAW;IAEX,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,OAAO,SAAS,CAAC;IACnB,CAAC;IACD,KAAK,MAAM,MAAM,IAAI,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC;QAC1C,IAAI,MAAM,CAAC,WAAW,EAAE,KAAK,GAAG,CAAC,WAAW,EAAE,EAAE,CAAC;YAC/C,OAAO,MAAM,CAAC;QAChB,CAAC;IACH,CAAC;IACD,OAAO,SAAS,CAAC;AACnB,CAAC;AAED;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG,UAAU,CAAC;IAC9C,IAAI,EAAE,qBAAqB;IAC3B,QAAQ,EAAE,SAAS;IACnB,GAAG,EAAE,wGAAwG;IAC7G,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE;QACR,OAAO,EAAE,2DAA2D;KACrE;IACD,MAAM,CAAC,OAAO;QACZ,OAAO;YACL,SAAS,EAAE,CAAC,EAAa,EAAE,EAAE;gBAC3B,MAAM,CAAC,aAAa,EAAE,CAAC,CAAC,GAAG,gBAAgB,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC;gBACjE,MAAM,SAAS,GAAG,aAAa,CAAC,SAAS,CAAC;gBAC1C,KAAK,MAAM,QAAQ,IAAI,SAAS,EAAE,CAAC;oBACjC,IAAI,QAAQ,CAAC,WAAW,KAAK,GAAG,EAAE,CAAC;wBACjC,SAAS;oBACX,CAAC;oBACD,KAAK,MAAM,IAAI,IAAI,QAAQ,CAAC,SAAS,EAAE,CAAC;wBACtC,IAAI,wBAAwB,CAAC,IAAI,CAAC,OAAO,EAAE,UAAU,CAAC,KAAK,SAAS,EAAE,CAAC;4BACrE,OAAO,CAAC,gBAAgB,CAAC;gCACvB,MAAM,EAAE,EAAE;6BACX,CAAC,CAAC;4BACH,OAAO;wBACT,CAAC;oBACH,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -30,7 +30,7 @@ model CustomerManagedKeyEncryption {
|
|
|
30
30
|
keyEncryptionIdentity?: KeyEncryptionIdentity;
|
|
31
31
|
|
|
32
32
|
@doc("User assigned identity to use for accessing key encryption key Url. Ex: /subscriptions/fa5fc227-a624-475e-b696-cdd604c735bc/resourceGroups/<resource group>/providers/Microsoft.ManagedIdentity/userAssignedIdentities/myId. Mutually exclusive with identityType systemAssignedIdentity.")
|
|
33
|
-
userAssignedIdentityResourceId?:
|
|
33
|
+
userAssignedIdentityResourceId?: Azure.Core.armResourceIdentifier<[
|
|
34
34
|
{
|
|
35
35
|
type: "Microsoft.ManagedIdentity/userAssignedIdentities";
|
|
36
36
|
}
|
package/lib/models.tsp
CHANGED
|
@@ -90,40 +90,13 @@ model ProviderNamespace<Resource extends {}> {
|
|
|
90
90
|
//#region Common Azure Resource Manager type definitions
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
*
|
|
94
|
-
*
|
|
95
|
-
* Sample usage:
|
|
96
|
-
* otherArmId: ResourceIdentifier;
|
|
97
|
-
* networkId: ResourceIdentifier<[{type:"\\Microsoft.Network\\vnet"}]>
|
|
98
|
-
* vmIds: ResourceIdentifier<[{type:"\\Microsoft.Compute\\vm", scopes["*"]}]>
|
|
99
|
-
* @template AllowedResourceTypes An array of allowed resource types for the resource reference
|
|
93
|
+
* Use Azure.Core.armResourceIdentifier<AllowedResourceTypes>
|
|
100
94
|
*/
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
@OpenAPI.extension(
|
|
104
|
-
"x-ms-arm-id-details",
|
|
105
|
-
{
|
|
106
|
-
allowedResources: AllowedResourceTypes,
|
|
107
|
-
}
|
|
108
|
-
)
|
|
109
|
-
scalar ResourceIdentifier<AllowedResourceTypes extends ResourceIdentifierAllowedResource[] = []>
|
|
110
|
-
extends string;
|
|
95
|
+
#deprecated "Use Azure.Core.armResourceIdentifier<AllowedResourceTypes> instead."
|
|
96
|
+
alias ResourceIdentifier<AllowedResourceTypes extends ArmResourceIdentifierAllowedResource[] = never> = Azure.Core.armResourceIdentifier<AllowedResourceTypes>;
|
|
111
97
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
* See [link](https://github.com/Azure/autorest/tree/main/docs/extensions#schema)
|
|
115
|
-
*/
|
|
116
|
-
@doc("Optional definition represents a particular type of Azure Resource Manager resource which can be referred to by a ResourceIdentifier.")
|
|
117
|
-
model ResourceIdentifierAllowedResource {
|
|
118
|
-
@doc("The type of resource that is being referred to. For example Microsoft.Network/virtualNetworks or Microsoft.Network/virtualNetworks/subnets. See Example Types for more examples.")
|
|
119
|
-
type: string;
|
|
120
|
-
|
|
121
|
-
@doc("""
|
|
122
|
-
An array of scopes. If not specified, the default scope is ["ResourceGroup"].
|
|
123
|
-
See [Allowed Scopes](https://github.com/Azure/autorest/tree/main/docs/extensions#allowed-scopes).
|
|
124
|
-
""")
|
|
125
|
-
scopes?: string[] = [];
|
|
126
|
-
}
|
|
98
|
+
#deprecated "Use ArmResourceIdentifierAllowedResource instead."
|
|
99
|
+
alias ResourceIdentifierAllowedResource = ArmResourceIdentifierAllowedResource;
|
|
127
100
|
|
|
128
101
|
/**
|
|
129
102
|
* Standard terminal provisioning state of resource type. You can spread into your
|
package/lib/private-links.tsp
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.41.0
|
|
3
|
+
"version": "0.41.0",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|
|
@@ -39,36 +39,35 @@
|
|
|
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.41.0",
|
|
43
|
+
"@azure-tools/typespec-azure-core": "~0.41.0",
|
|
44
|
+
"@typespec/compiler": "~0.55.0",
|
|
45
|
+
"@typespec/http": "~0.55.0",
|
|
46
|
+
"@typespec/openapi": "~0.55.0",
|
|
47
|
+
"@typespec/rest": "~0.55.0",
|
|
48
|
+
"@typespec/versioning": "~0.55.0"
|
|
49
49
|
},
|
|
50
50
|
"devDependencies": {
|
|
51
|
-
"@azure-tools/typespec-autorest": "~0.40.0 || >=0.41.0-dev <0.41.0",
|
|
52
|
-
"@azure-tools/typespec-azure-core": "~0.40.0 || >=0.41.0-dev <0.41.0",
|
|
53
51
|
"@types/node": "~18.11.19",
|
|
54
|
-
"@typespec/compiler": "~0.54.0 || >=0.55.0-dev <0.55.0",
|
|
55
|
-
"@typespec/eslint-config-typespec": "~0.54.0 || >=0.55.0-dev <0.55.0",
|
|
56
|
-
"@typespec/eslint-plugin": "~0.54.0 || >=0.55.0-dev <0.55.0",
|
|
57
|
-
"@typespec/http": "~0.54.0 || >=0.55.0-dev <0.55.0",
|
|
58
|
-
"@typespec/library-linter": "~0.54.0 || >=0.55.0-dev <0.55.0",
|
|
59
|
-
"@typespec/openapi": "~0.54.0 || >=0.55.0-dev <0.55.0",
|
|
60
|
-
"@typespec/rest": "~0.54.0 || >=0.55.0-dev <0.55.0",
|
|
61
|
-
"@typespec/versioning": "~0.54.0 || >=0.55.0-dev <0.55.0",
|
|
62
52
|
"@vitest/coverage-v8": "^1.4.0",
|
|
63
53
|
"@vitest/ui": "^1.4.0",
|
|
64
54
|
"c8": "^9.1.0",
|
|
65
55
|
"eslint": "^8.57.0",
|
|
66
56
|
"rimraf": "~5.0.5",
|
|
67
|
-
"typescript": "~5.4.
|
|
57
|
+
"typescript": "~5.4.3",
|
|
68
58
|
"vitest": "^1.4.0",
|
|
69
|
-
"@typespec
|
|
59
|
+
"@azure-tools/typespec-autorest": "~0.41.0",
|
|
60
|
+
"@azure-tools/typespec-azure-core": "~0.41.0",
|
|
61
|
+
"@typespec/compiler": "~0.55.0",
|
|
62
|
+
"@typespec/eslint-config-typespec": "~0.55.0",
|
|
63
|
+
"@typespec/eslint-plugin": "~0.55.0",
|
|
64
|
+
"@typespec/http": "~0.55.0",
|
|
65
|
+
"@typespec/openapi": "~0.55.0",
|
|
66
|
+
"@typespec/library-linter": "~0.55.0",
|
|
67
|
+
"@typespec/rest": "~0.55.0",
|
|
68
|
+
"@typespec/tspd": "~0.46.0",
|
|
69
|
+
"@typespec/versioning": "~0.55.0"
|
|
70
70
|
},
|
|
71
|
-
"dependencies": {},
|
|
72
71
|
"scripts": {
|
|
73
72
|
"clean": "rimraf ./dist ./temp",
|
|
74
73
|
"build": "tsc -p . && npm run lint-typespec-library",
|