@azure-tools/typespec-azure-resource-manager 0.71.0-dev.1 → 0.71.0-dev.11
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 +10 -7
- package/dist/generated-defs/Azure.ResourceManager.BaseTypes.d.ts +1 -1
- package/dist/generated-defs/Azure.ResourceManager.Private.d.ts.map +1 -1
- package/dist/generated-defs/Azure.ResourceManager.d.ts +1 -1
- package/dist/src/base-types.d.ts +1 -1
- package/dist/src/base-types.d.ts.map +1 -1
- package/dist/src/common-types.d.ts +4 -4
- package/dist/src/common-types.d.ts.map +1 -1
- package/dist/src/commontypes.private.decorators.d.ts +2 -2
- package/dist/src/commontypes.private.decorators.d.ts.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +8 -2
- package/dist/src/linter.js.map +1 -1
- package/dist/src/namespace.d.ts +2 -2
- package/dist/src/namespace.d.ts.map +1 -1
- package/dist/src/operations.d.ts +4 -4
- package/dist/src/operations.d.ts.map +1 -1
- package/dist/src/operations.js.map +1 -1
- package/dist/src/private.decorators.d.ts +2 -2
- package/dist/src/private.decorators.d.ts.map +1 -1
- package/dist/src/private.decorators.js +17 -6
- package/dist/src/private.decorators.js.map +1 -1
- package/dist/src/resource.d.ts +4 -4
- package/dist/src/resource.d.ts.map +1 -1
- package/dist/src/resource.js +6 -0
- package/dist/src/resource.js.map +1 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.d.ts.map +1 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.js +2 -1
- package/dist/src/rules/arm-agent-base-type-child-resources.js.map +1 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.d.ts.map +1 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.js +2 -1
- package/dist/src/rules/arm-agent-base-type-lifecycle-operations.js.map +1 -1
- package/dist/src/rules/arm-common-types-version.d.ts.map +1 -1
- package/dist/src/rules/arm-common-types-version.js +2 -1
- package/dist/src/rules/arm-common-types-version.js.map +1 -1
- package/dist/src/rules/arm-custom-resource-no-key.d.ts.map +1 -1
- package/dist/src/rules/arm-custom-resource-no-key.js +2 -1
- package/dist/src/rules/arm-custom-resource-no-key.js.map +1 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.d.ts.map +1 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.js +2 -1
- package/dist/src/rules/arm-custom-resource-usage-discourage.js.map +1 -1
- package/dist/src/rules/arm-delete-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-delete-response-codes.js +3 -2
- package/dist/src/rules/arm-delete-response-codes.js.map +1 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.d.ts.map +1 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.js +2 -1
- package/dist/src/rules/arm-feature-file-usage-discourage.js.map +1 -1
- package/dist/src/rules/arm-legacy-operations-discourage.js.map +1 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.d.ts.map +1 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.js +2 -1
- package/dist/src/rules/arm-no-path-casing-conflicts.js.map +1 -1
- package/dist/src/rules/arm-no-record.d.ts.map +1 -1
- package/dist/src/rules/arm-no-record.js +2 -1
- package/dist/src/rules/arm-no-record.js.map +1 -1
- package/dist/src/rules/arm-post-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-post-response-codes.js +3 -2
- package/dist/src/rules/arm-post-response-codes.js.map +1 -1
- package/dist/src/rules/arm-put-response-codes.d.ts.map +1 -1
- package/dist/src/rules/arm-put-response-codes.js +3 -2
- package/dist/src/rules/arm-put-response-codes.js.map +1 -1
- package/dist/src/rules/arm-resource-action-no-segment.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-action-no-segment.js +2 -1
- package/dist/src/rules/arm-resource-action-no-segment.js.map +1 -1
- package/dist/src/rules/arm-resource-duplicate-property.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-duplicate-property.js +2 -1
- package/dist/src/rules/arm-resource-duplicate-property.js.map +1 -1
- package/dist/src/rules/arm-resource-interfaces.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-interfaces.js +2 -1
- package/dist/src/rules/arm-resource-interfaces.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.js +2 -1
- package/dist/src/rules/arm-resource-invalid-action-verb.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.js +2 -1
- package/dist/src/rules/arm-resource-invalid-envelope-property.js.map +1 -1
- package/dist/src/rules/arm-resource-invalid-version-format.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-invalid-version-format.js +2 -1
- package/dist/src/rules/arm-resource-invalid-version-format.js.map +1 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.js +2 -1
- package/dist/src/rules/arm-resource-key-invalid-chars.js.map +1 -1
- package/dist/src/rules/arm-resource-name-pattern.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-name-pattern.js +3 -2
- package/dist/src/rules/arm-resource-name-pattern.js.map +1 -1
- package/dist/src/rules/arm-resource-operation-response.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-operation-response.js +2 -1
- package/dist/src/rules/arm-resource-operation-response.js.map +1 -1
- package/dist/src/rules/arm-resource-patch.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-patch.js +2 -1
- package/dist/src/rules/arm-resource-patch.js.map +1 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.js +2 -1
- package/dist/src/rules/arm-resource-path-invalid-chars.js.map +1 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.d.ts.map +1 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.js +2 -1
- package/dist/src/rules/arm-resource-provisioning-state-rule.js.map +1 -1
- package/dist/src/rules/beyond-nesting-levels.d.ts.map +1 -1
- package/dist/src/rules/beyond-nesting-levels.js +2 -1
- package/dist/src/rules/beyond-nesting-levels.js.map +1 -1
- package/dist/src/rules/envelope-properties.d.ts.map +1 -1
- package/dist/src/rules/envelope-properties.js +2 -1
- package/dist/src/rules/envelope-properties.js.map +1 -1
- package/dist/src/rules/improper-subscription-list-operation.d.ts.map +1 -1
- package/dist/src/rules/improper-subscription-list-operation.js +2 -1
- package/dist/src/rules/improper-subscription-list-operation.js.map +1 -1
- package/dist/src/rules/lro-location-header.d.ts.map +1 -1
- package/dist/src/rules/lro-location-header.js +2 -1
- package/dist/src/rules/lro-location-header.js.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.d.ts.map +1 -1
- package/dist/src/rules/missing-x-ms-identifiers.js +2 -1
- package/dist/src/rules/missing-x-ms-identifiers.js.map +1 -1
- package/dist/src/rules/no-empty-model.d.ts.map +1 -1
- package/dist/src/rules/no-empty-model.js +2 -1
- package/dist/src/rules/no-empty-model.js.map +1 -1
- package/dist/src/rules/no-override-props.d.ts.map +1 -1
- package/dist/src/rules/no-override-props.js +2 -1
- package/dist/src/rules/no-override-props.js.map +1 -1
- package/dist/src/rules/no-reserved-resource-property.d.ts.map +1 -1
- package/dist/src/rules/no-reserved-resource-property.js +2 -1
- package/dist/src/rules/no-reserved-resource-property.js.map +1 -1
- package/dist/src/rules/no-resource-delete-operation.d.ts.map +1 -1
- package/dist/src/rules/no-resource-delete-operation.js +2 -1
- package/dist/src/rules/no-resource-delete-operation.js.map +1 -1
- package/dist/src/rules/no-response-body.d.ts.map +1 -1
- package/dist/src/rules/no-response-body.js +3 -2
- package/dist/src/rules/no-response-body.js.map +1 -1
- package/dist/src/rules/operations-interface-missing.d.ts.map +1 -1
- package/dist/src/rules/operations-interface-missing.js +2 -1
- package/dist/src/rules/operations-interface-missing.js.map +1 -1
- package/dist/src/rules/patch-envelope-properties.d.ts.map +1 -1
- package/dist/src/rules/patch-envelope-properties.js +2 -1
- package/dist/src/rules/patch-envelope-properties.js.map +1 -1
- package/dist/src/rules/resource-name.d.ts.map +1 -1
- package/dist/src/rules/resource-name.js +2 -1
- package/dist/src/rules/resource-name.js.map +1 -1
- package/dist/src/rules/retry-after.d.ts.map +1 -1
- package/dist/src/rules/retry-after.js +2 -1
- package/dist/src/rules/retry-after.js.map +1 -1
- package/dist/src/rules/secret-prop.d.ts.map +1 -1
- package/dist/src/rules/secret-prop.js +2 -1
- package/dist/src/rules/secret-prop.js.map +1 -1
- package/dist/src/rules/unsupported-type.d.ts.map +1 -1
- package/dist/src/rules/unsupported-type.js +2 -1
- package/dist/src/rules/unsupported-type.js.map +1 -1
- package/dist/src/rules/use-api-version.d.ts +4 -0
- package/dist/src/rules/use-api-version.d.ts.map +1 -0
- package/dist/src/rules/use-api-version.js +45 -0
- package/dist/src/rules/use-api-version.js.map +1 -0
- package/dist/src/rules/use-interface.d.ts +4 -0
- package/dist/src/rules/use-interface.d.ts.map +1 -0
- package/dist/src/rules/use-interface.js +29 -0
- package/dist/src/rules/use-interface.js.map +1 -0
- package/dist/src/rules/use-operation-decorator.d.ts +5 -0
- package/dist/src/rules/use-operation-decorator.d.ts.map +1 -0
- package/dist/src/rules/use-operation-decorator.js +133 -0
- package/dist/src/rules/use-operation-decorator.js.map +1 -0
- package/dist/src/rules/use-relationship-required-properties.d.ts +5 -0
- package/dist/src/rules/use-relationship-required-properties.d.ts.map +1 -0
- package/dist/src/rules/use-relationship-required-properties.js +79 -0
- package/dist/src/rules/use-relationship-required-properties.js.map +1 -0
- package/dist/src/rules/utils.d.ts +2 -2
- package/dist/src/rules/utils.d.ts.map +1 -1
- package/dist/src/rules/utils.js.map +1 -1
- package/dist/src/rules/version-progression.d.ts.map +1 -1
- package/dist/src/rules/version-progression.js +2 -1
- package/dist/src/rules/version-progression.js.map +1 -1
- package/dist/src/testing/index.d.ts +1 -1
- package/dist/src/testing/index.d.ts.map +1 -1
- package/lib/arm.tsp +1 -0
- package/lib/base-types/agent.tsp +12 -8
- package/lib/base-types/base-types.tsp +1 -1
- package/lib/base-types/relationship.tsp +46 -0
- package/lib/common-types/managed-identity-ref.tsp +1 -1
- package/lib/common-types/nsp-operations.tsp +1 -5
- package/lib/common-types/private-links-ref.tsp +1 -1
- package/lib/decorators.tsp +1 -1
- package/lib/extension/operations.tsp +17 -17
- package/lib/extension/parameters.tsp +19 -5
- package/lib/legacy-types/extension-operations.tsp +5 -5
- package/lib/legacy-types/extension.tsp +2 -2
- package/lib/legacy-types/operations.tsp +4 -4
- package/lib/legacy-types/private-endpoints.tsp +0 -2
- package/lib/operations.tsp +2 -2
- package/lib/responses.tsp +3 -3
- package/package.json +15 -15
- package/dist/src/rules/core-operations.d.ts +0 -6
- package/dist/src/rules/core-operations.d.ts.map +0 -1
- package/dist/src/rules/core-operations.js +0 -104
- package/dist/src/rules/core-operations.js.map +0 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const useRelationshipRequiredPropertiesRule: import("@typespec/compiler").LinterRuleDefinition<"use-relationship-required-properties", {
|
|
2
|
+
readonly missingProperties: import("@typespec/compiler").CallableMessage<["missing"]>;
|
|
3
|
+
readonly notExtension: "Relationship resources must be extension resources.";
|
|
4
|
+
}, Record<string, never>>;
|
|
5
|
+
//# sourceMappingURL=use-relationship-required-properties.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-relationship-required-properties.d.ts","sourceRoot":"","sources":["../../../src/rules/use-relationship-required-properties.ts"],"names":[],"mappings":"AAWA,eAAO,MAAM,qCAAqC;;;yBAqFhD,CAAC"}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { createRule, getProperty, paramMessage, } from "@typespec/compiler";
|
|
2
|
+
import { getAzureBaseTypes } from "../base-types.js";
|
|
3
|
+
import { getArmResources } from "../resource.js";
|
|
4
|
+
export const useRelationshipRequiredPropertiesRule = createRule({
|
|
5
|
+
name: "use-relationship-required-properties",
|
|
6
|
+
severity: "warning",
|
|
7
|
+
description: "Resources decorated with @azureBaseType for the Relationship base type must be extension resources with the required Relationship schema.",
|
|
8
|
+
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/use-relationship-required-properties",
|
|
9
|
+
messages: {
|
|
10
|
+
missingProperties: paramMessage `Relationship resources must include required properties: ${"missing"}.`,
|
|
11
|
+
notExtension: "Relationship resources must be extension resources.",
|
|
12
|
+
},
|
|
13
|
+
create(context) {
|
|
14
|
+
return {
|
|
15
|
+
root: (program) => {
|
|
16
|
+
const relationshipResources = getArmResources(program).filter((r) => hasRelationshipBaseType(r.typespecType));
|
|
17
|
+
for (const relationshipResource of relationshipResources) {
|
|
18
|
+
if (relationshipResource.kind !== "Extension") {
|
|
19
|
+
context.reportDiagnostic({
|
|
20
|
+
messageId: "notExtension",
|
|
21
|
+
target: relationshipResource.typespecType,
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
const properties = getProperty(relationshipResource.typespecType, "properties")?.type;
|
|
25
|
+
if (properties?.kind !== "Model") {
|
|
26
|
+
context.reportDiagnostic({
|
|
27
|
+
messageId: "missingProperties",
|
|
28
|
+
format: {
|
|
29
|
+
missing: "sourceId, sourceTenant, targetId, targetTenant, provisioningState",
|
|
30
|
+
},
|
|
31
|
+
target: relationshipResource.typespecType,
|
|
32
|
+
});
|
|
33
|
+
continue;
|
|
34
|
+
}
|
|
35
|
+
const missing = [
|
|
36
|
+
"sourceId",
|
|
37
|
+
"sourceTenant",
|
|
38
|
+
"targetId",
|
|
39
|
+
"targetTenant",
|
|
40
|
+
"provisioningState",
|
|
41
|
+
].filter((propertyName) => getProperty(properties, propertyName) === undefined);
|
|
42
|
+
if (missing.length > 0) {
|
|
43
|
+
context.reportDiagnostic({
|
|
44
|
+
messageId: "missingProperties",
|
|
45
|
+
format: { missing: missing.join(", ") },
|
|
46
|
+
target: properties,
|
|
47
|
+
});
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
};
|
|
52
|
+
function hasRelationshipBaseType(model) {
|
|
53
|
+
const visited = new Set();
|
|
54
|
+
return hasRelationshipBaseTypeInternal(model, visited);
|
|
55
|
+
}
|
|
56
|
+
function hasRelationshipBaseTypeInternal(model, visited) {
|
|
57
|
+
if (visited.has(model))
|
|
58
|
+
return false;
|
|
59
|
+
visited.add(model);
|
|
60
|
+
const directTypes = getAzureBaseTypes(context.program, model);
|
|
61
|
+
if (directTypes && isRelationship(directTypes))
|
|
62
|
+
return true;
|
|
63
|
+
if (model.baseModel && hasRelationshipBaseTypeInternal(model.baseModel, visited)) {
|
|
64
|
+
return true;
|
|
65
|
+
}
|
|
66
|
+
if (model.sourceModels) {
|
|
67
|
+
for (const source of model.sourceModels) {
|
|
68
|
+
if (hasRelationshipBaseTypeInternal(source.model, visited))
|
|
69
|
+
return true;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
return false;
|
|
73
|
+
}
|
|
74
|
+
function isRelationship(types) {
|
|
75
|
+
return types.some((bt) => bt.baseType === "Relationship");
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
});
|
|
79
|
+
//# sourceMappingURL=use-relationship-required-properties.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"use-relationship-required-properties.js","sourceRoot":"","sources":["../../../src/rules/use-relationship-required-properties.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,WAAW,EACX,YAAY,GACb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAA0B,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEjD,MAAM,CAAC,MAAM,qCAAqC,GAAG,UAAU,CAAC;IAC9D,IAAI,EAAE,sCAAsC;IAC5C,QAAQ,EAAE,SAAS;IACnB,WAAW,EACT,2IAA2I;IAC7I,GAAG,EAAE,yHAAyH;IAC9H,QAAQ,EAAE;QACR,iBAAiB,EAAE,YAAY,CAA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Model, ModelProperty, Namespace, Operation, Program } from "@typespec/compiler";
|
|
2
|
-
import { ArmResourceDetails } from "../resource.js";
|
|
1
|
+
import { type DecoratorArgument, type Interface, type Model, type ModelProperty, type Namespace, type Operation, type Program } from "@typespec/compiler";
|
|
2
|
+
import { type ArmResourceDetails } from "../resource.js";
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
*@param target
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/rules/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,iBAAiB,
|
|
1
|
+
{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../src/rules/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,KAAK,iBAAiB,EAEtB,KAAK,SAAS,EAEd,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EACd,KAAK,OAAO,EACb,MAAM,oBAAoB,CAAC;AAI5B,OAAO,EAAE,KAAK,kBAAkB,EAAsB,MAAM,gBAAgB,CAAC;AAE7E;;;;GAIG;AACH,wBAAgB,6BAA6B,CAAC,MAAM,EAAE,SAAS,uBAM9D;AAED,wBAAgB,iBAAiB,CAAC,YAAY,EAAE,KAAK,WAGpD;AAED,wBAAgB,UAAU,CAAC,YAAY,EAAE,KAAK,WAG7C;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,OAAO,EAAE,EAAE,EAAE,SAAS,WAElE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,KAAK,mBAOzC;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,kBAAkB,yBAUnD;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,aAAa,GAAG,KAAK,GAAG,SAAS,CAOzE;AAED,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,aAAa,GAAG,aAAa,CAOxE;AAED,wBAAgB,kBAAkB,CAChC,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAC9D,OAAO,CAOT;AAED,wBAAgB,wCAAwC,CACtD,SAAS,EAAE,SAAS,GAAG,SAAS,GAC/B,OAAO,CAOT;AAED,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,OAAO,EAChB,IAAI,EAAE,KAAK,GAAG,SAAS,GAAG,aAAa,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAC1E,MAAM,CAMR;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAG/C;AAQD,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,KAAK,GAAG,aAAa,EAC3B,IAAI,EAAE,MAAM,GACX,iBAAiB,GAAG,SAAS,CAK/B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/rules/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EAEpB,qBAAqB,GAMtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,
|
|
1
|
+
{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../../src/rules/utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,oBAAoB,EAEpB,qBAAqB,GAMtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AACpD,OAAO,EAAE,oBAAoB,EAAE,MAAM,gBAAgB,CAAC;AAEtD,OAAO,EAA2B,kBAAkB,EAAE,MAAM,gBAAgB,CAAC;AAE7E;;;;GAIG;AACH,MAAM,UAAU,6BAA6B,CAAC,MAAiB;IAC7D,OAAO,CACL,MAAM,CAAC,IAAI,EAAE,IAAI,KAAK,UAAU,CAAC,kBAAkB;QACnD,MAAM,CA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C;AACnB,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-progression.d.ts","sourceRoot":"","sources":["../../../src/rules/version-progression.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"version-progression.d.ts","sourceRoot":"","sources":["../../../src/rules/version-progression.ts"],"names":[],"mappings":"AA2BA;;;;;;;GAOG;AACH,eAAO,MAAM,sBAAsB;;;yBA8CjC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createRule, paramMessage } from "@typespec/compiler";
|
|
1
|
+
import { createRule, fileRef, paramMessage, } from "@typespec/compiler";
|
|
2
2
|
import { getVersion } from "@typespec/versioning";
|
|
3
3
|
/**
|
|
4
4
|
* Parse a version string of the form "YYYY-MM-DD[-suffix[.N]]" and return its
|
|
@@ -20,6 +20,7 @@ function parseVersionDate(value) {
|
|
|
20
20
|
*/
|
|
21
21
|
export const versionProgressionRule = createRule({
|
|
22
22
|
name: "version-progression",
|
|
23
|
+
docs: fileRef.fromPackageRoot("src/rules/version-progression.md"),
|
|
23
24
|
severity: "warning",
|
|
24
25
|
description: "Validate that ARM service versions all use unique dates and are declared in strictly increasing chronological order.",
|
|
25
26
|
url: "https://azure.github.io/typespec-azure/docs/libraries/azure-resource-manager/rules/version-progression",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version-progression.js","sourceRoot":"","sources":["../../../src/rules/version-progression.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"version-progression.js","sourceRoot":"","sources":["../../../src/rules/version-progression.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,UAAU,EACV,OAAO,EACP,YAAY,GACb,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAQlD;;;;;GAKG;AACH,SAAS,gBAAgB,CAAC,KAAa;IACrC,MAAM,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,gDAAgD,CA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E,CAAC,GAAG,MAAM,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;oBACvC,MAAM,OAAO,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;oBAC1B,MAAM,QAAQ,GAAG,MAAM,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;oBAC/B,IAAI,OAAO,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,EAAE,CAAC;wBACnC,OAAO,CAAC,gBAAgB,CAAC;4BACvB,SAAS,EAAE,eAAe;4BAC1B,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;4BACxD,MAAM,EAAE,OAAO,CAAC,UAAU;yBAC3B,CAAC,CAAC;oBACL,CAAC;yBAAM,IAAI,OAAO,CAAC,IAAI,GAAG,QAAQ,CAAC,IAAI,EAAE,CAAC;wBACxC,OAAO,CAAC,gBAAgB,CAAC;4BACvB,SAAS,EAAE,cAAc;4BACzB,MAAM,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,GAAG,EAAE,QAAQ,EAAE,QAAQ,CAAC,GAAG,EAAE;4BACxD,MAAM,EAAE,OAAO,CAAC,UAAU;yBAC3B,CAAC,CAAC;oBACL,CAAC;gBACH,CAAC;YACH,CAAC;SACF,CAAC;IACJ,CAAC;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { TypeSpecTestLibrary } from "@typespec/compiler/testing";
|
|
1
|
+
import { type TypeSpecTestLibrary } from "@typespec/compiler/testing";
|
|
2
2
|
/** @deprecated Use `createTester` from `@typespec/compiler/testing` instead */
|
|
3
3
|
export declare const AzureResourceManagerTestLibrary: TypeSpecTestLibrary;
|
|
4
4
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,mBAAmB,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/testing/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,KAAK,mBAAmB,EAGzB,MAAM,4BAA4B,CAAC;AAEpC,+EAA+E;AAE/E,eAAO,MAAM,+BAA+B,EAAE,mBAG5C,CAAC"}
|
package/lib/arm.tsp
CHANGED
|
@@ -14,6 +14,7 @@ import "./extension/extension.tsp";
|
|
|
14
14
|
import "./backcompat.tsp";
|
|
15
15
|
import "./base-types/base-types.tsp";
|
|
16
16
|
import "./base-types/agent.tsp";
|
|
17
|
+
import "./base-types/relationship.tsp";
|
|
17
18
|
import "./private.decorators.tsp";
|
|
18
19
|
import "./models.tsp";
|
|
19
20
|
import "./operations.tsp";
|
package/lib/base-types/agent.tsp
CHANGED
|
@@ -186,6 +186,9 @@ model ConversationProperties {
|
|
|
186
186
|
/** Timestamp of when the conversation was created. Read-only. */
|
|
187
187
|
@visibility(Lifecycle.Read)
|
|
188
188
|
createdAt?: utcDateTime;
|
|
189
|
+
|
|
190
|
+
/** Content input to the conversation. Required on create. */
|
|
191
|
+
input: InputItem;
|
|
189
192
|
}
|
|
190
193
|
|
|
191
194
|
/**
|
|
@@ -232,7 +235,7 @@ enum ItemType {
|
|
|
232
235
|
* - `FunctionCallOutput`: `callId`, `output`
|
|
233
236
|
* - `Compaction`: `summary`
|
|
234
237
|
*/
|
|
235
|
-
model
|
|
238
|
+
model InputItem {
|
|
236
239
|
/** Unique identifier of the item. Read-only (assigned by the service). */
|
|
237
240
|
@visibility(Lifecycle.Read)
|
|
238
241
|
id?: string;
|
|
@@ -240,11 +243,12 @@ model ConversationItem {
|
|
|
240
243
|
/** The item type discriminator. Determines which variant this item represents. */
|
|
241
244
|
type: ItemType;
|
|
242
245
|
|
|
243
|
-
/** The role of the message author. Applies to `Message` items. */
|
|
246
|
+
/** The role of the message author. Applies to `Message` items. Read-only. */
|
|
247
|
+
@visibility(Lifecycle.Read)
|
|
244
248
|
role?: MessageRole;
|
|
245
249
|
|
|
246
|
-
/** The
|
|
247
|
-
content?:
|
|
250
|
+
/** The content of the message. Applies to `Message` items. */
|
|
251
|
+
content?: Record<unknown>;
|
|
248
252
|
|
|
249
253
|
/** Identifier correlating a function call with its output. Applies to `FunctionCall` and `FunctionCallOutput` items. */
|
|
250
254
|
callId?: string;
|
|
@@ -316,7 +320,7 @@ model ResponseProperties {
|
|
|
316
320
|
status?: ResponseStatus;
|
|
317
321
|
|
|
318
322
|
/** Content input to the model. Required on create. */
|
|
319
|
-
input:
|
|
323
|
+
input: InputItem;
|
|
320
324
|
}
|
|
321
325
|
|
|
322
326
|
/**
|
|
@@ -342,9 +346,9 @@ model ResponseItem {
|
|
|
342
346
|
@visibility(Lifecycle.Read)
|
|
343
347
|
role?: MessageRole;
|
|
344
348
|
|
|
345
|
-
/** The
|
|
349
|
+
/** The content of the message. Applies to `Message` items. Read-only. */
|
|
346
350
|
@visibility(Lifecycle.Read)
|
|
347
|
-
content?:
|
|
351
|
+
content?: Record<unknown>;
|
|
348
352
|
|
|
349
353
|
/** Identifier correlating a function call with its output. Applies to `FunctionCall` and `FunctionCallOutput` items. Read-only. */
|
|
350
354
|
@visibility(Lifecycle.Read)
|
|
@@ -399,7 +403,7 @@ model ResponseInstructionsProperty {
|
|
|
399
403
|
* Applies the Agent base type decorator automatically.
|
|
400
404
|
* @template Properties RP-specific properties for the agent (must extend AgentProperties)
|
|
401
405
|
*/
|
|
402
|
-
@azureBaseType(#{ baseType: BaseType.Agent, version: "
|
|
406
|
+
@azureBaseType(#{ baseType: BaseType.Agent, version: "2026-04-01" })
|
|
403
407
|
model Agent<Properties extends AgentProperties> is TrackedResource<Properties>;
|
|
404
408
|
|
|
405
409
|
/**
|
|
@@ -51,7 +51,7 @@ model BaseTypeInfo {
|
|
|
51
51
|
*
|
|
52
52
|
* // The @azureBaseType decorator marks the resource as conforming to the Agent base type.
|
|
53
53
|
* // (The Agent template applies this automatically, but it can also be applied directly.)
|
|
54
|
-
* @azureBaseType(#{ baseType: BaseType.Agent, version: "
|
|
54
|
+
* @azureBaseType(#{ baseType: BaseType.Agent, version: "2026-04-01" })
|
|
55
55
|
* model ContosoApplianceAgent is TrackedResource<ContosoApplianceProperties> {
|
|
56
56
|
* ...ResourceNameParameter<ContosoApplianceAgent>;
|
|
57
57
|
* }
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import "./base-types.tsp";
|
|
2
|
+
|
|
3
|
+
namespace Azure.ResourceManager.BaseTypes.Relationships;
|
|
4
|
+
|
|
5
|
+
// ============================================================================
|
|
6
|
+
// Relationship Properties (resource property bag)
|
|
7
|
+
// ============================================================================
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Required properties for a relationship resource.
|
|
11
|
+
* @template ProvisioningState The relationship provisioning state values.
|
|
12
|
+
*/
|
|
13
|
+
model RelationshipProperties<ProvisioningState extends string = ResourceProvisioningState> {
|
|
14
|
+
/** ARM-managed. Must include the base type descriptor for this resource. */
|
|
15
|
+
@visibility(Lifecycle.Read)
|
|
16
|
+
baseTypes: BaseTypeInfo[];
|
|
17
|
+
|
|
18
|
+
/** The relationship source identifier. */
|
|
19
|
+
sourceId: string;
|
|
20
|
+
|
|
21
|
+
/** The tenant identifier of the relationship source. */
|
|
22
|
+
sourceTenant: string;
|
|
23
|
+
|
|
24
|
+
/** The relationship target identifier. */
|
|
25
|
+
targetId: string;
|
|
26
|
+
|
|
27
|
+
/** The tenant identifier of the relationship target. */
|
|
28
|
+
targetTenant: string;
|
|
29
|
+
|
|
30
|
+
/** The provisioning state of the relationship. */
|
|
31
|
+
@visibility(Lifecycle.Read)
|
|
32
|
+
provisioningState?: ProvisioningState;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
// ============================================================================
|
|
36
|
+
// Resource Templates
|
|
37
|
+
// ============================================================================
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Model template for a Relationship extension resource.
|
|
41
|
+
* Applies the Relationship base type decorator automatically.
|
|
42
|
+
* @template Properties RP-specific properties for the relationship (must extend RelationshipProperties)
|
|
43
|
+
*/
|
|
44
|
+
@azureBaseType(#{ baseType: BaseType.Relationship, version: "2026-04-01" })
|
|
45
|
+
model Relationship<Properties extends RelationshipProperties = RelationshipProperties>
|
|
46
|
+
is ExtensionResource<Properties>;
|
|
@@ -53,7 +53,7 @@ namespace Azure.ResourceManager.CommonTypes;
|
|
|
53
53
|
);
|
|
54
54
|
|
|
55
55
|
/**
|
|
56
|
-
* The properties of the
|
|
56
|
+
* The properties of the system-assigned identity associated with this resource.
|
|
57
57
|
*/
|
|
58
58
|
@@armCommonDefinition(
|
|
59
59
|
SystemAssignedServiceIdentity,
|
|
@@ -96,8 +96,6 @@ interface NspConfigurationOperations<
|
|
|
96
96
|
* @template ParentResource the parent resource of the NspConfiguration
|
|
97
97
|
* @template Resource Optional. The NspConfiguration resource being listed
|
|
98
98
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
99
|
-
* @template ParentName Optional. The name of the parent resource
|
|
100
|
-
* @template ParentFriendlyName Optional. The friendly name of the parent resource
|
|
101
99
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
102
100
|
* @template Response Optional. The success response for the list operation
|
|
103
101
|
* @template Error Optional. The error response, if non-standard.
|
|
@@ -127,12 +125,10 @@ interface NspConfigurationOperations<
|
|
|
127
125
|
>;
|
|
128
126
|
|
|
129
127
|
/**
|
|
130
|
-
* List the network security
|
|
128
|
+
* List the network security perimeter configuration for a resource without pagination - this should only be used for legacy operations
|
|
131
129
|
* @template ParentResource the parent resource of the NspConfiguration
|
|
132
130
|
* @template Resource Optional. The NspConfiguration resource being listed
|
|
133
131
|
* @template BaseParameters Optional. Allows overriding the operation parameters
|
|
134
|
-
* @template ParentName Optional. The name of the parent resource
|
|
135
|
-
* @template ParentFriendlyName Optional. The friendly name of the parent resource
|
|
136
132
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
137
133
|
* @template Response Optional. The success response for the list operation
|
|
138
134
|
* @template Error Optional. The error response, if non-standard.
|
package/lib/decorators.tsp
CHANGED
|
@@ -223,7 +223,7 @@ extern dec armResourceCheckExistence(
|
|
|
223
223
|
* clients.
|
|
224
224
|
*
|
|
225
225
|
* The optional `resourceOperationOptions` parameter provides additional options.
|
|
226
|
-
* `allowStaticRoutes` turns off
|
|
226
|
+
* `allowStaticRoutes` turns off autoRoute for the interface, so individual operations can
|
|
227
227
|
* choose static (`@route`) or automatic (`@autoRoute`) routing.
|
|
228
228
|
*
|
|
229
229
|
* `resourceType: Model` specifies the resource type for the operations in the interface
|
|
@@ -9,7 +9,7 @@ using Azure.ResourceManager.Private;
|
|
|
9
9
|
|
|
10
10
|
/**
|
|
11
11
|
* List an extension resource at the given target scope
|
|
12
|
-
* @template TargetResource The target to list at, e.g. Extension.Subscription
|
|
12
|
+
* @template TargetResource The target to list at, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
13
13
|
* @template ExtensionResource the resource being listed
|
|
14
14
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
15
15
|
* @template Response Optional. The success response for the list operation
|
|
@@ -40,7 +40,7 @@ op ListByTarget<
|
|
|
40
40
|
|
|
41
41
|
/**
|
|
42
42
|
* A resource GET operation
|
|
43
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
43
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
44
44
|
* @template ExtensionResource the resource being read
|
|
45
45
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
46
46
|
* @template Response Optional. The success response for the read operation
|
|
@@ -68,7 +68,7 @@ op Read<
|
|
|
68
68
|
|
|
69
69
|
/**
|
|
70
70
|
* Check a resource's existence via HEAD operation
|
|
71
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
71
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
72
72
|
* @template ExtensionResource the extension resource being checked
|
|
73
73
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
74
74
|
* @template Response Optional. The success response for the read operation
|
|
@@ -101,7 +101,7 @@ op CheckExistence<
|
|
|
101
101
|
|
|
102
102
|
/**
|
|
103
103
|
* A long-running resource CreateOrUpdate (PUT)
|
|
104
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
104
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
105
105
|
* @template ExtensionResource the resource being created or updated
|
|
106
106
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
107
107
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -141,7 +141,7 @@ op CreateOrUpdateAsync<
|
|
|
141
141
|
|
|
142
142
|
/**
|
|
143
143
|
* Synchronous PUT operation for Azure Resource Manager resources
|
|
144
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
144
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
145
145
|
* @template ExtensionResource the resource being created or replaced
|
|
146
146
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
147
147
|
* @template Response Optional. The success response for the createOrReplace operation
|
|
@@ -177,7 +177,7 @@ op CreateOrReplaceSync<
|
|
|
177
177
|
|
|
178
178
|
/**
|
|
179
179
|
* A long-running resource CreateOrUpdate (PUT)
|
|
180
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
180
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
181
181
|
* @template ExtensionResource the resource being created or replaced
|
|
182
182
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
183
183
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -218,7 +218,7 @@ op CreateOrReplaceAsync<
|
|
|
218
218
|
|
|
219
219
|
/**
|
|
220
220
|
* A long-running resource update using a custom PATCH payload (Asynchronous)
|
|
221
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
221
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
222
222
|
* @template ExtensionResource the resource being patched
|
|
223
223
|
* @template PatchModel The input model for the PATCH request
|
|
224
224
|
* @template LroHeaders Optional. Allows overriding the lro headers returned in the Accepted response
|
|
@@ -258,7 +258,7 @@ op CustomPatchAsync<
|
|
|
258
258
|
|
|
259
259
|
/**
|
|
260
260
|
* A resource update using a custom PATCH payload (synchronous)
|
|
261
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
261
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
262
262
|
* @template ExtensionResource the resource being patched
|
|
263
263
|
* @template PatchModel The input model for the PATCH request
|
|
264
264
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -289,7 +289,7 @@ op CustomPatchSync<
|
|
|
289
289
|
|
|
290
290
|
/**
|
|
291
291
|
* Delete a resource asynchronously
|
|
292
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
292
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
293
293
|
* @template ExtensionResource The resource being deleted
|
|
294
294
|
* @template Response The response type for the operation
|
|
295
295
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -315,7 +315,7 @@ op DeleteAsyncBase<
|
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
317
|
* Delete a resource asynchronously.
|
|
318
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
318
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
319
319
|
* @template ExtensionResource The resource being deleted
|
|
320
320
|
* @template LroHeaders Optional. Allows overriding the headers in the Accepted response
|
|
321
321
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -352,7 +352,7 @@ op DeleteAsync<
|
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
354
|
* Delete a resource asynchronously
|
|
355
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
355
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
356
356
|
* @template ExtensionResource The resource being deleted
|
|
357
357
|
* @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response
|
|
358
358
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -385,7 +385,7 @@ op DeleteWithoutOkAsync<
|
|
|
385
385
|
|
|
386
386
|
/**
|
|
387
387
|
* Delete a resource synchronously
|
|
388
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
388
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
389
389
|
* @template ExtensionResource The resource being deleted
|
|
390
390
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
391
391
|
* @template Response Optional. The success response(s) for the delete operation
|
|
@@ -411,7 +411,7 @@ op DeleteSync<
|
|
|
411
411
|
|
|
412
412
|
/**
|
|
413
413
|
* A long-running resource action.
|
|
414
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
414
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
415
415
|
* @template ExtensionResource The resource being acted upon
|
|
416
416
|
* @template Request The request model for the action
|
|
417
417
|
* @template Response The response type for the action
|
|
@@ -445,7 +445,7 @@ op ActionAsyncBase<
|
|
|
445
445
|
|
|
446
446
|
/**
|
|
447
447
|
* A long-running resource action.
|
|
448
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
448
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
449
449
|
* @template ExtensionResource The resource being acted upon
|
|
450
450
|
* @template Request The request model for the action
|
|
451
451
|
* @template Response The response model for the action
|
|
@@ -487,7 +487,7 @@ op ActionAsync<
|
|
|
487
487
|
|
|
488
488
|
/**
|
|
489
489
|
* A synchronous resource action.
|
|
490
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
490
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
491
491
|
* @template ExtensionResource The resource being acted upon
|
|
492
492
|
* @template Request The request model for the action
|
|
493
493
|
* @template Response The response model for the action
|
|
@@ -522,7 +522,7 @@ op ActionSync<
|
|
|
522
522
|
|
|
523
523
|
/**
|
|
524
524
|
* A long-running resource action that returns no content.
|
|
525
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
525
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
526
526
|
* @template ExtensionResource The resource being acted upon
|
|
527
527
|
* @template Request The request model for the action
|
|
528
528
|
* @template LroHeaders Optional. Allows overriding the headers returned in the Accepted response
|
|
@@ -563,7 +563,7 @@ op ActionNoResponseContentAsync<
|
|
|
563
563
|
|
|
564
564
|
/**
|
|
565
565
|
* A synchronous resource action that returns no content.
|
|
566
|
-
* @template TargetResource The target resource, e.g. Extension.Subscription
|
|
566
|
+
* @template TargetResource The target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
567
567
|
* @template ExtensionResource The resource being acted upon
|
|
568
568
|
* @template Request The request model for the action
|
|
569
569
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -27,7 +27,7 @@ model ScopeParameter<Type extends string = string> {
|
|
|
27
27
|
|
|
28
28
|
/**
|
|
29
29
|
* Base parameters for an extension target.
|
|
30
|
-
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or an external resource).
|
|
30
|
+
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or an external resource).
|
|
31
31
|
*
|
|
32
32
|
*/
|
|
33
33
|
@resourceBaseParametersOf(Resource)
|
|
@@ -45,7 +45,7 @@ model TargetBaseParameters<Resource extends {}> {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
/** The path parameters for a target resource for an extension
|
|
48
|
-
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or an external resource).
|
|
48
|
+
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or an external resource).
|
|
49
49
|
*/
|
|
50
50
|
model TargetParameters<Resource extends {}> {
|
|
51
51
|
...TargetBaseParameters<Resource>;
|
|
@@ -64,7 +64,7 @@ model ExtensionProviderNamespace<Resource extends {}> {
|
|
|
64
64
|
}
|
|
65
65
|
|
|
66
66
|
/** The provider namespace (if any) for a target resource for an extension
|
|
67
|
-
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or an external resource)
|
|
67
|
+
* @template Resource The resource model for an extension target (usually Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or an external resource)
|
|
68
68
|
*/
|
|
69
69
|
model TargetProviderNamespace<Resource extends {}> {
|
|
70
70
|
@resourceParameterBaseFor(
|
|
@@ -84,7 +84,7 @@ model TargetProviderNamespace<Resource extends {}> {
|
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
/** The path parameters for an extension resource at the given target
|
|
87
|
-
* @template TargetResource The target of the extension resource (Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or another resource).
|
|
87
|
+
* @template TargetResource The target of the extension resource (Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or another resource).
|
|
88
88
|
* @template Resource The extension resource.
|
|
89
89
|
*/
|
|
90
90
|
model ExtensionInstanceParameters<TargetResource extends {}, Resource extends {}> {
|
|
@@ -94,7 +94,7 @@ model ExtensionInstanceParameters<TargetResource extends {}, Resource extends {}
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/** The path parameters for a collection of extension resources at the given target
|
|
97
|
-
* @template TargetResource The target of the extension resource (Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup or another resource).
|
|
97
|
+
* @template TargetResource The target of the extension resource (Extension.Tenant, Extension.Subscription, Extension.ResourceGroup, Extension.Scope, Extension.ManagementGroup, Extension.ServiceGroup or another resource).
|
|
98
98
|
* @template ExtensionResource The extension resource.
|
|
99
99
|
*/
|
|
100
100
|
model ExtensionParentParameters<TargetResource extends {}, ExtensionResource extends {}> {
|
|
@@ -121,6 +121,20 @@ model ManagementGroup<ParameterName extends valueof string = "managementGroupNam
|
|
|
121
121
|
name: string;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
|
+
/** A service group
|
|
125
|
+
* @template ParameterName The name of the 'name' parameter of the service group (usually serviceGroupName or serviceGroupId).
|
|
126
|
+
*/
|
|
127
|
+
@tenantResource
|
|
128
|
+
@armVirtualResource("Microsoft.Management")
|
|
129
|
+
model ServiceGroup<ParameterName extends valueof string = "serviceGroupName"> {
|
|
130
|
+
@path
|
|
131
|
+
@minLength(1)
|
|
132
|
+
@segment("serviceGroups")
|
|
133
|
+
@key(ParameterName)
|
|
134
|
+
@doc("The service group name.")
|
|
135
|
+
name: string;
|
|
136
|
+
}
|
|
137
|
+
|
|
124
138
|
/** An external resource target, used when an extension targets a resource from another provider namespace
|
|
125
139
|
* @template TargetNamespace The provider namespace for the external resource.
|
|
126
140
|
* @template ResourceType The type of the external resource.
|
|
@@ -11,7 +11,7 @@ using Azure.ResourceManager.Private;
|
|
|
11
11
|
/**
|
|
12
12
|
* DEPRECATED: Use CreateOrReplaceAsync instead.
|
|
13
13
|
* A long-running resource CreateOrUpdate (PUT)
|
|
14
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
14
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
15
15
|
* @template ExtensionResource the resource being created or updated
|
|
16
16
|
* @template Request Optional. The request body for the createOrUpdate operation
|
|
17
17
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
@@ -47,7 +47,7 @@ alias CreateOrUpdateAsync<
|
|
|
47
47
|
>;
|
|
48
48
|
|
|
49
49
|
/** A long-running resource CreateOrUpdate (PUT)
|
|
50
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
50
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
51
51
|
* @template ExtensionResource the resource being created or updated
|
|
52
52
|
* @template Request Optional. The request body for the createOrUpdate operation
|
|
53
53
|
* @template LroHeaders Optional. Allows overriding the lro headers returned on resource create
|
|
@@ -93,7 +93,7 @@ op CreateOrReplaceAsync<
|
|
|
93
93
|
|
|
94
94
|
/**
|
|
95
95
|
* Synchronous PUT operation for Azure Resource Manager resources
|
|
96
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
96
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
97
97
|
* @template ExtensionResource the resource being created or replaced
|
|
98
98
|
* @template Request Optional. The request body for the createOrUpdate operation
|
|
99
99
|
* @template Parameters Optional. Additional parameters after the path parameters
|
|
@@ -135,7 +135,7 @@ op CreateOrReplaceSync<
|
|
|
135
135
|
|
|
136
136
|
/**
|
|
137
137
|
* A long-running resource update using a custom PATCH payload (Asynchronous)
|
|
138
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
138
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
139
139
|
* @template ExtensionResource the resource being patched
|
|
140
140
|
* @template PatchModel The input model for the PATCH request
|
|
141
141
|
* @template LroHeaders Optional. Allows overriding the lro headers returned in the Accepted response
|
|
@@ -179,7 +179,7 @@ op CustomPatchAsync<
|
|
|
179
179
|
|
|
180
180
|
/**
|
|
181
181
|
* A resource update using a custom PATCH payload (synchronous)
|
|
182
|
-
* @template TargetResource the target resource, e.g. Extension.Subscription
|
|
182
|
+
* @template TargetResource the target resource, e.g. Extension.Subscription, Extension.ManagementGroup, Extension.ServiceGroup or Extension.ResourceGroup
|
|
183
183
|
* @template ExtensionResource the resource being patched
|
|
184
184
|
* @template PatchModel The input model for the PATCH request
|
|
185
185
|
* @template Parameters Optional. Additional parameters after the path parameters
|