@azure-tools/typespec-azure-resource-manager 0.74.0-dev.0 → 0.74.0-dev.10
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 +9 -1
- package/dist/generated-defs/Azure.ResourceManager.BaseTypes.d.ts +11 -0
- package/dist/generated-defs/Azure.ResourceManager.BaseTypes.d.ts.map +1 -1
- package/dist/generated-defs/Azure.ResourceManager.Legacy.d.ts +33 -0
- package/dist/generated-defs/Azure.ResourceManager.Legacy.d.ts.map +1 -1
- package/dist/generated-defs/Azure.ResourceManager.d.ts +33 -0
- package/dist/generated-defs/Azure.ResourceManager.d.ts.map +1 -1
- package/dist/src/codefixes/delete-property.d.ts +4 -0
- package/dist/src/codefixes/delete-property.d.ts.map +1 -0
- package/dist/src/codefixes/delete-property.js +17 -0
- package/dist/src/codefixes/delete-property.js.map +1 -0
- package/dist/src/lib.d.ts +167 -2
- package/dist/src/lib.d.ts.map +1 -1
- package/dist/src/lib.js +66 -0
- package/dist/src/lib.js.map +1 -1
- package/dist/src/linter.d.ts.map +1 -1
- package/dist/src/linter.js +24 -0
- package/dist/src/linter.js.map +1 -1
- package/dist/src/operations.d.ts +1 -2
- package/dist/src/operations.d.ts.map +1 -1
- package/dist/src/operations.js +19 -43
- package/dist/src/operations.js.map +1 -1
- package/dist/src/private.decorators.d.ts +2 -1
- package/dist/src/private.decorators.d.ts.map +1 -1
- package/dist/src/private.decorators.js +40 -10
- package/dist/src/private.decorators.js.map +1 -1
- package/dist/src/resource-name.d.ts +27 -0
- package/dist/src/resource-name.d.ts.map +1 -0
- package/dist/src/resource-name.js +82 -0
- package/dist/src/resource-name.js.map +1 -0
- package/dist/src/resource.d.ts +128 -11
- package/dist/src/resource.d.ts.map +1 -1
- package/dist/src/resource.js +378 -31
- package/dist/src/resource.js.map +1 -1
- package/dist/src/rules/http-response-utils.d.ts +16 -0
- package/dist/src/rules/http-response-utils.d.ts.map +1 -0
- package/dist/src/rules/http-response-utils.js +31 -0
- package/dist/src/rules/http-response-utils.js.map +1 -0
- package/dist/src/rules/list-response-envelope.d.ts +1 -0
- package/dist/src/rules/list-response-envelope.d.ts.map +1 -1
- package/dist/src/rules/list-response-envelope.js +58 -7
- package/dist/src/rules/list-response-envelope.js.map +1 -1
- package/dist/src/rules/model-utils.d.ts +4 -0
- package/dist/src/rules/model-utils.d.ts.map +1 -0
- package/dist/src/rules/model-utils.js +18 -0
- package/dist/src/rules/model-utils.js.map +1 -0
- package/dist/src/rules/no-empty-post-response.d.ts +4 -0
- package/dist/src/rules/no-empty-post-response.d.ts.map +1 -0
- package/dist/src/rules/no-empty-post-response.js +38 -0
- package/dist/src/rules/no-empty-post-response.js.map +1 -0
- package/dist/src/rules/no-tags-on-proxy-resource.d.ts +4 -0
- package/dist/src/rules/no-tags-on-proxy-resource.d.ts.map +1 -0
- package/dist/src/rules/no-tags-on-proxy-resource.js +58 -0
- package/dist/src/rules/no-tags-on-proxy-resource.js.map +1 -0
- package/dist/src/rules/resource-missing-read.d.ts +4 -0
- package/dist/src/rules/resource-missing-read.d.ts.map +1 -0
- package/dist/src/rules/resource-missing-read.js +55 -0
- package/dist/src/rules/resource-missing-read.js.map +1 -0
- package/dist/src/rules/scope-path-segment-casing.d.ts +4 -0
- package/dist/src/rules/scope-path-segment-casing.d.ts.map +1 -0
- package/dist/src/rules/scope-path-segment-casing.js +37 -0
- package/dist/src/rules/scope-path-segment-casing.js.map +1 -0
- package/dist/src/rules/use-resource-path-for-put.d.ts +4 -0
- package/dist/src/rules/use-resource-path-for-put.d.ts.map +1 -0
- package/dist/src/rules/use-resource-path-for-put.js +35 -0
- package/dist/src/rules/use-resource-path-for-put.js.map +1 -0
- package/dist/src/rules/use-scope-for-extension-routing.d.ts +4 -0
- package/dist/src/rules/use-scope-for-extension-routing.d.ts.map +1 -0
- package/dist/src/rules/use-scope-for-extension-routing.js +37 -0
- package/dist/src/rules/use-scope-for-extension-routing.js.map +1 -0
- package/dist/src/rules/use-standard-error.d.ts +5 -0
- package/dist/src/rules/use-standard-error.d.ts.map +1 -0
- package/dist/src/rules/use-standard-error.js +66 -0
- package/dist/src/rules/use-standard-error.js.map +1 -0
- package/dist/src/rules/use-standard-response-codes.d.ts +6 -0
- package/dist/src/rules/use-standard-response-codes.d.ts.map +1 -0
- package/dist/src/rules/use-standard-response-codes.js +67 -0
- package/dist/src/rules/use-standard-response-codes.js.map +1 -0
- package/dist/src/state.d.ts +1 -0
- package/dist/src/state.d.ts.map +1 -1
- package/dist/src/state.js +1 -0
- package/dist/src/state.js.map +1 -1
- package/package.json +11 -11
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { Model, Operation } from "@typespec/compiler";
|
|
2
|
+
export type ResourceNameExpression = {
|
|
3
|
+
kind: "explicit";
|
|
4
|
+
value: string;
|
|
5
|
+
} | {
|
|
6
|
+
kind: "literal";
|
|
7
|
+
value: string;
|
|
8
|
+
} | {
|
|
9
|
+
kind: "model";
|
|
10
|
+
model: Model;
|
|
11
|
+
} | {
|
|
12
|
+
kind: "concat";
|
|
13
|
+
parts: readonly ResourceNameExpression[];
|
|
14
|
+
} | {
|
|
15
|
+
kind: "legacy-resource";
|
|
16
|
+
model: Model;
|
|
17
|
+
} | {
|
|
18
|
+
kind: "legacy-extension";
|
|
19
|
+
model: Model;
|
|
20
|
+
};
|
|
21
|
+
export declare const getResourceNameExpression: (program: import("@typespec/compiler").Program, type: Operation) => ResourceNameExpression | undefined, setResourceNameExpression: (program: import("@typespec/compiler").Program, type: Operation, value: ResourceNameExpression) => void;
|
|
22
|
+
export declare function getStandardResourceNameExpression(resourceType: Model, resourceName: string | undefined): ResourceNameExpression;
|
|
23
|
+
export declare function evaluateResourceNameExpression(expression: ResourceNameExpression, resourceInstancePath: string, resolveModelName?: (model: Model) => string): string;
|
|
24
|
+
export declare function getResourceNameExpressionModels(expression: ResourceNameExpression): ReadonlySet<Model>;
|
|
25
|
+
export declare function getDefaultLegacyExtensionResourceName(path: string, resourceName: string): string;
|
|
26
|
+
export declare function getDefaultLegacyResourceName(resourceModelName: string, httpOp: string): string;
|
|
27
|
+
//# sourceMappingURL=resource-name.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-name.d.ts","sourceRoot":"","sources":["../../src/resource-name.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAM3D,MAAM,MAAM,sBAAsB,GAC9B;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACnC;IAAE,IAAI,EAAE,SAAS,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,GAC/B;IAAE,IAAI,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,SAAS,sBAAsB,EAAE,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,GACzC;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,KAAK,EAAE,KAAK,CAAA;CAAE,CAAC;AAE/C,eAAO,MAAO,yBAAyB,0GAAE,yBAAyB,yGAGzB,CAAC;AAE1C,wBAAgB,iCAAiC,CAC/C,YAAY,EAAE,KAAK,EACnB,YAAY,EAAE,MAAM,GAAG,SAAS,GAC/B,sBAAsB,CAIxB;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,sBAAsB,EAClC,oBAAoB,EAAE,MAAM,EAC5B,gBAAgB,GAAE,CAAC,KAAK,EAAE,KAAK,KAAK,MAA8B,GACjE,MAAM,CAmBR;AAED,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,sBAAsB,GACjC,WAAW,CAAC,KAAK,CAAC,CAoBpB;AAED,wBAAgB,qCAAqC,CAAC,IAAI,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,MAAM,CAoBhG;AAED,wBAAgB,4BAA4B,CAAC,iBAAiB,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAU9F"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import { useStateMap } from "@typespec/compiler/utils";
|
|
2
|
+
import { pascalCase } from "change-case";
|
|
3
|
+
import { parseArmResourceInstancePath } from "./resource.js";
|
|
4
|
+
import { ArmStateKeys } from "./state.js";
|
|
5
|
+
export const [getResourceNameExpression, setResourceNameExpression] = useStateMap(ArmStateKeys.armResourceNameExpression);
|
|
6
|
+
export function getStandardResourceNameExpression(resourceType, resourceName) {
|
|
7
|
+
return resourceName !== undefined && resourceName.length > 0
|
|
8
|
+
? { kind: "explicit", value: resourceName }
|
|
9
|
+
: { kind: "model", model: resourceType };
|
|
10
|
+
}
|
|
11
|
+
export function evaluateResourceNameExpression(expression, resourceInstancePath, resolveModelName = (model) => model.name) {
|
|
12
|
+
switch (expression.kind) {
|
|
13
|
+
case "explicit":
|
|
14
|
+
case "literal":
|
|
15
|
+
return expression.value;
|
|
16
|
+
case "model":
|
|
17
|
+
return resolveModelName(expression.model);
|
|
18
|
+
case "concat":
|
|
19
|
+
return expression.parts
|
|
20
|
+
.map((part) => evaluateResourceNameExpression(part, resourceInstancePath, resolveModelName))
|
|
21
|
+
.join("");
|
|
22
|
+
case "legacy-resource":
|
|
23
|
+
return getDefaultLegacyResourceName(resolveModelName(expression.model), resourceInstancePath);
|
|
24
|
+
case "legacy-extension":
|
|
25
|
+
return getDefaultLegacyExtensionResourceName(resourceInstancePath, resolveModelName(expression.model));
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
export function getResourceNameExpressionModels(expression) {
|
|
29
|
+
const models = new Set();
|
|
30
|
+
collect(expression);
|
|
31
|
+
return models;
|
|
32
|
+
function collect(current) {
|
|
33
|
+
switch (current.kind) {
|
|
34
|
+
case "model":
|
|
35
|
+
case "legacy-resource":
|
|
36
|
+
case "legacy-extension":
|
|
37
|
+
models.add(current.model);
|
|
38
|
+
return;
|
|
39
|
+
case "concat":
|
|
40
|
+
current.parts.forEach(collect);
|
|
41
|
+
return;
|
|
42
|
+
case "explicit":
|
|
43
|
+
case "literal":
|
|
44
|
+
return;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
export function getDefaultLegacyExtensionResourceName(path, resourceName) {
|
|
49
|
+
const providerIndex = path.lastIndexOf("/providers");
|
|
50
|
+
if (providerIndex > -1 && providerIndex < path.length - 1) {
|
|
51
|
+
const targetPath = path.slice(0, providerIndex);
|
|
52
|
+
const extensionPath = path.slice(providerIndex);
|
|
53
|
+
const extensionInfo = parseArmResourceInstancePath(extensionPath);
|
|
54
|
+
if (!extensionInfo)
|
|
55
|
+
return resourceName;
|
|
56
|
+
const extensionName = extensionInfo.resourceType.types.flatMap((t) => pascalCase(t)).join("");
|
|
57
|
+
if (targetPath.length === 0) {
|
|
58
|
+
return extensionName;
|
|
59
|
+
}
|
|
60
|
+
if (targetPath.length === 1) {
|
|
61
|
+
return `${pascalCase(targetPath[0].replaceAll("{", "").replaceAll("}", ""))}${extensionName}`;
|
|
62
|
+
}
|
|
63
|
+
const targetInfo = parseArmResourceInstancePath(targetPath);
|
|
64
|
+
if (!targetInfo || targetInfo.resourceType.types.length === 0)
|
|
65
|
+
return resourceName;
|
|
66
|
+
const types = targetInfo.resourceType.types;
|
|
67
|
+
return `${pascalCase(types[types.length - 1])}${extensionName}`;
|
|
68
|
+
}
|
|
69
|
+
return resourceName;
|
|
70
|
+
}
|
|
71
|
+
export function getDefaultLegacyResourceName(resourceModelName, httpOp) {
|
|
72
|
+
const pathInfo = parseArmResourceInstancePath(httpOp);
|
|
73
|
+
if (pathInfo !== undefined) {
|
|
74
|
+
let types = pathInfo.resourceType.types;
|
|
75
|
+
if (types.length > 1) {
|
|
76
|
+
types = types.slice(types.length - 2);
|
|
77
|
+
}
|
|
78
|
+
return types.flatMap((t) => pascalCase(t)).join("");
|
|
79
|
+
}
|
|
80
|
+
return resourceModelName;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=resource-name.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resource-name.js","sourceRoot":"","sources":["../../src/resource-name.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAC;AACvD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,4BAA4B,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAU1C,MAAM,CAAC,MAAM,CAAC,yBAAyB,EAAE,yBAAyB,CAAC,GAAG,WAAW,CAG/E,YAAY,CAAC,yBAAyB,CAAC,CAAC;AAE1C,MAAM,UAAU,iCAAiC,CAC/C,YAAmB,EACnB,YAAgC;IAEhC,OAAO,YAAY,KAAK,SAAS,IAAI,YAAY,CAAC,MAAM,GAAG,CAAC;QAC1D,CAAC,CAAC,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,YAAY,EAAE;QAC3C,CAAC,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,KAAK,EAAE,YAAY,EAAE,CAAC;AAC7C,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,UAAkC,EAClC,oBAA4B,EAC5B,gBAAgB,GAA6B,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,IAAI;IAElE,QAAQ,UAAU,CAAC,IAAI,EAAE,CAAC;QACxB,KAAK,UAAU,CAAC;QAChB,KAAK,SAAS;YACZ,OAAO,UAAU,CAAC,KAAK,CAAC;QAC1B,KAAK,OAAO;YACV,OAAO,gBAAgB,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC5C,KAAK,QAAQ;YACX,OAAO,UAAU,CAAC,KAAK;iBACpB,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,8BAA8B,CAAC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M,GAAG,CAAC,EAAE,CAAC;YACrB,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC;QACxC,CAAC;QACD,OAAO,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IACtD,CAAC;IACD,OAAO,iBAAiB,CAAC;AAC3B,CAAC"}
|
package/dist/src/resource.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { type ArrayModelType, type Enum, type EnumMember, type Interface, type Model, type ModelProperty, type Namespace, type Operation, type Program, type Type } from "@typespec/compiler";
|
|
2
|
+
import { type Version } from "@typespec/versioning";
|
|
2
3
|
import type { ArmFeatureFileOptions, ArmProviderNameValueDecorator, ArmResourceOperationsDecorator, ArmVirtualResourceDecorator, ExtensionResourceDecorator, FeatureFileDecorator, FeatureFileOptionsDecorator, FeatureFilesDecorator, IdentifiersDecorator, LocationResourceDecorator, ResourceBaseTypeDecorator, ResourceGroupResourceDecorator, SingletonDecorator, SubscriptionResourceDecorator, TenantResourceDecorator } from "../generated-defs/Azure.ResourceManager.js";
|
|
3
4
|
import type { ArmExternalTypeDecorator, CustomAzureResourceDecorator, CustomResourceOptions, FeatureDecorator, FeatureOptionsDecorator, FeaturesDecorator } from "../generated-defs/Azure.ResourceManager.Legacy.js";
|
|
4
5
|
import { type ArmResolvedOperationsForResource, type ArmResourceOperation, type ArmResourceOperations } from "./operations.js";
|
|
6
|
+
import { type ResourceNameExpression } from "./resource-name.js";
|
|
5
7
|
export type ArmResourceKind = "Tracked" | "Proxy" | "Extension" | "Virtual" | "Custom" | "BuiltIn" | "Generic";
|
|
6
8
|
/**
|
|
7
9
|
* The base details for all kinds of resources
|
|
@@ -58,21 +60,127 @@ export interface Provider {
|
|
|
58
60
|
/** non-resource operations in this provider */
|
|
59
61
|
providerOperations?: ArmResourceOperation[];
|
|
60
62
|
}
|
|
63
|
+
/** One ARM service namespace and exact version to resolve. */
|
|
64
|
+
export interface ArmServiceVersionSelection {
|
|
65
|
+
/** ARM service namespace to resolve. */
|
|
66
|
+
namespace: Namespace;
|
|
67
|
+
/** Exact version metadata registered for that namespace. */
|
|
68
|
+
version: Version;
|
|
69
|
+
}
|
|
70
|
+
export interface ResolveArmResourcesSingleServiceOptions {
|
|
71
|
+
/** Exact API version to project before resolving ARM metadata. */
|
|
72
|
+
version?: string;
|
|
73
|
+
/** Mutually exclusive with `version`. */
|
|
74
|
+
serviceVersions?: never;
|
|
75
|
+
/** Optional consumer-owned resolver for logical metadata names. */
|
|
76
|
+
nameResolver?: ArmMetadataNameResolver;
|
|
77
|
+
}
|
|
78
|
+
export interface ResolveArmResourcesMultiServiceOptions {
|
|
79
|
+
/** Mutually exclusive with `serviceVersions`. */
|
|
80
|
+
version?: never;
|
|
81
|
+
/** ARM service namespace/version selections to resolve into one provider result. */
|
|
82
|
+
serviceVersions: readonly ArmServiceVersionSelection[];
|
|
83
|
+
/** Optional consumer-owned resolver for logical metadata names. */
|
|
84
|
+
nameResolver?: ArmMetadataNameResolver;
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Options for resolving ARM resource metadata.
|
|
88
|
+
*
|
|
89
|
+
* @example Resolve one API version and customize logical names
|
|
90
|
+
*
|
|
91
|
+
* ```ts
|
|
92
|
+
* const provider = resolveArmResources(program, {
|
|
93
|
+
* version: "2025-01-01",
|
|
94
|
+
* nameResolver: ({ kind, type }) =>
|
|
95
|
+
* kind === "resource" || type === undefined ? undefined : getConsumerName(type),
|
|
96
|
+
* });
|
|
97
|
+
* ```
|
|
98
|
+
*
|
|
99
|
+
* @example Resolve independently versioned services into one provider
|
|
100
|
+
*
|
|
101
|
+
* ```ts
|
|
102
|
+
* const provider = resolveArmResources(program, {
|
|
103
|
+
* serviceVersions: [
|
|
104
|
+
* { namespace: computeNamespace, version: computeVersion },
|
|
105
|
+
* { namespace: diskNamespace, version: diskVersion },
|
|
106
|
+
* ],
|
|
107
|
+
* });
|
|
108
|
+
* ```
|
|
109
|
+
*/
|
|
110
|
+
export type ResolveArmResourcesOptions = ResolveArmResourcesSingleServiceOptions | ResolveArmResourcesMultiServiceOptions;
|
|
111
|
+
/**
|
|
112
|
+
* Logical ARM metadata name that can be customized by a consumer.
|
|
113
|
+
*
|
|
114
|
+
* These names are metadata only and do not change HTTP paths, serialized names, or ARM
|
|
115
|
+
* resource-type segments.
|
|
116
|
+
*/
|
|
117
|
+
export type ArmMetadataNameKind = ArmMetadataNameRequest["kind"];
|
|
118
|
+
/**
|
|
119
|
+
* Context supplied when resolving a logical ARM metadata name.
|
|
120
|
+
*
|
|
121
|
+
* `resource-model` resolves the projected TypeSpec model name used inside non-explicit ARM
|
|
122
|
+
* defaults. `resource` resolves the complete occurrence name afterward and has final precedence.
|
|
123
|
+
*/
|
|
124
|
+
interface ArmMetadataNameRequestBase {
|
|
125
|
+
/** The TypeSpec program being resolved. */
|
|
126
|
+
program: Program;
|
|
127
|
+
/** The selected API version, or undefined for the declaration view. */
|
|
128
|
+
version?: string;
|
|
129
|
+
/** The logical name to customize. */
|
|
130
|
+
defaultName: string;
|
|
131
|
+
}
|
|
132
|
+
interface ArmResourceNameRequestBase extends ArmMetadataNameRequestBase {
|
|
133
|
+
/** The canonical ARM resource type formatted as `${provider}/${types.join("/")}`. */
|
|
134
|
+
resourceType: string;
|
|
135
|
+
/**
|
|
136
|
+
* The instance path that distinguishes this resolved resource occurrence.
|
|
137
|
+
* Path parameters retain their HTTP metadata names, for example `{subscriptionId}`.
|
|
138
|
+
*/
|
|
139
|
+
resourceInstancePath: string;
|
|
140
|
+
}
|
|
141
|
+
export interface ArmResourceModelNameRequest extends ArmResourceNameRequestBase {
|
|
142
|
+
kind: "resource-model";
|
|
143
|
+
type: Model;
|
|
144
|
+
}
|
|
145
|
+
export interface ArmResourceNameRequest extends ArmResourceNameRequestBase {
|
|
146
|
+
kind: "resource";
|
|
147
|
+
/** Undefined when the resolved resource is synthetic. */
|
|
148
|
+
type: Model | undefined;
|
|
149
|
+
}
|
|
150
|
+
interface ArmOperationNameRequestBase extends ArmMetadataNameRequestBase {
|
|
151
|
+
/** The associated resource model when the operation belongs to a resolved resource. */
|
|
152
|
+
resourceModel?: Model;
|
|
153
|
+
resourceType?: string;
|
|
154
|
+
resourceInstancePath?: string;
|
|
155
|
+
}
|
|
156
|
+
export interface ArmOperationNameRequest extends ArmOperationNameRequestBase {
|
|
157
|
+
kind: "operation";
|
|
158
|
+
type: Operation;
|
|
159
|
+
}
|
|
160
|
+
export interface ArmOperationGroupNameRequest extends ArmOperationNameRequestBase {
|
|
161
|
+
kind: "operation-group";
|
|
162
|
+
type: Interface;
|
|
163
|
+
}
|
|
164
|
+
export type ArmMetadataNameRequest = ArmResourceModelNameRequest | ArmResourceNameRequest | ArmOperationNameRequest | ArmOperationGroupNameRequest;
|
|
165
|
+
/**
|
|
166
|
+
* Resolves a logical ARM metadata name without changing wire API metadata.
|
|
167
|
+
*
|
|
168
|
+
* Return undefined to preserve the default name. Empty names are rejected with a diagnostic.
|
|
169
|
+
*/
|
|
170
|
+
export type ArmMetadataNameResolver = (request: ArmMetadataNameRequest) => string | undefined;
|
|
61
171
|
export interface ResourcePathInfo {
|
|
62
172
|
/** The resource type (The actual resource type string will be "${provider}/${types.join("/")}) */
|
|
63
173
|
resourceType: ResourceType;
|
|
64
|
-
/** The path to the instance
|
|
174
|
+
/** The path to the resource instance, preserving named HTTP path parameters. */
|
|
65
175
|
resourceInstancePath: string;
|
|
66
176
|
}
|
|
67
177
|
export interface ResolvedResourceInfo {
|
|
68
178
|
/** The resource type (The actual resource type string will be "${provider}/${types.join("/")}) */
|
|
69
179
|
resourceType: ResourceType;
|
|
70
|
-
/** The path to the instance
|
|
180
|
+
/** The path to the resource instance, preserving named HTTP path parameters. */
|
|
71
181
|
resourceInstancePath: string;
|
|
72
182
|
/** The name of the resource at this instance path */
|
|
73
183
|
resourceName: string;
|
|
74
|
-
/** Whether the resource name was explicitly provided as a parameter */
|
|
75
|
-
resourceNameIsExplicit?: boolean;
|
|
76
184
|
}
|
|
77
185
|
export type ArmResourceScope = "Tenant" | "Scope" | "Subscription" | "ResourceGroup" | "ManagementGroup" | "ServiceGroup" | "ExternalResource";
|
|
78
186
|
interface ResolvedResourceOperations {
|
|
@@ -81,23 +189,24 @@ interface ResolvedResourceOperations {
|
|
|
81
189
|
associatedOperations?: ArmResourceOperation[];
|
|
82
190
|
/** The name of the resource at this instance path */
|
|
83
191
|
resourceName: string;
|
|
84
|
-
|
|
85
|
-
resourceNameIsExplicit
|
|
192
|
+
resourceNameExpression: ResourceNameExpression;
|
|
193
|
+
resourceNameIsExplicit: boolean;
|
|
86
194
|
/** The resource type (The actual resource type string will be "${provider}/${types.join("/")}) */
|
|
87
195
|
resourceType: ResourceType;
|
|
88
|
-
/** The path to the instance
|
|
196
|
+
/** The path to the resource instance, preserving named HTTP path parameters. */
|
|
89
197
|
resourceInstancePath: string;
|
|
90
198
|
/** The parent of this resource */
|
|
91
199
|
parent?: ResolvedResource;
|
|
92
200
|
/** The scope of this resource */
|
|
93
201
|
scope?: ArmResourceScope;
|
|
94
202
|
}
|
|
203
|
+
export type ResolvedResourceKind = "Tracked" | "Proxy";
|
|
95
204
|
/** Resolved operations, including operations for non-arm resources */
|
|
96
205
|
export interface ResolvedResource {
|
|
97
206
|
/** The model type for the resource */
|
|
98
207
|
type: Model;
|
|
99
|
-
/** The kind of resource
|
|
100
|
-
kind:
|
|
208
|
+
/** The public kind of resource. Non-tracked resources are presented as proxy resources. */
|
|
209
|
+
kind: ResolvedResourceKind;
|
|
101
210
|
/** The provider namespace */
|
|
102
211
|
providerNamespace: string;
|
|
103
212
|
/** The lifecycle and action operations using this resourceInstancePath (or the parent path) */
|
|
@@ -108,7 +217,7 @@ export interface ResolvedResource {
|
|
|
108
217
|
resourceName: string;
|
|
109
218
|
/** The resource type (The actual resource type string will be "${provider}/${types.join("/")}) */
|
|
110
219
|
resourceType: ResourceType;
|
|
111
|
-
/** The path to the instance
|
|
220
|
+
/** The path to the resource instance, preserving named HTTP path parameters. */
|
|
112
221
|
resourceInstancePath: string;
|
|
113
222
|
/** The parent of this resource */
|
|
114
223
|
parent?: ResolvedResource;
|
|
@@ -170,7 +279,15 @@ export declare function isCustomAzureResource(program: Program, target: Model):
|
|
|
170
279
|
export declare function getArmResources(program: Program): ArmResourceDetails[];
|
|
171
280
|
export declare const getResolvedResources: (program: Program, type: Namespace) => Provider | undefined, setResolvedResources: (program: Program, type: Namespace, value: Provider) => void;
|
|
172
281
|
export declare function getPublicResourceKind(typespecType: Model): "Tracked" | "Proxy" | "Extension" | "Other" | undefined;
|
|
173
|
-
|
|
282
|
+
/**
|
|
283
|
+
* Resolves ARM resources and operations.
|
|
284
|
+
*
|
|
285
|
+
* With no options, this returns the multi-version declaration view and preserves the original
|
|
286
|
+
* resolver behavior. A single exact API version or several service namespace/version selections
|
|
287
|
+
* project the returned TypeSpec references with `@typespec/versioning` to reflect availability,
|
|
288
|
+
* renames, and type changes.
|
|
289
|
+
*/
|
|
290
|
+
export declare function resolveArmResources(program: Program, options?: ResolveArmResourcesOptions): Provider;
|
|
174
291
|
export declare function parseArmResourceInstancePath(path: string): ResourcePathInfo | undefined;
|
|
175
292
|
export declare function isResourceOperationMatch(source: {
|
|
176
293
|
resourceType: ResourceType;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../src/resource.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,cAAc,EAGnB,KAAK,IAAI,EACT,KAAK,UAAU,EAIf,KAAK,SAAS,EAOd,KAAK,KAAK,EACV,KAAK,aAAa,EAClB,KAAK,SAAS,
|
|
1
|
+
{"version":3,"file":"resource.d.ts","sourceRoot":"","sources":["../../src/resource.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,KAAK,cAAc,EAGnB,KAAK,IAAI,EACT,KAA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