@azure-tools/typespec-azure-resource-manager 0.70.0-dev.5 → 0.70.0-dev.7
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
CHANGED
|
@@ -635,12 +635,18 @@ multiple base types. Duplicate entries are ignored.
|
|
|
635
635
|
##### Examples
|
|
636
636
|
|
|
637
637
|
```typespec
|
|
638
|
-
|
|
639
|
-
model
|
|
640
|
-
|
|
641
|
-
...AgentToolProperty;
|
|
638
|
+
// Agent definition and properties using the Appliance deployment model
|
|
639
|
+
model ContosoApplianceDefinition is AgentDefinitionAppliance<true, true>;
|
|
640
|
+
model ContosoApplianceProperties is AgentPropertiesAppliance<ContosoApplianceDefinition> {
|
|
642
641
|
...DefaultProvisioningStateProperty;
|
|
643
642
|
}
|
|
643
|
+
|
|
644
|
+
// The @azureBaseType decorator marks the resource as conforming to the Agent base type.
|
|
645
|
+
// (The Agent template applies this automatically, but it can also be applied directly.)
|
|
646
|
+
@azureBaseType(#{ baseType: "Agent", version: "2024-06-01" })
|
|
647
|
+
model ContosoApplianceAgent is TrackedResource<ContosoApplianceProperties> {
|
|
648
|
+
...ResourceNameParameter<ContosoApplianceAgent>;
|
|
649
|
+
}
|
|
644
650
|
```
|
|
645
651
|
|
|
646
652
|
### Azure.ResourceManager.Legacy
|
|
@@ -14,12 +14,18 @@ export interface BaseTypeInfo {
|
|
|
14
14
|
* @param baseType The base type specification this resource implements.
|
|
15
15
|
* @example
|
|
16
16
|
* ```typespec
|
|
17
|
-
*
|
|
18
|
-
* model
|
|
19
|
-
*
|
|
20
|
-
* ...AgentToolProperty;
|
|
17
|
+
* // Agent definition and properties using the Appliance deployment model
|
|
18
|
+
* model ContosoApplianceDefinition is AgentDefinitionAppliance<true, true>;
|
|
19
|
+
* model ContosoApplianceProperties is AgentPropertiesAppliance<ContosoApplianceDefinition> {
|
|
21
20
|
* ...DefaultProvisioningStateProperty;
|
|
22
21
|
* }
|
|
22
|
+
*
|
|
23
|
+
* // The @azureBaseType decorator marks the resource as conforming to the Agent base type.
|
|
24
|
+
* // (The Agent template applies this automatically, but it can also be applied directly.)
|
|
25
|
+
* @azureBaseType(#{ baseType: "Agent", version: "2024-06-01" })
|
|
26
|
+
* model ContosoApplianceAgent is TrackedResource<ContosoApplianceProperties> {
|
|
27
|
+
* ...ResourceNameParameter<ContosoApplianceAgent>;
|
|
28
|
+
* }
|
|
23
29
|
* ```
|
|
24
30
|
*/
|
|
25
31
|
export type AzureBaseTypeDecorator = (context: DecoratorContext, target: Model, baseType: BaseTypeInfo) => DecoratorValidatorCallbacks | void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Azure.ResourceManager.BaseTypes.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.BaseTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE/F,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED
|
|
1
|
+
{"version":3,"file":"Azure.ResourceManager.BaseTypes.d.ts","sourceRoot":"","sources":["../../generated-defs/Azure.ResourceManager.BaseTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,2BAA2B,EAAE,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAE/F,MAAM,WAAW,YAAY;IAC3B,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;CAC1B;AAED;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AACH,MAAM,MAAM,sBAAsB,GAAG,CACnC,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,KAAK,EACb,QAAQ,EAAE,YAAY,KACnB,2BAA2B,GAAG,IAAI,CAAC;AAExC,MAAM,MAAM,uCAAuC,GAAG;IACpD,aAAa,EAAE,sBAAsB,CAAC;CACvC,CAAC"}
|
|
@@ -28,12 +28,18 @@ model BaseTypeInfo {
|
|
|
28
28
|
* @example
|
|
29
29
|
*
|
|
30
30
|
* ```typespec
|
|
31
|
-
*
|
|
32
|
-
* model
|
|
33
|
-
*
|
|
34
|
-
* ...AgentToolProperty;
|
|
31
|
+
* // Agent definition and properties using the Appliance deployment model
|
|
32
|
+
* model ContosoApplianceDefinition is AgentDefinitionAppliance<true, true>;
|
|
33
|
+
* model ContosoApplianceProperties is AgentPropertiesAppliance<ContosoApplianceDefinition> {
|
|
35
34
|
* ...DefaultProvisioningStateProperty;
|
|
36
35
|
* }
|
|
36
|
+
*
|
|
37
|
+
* // The @azureBaseType decorator marks the resource as conforming to the Agent base type.
|
|
38
|
+
* // (The Agent template applies this automatically, but it can also be applied directly.)
|
|
39
|
+
* @azureBaseType(#{ baseType: "Agent", version: "2024-06-01" })
|
|
40
|
+
* model ContosoApplianceAgent is TrackedResource<ContosoApplianceProperties> {
|
|
41
|
+
* ...ResourceNameParameter<ContosoApplianceAgent>;
|
|
42
|
+
* }
|
|
37
43
|
* ```
|
|
38
44
|
*/
|
|
39
45
|
extern dec azureBaseType(target: Model, baseType: valueof BaseTypeInfo);
|
package/lib/parameters.tsp
CHANGED
|
@@ -284,7 +284,7 @@ model ExtensionActionScope<StringType extends string = string>
|
|
|
284
284
|
model ArmTopParameter {
|
|
285
285
|
@query("$top")
|
|
286
286
|
@doc("The total number of items to return.")
|
|
287
|
-
top
|
|
287
|
+
top?: int64;
|
|
288
288
|
}
|
|
289
289
|
|
|
290
290
|
/**
|
|
@@ -293,7 +293,7 @@ model ArmTopParameter {
|
|
|
293
293
|
model ArmFilterParameter {
|
|
294
294
|
@query("$filter")
|
|
295
295
|
@doc("The OData filter expression to apply to the list operation.")
|
|
296
|
-
filter
|
|
296
|
+
filter?: string;
|
|
297
297
|
}
|
|
298
298
|
|
|
299
299
|
/**
|
|
@@ -302,7 +302,7 @@ model ArmFilterParameter {
|
|
|
302
302
|
model ArmSkipParameter {
|
|
303
303
|
@query("$skip")
|
|
304
304
|
@doc("The number of items to skip before starting to collect the result set.")
|
|
305
|
-
skip
|
|
305
|
+
skip?: int64;
|
|
306
306
|
}
|
|
307
307
|
|
|
308
308
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@azure-tools/typespec-azure-resource-manager",
|
|
3
|
-
"version": "0.70.0-dev.
|
|
3
|
+
"version": "0.70.0-dev.7",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|