@azure-tools/typespec-azure-resource-manager 0.70.0-dev.4 → 0.70.0-dev.6
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"}
|
package/lib/base-types/agent.tsp
CHANGED
|
@@ -189,7 +189,7 @@ model ConversationProperties {
|
|
|
189
189
|
|
|
190
190
|
/** Timestamp of when the conversation was created. Read-only. */
|
|
191
191
|
@visibility(Lifecycle.Read)
|
|
192
|
-
createdAt?:
|
|
192
|
+
createdAt?: utcDateTime;
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
/**
|
|
@@ -226,24 +226,24 @@ model ConversationOutput {
|
|
|
226
226
|
union ResponseStatus {
|
|
227
227
|
/** The response completed successfully. */
|
|
228
228
|
@Azure.Core.lroSucceeded
|
|
229
|
-
Completed: "
|
|
229
|
+
Completed: "Completed",
|
|
230
230
|
|
|
231
231
|
/** The response failed. */
|
|
232
232
|
@Azure.Core.lroFailed
|
|
233
|
-
Failed: "
|
|
233
|
+
Failed: "Failed",
|
|
234
234
|
|
|
235
235
|
/** The response was cancelled. */
|
|
236
236
|
@Azure.Core.lroCanceled
|
|
237
|
-
Cancelled: "
|
|
237
|
+
Cancelled: "Cancelled",
|
|
238
238
|
|
|
239
239
|
/** The response is incomplete. */
|
|
240
|
-
Incomplete: "
|
|
240
|
+
Incomplete: "Incomplete",
|
|
241
241
|
|
|
242
242
|
/** The response is queued for execution. */
|
|
243
|
-
Queued: "
|
|
243
|
+
Queued: "Queued",
|
|
244
244
|
|
|
245
245
|
/** The response is in progress. */
|
|
246
|
-
InProgress: "
|
|
246
|
+
InProgress: "InProgress",
|
|
247
247
|
|
|
248
248
|
string,
|
|
249
249
|
}
|
|
@@ -259,7 +259,7 @@ model ResponseProperties {
|
|
|
259
259
|
|
|
260
260
|
/** Timestamp of when the response was created. Read-only. */
|
|
261
261
|
@visibility(Lifecycle.Read)
|
|
262
|
-
createdAt?:
|
|
262
|
+
createdAt?: utcDateTime;
|
|
263
263
|
|
|
264
264
|
/** Model ID used to generate the response. May be specified on request to override the agent default; read-only in GET. */
|
|
265
265
|
`model`?: string;
|
|
@@ -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/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.6",
|
|
4
4
|
"author": "Microsoft Corporation",
|
|
5
5
|
"description": "TypeSpec Azure Resource Manager library",
|
|
6
6
|
"homepage": "https://azure.github.io/typespec-azure",
|