|
1 | 1 | import "@azure-tools/typespec-azure-core"; |
2 | 2 | import "@azure-tools/typespec-azure-resource-manager"; |
3 | | -import "@typespec/openapi"; |
4 | 3 | import "@typespec/rest"; |
| 4 | +import "@typespec/http"; |
| 5 | +import "./models.tsp"; |
5 | 6 |
|
6 | 7 | using TypeSpec.Rest; |
7 | | -using Azure.ResourceManager; |
8 | 8 | using TypeSpec.Http; |
9 | | -using TypeSpec.OpenAPI; |
10 | | -using Azure.Core; |
| 9 | +using Azure.ResourceManager; |
11 | 10 | using TypeSpec.Versioning; |
12 | 11 |
|
13 | | -@armProviderNamespace("Microsoft.AzureStackHCI") |
14 | 12 | namespace Microsoft.AzureStackHCI; |
15 | 13 |
|
| 14 | +/** |
| 15 | + * DevicePool details. |
| 16 | + */ |
16 | 17 | #suppress "@azure-tools/typespec-azure-resource-manager/arm-resource-provisioning-state" |
17 | | -@doc("DevicePool details.") |
18 | 18 | @added(Versions.v2026_03_01_preview) |
19 | 19 | model DevicePool |
20 | 20 | is Azure.ResourceManager.TrackedResource<DevicePoolProperties> { |
@@ -45,25 +45,35 @@ interface DevicePools { |
45 | 45 | */ |
46 | 46 | delete is ArmResourceDeleteWithoutOkAsync<DevicePool>; |
47 | 47 |
|
48 | | - @doc("Update a devicePool") |
| 48 | + /** |
| 49 | + * Update a devicePool |
| 50 | + */ |
49 | 51 | @patch(#{ implicitOptionality: false }) |
50 | 52 | update is ArmCustomPatchAsync<DevicePool, DevicePoolPatch>; |
51 | 53 |
|
52 | | - @doc("List all device pools in a resource group.") |
| 54 | + /** |
| 55 | + * List all device pools in a resource group. |
| 56 | + */ |
53 | 57 | listByResourceGroup is ArmResourceListByParent<DevicePool>; |
54 | 58 |
|
55 | | - @doc("List all device pools in a subscription.") |
| 59 | + /** |
| 60 | + * List all device pools in a subscription. |
| 61 | + */ |
56 | 62 | listBySubscription is ArmListBySubscription<DevicePool>; |
57 | 63 |
|
| 64 | + /** |
| 65 | + * Claiming devices of the pool. |
| 66 | + */ |
58 | 67 | #suppress "@azure-tools/typespec-azure-resource-manager/arm-post-operation-response-codes" "The final response has no content, so 204 is returned." |
59 | | - @doc("Claiming devices of the pool.") |
60 | 68 | claimDevices is ArmResourceActionNoContentAsync< |
61 | 69 | DevicePool, |
62 | 70 | ClaimDeviceRequest |
63 | 71 | >; |
64 | 72 |
|
| 73 | + /** |
| 74 | + * Releasing devices of the pool. |
| 75 | + */ |
65 | 76 | #suppress "@azure-tools/typespec-azure-resource-manager/arm-post-operation-response-codes" "The final response has no content, so 204 is returned." |
66 | | - @doc("Releasing devices of the pool.") |
67 | 77 | releaseDevices is ArmResourceActionNoContentAsync< |
68 | 78 | DevicePool, |
69 | 79 | ReleaseDeviceRequest |
|
0 commit comments