26
26
content :
27
27
application/json :
28
28
schema :
29
- $ref : ' #/components/schemas/BulkUpdateSeeExampleResponse'
29
+ type : array
30
+ items :
31
+ $ref : ' #/components/schemas/BulkUpdateSeeExampleResponse'
30
32
' 500 ' :
31
33
description : Internal Server Error
32
34
content :
50
52
content :
51
53
application/json :
52
54
schema :
53
- type : array
54
- items :
55
- $ref : ' #/components/schemas/ImpactedObjectsResponse'
55
+ $ref : ' #/components/schemas/ImpactedObjectsResponse'
56
56
' 400 ' :
57
57
description : Bad Request. Validation error/wrong request body.
58
58
content :
@@ -115,7 +115,7 @@ components:
115
115
required :
116
116
- Script
117
117
properties :
118
- resource :
118
+ operation :
119
119
type : string
120
120
description : Resource from url path, i.e. {apiVersion} & {kind}
121
121
script :
@@ -158,41 +158,43 @@ components:
158
158
global :
159
159
type : boolean
160
160
description : Global flag for updating dependent apps
161
- DeploymentTemplate :
161
+ deploymentTemplate :
162
162
$ref : ' #/components/schemas/Tasks'
163
- ConfigMaps :
164
- type : object
165
- properties :
166
- names :
167
- type : array
168
- items :
169
- type : string
170
- description : Name of All ConfigMaps to be updated
171
- tasks :
172
- $ref : ' #/components/schemas/Spec'
173
- Secrets :
174
- type : object
175
- properties :
176
- names :
177
- type : array
178
- items :
179
- type : string
180
- description : Name of All Secrets to be updated
181
- tasks :
182
- $ref : ' #/components/schemas/Spec'
163
+ configMap :
164
+ $ref : ' #/components/schemas/CmAndSecret'
165
+ secret :
166
+ $ref : ' #/components/schemas/CmAndSecret'
183
167
Tasks :
184
168
type : object
185
169
properties :
186
170
spec :
187
171
$ref : ' #/components/schemas/Spec'
188
172
description : Spec of the Task
173
+ CmAndSecret :
174
+ type : object
175
+ properties :
176
+ spec :
177
+ $ref : ' #/components/schemas/CmAndSecretSpec'
178
+ description : Spec of the ConfigMap/Secret
179
+ CmAndSecretSpec :
180
+ type : object
181
+ required :
182
+ - names
183
+ properties :
184
+ names :
185
+ type : array
186
+ items :
187
+ type : string
188
+ description : Names of all configmaps/secrets to be updated
189
+ patchData :
190
+ type : string
191
+ description : string with details of the patch to be used for updating
189
192
Spec :
190
193
type : object
191
194
properties :
192
195
patchData :
193
196
type : string
194
197
description : string with details of the patch to be used for updating
195
-
196
198
NameIncludesExcludes :
197
199
type : object
198
200
properties :
@@ -249,91 +251,58 @@ components:
249
251
type : object
250
252
properties :
251
253
deploymentTemplate :
252
- $ref : ' #/components/schemas/DeploymentTemplateBulkUpdateResponse'
253
- configMap :
254
- $ref : ' #/components/schemas/CmAndSecretBulkUpdateResponse'
255
- secret :
256
- $ref : ' #/components/schemas/CmAndSecretBulkUpdateResponse'
257
- DeploymentTemplateBulkUpdateResponse :
258
- type : object
259
- properties :
260
- message :
261
- type : array
262
- items :
263
- type : string
264
- description : All top-level messages in response of bulk update action
265
- failure :
266
254
type : array
267
255
items :
268
256
$ref : ' #/components/schemas/DeploymentTemplateBulkUpdateResponseForOneApp'
269
- description : Details of all apps on which bulk update failed
270
- successful :
271
- type : array
272
- items :
273
- $ref : ' #/components/schemas/DeploymentTemplateBulkUpdateResponseForOneApp'
274
- description : Details of all apps on which bulk update applied successfully
275
- CmAndSecretBulkUpdateResponse :
276
- type : object
277
- properties :
278
- message :
279
- type : array
280
- items :
281
- type : string
282
- description : All top-level messages in response of bulk update action
283
- failure :
257
+ configMap :
284
258
type : array
285
259
items :
286
260
$ref : ' #/components/schemas/CmAndSecretBulkUpdateResponseForOneApp'
287
- description : Details of all apps on which bulk update failed
288
- successful :
261
+ secret :
289
262
type : array
290
263
items :
291
264
$ref : ' #/components/schemas/CmAndSecretBulkUpdateResponseForOneApp'
292
- description : Details of all apps on which bulk update applied successfully
293
265
DeploymentTemplateBulkUpdateResponseForOneApp :
294
266
type : object
295
267
properties :
296
268
appId :
297
269
type : integer
298
- description : Id of the concerned app
270
+ description : Id of the impacted app
299
271
appName :
300
272
type : string
301
- description : Name of the concerned app
273
+ description : Name of the impacted app
302
274
envId :
303
- type : integer
304
- description : Env ID of the concerned app
275
+ type : string
276
+ description : Env Id of the impacted app
305
277
message :
306
278
type : string
307
- description : App-level message for the concerned app
279
+ description : Message indicating success or failure of the update
308
280
CmAndSecretBulkUpdateResponseForOneApp :
309
281
type : object
310
282
properties :
311
283
appId :
312
284
type : integer
313
- description : Id of the concerned app
285
+ description : Id of the impacted app
314
286
appName :
315
287
type : string
316
- description : Name of the concerned app
288
+ description : Name of the impacted app
317
289
envId :
318
- type : integer
319
- description : Env ID of the concerned app
290
+ type : string
291
+ description : Env Id of the impacted app
320
292
names :
321
293
type : array
322
294
items :
323
295
type : string
324
- description : Names of all configmaps/secrets
296
+ description : Names of all configmaps/secrets impacted
325
297
message :
326
298
type : string
327
- description : App-level message for the concerned app
328
-
299
+ description : Message indicating success or failure of the update
329
300
Error :
330
- required :
331
- - code
332
- - message
301
+ type : object
333
302
properties :
334
303
code :
335
304
type : integer
336
- description : Error code
305
+ description : HTTP status code
337
306
message :
338
307
type : string
339
308
description : Error message
0 commit comments