@azure-tools/typespec-azure-resource-manager 0.45.0-dev.0 → 0.45.0-dev.1
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 -1
- package/dist/generated-defs/Azure.ResourceManager.CommonTypes.Private.d.ts +24 -0
- package/dist/generated-defs/Azure.ResourceManager.CommonTypes.Private.d.ts.map +1 -0
- package/dist/generated-defs/Azure.ResourceManager.CommonTypes.Private.js +2 -0
- package/dist/generated-defs/Azure.ResourceManager.CommonTypes.Private.js.map +1 -0
- package/dist/generated-defs/Azure.ResourceManager.Private.d.ts +86 -0
- package/dist/generated-defs/Azure.ResourceManager.Private.d.ts.map +1 -0
- package/dist/generated-defs/Azure.ResourceManager.Private.js +2 -0
- package/dist/generated-defs/Azure.ResourceManager.Private.js.map +1 -0
- package/dist/generated-defs/Azure.ResourceManager.d.ts +181 -0
- package/dist/generated-defs/Azure.ResourceManager.d.ts.map +1 -0
- package/dist/generated-defs/Azure.ResourceManager.js +2 -0
- package/dist/generated-defs/Azure.ResourceManager.js.map +1 -0
- package/dist/generated-defs/Azure.ResourceManager.ts-test.d.ts +2 -0
- package/dist/generated-defs/Azure.ResourceManager.ts-test.d.ts.map +1 -0
- package/dist/generated-defs/Azure.ResourceManager.ts-test.js +27 -0
- package/dist/generated-defs/Azure.ResourceManager.ts-test.js.map +1 -0
- package/dist/src/common-types.d.ts +3 -2
- package/dist/src/common-types.d.ts.map +1 -1
- package/dist/src/common-types.js +3 -2
- package/dist/src/common-types.js.map +1 -1
- package/dist/src/commontypes.private.decorators.d.ts +5 -9
- package/dist/src/commontypes.private.decorators.d.ts.map +1 -1
- package/dist/src/commontypes.private.decorators.js +8 -6
- package/dist/src/commontypes.private.decorators.js.map +1 -1
- package/dist/src/index.d.ts +1 -2
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +1 -2
- package/dist/src/index.js.map +1 -1
- package/dist/src/namespace.d.ts +5 -4
- package/dist/src/namespace.d.ts.map +1 -1
- package/dist/src/namespace.js +6 -6
- package/dist/src/namespace.js.map +1 -1
- package/dist/src/operations.d.ts +8 -7
- package/dist/src/operations.d.ts.map +1 -1
- package/dist/src/operations.js +14 -14
- package/dist/src/operations.js.map +1 -1
- package/dist/src/private.decorators.d.ts +13 -13
- package/dist/src/private.decorators.d.ts.map +1 -1
- package/dist/src/private.decorators.js +26 -24
- package/dist/src/private.decorators.js.map +1 -1
- package/dist/src/resource.d.ts +12 -11
- package/dist/src/resource.d.ts.map +1 -1
- package/dist/src/resource.js +20 -20
- package/dist/src/resource.js.map +1 -1
- package/lib/decorators.tsp +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type { DecoratorContext, Enum, Model, ModelProperty, Union } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* Marks an enum as representing the valid `common-types` versions.
|
|
4
|
+
*/
|
|
5
|
+
export type ArmCommonTypesVersionsDecorator = (context: DecoratorContext, target: Enum) => void;
|
|
6
|
+
/**
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* @param definitionName Definition name
|
|
11
|
+
* @param version Azure Resource Manager Version
|
|
12
|
+
* @param referenceFile Reference file
|
|
13
|
+
*/
|
|
14
|
+
export type ArmCommonParameterDecorator = (context: DecoratorContext, target: ModelProperty, definitionName?: string, version?: unknown | unknown | string, referenceFile?: string) => void;
|
|
15
|
+
/**
|
|
16
|
+
*
|
|
17
|
+
*
|
|
18
|
+
*
|
|
19
|
+
* @param definitionName Definition name
|
|
20
|
+
* @param version Azure Resource Manager Version
|
|
21
|
+
* @param referenceFile Reference file
|
|
22
|
+
*/
|
|
23
|
+
export type ArmCommonDefinitionDecorator = (context: DecoratorContext, target: Model | Enum | Union, definitionName?: string, version?: unknown | unknown | string, referenceFile?: string) => void;
|
|
24
|
+
//# sourceMappingURL=Azure.ResourceManager.CommonTypes.Private.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.CommonTypes.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.CommonTypes.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE9F;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,IAAI,KAAK,IAAI,CAAC;AAEhG;;;;;;;GAOG;AACH,MAAM,MAAM,2BAA2B,GAAG,CACxC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,EACpC,aAAa,CAAC,EAAE,MAAM,KACnB,IAAI,CAAC;AAEV;;;;;;;GAOG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,GAAG,IAAI,GAAG,KAAK,EAC5B,cAAc,CAAC,EAAE,MAAM,EACvB,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,MAAM,EACpC,aAAa,CAAC,EAAE,MAAM,KACnB,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.CommonTypes.Private.js","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.CommonTypes.Private.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { DecoratorContext, Model, ModelProperty, Operation, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* @param propertyName Name of the property to omit
|
|
7
|
+
*/
|
|
8
|
+
export type ResourceBaseParametersOfDecorator = (context: DecoratorContext, target: Model, propertyName: Model) => void;
|
|
9
|
+
/**
|
|
10
|
+
*
|
|
11
|
+
*
|
|
12
|
+
*
|
|
13
|
+
* @param values Values
|
|
14
|
+
*/
|
|
15
|
+
export type ResourceParameterBaseForDecorator = (context: DecoratorContext, target: ModelProperty, values: Type) => void;
|
|
16
|
+
/**
|
|
17
|
+
* This decorator is used to identify Azure Resource Manager resource. In generated
|
|
18
|
+
* swagger definition, it will be marked with `x-ms-azure-resource`.
|
|
19
|
+
*
|
|
20
|
+
* It is *not* meant to be used directly by a spec author,
|
|
21
|
+
*/
|
|
22
|
+
export type AzureResourceBaseDecorator = (context: DecoratorContext, target: Model) => void;
|
|
23
|
+
/**
|
|
24
|
+
* Please DO NOT USE in RestAPI specs.
|
|
25
|
+
* Internal decorator that deprecated direct usage of `x-ms-client-flatten` OpenAPI extension.
|
|
26
|
+
* It will programatically enabled/disable client flattening with
|
|
27
|
+
*
|
|
28
|
+
* @flattenProperty with autorest
|
|
29
|
+
* emitter flags to maintain compatibility in swagger.
|
|
30
|
+
*/
|
|
31
|
+
export type ConditionalClientFlattenDecorator = (context: DecoratorContext, target: ModelProperty) => void;
|
|
32
|
+
/**
|
|
33
|
+
*
|
|
34
|
+
*
|
|
35
|
+
*
|
|
36
|
+
* @param resource Resource model
|
|
37
|
+
*/
|
|
38
|
+
export type AssignProviderNameValueDecorator = (context: DecoratorContext, target: ModelProperty, resource: Model) => void;
|
|
39
|
+
/**
|
|
40
|
+
* Update the Azure Resource Manager provider namespace for a given entity.
|
|
41
|
+
*/
|
|
42
|
+
export type ArmUpdateProviderNamespaceDecorator = (context: DecoratorContext, target: Operation) => void;
|
|
43
|
+
/**
|
|
44
|
+
* This decorator is used to identify Azure Resource Manager resource types and extract their
|
|
45
|
+
* metadata. It is *not* meant to be used directly by a spec author, it instead
|
|
46
|
+
* gets implicitly applied when the spec author defines a model type in this form:
|
|
47
|
+
*
|
|
48
|
+
* `model Server is TrackedResource<ServerProperties>;`
|
|
49
|
+
*
|
|
50
|
+
* The `TrackedResource<Resource>` type (and other associated base types) use the
|
|
51
|
+
* `@armResource` decorator, so it also gets applied to the type which absorbs the
|
|
52
|
+
* `TrackedResource<Resource>` definition by using the `is` keyword.
|
|
53
|
+
*
|
|
54
|
+
* @param properties Azure Resource Manager resource properties
|
|
55
|
+
*/
|
|
56
|
+
export type ArmResourceInternalDecorator = (context: DecoratorContext, target: Model, properties: Model) => void;
|
|
57
|
+
/**
|
|
58
|
+
* Provides default name decoration on resource name property with
|
|
59
|
+
* camelcased and pluralized key and segment name
|
|
60
|
+
*/
|
|
61
|
+
export type DefaultResourceKeySegmentNameDecorator = (context: DecoratorContext, target: ModelProperty, armResource: Model, keyName: string, segment: string) => void;
|
|
62
|
+
/**
|
|
63
|
+
* Provides strict contraint type check.
|
|
64
|
+
*
|
|
65
|
+
* Due to TypeSpec language and all optional properties of `Foundations.Resource`,
|
|
66
|
+
* the `Resource extends Foundations.Resource` on many of the standard ARM templates is
|
|
67
|
+
* essentially equal to `Resource extends {}` and does not enforce the containt.
|
|
68
|
+
*
|
|
69
|
+
* Note, this is intended for internal use only for now.
|
|
70
|
+
*/
|
|
71
|
+
export type EnforceConstraintDecorator = (context: DecoratorContext, target: Operation | Model, sourceType: Model, constraintType: Model) => void;
|
|
72
|
+
/**
|
|
73
|
+
* Marks the operation as being a collection action
|
|
74
|
+
*
|
|
75
|
+
* @param resourceType Resource
|
|
76
|
+
* @param parentTypeName : Parent type name.
|
|
77
|
+
* @param parentFriendlyTypeName Friendly name for parent.
|
|
78
|
+
* @param applyOperationRename If true, apply both doc and operation name update
|
|
79
|
+
*/
|
|
80
|
+
export type ArmRenameListByOperationDecorator = (context: DecoratorContext, target: Operation, resourceType: Model, parentTypeName?: string, parentFriendlyTypeName?: string, applyOperationRename?: boolean) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Please DO NOT USE in RestAPI specs.
|
|
83
|
+
* This decorator is used to adjust optionality on ARM Resource's `properties` field for brownfield service conversion.
|
|
84
|
+
*/
|
|
85
|
+
export type ArmResourcePropertiesOptionalityDecorator = (context: DecoratorContext, target: ModelProperty, isOptional: boolean) => void;
|
|
86
|
+
//# sourceMappingURL=Azure.ResourceManager.Private.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.Private.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Private.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,KAAK,EAAE,aAAa,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAElG;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,YAAY,EAAE,KAAK,KAChB,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,IAAI,KACT,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,KAAK,KAAK,IAAI,CAAC;AAgB5F;;;;;;;GAOG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,KAClB,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,gCAAgC,GAAG,CAC7C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,QAAQ,EAAE,KAAK,KACZ,IAAI,CAAC;AAEV;;GAEG;AACH,MAAM,MAAM,mCAAmC,GAAG,CAChD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,KACd,IAAI,CAAC;AAEV;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,4BAA4B,GAAG,CACzC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,UAAU,EAAE,KAAK,KACd,IAAI,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,sCAAsC,GAAG,CACnD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,WAAW,EAAE,KAAK,EAClB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,KACZ,IAAI,CAAC;AAEV;;;;;;;;GAQG;AACH,MAAM,MAAM,0BAA0B,GAAG,CACvC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,GAAG,KAAK,EACzB,UAAU,EAAE,KAAK,EACjB,cAAc,EAAE,KAAK,KAClB,IAAI,CAAC;AAEV;;;;;;;GAOG;AACH,MAAM,MAAM,iCAAiC,GAAG,CAC9C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,YAAY,EAAE,KAAK,EACnB,cAAc,CAAC,EAAE,MAAM,EACvB,sBAAsB,CAAC,EAAE,MAAM,EAC/B,oBAAoB,CAAC,EAAE,OAAO,KAC3B,IAAI,CAAC;AAEV;;;GAGG;AACH,MAAM,MAAM,yCAAyC,GAAG,CACtD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,aAAa,EACrB,UAAU,EAAE,OAAO,KAChB,IAAI,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.Private.js","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.Private.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
import type { DecoratorContext, EnumMember, Interface, Model, Namespace, Operation, Type } from "@typespec/compiler";
|
|
2
|
+
/**
|
|
3
|
+
* Marks the operation as being a collection action
|
|
4
|
+
*/
|
|
5
|
+
export type ArmResourceCollectionActionDecorator = (context: DecoratorContext, target: Operation) => void;
|
|
6
|
+
/**
|
|
7
|
+
* `@armResourceType` sets the value fo the decorated string
|
|
8
|
+
* property to the type of the Azure Resource Manager resource.
|
|
9
|
+
*
|
|
10
|
+
* @param resource The resource to get the type of
|
|
11
|
+
*/
|
|
12
|
+
export type ArmProviderNameValueDecorator = (context: DecoratorContext, target: Operation) => void;
|
|
13
|
+
/**
|
|
14
|
+
* `@armProviderNamespace` sets the Azure Resource Manager provider name. It will default to use the
|
|
15
|
+
* Namespace element value unless an override value is specified.
|
|
16
|
+
*
|
|
17
|
+
* @example
|
|
18
|
+
* ```typespec
|
|
19
|
+
* @armProviderNamespace
|
|
20
|
+
* namespace Microsoft.Contoso;
|
|
21
|
+
* ```
|
|
22
|
+
*
|
|
23
|
+
* ```typespec
|
|
24
|
+
* @armProviderNamespace("Microsoft.Contoso")
|
|
25
|
+
* namespace Microsoft.ContosoService;
|
|
26
|
+
* ```
|
|
27
|
+
* @param providerNamespace Provider namespace
|
|
28
|
+
* @param libraryNamespaces a library namespace containing types for this namespace
|
|
29
|
+
*/
|
|
30
|
+
export type ArmProviderNamespaceDecorator = (context: DecoratorContext, target: Namespace, providerNamespace?: string) => void;
|
|
31
|
+
/**
|
|
32
|
+
* Declare the Azure Resource Manager library namespaces used in this provider.
|
|
33
|
+
* This allows sharing Azure Resource Manager resource types across specifications
|
|
34
|
+
*
|
|
35
|
+
* @param namespaces The namespaces of Azure Resource Manager libraries used in this provider
|
|
36
|
+
*/
|
|
37
|
+
export type UseLibraryNamespaceDecorator = (context: DecoratorContext, target: Namespace, ...namespaces: Namespace[]) => void;
|
|
38
|
+
/**
|
|
39
|
+
* `@armLibraryNamespace` designates a namespace as containign Azure Resource Manager Provider information.
|
|
40
|
+
*
|
|
41
|
+
* @example
|
|
42
|
+
* ```typespec
|
|
43
|
+
* @armLibraryNamespace
|
|
44
|
+
* namespace Microsoft.Contoso;
|
|
45
|
+
* ```
|
|
46
|
+
*/
|
|
47
|
+
export type ArmLibraryNamespaceDecorator = (context: DecoratorContext, target: Namespace) => void;
|
|
48
|
+
/**
|
|
49
|
+
* `@singleton` marks an Azure Resource Manager resource model as a singleton resource.
|
|
50
|
+
*
|
|
51
|
+
* Singleton resources only have a single instance with a fixed key name.
|
|
52
|
+
* `.../providers/Microsoft.Contoso/monthlyReports/default`
|
|
53
|
+
*
|
|
54
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
55
|
+
*
|
|
56
|
+
* @param keyValue The name of the singleton resource. Default name is "default".
|
|
57
|
+
*/
|
|
58
|
+
export type SingletonDecorator = (context: DecoratorContext, target: Model, keyValue?: string | "default") => void;
|
|
59
|
+
/**
|
|
60
|
+
* `@tenantResource` marks an Azure Resource Manager resource model as a Tenant resource/Root resource/Top-Level resource.
|
|
61
|
+
*
|
|
62
|
+
* Tenant resources have REST API paths like:
|
|
63
|
+
* `/provider/Microsoft.Contoso/FooResources`
|
|
64
|
+
*
|
|
65
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
66
|
+
*/
|
|
67
|
+
export type TenantResourceDecorator = (context: DecoratorContext, target: Model) => void;
|
|
68
|
+
/**
|
|
69
|
+
* `@subscriptionResource` marks an Azure Resource Manager resource model as a subscription resource.
|
|
70
|
+
*
|
|
71
|
+
* Subscription resources have REST API paths like:
|
|
72
|
+
* `/subscription/{id}/providers/Microsoft.Contoso/employees`
|
|
73
|
+
*
|
|
74
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
75
|
+
*/
|
|
76
|
+
export type SubscriptionResourceDecorator = (context: DecoratorContext, target: Model) => void;
|
|
77
|
+
/**
|
|
78
|
+
* `@locationResource` marks an Azure Resource Manager resource model as a location based resource.
|
|
79
|
+
*
|
|
80
|
+
* Location based resources have REST API paths like
|
|
81
|
+
* `/subscriptions/{subscriptionId}/locations/{location}/providers/Microsoft.Contoso/employees`
|
|
82
|
+
*
|
|
83
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
84
|
+
*/
|
|
85
|
+
export type LocationResourceDecorator = (context: DecoratorContext, target: Model) => void;
|
|
86
|
+
/**
|
|
87
|
+
* `@resourceGroupResource` marks an Azure Resource Manager resource model as a resource group level resource.
|
|
88
|
+
* This is the default option for Azure Resource Manager resources. It is provided for symmetry and clarity, and
|
|
89
|
+
* you typically do not need to specify it.
|
|
90
|
+
*
|
|
91
|
+
* `/subscription/{id}/resourcegroups/{rg}/providers/Microsoft.Contoso/employees`
|
|
92
|
+
*
|
|
93
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
94
|
+
*/
|
|
95
|
+
export type ResourceGroupResourceDecorator = (context: DecoratorContext, target: Model) => void;
|
|
96
|
+
/**
|
|
97
|
+
* `@extensionResource` marks an Azure Resource Manager resource model as an Extension resource.
|
|
98
|
+
* Extension resource extends other resource types. URL path is appended
|
|
99
|
+
* to another segment {scope} which refers to another Resource URL.
|
|
100
|
+
*
|
|
101
|
+
* `{resourceUri}/providers/Microsoft.Contoso/accessPermissions`
|
|
102
|
+
*
|
|
103
|
+
* See more details on [different Azure Resource Manager resource type here.](https://azure.github.io/typespec-azure/docs/howtos/ARM/resource-type)
|
|
104
|
+
*/
|
|
105
|
+
export type ExtensionResourceDecorator = (context: DecoratorContext, target: Model) => void;
|
|
106
|
+
/**
|
|
107
|
+
*
|
|
108
|
+
*
|
|
109
|
+
*
|
|
110
|
+
* @param resourceType Resource model
|
|
111
|
+
*/
|
|
112
|
+
export type ArmResourceActionDecorator = (context: DecoratorContext, target: Operation, resourceType: Model) => void;
|
|
113
|
+
/**
|
|
114
|
+
*
|
|
115
|
+
*
|
|
116
|
+
*
|
|
117
|
+
* @param resourceType Resource model
|
|
118
|
+
*/
|
|
119
|
+
export type ArmResourceCreateOrUpdateDecorator = (context: DecoratorContext, target: Operation, resourceType: Model) => void;
|
|
120
|
+
/**
|
|
121
|
+
*
|
|
122
|
+
*
|
|
123
|
+
*
|
|
124
|
+
* @param resourceType Resource model
|
|
125
|
+
*/
|
|
126
|
+
export type ArmResourceReadDecorator = (context: DecoratorContext, target: Operation, resourceType: Model) => void;
|
|
127
|
+
/**
|
|
128
|
+
*
|
|
129
|
+
*
|
|
130
|
+
*
|
|
131
|
+
* @param resourceType Resource model
|
|
132
|
+
*/
|
|
133
|
+
export type ArmResourceUpdateDecorator = (context: DecoratorContext, target: Operation, resourceType: Model) => void;
|
|
134
|
+
/**
|
|
135
|
+
*
|
|
136
|
+
*
|
|
137
|
+
*
|
|
138
|
+
* @param resourceType Resource model
|
|
139
|
+
*/
|
|
140
|
+
export type ArmResourceDeleteDecorator = (context: DecoratorContext, target: Operation, resourceType: Model) => void;
|
|
141
|
+
/**
|
|
142
|
+
*
|
|
143
|
+
*
|
|
144
|
+
*
|
|
145
|
+
* @param resourceType Resource model
|
|
146
|
+
*/
|
|
147
|
+
export type ArmResourceListDecorator = (context: DecoratorContext, target: Operation, resourceType: Model) => void;
|
|
148
|
+
/**
|
|
149
|
+
* This decorator is used to identify interfaces containing resource operations.
|
|
150
|
+
* When applied, it marks the interface with the `@autoRoute` decorator so that
|
|
151
|
+
* all of its contained operations will have their routes generated
|
|
152
|
+
* automatically.
|
|
153
|
+
*
|
|
154
|
+
* It also adds a `@tag` decorator bearing the name of the interface so that all
|
|
155
|
+
* of the operations will be grouped based on the interface name in generated
|
|
156
|
+
* clients.
|
|
157
|
+
*
|
|
158
|
+
* @param _ DEPRECATED
|
|
159
|
+
*/
|
|
160
|
+
export type ArmResourceOperationsDecorator = (context: DecoratorContext, target: Interface, _?: Type) => void;
|
|
161
|
+
/**
|
|
162
|
+
* This decorator is used either on a namespace or a version enum value to indicate
|
|
163
|
+
* the version of the Azure Resource Manager common-types to use for refs in emitted Swagger files.
|
|
164
|
+
*
|
|
165
|
+
* @param version The Azure.ResourceManager.CommonTypes.Versions for the desired common-types version or an equivalent string value like "v5".
|
|
166
|
+
*/
|
|
167
|
+
export type ArmCommonTypesVersionDecorator = (context: DecoratorContext, target: Namespace | EnumMember, version: string | unknown) => void;
|
|
168
|
+
/**
|
|
169
|
+
* This decorator is used on Azure Resource Manager resources that are not based on
|
|
170
|
+
* Azure.ResourceManager common types.
|
|
171
|
+
*
|
|
172
|
+
* @param propertiesType : The type of the resource properties.
|
|
173
|
+
*/
|
|
174
|
+
export type ArmVirtualResourceDecorator = (context: DecoratorContext, target: Model) => void;
|
|
175
|
+
/**
|
|
176
|
+
* This decorator sets the base type of the given resource.
|
|
177
|
+
*
|
|
178
|
+
* @param baseType The built-in parent of the resource, this can be "Tenant", "Subscription", "ResourceGroup", "Location", or "Extension"
|
|
179
|
+
*/
|
|
180
|
+
export type ResourceBaseTypeDecorator = (context: DecoratorContext, target: Model, baseType: Type) => void;
|
|
181
|
+
//# sourceMappingURL=Azure.ResourceManager.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,gBAAgB,EAChB,UAAU,EACV,SAAS,EACT,KAAK,EACL,SAAS,EACT,SAAS,EACT,IAAI,EACL,MAAM,oBAAoB,CAAC;AAE5B;;GAEG;AACH,MAAM,MAAM,oCAAoC,GAAG,CACjD,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,KACd,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAAC,OAAO,EAAE,gBAAgB,EAAE,MAAM,EAAE,SAAS,KAAK,IAAI,CAAC;AAEnG;;;;;;;;;;;;;;;;GAgBG;AACH,MAAM,MAAM,6BAA6B,GAAG,CAC1C,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,SAAS,EACjB,iBAAiB,CAAC,EAAE,MAAM,KACvB,IAAI,CAAC;AAEV;;;;;GAKG;AACH,MAAM,MAAM,4B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
+
{"version":3,"file":"Azure.ResourceManager.js","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.ts-test.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.ts-test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/** An error here would mean that the decorator is not exported or doesn't have the right name. */
|
|
2
|
+
import { $armCommonTypesVersion, $armLibraryNamespace, $armProviderNameValue, $armProviderNamespace, $armResourceAction, $armResourceCollectionAction, $armResourceCreateOrUpdate, $armResourceDelete, $armResourceList, $armResourceOperations, $armResourceRead, $armResourceUpdate, $armVirtualResource, $extensionResource, $locationResource, $resourceBaseType, $resourceGroupResource, $singleton, $subscriptionResource, $tenantResource, $useLibraryNamespace, } from "@azure-tools/typespec-azure-resource-manager";
|
|
3
|
+
/** An error here would mean that the exported decorator is not using the same signature. Make sure to have export const $decName: DecNameDecorator = (...) => ... */
|
|
4
|
+
const _ = {
|
|
5
|
+
$armResourceCollectionAction,
|
|
6
|
+
$armProviderNameValue,
|
|
7
|
+
$armProviderNamespace,
|
|
8
|
+
$useLibraryNamespace,
|
|
9
|
+
$armLibraryNamespace,
|
|
10
|
+
$singleton,
|
|
11
|
+
$tenantResource,
|
|
12
|
+
$subscriptionResource,
|
|
13
|
+
$locationResource,
|
|
14
|
+
$resourceGroupResource,
|
|
15
|
+
$extensionResource,
|
|
16
|
+
$armResourceAction,
|
|
17
|
+
$armResourceCreateOrUpdate,
|
|
18
|
+
$armResourceRead,
|
|
19
|
+
$armResourceUpdate,
|
|
20
|
+
$armResourceDelete,
|
|
21
|
+
$armResourceList,
|
|
22
|
+
$armResourceOperations,
|
|
23
|
+
$armCommonTypesVersion,
|
|
24
|
+
$armVirtualResource,
|
|
25
|
+
$resourceBaseType,
|
|
26
|
+
};
|
|
27
|
+
//# sourceMappingURL=Azure.ResourceManager.ts-test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.ts-test.js","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.ts-test.ts"],"names":[],"mappings":"AAAA,kGAAkG;AAClG,OAAO,EACL,sBAAsB,EACtB,oBAAoB,EACpB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,EAClB,4BAA4B,EAC5B,0BAA0B,EAC1B,kBAAkB,EAClB,gBAAgB,EAChB,sBAAsB,EACtB,gBAAgB,EAChB,kBAAkB,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,sBAAsB,EACtB,UAAU,EACV,qBAAqB,EACrB,eAAe,EACf,oBAAoB,GACrB,MAAM,8CAA8C,CAAC;AAiDtD,qKAAqK;AACrK,MAAM,CAAC,GAAe;IACpB,4BAA4B;IAC5B,qBAAqB;IACrB,qBAAqB;IACrB,oBAAoB;IACpB,oBAAoB;IACpB,UAAU;IACV,eAAe;IACf,qBAAqB;IACrB,iBAAiB;IACjB,sBAAsB;IACtB,kBAAkB;IAClB,kBAAkB;IAClB,0BAA0B;IAC1B,gBAAgB;IAChB,kBAAkB;IAClB,kBAAkB;IAClB,gBAAgB;IAChB,sBAAsB;IACtB,sBAAsB;IACtB,mBAAmB;IACnB,iBAAiB;CAClB,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Diagnostic, Enum, EnumMember, Model, ModelProperty, Namespace, Program, Service, Type, Union } from "@typespec/compiler";
|
|
2
|
+
import { ArmCommonTypesVersionDecorator } from "../generated-defs/Azure.ResourceManager.js";
|
|
2
3
|
import { ArmCommonTypeRecord } from "./commontypes.private.decorators.js";
|
|
3
4
|
export interface ArmCommonTypeVersions {
|
|
4
5
|
type: Enum;
|
|
@@ -17,7 +18,7 @@ export declare function isArmCommonType(entity: Type): boolean;
|
|
|
17
18
|
* @param {DecoratorContext} context DecoratorContext object
|
|
18
19
|
* @param {type} entity Target of the decorator. Must be `Namespace` or `EnumMember` type
|
|
19
20
|
*/
|
|
20
|
-
export declare
|
|
21
|
+
export declare const $armCommonTypesVersion: ArmCommonTypesVersionDecorator;
|
|
21
22
|
/**
|
|
22
23
|
* Returns the ARM common-types version used by the service.
|
|
23
24
|
* @param {DecoratorContext} context DecoratorContext object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../../src/common-types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"common-types.d.ts","sourceRoot":"","sources":["../../src/common-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,UAAU,EACV,IAAI,EACJ,UAAU,EACV,KAAK,EACL,aAAa,EACb,SAAS,EACT,OAAO,EACP,OAAO,EACP,IAAI,EACJ,KAAK,EAEN,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAE,8BAA8B,EAAE,MAAM,4CAA4C,CAAC;AAC5F,OAAO,EACL,mBAAmB,EAGpB,MAAM,qCAAqC,CAAC;AAI7C,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,IAAI,CAAC;IACX,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,OAAO,GAAG,qBAAqB,CAKjF;AAED,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,UAAU,EAC9B,UAAU,EAAE,MAAM,GACjB,CAAC,UAAU,GAAG,SAAS,EAAE,SAAS,UAAU,EAAE,CAAC,CAuBjD;AAED;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,IAAI,GAAG,OAAO,CAQrD;AAED;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,EAAE,8BAiCpC,CAAC;AAEF;;;;GAIG;AACH,wBAAgB,wBAAwB,CACtC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,SAAS,GAAG,UAAU,GAC7B,MAAM,GAAG,SAAS,CAEpB;AAED;;GAEG;AACH,wBAAgB,0BAA0B,CACxC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,KAAK,EAC5C,MAAM,EAAE,+BAA+B,GACtC,MAAM,GAAG,SAAS,CAWpB;AAOD,MAAM,WAAW,+BAA+B;IAC9C,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAC;CAC3B;AAED,wBAAgB,uBAAuB,CACrC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,KAAK,EAC5C,MAAM,EAAE,+BAA+B,GACtC,CAAC,mBAAmB,GAAG,SAAS,EAAE,SAAS,UAAU,EAAE,CAAC,CAgD1D"}
|
package/dist/src/common-types.js
CHANGED
|
@@ -47,7 +47,8 @@ export function isArmCommonType(entity) {
|
|
|
47
47
|
* @param {DecoratorContext} context DecoratorContext object
|
|
48
48
|
* @param {type} entity Target of the decorator. Must be `Namespace` or `EnumMember` type
|
|
49
49
|
*/
|
|
50
|
-
export
|
|
50
|
+
export const $armCommonTypesVersion = (context, entity, version // TODO: switch to precise type when tspd supports it: string | EnumValue
|
|
51
|
+
) => {
|
|
51
52
|
// try convert string to EnumMember
|
|
52
53
|
let versionEnum;
|
|
53
54
|
if (typeof version === "string") {
|
|
@@ -71,7 +72,7 @@ export function $armCommonTypesVersion(context, entity, version) {
|
|
|
71
72
|
}
|
|
72
73
|
// Add @useDependency on version enum members or on unversioned namespace
|
|
73
74
|
context.call($useDependency, entity, versionEnum);
|
|
74
|
-
}
|
|
75
|
+
};
|
|
75
76
|
/**
|
|
76
77
|
* Returns the ARM common-types version used by the service.
|
|
77
78
|
* @param {DecoratorContext} context DecoratorContext object
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common-types.js","sourceRoot":"","sources":["../../src/common-types.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"common-types.js","sourceRoot":"","sources":["../../src/common-types.ts"],"names":[],"mappings":"AAAA,OAAO,EAYL,qBAAqB,GACtB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElE,OAAO,EAEL,4BAA4B,EAC5B,oBAAoB,GACrB,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAO1C,MAAM,UAAU,yBAAyB,CAAC,OAAgB;IACxD,2EAA2E;IAC3E,6DAA6D;IAC7D,MAAM,GAAG,GAAmB,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC;IAClF,OAAO,GAAG,EAAE,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,KAAY,CAAC;AAC3C,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,OAAgB,EAChB,MAA8B,EAC9B,UAAkB;IAElB,MAAM,qBAAqB,GAAG,OAAO,CAAC,oBAAoB,CACxD,8CAA8C,UAAU,EAAE,CAC3D,CAAC,CAAC,CAAe,CAAC;IACnB,IAAI,qBAAqB,KAAK,SAAS,EAAE,CAAC;QACxC,OAAO;YACL,SAAS;YACT;gBACE,gBAAgB,CAAC;oBACf,IAAI,EAAE,kCAAkC;oBACxC,MAAM,EAAE,MAAM;oBACd,MAAM,EAAE;wBACN,aAAa,EAAE,UAAU;wBACzB,iBAAiB,EAAE,CAAC,GAAG,yBAAyB,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CACjF,IAAI,CACL;qBACF;iBACF,CAAC;aACH;SACF,CAAC;IACJ,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,q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;QACN,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;IACtB,CAAC;AACH,CAAC;AACD;;GAEG;AACH,SAAS,yBAAyB,CAChC,OAAgB,EAChB,MAAuC;IAEvC,IAAI,eAAmC,CAAC;IACxC,MAAM,EAAE,WAAW,EAAE,GAAG,yBAAyB,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;IAEjE,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAE5D,yEAAyE;IACzE,uBAAuB;IACvB,IAAI,MAAM,CAAC,OAAO,IAAI,UAAU,EAAE,CAAC;QACjC,MAAM,iBAAiB,GAAG,UAAU;aACjC,WAAW,EAAE;aACb,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,KAAK,KAAK,MAAM,CAAC,OAAO,CAAC,EAAE,UAAU,CAAC;QACvD,IAAI,iBAAiB,EAAE,CAAC;YACtB,eAAe,GAAG,wBAAwB,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;QACzE,CAAC;IACH,CAAC;IAED,yDAAyD;IACzD,IAAI,eAAe,KAAK,SAAS,EAAE,CAAC;QAClC,eAAe,GAAG,wBAAwB,CAAC,OAAO,EAAE,MAAM,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IAC3E,CAAC;IAED,OAAO;QACL,eAAe;QACf,WAAW,EAAE,WAAW,IAAI,EAAE;KAC/B,CAAC;AACJ,CAAC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Enum, Model, ModelProperty, Program, Union } from "@typespec/compiler";
|
|
2
|
+
import { ArmCommonDefinitionDecorator, ArmCommonParameterDecorator, ArmCommonTypesVersionsDecorator } from "../generated-defs/Azure.ResourceManager.CommonTypes.Private.js";
|
|
2
3
|
export declare const namespace = "Azure.ResourceManager.CommonTypes.Private";
|
|
3
4
|
export declare const ArmCommonTypesDefaultVersion = "v3";
|
|
4
5
|
export interface ArmCommonTypeRecord {
|
|
@@ -15,10 +16,6 @@ export interface ArmCommonTypeRecords {
|
|
|
15
16
|
defaultKey?: string;
|
|
16
17
|
}
|
|
17
18
|
export declare function getCommonTypeRecords(program: Program, entity: Model | ModelProperty | Enum | Union): ArmCommonTypeRecords;
|
|
18
|
-
interface ArmCommonTypeVersionSpec {
|
|
19
|
-
version: string | EnumValue;
|
|
20
|
-
isDefault: boolean;
|
|
21
|
-
}
|
|
22
19
|
/**
|
|
23
20
|
* Refer an model property to be a common ARM parameter
|
|
24
21
|
* @param {DecoratorContext} context DecoratorContext object
|
|
@@ -28,7 +25,7 @@ interface ArmCommonTypeVersionSpec {
|
|
|
28
25
|
* @param {string?} referenceFile Optional common file path
|
|
29
26
|
* @returns void
|
|
30
27
|
*/
|
|
31
|
-
export declare
|
|
28
|
+
export declare const $armCommonParameter: ArmCommonParameterDecorator;
|
|
32
29
|
/**
|
|
33
30
|
* Using ARM common definition for a Model
|
|
34
31
|
* @param {DecoratorContext} context DecoratorContext object
|
|
@@ -38,13 +35,12 @@ export declare function $armCommonParameter(context: DecoratorContext, entity: M
|
|
|
38
35
|
* @param {string?} referenceFile Optional common file path
|
|
39
36
|
* @returns {void}
|
|
40
37
|
*/
|
|
41
|
-
export declare
|
|
38
|
+
export declare const $armCommonDefinition: ArmCommonDefinitionDecorator;
|
|
42
39
|
/**
|
|
43
40
|
* Specify the ARM commont type version reference for a particular spec version or namespace.
|
|
44
41
|
* @param DecoratorContext context DecoratorContext object
|
|
45
42
|
* @param enumType entity Decorator target type. Must be `Model`
|
|
46
43
|
* @returns void
|
|
47
44
|
*/
|
|
48
|
-
export declare
|
|
49
|
-
export {};
|
|
45
|
+
export declare const $armCommonTypesVersions: ArmCommonTypesVersionsDecorator;
|
|
50
46
|
//# sourceMappingURL=commontypes.private.decorators.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commontypes.private.decorators.d.ts","sourceRoot":"","sources":["../../src/commontypes.private.decorators.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"commontypes.private.decorators.d.ts","sourceRoot":"","sources":["../../src/commontypes.private.decorators.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,IAAI,EAEJ,KAAK,EACL,aAAa,EACb,OAAO,EACP,KAAK,EACN,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,4BAA4B,EAC5B,2BAA2B,EAC3B,+BAA+B,EAChC,MAAM,gEAAgE,CAAC;AAGxE,eAAO,MAAM,SAAS,8CAA8C,CAAC;AAErE,eAAO,MAAM,4BAA4B,OAAO,CAAC;AA4CjD,MAAM,WAAW,mBAAmB;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,aAAa,GAAG,YAAY,CAAC;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,aAAa,CAAC,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,mBAAmB,CAAA;KAAE,CAAC;IAChD,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,OAAO,EAChB,MAAM,EAAE,KAAK,GAAG,aAAa,GAAG,IAAI,GAAG,KAAK,GAC3C,oBAAoB,CAEtB;AAOD;;;;;;;;GAQG;AACH,eAAO,MAAM,mBAAmB,EAAE,2BAoBjC,CAAC;AAEF;;;;;;;;GAQG;AACH,eAAO,MAAM,oBAAoB,EAAE,4BAoBlC,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,uBAAuB,EAAE,+BAQrC,CAAC"}
|
|
@@ -45,13 +45,14 @@ export function getCommonTypeRecords(program, entity) {
|
|
|
45
45
|
* @param {string?} referenceFile Optional common file path
|
|
46
46
|
* @returns void
|
|
47
47
|
*/
|
|
48
|
-
export
|
|
48
|
+
export const $armCommonParameter = (context, entity, parameterName, version, // TODO: switch to precise type when tspd supports it: string | EnumValue | ArmCommonTypeVersionSpec,
|
|
49
|
+
referenceFile) => {
|
|
49
50
|
// Use the name of the model type if not specified
|
|
50
51
|
if (!parameterName) {
|
|
51
52
|
parameterName = entity.name;
|
|
52
53
|
}
|
|
53
54
|
storeCommonTypeRecord(context, entity, "parameters", parameterName, version, referenceFile);
|
|
54
|
-
}
|
|
55
|
+
};
|
|
55
56
|
/**
|
|
56
57
|
* Using ARM common definition for a Model
|
|
57
58
|
* @param {DecoratorContext} context DecoratorContext object
|
|
@@ -61,23 +62,24 @@ export function $armCommonParameter(context, entity, parameterName, version, ref
|
|
|
61
62
|
* @param {string?} referenceFile Optional common file path
|
|
62
63
|
* @returns {void}
|
|
63
64
|
*/
|
|
64
|
-
export
|
|
65
|
+
export const $armCommonDefinition = (context, entity, definitionName, version, // TODO: switch to precise type when tspd supports it: string | EnumValue | ArmCommonTypeVersionSpec,
|
|
66
|
+
referenceFile) => {
|
|
65
67
|
// Use the name of the model type if not specified
|
|
66
68
|
if (!definitionName) {
|
|
67
69
|
definitionName = entity.name;
|
|
68
70
|
}
|
|
69
71
|
storeCommonTypeRecord(context, entity, "definitions", definitionName, version, referenceFile);
|
|
70
|
-
}
|
|
72
|
+
};
|
|
71
73
|
/**
|
|
72
74
|
* Specify the ARM commont type version reference for a particular spec version or namespace.
|
|
73
75
|
* @param DecoratorContext context DecoratorContext object
|
|
74
76
|
* @param enumType entity Decorator target type. Must be `Model`
|
|
75
77
|
* @returns void
|
|
76
78
|
*/
|
|
77
|
-
export
|
|
79
|
+
export const $armCommonTypesVersions = (context, enumType) => {
|
|
78
80
|
context.program.stateMap(ArmStateKeys.armCommonTypesVersions).set(enumType, {
|
|
79
81
|
type: enumType,
|
|
80
82
|
allVersions: Array.from(enumType.members.values()).reverse(),
|
|
81
83
|
});
|
|
82
|
-
}
|
|
84
|
+
};
|
|
83
85
|
//# sourceMappingURL=commontypes.private.decorators.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"commontypes.private.decorators.js","sourceRoot":"","sources":["../../src/commontypes.private.decorators.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"commontypes.private.decorators.js","sourceRoot":"","sources":["../../src/commontypes.private.decorators.ts"],"names":[],"mappings":"AAcA,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAE1C,MAAM,CAAC,MAAM,SAAS,GAAG,2CAA2C,CAAC;AAErE,MAAM,CAAC,MAAM,4BAA4B,GAAG,IAAI,CAAC;AAEjD,SAAS,eAAe,CAAC,OAAgB;IACvC,OAAO,OAAO,CAAC,SAAS,CAAC,gBAAgB,CAAC,IAAI,iBAAiB,CAAC;AAClE,CAAC;AAED,SAAS,qBAAqB,CAC5B,OAAyB,EACzB,MAA4C,EAC5C,IAAkC,EAClC,IAAY,EACZ,OAAuD,EACvD,aAAsB;IAEtB,MAAM,QAAQ,GAAW,eAAe,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;IAEjE,qGAAqG;IACrG,IAAI,SAAS,GAAG,KAAK,CAAC;IACtB,IAAI,OAAO,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAC,CAAC,WAAW,IAAI,OAAO,CAAC,EAAE,CAAC;QACxE,SAAS,GAAG,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC;QAChC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;IAC5B,CAAC;IAED,mGAAmG;IACnG,IAAI,CAAC,OAAO,IAAI,aAAa,CAAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC;QAAE,OAAO;IACrE,IAAI,CAAC,OAAO;QAAE,OAAO,GAAG,4BAA4B,CAAC;IACrD,IAAI,CAAC,aAAa;QAAE,aAAa,GAAG,YAAY,CAAC;IAEjD,MAAM,UAAU,GAAG,OAAO,OAAO,KAAK,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC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AE,CAAC;QACpB,cAAc,GAAG,MAAM,CAAC,IAAK,CAAC;IAChC,CAAC;IAED,qBAAqB,CACnB,OAAO,EACP,MAAM,EACN,aAAa,EACb,cAAc,EACd,OAAc,EACd,aAAa,CACd,CAAC;AACJ,CAAC,CAAC;AAEF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAoC,CACtE,OAAyB,EACzB,QAAc,EACd,EAAE;IACF,OAAO,CAAC,OAAO,CAAC,QAAQ,CAAC,YAAY,CAAC,sBAAsB,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE;QAC1E,IAAI,EAAE,QAAQ;QACd,WAAW,EAAE,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;KAC7D,CAAC,CAAC;AACL,CAAC,CAAC"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
export declare const namespace = "Azure.ResourceManager";
|
|
2
2
|
export { $armCommonTypesVersion, getArmCommonTypeOpenAPIRef, getArmCommonTypesVersion, getArmCommonTypesVersions, isArmCommonType, type ArmCommonTypesResolutionOptions, type ArmCommonTypeVersions, } from "./common-types.js";
|
|
3
|
-
export { isAzureResource } from "./private.decorators.js";
|
|
4
3
|
export * from "./namespace.js";
|
|
5
4
|
export * from "./operations.js";
|
|
6
5
|
export * from "./resource.js";
|
|
7
6
|
export { $lib } from "./lib.js";
|
|
8
7
|
export { $linter } from "./linter.js";
|
|
9
|
-
export { isConditionallyFlattened } from "./private.decorators.js";
|
|
8
|
+
export { isAzureResource, isConditionallyFlattened } from "./private.decorators.js";
|
|
10
9
|
export declare const $flags: import("@typespec/compiler").PackageFlags;
|
|
11
10
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/src/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,0BAA0B,CAAC;AAEjD,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,KAAK,+BAA+B,EACpC,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,SAAS,0BAA0B,CAAC;AAEjD,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,EACf,KAAK,+BAA+B,EACpC,KAAK,qBAAqB,GAC3B,MAAM,mBAAmB,CAAC;AAE3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEpF,eAAO,MAAM,MAAM,2CAEjB,CAAC"}
|
package/dist/src/index.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { definePackageFlags } from "@typespec/compiler";
|
|
2
2
|
export const namespace = "Azure.ResourceManager";
|
|
3
3
|
export { $armCommonTypesVersion, getArmCommonTypeOpenAPIRef, getArmCommonTypesVersion, getArmCommonTypesVersions, isArmCommonType, } from "./common-types.js";
|
|
4
|
-
export { isAzureResource } from "./private.decorators.js";
|
|
5
4
|
export * from "./namespace.js";
|
|
6
5
|
export * from "./operations.js";
|
|
7
6
|
export * from "./resource.js";
|
|
8
7
|
export { $lib } from "./lib.js";
|
|
9
8
|
export { $linter } from "./linter.js";
|
|
10
|
-
export { isConditionallyFlattened } from "./private.decorators.js";
|
|
9
|
+
export { isAzureResource, isConditionallyFlattened } from "./private.decorators.js";
|
|
11
10
|
export const $flags = definePackageFlags({
|
|
12
11
|
decoratorArgMarshalling: "new",
|
|
13
12
|
});
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,SAAS,GAAG,uBAAuB,CAAC;AAEjD,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,GAGhB,MAAM,mBAAmB,CAAC;AAE3B,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAC;AAExD,MAAM,CAAC,MAAM,SAAS,GAAG,uBAAuB,CAAC;AAEjD,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,wBAAwB,EACxB,yBAAyB,EACzB,eAAe,GAGhB,MAAM,mBAAmB,CAAC;AAE3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,eAAe,CAAC;AAE9B,OAAO,EAAE,IAAI,EAAE,MAAM,UAAU,CAAC;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAEtC,OAAO,EAAE,eAAe,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAEpF,MAAM,CAAC,MAAM,MAAM,GAAG,kBAAkB,CAAC;IACvC,uBAAuB,EAAE,KAAK;CAC/B,CAAC,CAAC"}
|