@@ -178,3 +178,91 @@ type User struct {
178
178
UserName string `json:"userName,omitempty"`
179
179
CreatedAt int64 `json:"createdAt,omitempty"`
180
180
}
181
+
182
+ // InputSetListOptions represents the options for listing input sets
183
+ type InputSetListOptions struct {
184
+ PaginationOptions
185
+ PipelineIdentifier string `json:"pipelineIdentifier,omitempty"`
186
+ SearchTerm string `json:"searchTerm,omitempty"`
187
+ }
188
+
189
+ // InputSetListItem represents an item in the input set list
190
+ type InputSetListItem struct {
191
+ Identifier string `json:"identifier,omitempty"`
192
+ Name string `json:"name,omitempty"`
193
+ PipelineIdentifier string `json:"pipelineIdentifier,omitempty"`
194
+ Description string `json:"description,omitempty"`
195
+ InputSetType string `json:"inputSetType,omitempty"`
196
+ Tags map [string ]string `json:"tags,omitempty"`
197
+ GitDetails GitDetails `json:"gitDetails,omitempty"`
198
+ CreatedAt int64 `json:"createdAt,omitempty"`
199
+ LastUpdatedAt int64 `json:"lastUpdatedAt,omitempty"`
200
+ IsOutdated bool `json:"isOutdated,omitempty"`
201
+ InputSetErrorDetails InputSetErrorDetails `json:"inputSetErrorDetails,omitempty"`
202
+ OverlaySetErrorDetails map [string ]string `json:"overlaySetErrorDetails,omitempty"`
203
+ EntityValidityDetails EntityValidityDetails `json:"entityValidityDetails,omitempty"`
204
+ Modules []string `json:"modules,omitempty"`
205
+ }
206
+
207
+ // InputSetErrorDetails represents error details for input sets
208
+ type InputSetErrorDetails struct {
209
+ ErrorPipelineYaml string `json:"errorPipelineYaml,omitempty"`
210
+ UuidToErrorResponseMap map [string ]interface {} `json:"uuidToErrorResponseMap,omitempty"`
211
+ InvalidInputSetReferences []string `json:"invalidInputSetReferences,omitempty"`
212
+ Type string `json:"type,omitempty"`
213
+ }
214
+
215
+ // InputSetListResponse represents the full response structure for listing input sets
216
+ type InputSetListResponse struct {
217
+ Status string `json:"status,omitempty"`
218
+ Data InputSetListData `json:"data,omitempty"`
219
+ MetaData map [string ]interface {} `json:"metaData,omitempty"`
220
+ CorrelationId string `json:"correlationId,omitempty"`
221
+ }
222
+
223
+ // InputSetListData represents the data field of input set list response
224
+ type InputSetListData struct {
225
+ TotalPages int `json:"totalPages,omitempty"`
226
+ TotalItems int `json:"totalItems,omitempty"`
227
+ PageItemCount int `json:"pageItemCount,omitempty"`
228
+ PageSize int `json:"pageSize,omitempty"`
229
+ Content []InputSetListItem `json:"content,omitempty"`
230
+ PageIndex int `json:"pageIndex,omitempty"`
231
+ Empty bool `json:"empty,omitempty"`
232
+ PageToken string `json:"pageToken,omitempty"`
233
+ }
234
+
235
+ // InputSetDetail represents the detailed information of a specific input set
236
+ type InputSetDetail struct {
237
+ AccountId string `json:"accountId,omitempty"`
238
+ OrgIdentifier string `json:"orgIdentifier,omitempty"`
239
+ ProjectIdentifier string `json:"projectIdentifier,omitempty"`
240
+ PipelineIdentifier string `json:"pipelineIdentifier,omitempty"`
241
+ Identifier string `json:"identifier,omitempty"`
242
+ InputSetYaml string `json:"inputSetYaml,omitempty"`
243
+ Name string `json:"name,omitempty"`
244
+ Description string `json:"description,omitempty"`
245
+ Tags map [string ]string `json:"tags,omitempty"`
246
+ InputSetErrorWrapper InputSetErrorWrapper `json:"inputSetErrorWrapper,omitempty"`
247
+ GitDetails GitDetails `json:"gitDetails,omitempty"`
248
+ EntityValidityDetails EntityValidityDetails `json:"entityValidityDetails,omitempty"`
249
+ Outdated bool `json:"outdated,omitempty"`
250
+ ErrorResponse bool `json:"errorResponse,omitempty"`
251
+ }
252
+
253
+ // InputSetErrorWrapper represents the error wrapper for input sets
254
+ type InputSetErrorWrapper struct {
255
+ ErrorPipelineYaml string `json:"errorPipelineYaml,omitempty"`
256
+ UuidToErrorResponseMap map [string ]interface {} `json:"uuidToErrorResponseMap,omitempty"`
257
+ InvalidInputSetReferences []string `json:"invalidInputSetReferences,omitempty"`
258
+ Type string `json:"type,omitempty"`
259
+ }
260
+
261
+ // InputSetResponse represents the full response structure for getting a specific input set
262
+ type InputSetResponse struct {
263
+ Status string `json:"status,omitempty"`
264
+ Data InputSetDetail `json:"data,omitempty"`
265
+ MetaData map [string ]interface {} `json:"metaData,omitempty"`
266
+ CorrelationId string `json:"correlationId,omitempty"`
267
+ }
268
+
0 commit comments