-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathTargetTemplate.tsp
More file actions
65 lines (52 loc) · 2.06 KB
/
Copy pathTargetTemplate.tsp
File metadata and controls
65 lines (52 loc) · 2.06 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
55
56
57
58
59
60
61
62
63
64
65
import "@typespec/http";
import "@typespec/rest";
import "@typespec/versioning";
import "@azure-tools/typespec-azure-core";
import "@azure-tools/typespec-azure-resource-manager";
import "@typespec/openapi";
import "./ProvisioningState.tsp";
import "./SolutionTemplateVersion.tsp";
using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.ResourceManager;
namespace Microsoft.Edge;
@removed(Versions.v2025_06_01)
@doc("Target Template Properties")
model TargetTemplateProperties {
@doc("Description of Target template")
description: string;
#suppress "@azure-tools/typespec-azure-core/no-unknown" "Suppress no-unknown to handle the datatype object used in dependent service"
#suppress "@azure-tools/typespec-azure-resource-manager/arm-no-record" "Suppress arm-no-record to handle the datatype object used in dependent service"
@doc("target spec")
targetSpec: Record<unknown>;
@doc("Orchestrator Type")
orchestratorType?: OrchestratorType;
@doc("Provisioning state of resource")
@visibility(Lifecycle.Read)
provisioningState?: ProvisioningState;
}
@removed(Versions.v2025_06_01)
@doc("Target Template Resource, which is a template for creation of Targets")
model TargetTemplate is TrackedResource<TargetTemplateProperties> {
...ResourceNameParameter<TargetTemplate>;
...EntityTagProperty;
}
@removed(Versions.v2025_06_01)
@armResourceOperations
interface TargetTemplates {
@doc("Get a Target Template Resource")
get is ArmResourceRead<TargetTemplate>;
@doc("Create or update a Target Template Resource")
createOrUpdate is ArmResourceCreateOrReplaceAsync<TargetTemplate>;
@doc("update a Target Template Resource")
update is ArmResourcePatchAsync<TargetTemplate, TargetTemplateProperties>;
@doc("Delete a Target Template Resource")
delete is ArmResourceDeleteWithoutOkAsync<TargetTemplate>;
@doc("List by specified resource group")
listByResourceGroup is ArmResourceListByParent<TargetTemplate>;
@doc("List by subscription")
listBySubscription is ArmListBySubscription<TargetTemplate>;
}