@azure-tools/typespec-azure-resource-manager 0.68.0-dev.9 → 0.69.0-dev.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/arm-no-path-casing-conflicts.d.ts +7 -0
- package/dist/src/rules/arm-no-path-casing-conflicts.d.ts.map +1 -0
- package/dist/src/rules/arm-no-path-casing-conflicts.js +74 -0
- package/dist/src/rules/arm-no-path-casing-conflicts.js.map +1 -0
- package/lib/common-types/customer-managed-keys-ref.tsp +12 -6
- package/lib/common-types/managed-identity-ref.tsp +46 -23
- package/lib/common-types/managed-identity-with-delegation-ref.tsp +12 -6
- package/lib/common-types/mobo-ref.tsp +8 -4
- package/lib/common-types/network-security-perimeter-ref.tsp +64 -32
- package/lib/common-types/nsp-operations.tsp +2 -2
- package/lib/common-types/private-links-ref.tsp +89 -45
- package/lib/common-types/types-ref.tsp +182 -91
- package/lib/extension/operations.tsp +23 -23
- package/lib/foundations/arm.foundations.tsp +3 -4
- package/lib/legacy-types/extension-operations.tsp +12 -13
- package/lib/legacy-types/extension.tsp +12 -13
- package/lib/legacy-types/operations.tsp +27 -27
- package/lib/legacy-types/private-endpoints.tsp +10 -10
- package/lib/operations.tsp +25 -26
- package/lib/private-endpoints.tsp +12 -13
- package/package.json +15 -15
package/README.md
CHANGED
|
@@ -29,6 +29,7 @@ Available ruleSets:
|
|
|
29
29
|
| Name | Description |
|
|
30
30
|
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
31
31
|
| [`@azure-tools/typespec-azure-resource-manager/arm-no-record`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-no-record) | Don't use Record types for ARM resources. |
|
|
32
|
+
| [`@azure-tools/typespec-azure-resource-manager/arm-no-path-casing-conflicts`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-no-path-casing-conflicts) | Operation paths must be unique when compared case-insensitively. |
|
|
32
33
|
| [`@azure-tools/typespec-azure-resource-manager/arm-common-types-version`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-common-types-version) | Specify the ARM common-types version using @armCommonTypesVersion. |
|
|
33
34
|
| [`@azure-tools/typespec-azure-resource-manager/arm-delete-operation-response-codes`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/delete-operation-response-codes) | Ensure delete operations have the appropriate status codes. |
|
|
34
35
|
| [`@azure-tools/typespec-azure-resource-manager/arm-put-operation-response-codes`](https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/put-operation-response-codes) | Ensure put operations have the appropriate status codes. |
|
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":"AA6EA,eAAO,MAAM,OAAO,+CAElB,CAAC"}
|
package/dist/src/linter.js
CHANGED
|
@@ -3,6 +3,7 @@ import { armCommonTypesVersionRule } from "./rules/arm-common-types-version.js";
|
|
|
3
3
|
import { armCustomResourceNoKey } from "./rules/arm-custom-resource-no-key.js";
|
|
4
4
|
import { armCustomResourceUsageDiscourage } from "./rules/arm-custom-resource-usage-discourage.js";
|
|
5
5
|
import { armDeleteResponseCodesRule } from "./rules/arm-delete-response-codes.js";
|
|
6
|
+
import { armNoPathCasingConflictsRule } from "./rules/arm-no-path-casing-conflicts.js";
|
|
6
7
|
import { armNoRecordRule } from "./rules/arm-no-record.js";
|
|
7
8
|
import { armPostResponseCodesRule } from "./rules/arm-post-response-codes.js";
|
|
8
9
|
import { armPutResponseCodesRule } from "./rules/arm-put-response-codes.js";
|
|
@@ -36,6 +37,7 @@ import { unsupportedTypeRule } from "./rules/unsupported-type.js";
|
|
|
36
37
|
import { versionProgressionRule } from "./rules/version-progression.js";
|
|
37
38
|
const rules = [
|
|
38
39
|
armNoRecordRule,
|
|
40
|
+
armNoPathCasingConflictsRule,
|
|
39
41
|
armCommonTypesVersionRule,
|
|
40
42
|
armDeleteResponseCodesRule,
|
|
41
43
|
armPutResponseCodesRule,
|
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,sBAAsB,EAAE,MAAM,uCAAuC,CAAC;AAC/E,OAAO,EAAE,gCAAgC,EAAE,MAAM,iDAAiD,CAAC;AACnG,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,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,gCAAgC,EAAE,MAAM,6CAA6C,CAAC;AAC/F,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAC;AAClG,OAAO,EAAE,mCAAmC,EAAE,MAAM,gDAAgD,CAAC;AACrG,OAAO,EAAE,8BAA8B,EAAE,MAAM,2CAA2C,CAAC;AAC3F,OAAO,EAAE,0BAA0B,EAAE,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AAM,gCAAgC,CAAC;AAExE,MAAM,KAAK,GAAG;IACZ,eAAe;IACf,4BAA4B;IAC5B,yBAAyB;IACzB,0BAA0B;IAC1B,uBAAuB;IACvB,wBAAwB;IACxB,8BAA8B;IAC9B,kCAAkC;IAClC,6BAA6B;IAC7B,mCAAmC;IACnC,8BAA8B;IAC9B,0BAA0B;IAC1B,yBAAyB;IACzB,+BAA+B;IAC/B,gCAAgC;IAChC,sBAAsB;IACtB,sBAAsB;IACtB,gCAAgC;IAChC,iBAAiB;IACjB,kBAAkB;IAClB,0BAA0B;IAC1B,uBAAuB;IACvB,cAAc;IACd,gCAAgC;IAChC,qCAAqC;IACrC,qBAAqB;IACrB,yBAAyB;IACzB,kBAAkB;IAClB,8BAA8B;IAC9B,4BAA4B;IAC5B,mBAAmB;IACnB,gBAAgB;IAChB,cAAc;IACd,mBAAmB;IACnB,cAAc;IACd,YAAY;CACb,CAAC;AAEF,MAAM,CAAC,MAAM,OAAO,GAAG,YAAY,CAAC;IAClC,KAAK;CACN,CAAC,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* No two ARM operation paths may differ only by casing.
|
|
3
|
+
*/
|
|
4
|
+
export declare const armNoPathCasingConflictsRule: import("@typespec/compiler").LinterRuleDefinition<"arm-no-path-casing-conflicts", {
|
|
5
|
+
readonly default: import("@typespec/compiler").CallableMessage<["pathA", "pathB"]>;
|
|
6
|
+
}, Record<string, never>>;
|
|
7
|
+
//# sourceMappingURL=arm-no-path-casing-conflicts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arm-no-path-casing-conflicts.d.ts","sourceRoot":"","sources":["../../../src/rules/arm-no-path-casing-conflicts.ts"],"names":[],"mappings":"AAWA;;GAEG;AACH,eAAO,MAAM,4BAA4B;;yBA0DvC,CAAC"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { createRule, getSourceLocation, paramMessage, } from "@typespec/compiler";
|
|
2
|
+
import { getAllHttpServices } from "@typespec/http";
|
|
3
|
+
import { isInternalTypeSpec } from "./utils.js";
|
|
4
|
+
/**
|
|
5
|
+
* No two ARM operation paths may differ only by casing.
|
|
6
|
+
*/
|
|
7
|
+
export const armNoPathCasingConflictsRule = createRule({
|
|
8
|
+
name: "arm-no-path-casing-conflicts",
|
|
9
|
+
severity: "warning",
|
|
10
|
+
description: "Operation paths must be unique when compared case-insensitively.",
|
|
11
|
+
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/arm-no-path-casing-conflicts",
|
|
12
|
+
messages: {
|
|
13
|
+
default: paramMessage `Operation path '${"pathA"}' differs from operation path '${"pathB"}' only by character casing. Each ARM operation path must be unique when compared case-insensitively.`,
|
|
14
|
+
},
|
|
15
|
+
create(context) {
|
|
16
|
+
return {
|
|
17
|
+
root: (program) => {
|
|
18
|
+
const [services] = getAllHttpServices(program);
|
|
19
|
+
// Bucket eligible operations by lowercased path. Path parameter names
|
|
20
|
+
// are part of the comparison: `/{scope}/...` and `/{resourceUri}/...`
|
|
21
|
+
// are in different buckets, while `/{scope}/...` and `/{Scope}/...`
|
|
22
|
+
// share a bucket.
|
|
23
|
+
const buckets = new Map();
|
|
24
|
+
for (const service of services) {
|
|
25
|
+
for (const op of service.operations) {
|
|
26
|
+
if (op.operation.namespace && isInternalTypeSpec(program, op.operation.namespace)) {
|
|
27
|
+
continue;
|
|
28
|
+
}
|
|
29
|
+
const key = op.path.toLowerCase();
|
|
30
|
+
let bucket = buckets.get(key);
|
|
31
|
+
if (bucket === undefined) {
|
|
32
|
+
bucket = [];
|
|
33
|
+
buckets.set(key, bucket);
|
|
34
|
+
}
|
|
35
|
+
bucket.push({ path: op.path, operation: op.operation });
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
for (const bucket of buckets.values()) {
|
|
39
|
+
if (bucket.length < 2)
|
|
40
|
+
continue;
|
|
41
|
+
// Skip buckets where every path string is identical — exact
|
|
42
|
+
// duplicates are handled by `@route`.
|
|
43
|
+
const distinctSpellings = new Set(bucket.map((o) => o.path));
|
|
44
|
+
if (distinctSpellings.size < 2)
|
|
45
|
+
continue;
|
|
46
|
+
// Sort deterministically by source location for stable diagnostics.
|
|
47
|
+
const sorted = [...bucket].sort((a, b) => compareBySource(a.operation, b.operation));
|
|
48
|
+
const firstPath = sorted[0].path;
|
|
49
|
+
for (let i = 1; i < sorted.length; i++) {
|
|
50
|
+
const op = sorted[i];
|
|
51
|
+
if (op.path === firstPath)
|
|
52
|
+
continue;
|
|
53
|
+
context.reportDiagnostic({
|
|
54
|
+
format: { pathA: op.path, pathB: firstPath },
|
|
55
|
+
target: op.operation,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
};
|
|
61
|
+
},
|
|
62
|
+
});
|
|
63
|
+
function compareBySource(a, b) {
|
|
64
|
+
const sa = getSourceLocation(a);
|
|
65
|
+
const sb = getSourceLocation(b);
|
|
66
|
+
const fa = sa?.file?.path ?? "";
|
|
67
|
+
const fb = sb?.file?.path ?? "";
|
|
68
|
+
if (fa !== fb)
|
|
69
|
+
return fa < fb ? -1 : 1;
|
|
70
|
+
const pa = sa?.pos ?? 0;
|
|
71
|
+
const pb = sb?.pos ?? 0;
|
|
72
|
+
return pa - pb;
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=arm-no-path-casing-conflicts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"arm-no-path-casing-conflicts.js","sourceRoot":"","sources":["../../../src/rules/arm-no-path-casing-conflicts.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,UAAU,EACV,iBAAiB,EAEjB,YAAY,GAGb,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AACpD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD;;GAEG;AACH,MAAM,CAAC,MAAM,4BAA4B,G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AAI,IAAI,EAAE,CAAC;IAChC,MAAM,EAAE,GAAG,EAAE,EAAE,IAAI,EAAE,IAAI,IAAI,EAAE,CAAC;IAChC,IAAI,EAAE,KAAK,EAAE;QAAE,OAAO,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvC,MAAM,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;IACxB,MAAM,EAAE,GAAG,EAAE,EAAE,GAAG,IAAI,CAAC,CAAC;IACxB,OAAO,EAAE,GAAG,EAAE,CAAC;AACjB,CAAC"}
|
|
@@ -4,33 +4,39 @@ using Azure.ResourceManager.CommonTypes.Private;
|
|
|
4
4
|
|
|
5
5
|
namespace Azure.ResourceManager.CommonTypes;
|
|
6
6
|
|
|
7
|
-
@@armCommonDefinition(
|
|
7
|
+
@@armCommonDefinition(
|
|
8
|
+
Encryption,
|
|
8
9
|
"encryption",
|
|
9
10
|
#{ version: Azure.ResourceManager.CommonTypes.Versions.v4, isDefault: true },
|
|
10
11
|
"customermanagedkeys.json"
|
|
11
12
|
);
|
|
12
|
-
@@armCommonDefinition(
|
|
13
|
+
@@armCommonDefinition(
|
|
14
|
+
Encryption,
|
|
13
15
|
"encryption",
|
|
14
16
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
15
17
|
"customermanagedkeys.json"
|
|
16
18
|
);
|
|
17
|
-
@@armCommonDefinition(
|
|
19
|
+
@@armCommonDefinition(
|
|
20
|
+
Encryption,
|
|
18
21
|
"encryption",
|
|
19
22
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
20
23
|
"customermanagedkeys.json"
|
|
21
24
|
);
|
|
22
25
|
|
|
23
|
-
@@armCommonDefinition(
|
|
26
|
+
@@armCommonDefinition(
|
|
27
|
+
CustomerManagedKeyEncryption,
|
|
24
28
|
"customerManagedKeyEncryption",
|
|
25
29
|
#{ version: Azure.ResourceManager.CommonTypes.Versions.v4, isDefault: true },
|
|
26
30
|
"customermanagedkeys.json"
|
|
27
31
|
);
|
|
28
|
-
@@armCommonDefinition(
|
|
32
|
+
@@armCommonDefinition(
|
|
33
|
+
CustomerManagedKeyEncryption,
|
|
29
34
|
"customerManagedKeyEncryption",
|
|
30
35
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
31
36
|
"customermanagedkeys.json"
|
|
32
37
|
);
|
|
33
|
-
@@armCommonDefinition(
|
|
38
|
+
@@armCommonDefinition(
|
|
39
|
+
CustomerManagedKeyEncryption,
|
|
34
40
|
"customerManagedKeyEncryption",
|
|
35
41
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
36
42
|
"customermanagedkeys.json"
|
|
@@ -7,39 +7,46 @@ namespace Azure.ResourceManager.CommonTypes;
|
|
|
7
7
|
/**
|
|
8
8
|
* The properties of the managed service identities assigned to this resource.
|
|
9
9
|
*/
|
|
10
|
-
@@armCommonDefinition(
|
|
10
|
+
@@armCommonDefinition(
|
|
11
|
+
ManagedServiceIdentity,
|
|
11
12
|
"ManagedServiceIdentity",
|
|
12
13
|
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
13
14
|
"managedidentity.json"
|
|
14
15
|
);
|
|
15
|
-
@@armCommonDefinition(
|
|
16
|
+
@@armCommonDefinition(
|
|
17
|
+
ManagedServiceIdentity,
|
|
16
18
|
"ManagedServiceIdentity",
|
|
17
19
|
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
18
20
|
"managedidentity.json"
|
|
19
21
|
);
|
|
20
|
-
@@armCommonDefinition(
|
|
22
|
+
@@armCommonDefinition(
|
|
23
|
+
ManagedServiceIdentity,
|
|
21
24
|
"ManagedServiceIdentity",
|
|
22
25
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
23
26
|
"managedidentity.json"
|
|
24
27
|
);
|
|
25
|
-
@@armCommonDefinition(
|
|
28
|
+
@@armCommonDefinition(
|
|
29
|
+
ManagedServiceIdentity,
|
|
26
30
|
"ManagedServiceIdentity",
|
|
27
31
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
28
32
|
"managedidentity.json"
|
|
29
33
|
);
|
|
30
34
|
|
|
31
35
|
/** The set of user assigned identities associated with the resource. The userAssignedIdentities dictionary keys will be ARM resource ids in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}. The dictionary values can be empty objects ({}) in requests.", */
|
|
32
|
-
@@armCommonDefinition(
|
|
36
|
+
@@armCommonDefinition(
|
|
37
|
+
UserAssignedIdentities,
|
|
33
38
|
"UserAssignedIdentities",
|
|
34
39
|
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
35
40
|
"managedidentity.json"
|
|
36
41
|
);
|
|
37
|
-
@@armCommonDefinition(
|
|
42
|
+
@@armCommonDefinition(
|
|
43
|
+
UserAssignedIdentities,
|
|
38
44
|
"UserAssignedIdentities",
|
|
39
45
|
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
40
46
|
"managedidentity.json"
|
|
41
47
|
);
|
|
42
|
-
@@armCommonDefinition(
|
|
48
|
+
@@armCommonDefinition(
|
|
49
|
+
UserAssignedIdentities,
|
|
43
50
|
"UserAssignedIdentities",
|
|
44
51
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
45
52
|
"managedidentity.json"
|
|
@@ -48,22 +55,26 @@ namespace Azure.ResourceManager.CommonTypes;
|
|
|
48
55
|
/**
|
|
49
56
|
* The properties of the service-assigned identity associated with this resource.
|
|
50
57
|
*/
|
|
51
|
-
@@armCommonDefinition(
|
|
58
|
+
@@armCommonDefinition(
|
|
59
|
+
SystemAssignedServiceIdentity,
|
|
52
60
|
"SystemAssignedServiceIdentity",
|
|
53
61
|
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
54
62
|
"managedidentity.json"
|
|
55
63
|
);
|
|
56
|
-
@@armCommonDefinition(
|
|
64
|
+
@@armCommonDefinition(
|
|
65
|
+
SystemAssignedServiceIdentity,
|
|
57
66
|
"SystemAssignedServiceIdentity",
|
|
58
67
|
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
59
68
|
"managedidentity.json"
|
|
60
69
|
);
|
|
61
|
-
@@armCommonDefinition(
|
|
70
|
+
@@armCommonDefinition(
|
|
71
|
+
SystemAssignedServiceIdentity,
|
|
62
72
|
"SystemAssignedServiceIdentity",
|
|
63
73
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
64
74
|
"managedidentity.json"
|
|
65
75
|
);
|
|
66
|
-
@@armCommonDefinition(
|
|
76
|
+
@@armCommonDefinition(
|
|
77
|
+
SystemAssignedServiceIdentity,
|
|
67
78
|
"SystemAssignedServiceIdentity",
|
|
68
79
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
69
80
|
"managedidentity.json"
|
|
@@ -72,64 +83,76 @@ namespace Azure.ResourceManager.CommonTypes;
|
|
|
72
83
|
/**
|
|
73
84
|
* A managed identity assigned by the user.
|
|
74
85
|
*/
|
|
75
|
-
@@armCommonDefinition(
|
|
86
|
+
@@armCommonDefinition(
|
|
87
|
+
UserAssignedIdentity,
|
|
76
88
|
"UserAssignedIdentity",
|
|
77
89
|
#{ version: Azure.ResourceManager.CommonTypes.Versions.v3, isDefault: true },
|
|
78
90
|
"managedidentity.json"
|
|
79
91
|
);
|
|
80
|
-
@@armCommonDefinition(
|
|
92
|
+
@@armCommonDefinition(
|
|
93
|
+
UserAssignedIdentity,
|
|
81
94
|
"UserAssignedIdentity",
|
|
82
95
|
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
83
96
|
"managedidentity.json"
|
|
84
97
|
);
|
|
85
|
-
@@armCommonDefinition(
|
|
98
|
+
@@armCommonDefinition(
|
|
99
|
+
UserAssignedIdentity,
|
|
86
100
|
"UserAssignedIdentity",
|
|
87
101
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
88
102
|
"managedidentity.json"
|
|
89
103
|
);
|
|
90
|
-
@@armCommonDefinition(
|
|
104
|
+
@@armCommonDefinition(
|
|
105
|
+
UserAssignedIdentity,
|
|
91
106
|
"UserAssignedIdentity",
|
|
92
107
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
93
108
|
"managedidentity.json"
|
|
94
109
|
);
|
|
95
110
|
|
|
96
|
-
@@armCommonDefinition(
|
|
111
|
+
@@armCommonDefinition(
|
|
112
|
+
ManagedServiceIdentityType,
|
|
97
113
|
"ManagedServiceIdentityType",
|
|
98
114
|
Azure.ResourceManager.CommonTypes.Versions.v3,
|
|
99
115
|
"managedidentity.json"
|
|
100
116
|
);
|
|
101
|
-
@@armCommonDefinition(
|
|
117
|
+
@@armCommonDefinition(
|
|
118
|
+
ManagedServiceIdentityType,
|
|
102
119
|
"ManagedServiceIdentityType",
|
|
103
120
|
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
104
121
|
"managedidentity.json"
|
|
105
122
|
);
|
|
106
|
-
@@armCommonDefinition(
|
|
123
|
+
@@armCommonDefinition(
|
|
124
|
+
ManagedServiceIdentityType,
|
|
107
125
|
"ManagedServiceIdentityType",
|
|
108
126
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
109
127
|
"managedidentity.json"
|
|
110
128
|
);
|
|
111
|
-
@@armCommonDefinition(
|
|
129
|
+
@@armCommonDefinition(
|
|
130
|
+
ManagedServiceIdentityType,
|
|
112
131
|
"ManagedServiceIdentityType",
|
|
113
132
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
114
133
|
"managedidentity.json"
|
|
115
134
|
);
|
|
116
135
|
|
|
117
|
-
@@armCommonDefinition(
|
|
136
|
+
@@armCommonDefinition(
|
|
137
|
+
SystemAssignedServiceIdentityType,
|
|
118
138
|
"SystemAssignedServiceIdentityType",
|
|
119
139
|
Azure.ResourceManager.CommonTypes.Versions.v3,
|
|
120
140
|
"managedidentity.json"
|
|
121
141
|
);
|
|
122
|
-
@@armCommonDefinition(
|
|
142
|
+
@@armCommonDefinition(
|
|
143
|
+
SystemAssignedServiceIdentityType,
|
|
123
144
|
"SystemAssignedServiceIdentityType",
|
|
124
145
|
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
125
146
|
"managedidentity.json"
|
|
126
147
|
);
|
|
127
|
-
@@armCommonDefinition(
|
|
148
|
+
@@armCommonDefinition(
|
|
149
|
+
SystemAssignedServiceIdentityType,
|
|
128
150
|
"SystemAssignedServiceIdentityType",
|
|
129
151
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
130
152
|
"managedidentity.json"
|
|
131
153
|
);
|
|
132
|
-
@@armCommonDefinition(
|
|
154
|
+
@@armCommonDefinition(
|
|
155
|
+
SystemAssignedServiceIdentityType,
|
|
133
156
|
"SystemAssignedServiceIdentityType",
|
|
134
157
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
135
158
|
"managedidentity.json"
|
|
@@ -4,34 +4,40 @@ using Azure.ResourceManager.CommonTypes.Private;
|
|
|
4
4
|
namespace Azure.ResourceManager.CommonTypes;
|
|
5
5
|
|
|
6
6
|
/** Managed service identity (system assigned and/or user assigned identities and/or delegated identities) - internal use only. */
|
|
7
|
-
@@armCommonDefinition(
|
|
7
|
+
@@armCommonDefinition(
|
|
8
|
+
ManagedServiceIdentityWithDelegation,
|
|
8
9
|
"ManagedServiceIdentityWithDelegation",
|
|
9
10
|
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
10
11
|
"managedidentitywithdelegation.json"
|
|
11
12
|
);
|
|
12
|
-
@@armCommonDefinition(
|
|
13
|
+
@@armCommonDefinition(
|
|
14
|
+
ManagedServiceIdentityWithDelegation,
|
|
13
15
|
"ManagedServiceIdentityWithDelegation",
|
|
14
16
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
15
17
|
"managedidentitywithdelegation.json"
|
|
16
18
|
);
|
|
17
|
-
@@armCommonDefinition(
|
|
19
|
+
@@armCommonDefinition(
|
|
20
|
+
ManagedServiceIdentityWithDelegation,
|
|
18
21
|
"ManagedServiceIdentityWithDelegation",
|
|
19
22
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
20
23
|
"managedidentitywithdelegation.json"
|
|
21
24
|
);
|
|
22
25
|
|
|
23
26
|
/** Delegated resource properties - internal use only. */
|
|
24
|
-
@@armCommonDefinition(
|
|
27
|
+
@@armCommonDefinition(
|
|
28
|
+
DelegatedResource,
|
|
25
29
|
"DelegatedResource",
|
|
26
30
|
Azure.ResourceManager.CommonTypes.Versions.v4,
|
|
27
31
|
"managedidentitywithdelegation.json"
|
|
28
32
|
);
|
|
29
|
-
@@armCommonDefinition(
|
|
33
|
+
@@armCommonDefinition(
|
|
34
|
+
DelegatedResource,
|
|
30
35
|
"DelegatedResource",
|
|
31
36
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
32
37
|
"managedidentitywithdelegation.json"
|
|
33
38
|
);
|
|
34
|
-
@@armCommonDefinition(
|
|
39
|
+
@@armCommonDefinition(
|
|
40
|
+
DelegatedResource,
|
|
35
41
|
"DelegatedResource",
|
|
36
42
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
37
43
|
"managedidentitywithdelegation.json"
|
|
@@ -4,24 +4,28 @@ using Azure.ResourceManager.CommonTypes.Private;
|
|
|
4
4
|
namespace Azure.ResourceManager.CommonTypes;
|
|
5
5
|
|
|
6
6
|
/** This configuration exists for the resources where a resource provider manages those resources on behalf of the resource owner. */
|
|
7
|
-
@@armCommonDefinition(
|
|
7
|
+
@@armCommonDefinition(
|
|
8
|
+
ManagedOnBehalfOfConfiguration,
|
|
8
9
|
"ManagedOnBehalfOfConfiguration",
|
|
9
10
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
10
11
|
"mobo.json"
|
|
11
12
|
);
|
|
12
|
-
@@armCommonDefinition(
|
|
13
|
+
@@armCommonDefinition(
|
|
14
|
+
ManagedOnBehalfOfConfiguration,
|
|
13
15
|
"ManagedOnBehalfOfConfiguration",
|
|
14
16
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
15
17
|
"mobo.json"
|
|
16
18
|
);
|
|
17
19
|
|
|
18
20
|
/** This resource is created by the Resource Provider to manage some resources on behalf of the user. */
|
|
19
|
-
@@armCommonDefinition(
|
|
21
|
+
@@armCommonDefinition(
|
|
22
|
+
MoboBrokerResource,
|
|
20
23
|
"MoboBrokerResource",
|
|
21
24
|
Azure.ResourceManager.CommonTypes.Versions.v5,
|
|
22
25
|
"mobo.json"
|
|
23
26
|
);
|
|
24
|
-
@@armCommonDefinition(
|
|
27
|
+
@@armCommonDefinition(
|
|
28
|
+
MoboBrokerResource,
|
|
25
29
|
"MoboBrokerResource",
|
|
26
30
|
Azure.ResourceManager.CommonTypes.Versions.v6,
|
|
27
31
|
"mobo.json"
|