forked from Azure/azure-rest-api-specs
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tsp
More file actions
54 lines (45 loc) · 1.63 KB
/
main.tsp
File metadata and controls
54 lines (45 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import "@typespec/http";
import "@typespec/rest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-resource-manager";
import "./assets.tsp";
import "./assetEndpointProfiles.tsp";
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.ResourceManager;
using Azure.ResourceManager.Private;
using Azure.ResourceManager.Foundations;
@armProviderNamespace
@service({
title: "Microsoft.DeviceRegistry management service",
})
@versioned(Microsoft.DeviceRegistry.Versions)
@doc("Microsoft.DeviceRegistry Resource Provider management API.")
namespace Microsoft.DeviceRegistry;
/** API versions */
@doc("Microsoft.DeviceRegistry Resource Provider supported API versions.")
enum Versions {
@doc("Microsoft.DeviceRegistry Resource Provider management API version 2023-11-01-preview.")
@useDependency(Azure.ResourceManager.Versions.v1_0_Preview_1)
@armCommonTypesVersion(Azure.ResourceManager.CommonTypes.Versions.v3)
v2023_11_01_preview: "2023-11-01-preview",
}
interface Operations extends Azure.ResourceManager.Operations {}
@armResourceOperations
interface OperationStatus {
@doc("Returns the current status of an async operation.")
@autoRoute
@armUpdateProviderNamespace
get(
...ApiVersionParameter,
...SubscriptionIdParameter,
@path
@segment("providers")
@doc("The provider namespace (this parameter will not show up in operations).")
provider: "Microsoft.DeviceRegistry",
...LocationParameter,
...Foundations.OperationIdParameter,
): ArmResponse<OperationStatusResult> | ErrorResponse;
}
@@segment(OperationStatus.get::parameters.operationId, "operationStatuses");