@azure-tools/typespec-azure-resource-manager 0.41.0-dev.9 → 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/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
|
@@ -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",
|