Skip to content

Commit 9f11795

Browse files
committed
ss
1 parent 5e96c95 commit 9f11795

File tree

5 files changed

+478
-76
lines changed

5 files changed

+478
-76
lines changed

specs/bulk-env-delete.yaml

Lines changed: 58 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ paths:
3030
content:
3131
application/json:
3232
schema:
33-
$ref: '#/components/schemas/CdPipelineImpactedObjectDto'
33+
$ref: '#/components/schemas/PipelineAndWfBulkActionResponseDto'
3434
'400':
3535
description: Bad Request. Validation error/wrong request body.
3636
content:
@@ -73,7 +73,7 @@ components:
7373
envNames:
7474
type: array
7575
items:
76-
type: integer
76+
type: string
7777
description: names of all environments whose pipelines are to be included in action
7878
appIds:
7979
type: array
@@ -83,7 +83,7 @@ components:
8383
appNames:
8484
type: array
8585
items:
86-
type: integer
86+
type: string
8787
description: names of all apps for which the environment is to be included
8888
projectIds:
8989
type: array
@@ -93,19 +93,69 @@ components:
9393
projectNames:
9494
type: array
9595
items:
96-
type: integer
96+
type: string
9797
description: names of all projects for which the environment is to be included
98-
CdPipelineImpactedObjectDto:
98+
deleteWfAndCiPipeline:
99+
type: boolean
100+
description: whether to delete workflow and CI pipeline
101+
forceDelete:
102+
type: boolean
103+
description: whether to force delete
104+
nonCascadeDelete:
105+
type: boolean
106+
description: whether to delete without cascade
107+
userId:
108+
type: integer
109+
format: int32
110+
description: user id who is performing the action
111+
PipelineAndWfBulkActionResponseDto:
112+
type: object
113+
properties:
114+
cdPipelinesRespDtos:
115+
type: array
116+
items:
117+
$ref: '#/components/schemas/CdBulkActionResponseDto'
118+
ciPipelineRespDtos:
119+
type: array
120+
items:
121+
$ref: '#/components/schemas/CiBulkActionResponseDto'
122+
appWfRespDtos:
123+
type: array
124+
items:
125+
$ref: '#/components/schemas/WfBulkActionResponseDto'
126+
CdBulkActionResponseDto:
99127
type: object
100128
properties:
101129
pipelineName:
102-
type: integer
103-
environmentName:
104130
type: string
131+
description: name of the pipeline
105132
appName:
106133
type: string
107-
projectName:
134+
description: name of the application
135+
environmentName:
136+
type: string
137+
description: name of the environment
138+
deletionResult:
139+
type: string
140+
description: result of the deletion operation
141+
CiBulkActionResponseDto:
142+
type: object
143+
properties:
144+
pipelineName:
145+
type: string
146+
description: name of the CI pipeline
147+
deletionResult:
148+
type: string
149+
description: result of the deletion operation
150+
WfBulkActionResponseDto:
151+
type: object
152+
properties:
153+
workflowId:
154+
type: integer
155+
description: id of the workflow
156+
deletionResult:
108157
type: string
158+
description: result of the deletion operation
109159
ErrorResponse:
110160
required:
111161
- code

specs/change-deployment-chart-type.yaml

Lines changed: 75 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,28 +7,98 @@ paths:
77
patch:
88
description: change the deployment template for an app and environment
99
requestBody:
10+
required: true
1011
content:
1112
application/json:
1213
schema:
14+
type: object
15+
required:
16+
- envId
17+
- appId
18+
- targetChartRefId
1319
properties:
1420
envId:
1521
type: integer
22+
description: ID of the environment
1623
appId:
1724
type: integer
25+
description: ID of the application
1826
targetChartRefId:
1927
type: integer
28+
description: ID of the target chart reference
29+
isBasicViewLocked:
30+
type: boolean
31+
description: Whether the basic view is locked
32+
currentViewEditor:
33+
type: string
34+
enum: [BASIC, ADVANCED, UNDEFINED]
35+
description: Current view editor type
36+
template:
37+
type: object
38+
description: Deployment template configuration
2039

2140
responses:
2241
'200':
23-
description: patched data
42+
description: Successfully updated deployment template
2443
content:
2544
application/json:
2645
schema:
46+
type: object
2747
properties:
28-
'422':
29-
description: bad request
48+
success:
49+
type: boolean
50+
description: Whether the operation was successful
51+
message:
52+
type: string
53+
description: Success message
54+
'400':
55+
description: Bad Request
3056
content:
3157
application/json:
3258
schema:
33-
userDetailedMessage:
34-
type: string
59+
type: object
60+
properties:
61+
code:
62+
type: integer
63+
format: int32
64+
description: Error code
65+
status:
66+
type: string
67+
description: Error message
68+
userDetailedMessage:
69+
type: string
70+
description: Detailed error message for user
71+
'403':
72+
description: Unauthorized User
73+
content:
74+
application/json:
75+
schema:
76+
type: object
77+
properties:
78+
code:
79+
type: integer
80+
format: int32
81+
description: Error code
82+
status:
83+
type: string
84+
description: Error message
85+
userDetailedMessage:
86+
type: string
87+
description: Detailed error message for user
88+
'500':
89+
description: Internal Server Error
90+
content:
91+
application/json:
92+
schema:
93+
type: object
94+
properties:
95+
code:
96+
type: integer
97+
format: int32
98+
description: Error code
99+
status:
100+
type: string
101+
description: Error message
102+
userDetailedMessage:
103+
type: string
104+
description: Detailed error message for user

0 commit comments

Comments
 (0)