-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Expand file tree
/
Copy pathState.tsp
More file actions
156 lines (115 loc) · 3.3 KB
/
Copy pathState.tsp
File metadata and controls
156 lines (115 loc) · 3.3 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
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";
using TypeSpec.OpenAPI;
using TypeSpec.Http;
using TypeSpec.Rest;
using TypeSpec.Versioning;
using Azure.Core;
using Azure.ResourceManager;
namespace Microsoft.Edge;
@doc("Resource Type State")
union ResourceState {
@doc("Resource is active")
active: "active",
@doc("Resource is inactive")
inactive: "inactive",
string,
}
@doc("Solution Instance State")
union State {
@doc("Solution Instance is in review")
InReview: "InReview",
@doc("Solution Instance upgrade is in review")
UpgradeInReview: "UpgradeInReview",
@doc("Solution Instance is ready to deploy")
ReadyToDeploy: "ReadyToDeploy",
@doc("Solution Instance is ready to upgrade")
ReadyToUpgrade: "ReadyToUpgrade",
@doc("Solution Instance is deploying")
Deploying: "Deploying",
@doc("Solution Instance is deployed")
Deployed: "Deployed",
@doc("Solution Instance failed to deploy")
Failed: "Failed",
@doc("Solution Instance is undeployed")
Undeployed: "Undeployed",
@doc("Solution Instance is pending external validation")
PendingExternalValidation: "PendingExternalValidation",
@doc("Solution Instance failed external validation")
ExternalValidationFailed: "ExternalValidationFailed",
@doc("Solution Instance is staging the images")
Staging: "Staging",
@added(Versions.v2025_08_01)
@doc("State is not applicable")
NotApplicable: "NotApplicable",
string,
}
@doc("Solution Instance Validation Status")
union ValidationStatus {
@doc("Solution Instance is valid")
Valid: "Valid",
@doc("Solution Instance is invalid")
Invalid: "Invalid",
string,
}
@added(Versions.v2025_08_01)
@doc("Stage Map for Solution Version")
model StageMap {
@doc("Display State")
@visibility(Lifecycle.Read)
displayState: string;
@doc("Stage name")
@visibility(Lifecycle.Read)
stage: CMStages;
@doc("Stage status")
@visibility(Lifecycle.Read)
status: StateCategory;
@doc("Stage start time")
@visibility(Lifecycle.Read)
startTime?: utcDateTime;
@doc("Stage end time")
@visibility(Lifecycle.Read)
endTime?: utcDateTime;
@doc("Child stages which represents more granular level stage status if any")
@visibility(Lifecycle.Read)
@Azure.ResourceManager.identifiers(#[])
childStages?: StageMap[];
}
@added(Versions.v2025_08_01)
@doc("Stages for Solution Version")
union CMStages {
@doc("Configuration stage")
Configuration: "Configuration",
@doc("Publish stage")
Publish: "Publish",
@doc("Deployment stage")
Deployment: "Deployment",
@doc("Uninstallation stage")
Uninstallation: "Uninstallation",
@doc("External Validation stage")
ExternalValidation: "ExternalValidation",
@doc("Staging stage")
Staging: "Staging",
@doc("Unstaging stage")
Unstaging: "Unstaging",
string,
}
@added(Versions.v2025_08_01)
@doc("State Category for Solution Version")
union StateCategory {
@doc("Pending state [Non-Terminal]")
Pending: "Pending",
@doc("InProgress state [Non-Terminal]")
InProgress: "InProgress",
@doc("Completed state [Terminal]")
Completed: "Completed",
@doc("Failed state [Terminal]")
Failed: "Failed",
@doc("None state [Terminal]")
None: "None",
string,
}