-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathSolutionTemplateVersion.tsp
More file actions
235 lines (194 loc) · 7.04 KB
/
Copy pathSolutionTemplateVersion.tsp
File metadata and controls
235 lines (194 loc) · 7.04 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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
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";
using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.ResourceManager;
namespace Microsoft.Edge;
@doc("Available Orchestrator types")
union OrchestratorType {
@doc("Default type")
TO: "TO",
string,
}
@doc("Solution Template Version Properties")
model SolutionTemplateVersionProperties {
@doc("Config expressions for this solution version")
configurations: 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("App components spec")
specification: Record<unknown>;
@doc("Orchestrator type")
orchestratorType?: OrchestratorType;
@added(Versions.v2025_08_01)
@doc("Internal State of resource")
@visibility(Lifecycle.Read)
internalState?: InternalState;
@doc("Provisioning state of resource")
@visibility(Lifecycle.Read)
provisioningState?: ProvisioningState;
}
@doc("Solution Template Version Resource. Contains configurations that use expressions which can be resolved hierarchically along with edge specifications.")
@parentResource(SolutionTemplate)
@resource("versions")
model SolutionTemplateVersion
is ProxyResource<SolutionTemplateVersionProperties> {
...ResourceNameParameter<
SolutionTemplateVersion,
NamePattern = "^[0-9]+\\.[0-9]+\\.[0-9]+$"
>;
...EntityTagProperty;
}
@doc("Bulk deploy solution parameter")
model BulkDeploySolutionParameter {
@doc("Targets to which solution needs to be deployed")
@Azure.ResourceManager.identifiers(#[])
targets: BulkDeployTargetDetails[];
@removed(Versions.v2025_06_01)
@doc("Name of the solution instance")
@pattern("^(?!v-)(?!.*-v-)[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*$")
solutionInstanceName?: string;
@removed(Versions.v2025_06_01)
@doc("Solution dependencies")
@Azure.ResourceManager.identifiers(#[])
solutionDependencies?: SolutionDependencyParameter[];
}
@doc("Bulk deploy target details")
model BulkDeployTargetDetails {
@removed(Versions.v2025_06_01)
@doc("ArmId of Target")
targetId: Azure.Core.armResourceIdentifier<[
{
type: "Microsoft.Edge/Targets";
}
]>;
@removed(Versions.v2025_06_01)
@doc("Name of the solution instance")
@pattern("^(?!v-)(?!.*-v-)[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*$")
solutionInstanceName?: string;
@added(Versions.v2025_06_01)
@doc("ArmId of Target Solution Version")
solutionVersionId: Azure.Core.armResourceIdentifier<[
{
type: "Microsoft.Edge/Targets/Solutions/Versions";
}
]>;
}
@doc("Bulk publish solution parameter")
model BulkPublishSolutionParameter {
@doc("Targets to which solution needs to be published")
@Azure.ResourceManager.identifiers(#[])
targets: BulkPublishTargetDetails[];
@doc("Name of the solution instance")
@pattern("^(?!v-)(?!.*-v-)[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*$")
solutionInstanceName?: string;
@doc("Solution dependencies")
@Azure.ResourceManager.identifiers(#[])
solutionDependencies?: SolutionDependencyParameter[];
@added(Versions.v2025_08_01)
@doc("Configuration of solution")
solutionConfiguration?: string;
}
@doc("Bulk publish target details")
model BulkPublishTargetDetails {
@doc("ArmId of Target")
targetId: Azure.Core.armResourceIdentifier<[
{
type: "Microsoft.Edge/Targets";
}
]>;
@added(Versions.v2025_08_01)
@doc("Solution dependencies")
@Azure.ResourceManager.identifiers(#[])
solutionDependencies?: SolutionDependencyParameter[];
@doc("Name of the solution instance")
@pattern("^(?!v-)(?!.*-v-)[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*$")
solutionInstanceName?: string;
@added(Versions.v2025_08_01)
@doc("ArmId of Target Solution Version")
solutionVersionId?: Azure.Core.armResourceIdentifier<[
{
type: "Microsoft.Edge/Targets/Solutions/Versions";
}
]>;
@added(Versions.v2025_08_01)
@doc("Configuration of solution")
solutionConfiguration?: string;
}
@added(Versions.v2025_08_01)
@doc("Bulk publish solution parameter")
model BulkReviewSolutionParameter {
@doc("Targets to which solution needs to be published")
@Azure.ResourceManager.identifiers(#[])
targets: BulkReviewTargetDetails[];
@doc("Name of the solution instance")
@pattern("^(?!v-)(?!.*-v-)[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*$")
solutionInstanceName?: string;
@doc("Solution dependencies")
@Azure.ResourceManager.identifiers(#[])
solutionDependencies?: SolutionDependencyParameter[];
@doc("Configuration of solution")
solutionConfiguration?: string;
}
@added(Versions.v2025_08_01)
@doc("Bulk publish target details")
model BulkReviewTargetDetails {
@doc("ArmId of Target")
targetId: Azure.Core.armResourceIdentifier<[
{
type: "Microsoft.Edge/Targets";
}
]>;
@added(Versions.v2025_08_01)
@doc("Solution dependencies")
@Azure.ResourceManager.identifiers(#[])
solutionDependencies?: SolutionDependencyParameter[];
@doc("Name of the solution instance")
@pattern("^(?!v-)(?!.*-v-)[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?(\\.[a-zA-Z0-9]([-a-zA-Z0-9]*[a-zA-Z0-9])?)*$")
solutionInstanceName?: string;
@doc("Configuration of solution")
solutionConfiguration?: string;
}
@armResourceOperations
interface SolutionTemplateVersions {
@doc("Get a Solution Template Version Resource")
get is ArmResourceRead<SolutionTemplateVersion>;
@added(Versions.v2026_03_01)
@doc("Create or update a Solution Template Version Resource")
createOrUpdate is ArmResourceCreateOrReplaceAsync<SolutionTemplateVersion>;
@added(Versions.v2026_03_01)
@doc("Update a Solution Template Version Resource")
update is ArmResourcePatchSync<
SolutionTemplateVersion,
SolutionTemplateVersionProperties
>;
@added(Versions.v2026_03_01)
@doc("Delete a Solution Template Version Resource")
delete is ArmResourceDeleteWithoutOkAsync<SolutionTemplateVersion>;
@doc("List Solution Template Version Resources")
listBySolutionTemplate is ArmResourceListByParent<SolutionTemplateVersion>;
@doc("Post request for bulk deploy")
bulkDeploySolution is ArmResourceActionNoResponseContentAsync<
SolutionTemplateVersion,
BulkDeploySolutionParameter
>;
@doc("Post request for bulk publish")
bulkPublishSolution is ArmResourceActionNoResponseContentAsync<
SolutionTemplateVersion,
BulkPublishSolutionParameter
>;
@added(Versions.v2025_08_01)
@doc("Post request for bulk review")
bulkReviewSolution is ArmResourceActionNoResponseContentAsync<
SolutionTemplateVersion,
BulkReviewSolutionParameter
>;
}