File tree Expand file tree Collapse file tree 6 files changed +28
-15
lines changed Expand file tree Collapse file tree 6 files changed +28
-15
lines changed Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ const (
41
41
ClusterStateUninstalling ClusterState = "uninstalling"
42
42
// The state of the cluster is unknown.
43
43
ClusterStateUnknown ClusterState = "unknown"
44
+ // The cluster is being updated.
45
+ // This state is currently used only by aro hcp clusters.
46
+ ClusterStateUpdating ClusterState = "updating"
44
47
// The cluster is validating user input.
45
48
ClusterStateValidating ClusterState = "validating"
46
49
// The cluster is waiting for user action.
Original file line number Diff line number Diff line change @@ -41,6 +41,9 @@ const (
41
41
ClusterStateUninstalling ClusterState = "uninstalling"
42
42
// The state of the cluster is unknown.
43
43
ClusterStateUnknown ClusterState = "unknown"
44
+ // The cluster is being updated.
45
+ // This state is currently used only by aro hcp clusters.
46
+ ClusterStateUpdating ClusterState = "updating"
44
47
// The cluster is validating user input.
45
48
ClusterStateValidating ClusterState = "validating"
46
49
// The cluster is waiting for user action.
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ resource Cluster {
22
22
}
23
23
24
24
// Updates the cluster.
25
- method Update {
25
+ @go(name="Update")
26
+ method AsyncUpdate {
26
27
in out Body Cluster
27
28
}
28
29
Original file line number Diff line number Diff line change @@ -31,6 +31,10 @@ enum ClusterState {
31
31
// The cluster is ready to use.
32
32
Ready
33
33
34
+ // The cluster is being updated.
35
+ // This state is currently used only by aro hcp clusters.
36
+ Updating
37
+
34
38
// The cluster is being uninstalled.
35
39
Uninstalling
36
40
Original file line number Diff line number Diff line change 216
216
}
217
217
}
218
218
},
219
- "get " : {
220
- "description" : " Retrieves the details of the cluster." ,
219
+ "patch " : {
220
+ "description" : " Updates the cluster." ,
221
221
"parameters" : [
222
222
{
223
223
"name" : " cluster_id" ,
228
228
"required" : true
229
229
}
230
230
],
231
+ "requestBody" : {
232
+ "content" : {
233
+ "application/json" : {
234
+ "schema" : {
235
+ "$ref" : " #/components/schemas/Cluster"
236
+ }
237
+ }
238
+ }
239
+ },
231
240
"responses" : {
232
- "200 " : {
241
+ "202 " : {
233
242
"description" : " Success." ,
234
243
"content" : {
235
244
"application/json" : {
251
260
}
252
261
}
253
262
},
254
- "patch " : {
255
- "description" : " Updates the cluster." ,
263
+ "get " : {
264
+ "description" : " Retrieves the details of the cluster." ,
256
265
"parameters" : [
257
266
{
258
267
"name" : " cluster_id" ,
263
272
"required" : true
264
273
}
265
274
],
266
- "requestBody" : {
267
- "content" : {
268
- "application/json" : {
269
- "schema" : {
270
- "$ref" : " #/components/schemas/Cluster"
271
- }
272
- }
273
- }
274
- },
275
275
"responses" : {
276
276
"200" : {
277
277
"description" : " Success." ,
2207
2207
" resuming" ,
2208
2208
" uninstalling" ,
2209
2209
" unknown" ,
2210
+ " updating" ,
2210
2211
" validating" ,
2211
2212
" waiting"
2212
2213
]
Original file line number Diff line number Diff line change 16127
16127
"resuming",
16128
16128
"uninstalling",
16129
16129
"unknown",
16130
+ "updating",
16130
16131
"validating",
16131
16132
"waiting"
16132
16133
]
You can’t perform that action at this time.
0 commit comments