@azure-tools/typespec-azure-core 0.45.0-dev.3 → 0.45.0-dev.4

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.
Files changed (2) hide show
  1. package/lib/models.tsp +11 -4
  2. package/package.json +1 -1
package/lib/models.tsp CHANGED
@@ -358,11 +358,18 @@ scalar azureLocation extends string;
358
358
  /**
359
359
  * A type definition that refers the id to an Azure Resource Manager resource.
360
360
  *
361
- * Sample usage:
362
- * otherArmId: ResourceIdentifier;
363
- * networkId: ResourceIdentifier<[{type:"\\Microsoft.Network\\vnet"}]>
364
- * vmIds: ResourceIdentifier<[{type:"\\Microsoft.Compute\\vm", scopes["*"]}]>
365
361
  * @template AllowedResourceTypes An array of allowed resource types for the resource reference
362
+ *
363
+ * @example
364
+ *
365
+ * ```tsp
366
+ * model MyModel {
367
+ * otherArmId: armResourceIdentifier;
368
+ * networkId: armResourceIdentifier<[{type:"Microsoft.Network/vnet"}]>
369
+ * vmIds: armResourceIdentifier<[{type:"Microsoft.Compute/vm", scopes: ["*"]}]>
370
+ * scoped: armResourceIdentifier<[{type:"Microsoft.Compute/vm", scopes: ["tenant", "resourceGroup"]}]>
371
+ * }
372
+ * ```
366
373
  */
367
374
  @doc("A type definition that refers the id to an Azure Resource Manager resource.")
368
375
  @format("arm-id")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azure-tools/typespec-azure-core",
3
- "version": "0.45.0-dev.3",
3
+ "version": "0.45.0-dev.4",
4
4
  "author": "Microsoft Corporation",
5
5
  "description": "TypeSpec Azure Core library",
6
6
  "homepage": "https://azure.github.io/typespec-azure",