json.go 59.5 KB
Newer Older
S
sunzhu 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
/*

 Copyright 2019 The KubeSphere Authors.

 Licensed under the Apache License, Version 2.0 (the "License");
 you may not use this file except in compliance with the License.
 You may obtain a copy of the License at

     http://www.apache.org/licenses/LICENSE-2.0

 Unless required by applicable law or agreed to in writing, software
 distributed under the License is distributed on an "AS IS" BASIS,
 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 See the License for the specific language governing permissions and
 limitations under the License.

*/
package devops

Z
Zhuxiaoyang 已提交
20
// GetPipeline & SearchPipelines
S
sunzhu 已提交
21
type Pipeline struct {
S
soulseen 已提交
22
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability." `
Z
Zhuxiaoyang 已提交
23 24
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
25 26 27
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
28
		Scm struct {
Z
Zhuxiaoyang 已提交
29 30 31
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"scm,omitempty"`
Z
Zhuxiaoyang 已提交
32
		Branches struct {
Z
Zhuxiaoyang 已提交
33 34 35
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"branches,omitempty"`
Z
Zhuxiaoyang 已提交
36
		Actions struct {
Z
Zhuxiaoyang 已提交
37 38 39
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
40
		Runs struct {
Z
Zhuxiaoyang 已提交
41 42 43
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"runs,omitempty"`
Z
Zhuxiaoyang 已提交
44
		Trends struct {
Z
Zhuxiaoyang 已提交
45 46 47
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"trends,omitempty"`
Z
Zhuxiaoyang 已提交
48
		Queue struct {
Z
Zhuxiaoyang 已提交
49 50 51
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"queue,omitempty"`
S
soulseen 已提交
52 53 54 55 56 57 58 59 60
	} `json:"_links,omitempty" description:"references the reachable path to this resource."`
	Actions         []interface{} `json:"actions,omitempty" description:"the list of actions."`
	Disabled        interface{}   `json:"disabled,omitempty" description:"disable or not"`
	DisplayName     string        `json:"displayName,omitempty" description:"display name"`
	FullDisplayName string        `json:"fullDisplayName,omitempty" description:"full display name"`
	FullName        string        `json:"fullName,omitempty" description:"full name"`
	Name            string        `json:"name,omitempty" description:"name"`
	Organization    string        `json:"organization,omitempty" description:"organization name"`
	Parameters      interface{}   `json:"parameters,omitempty" description:"parameters of pipeline"`
Z
Zhuxiaoyang 已提交
61
	Permissions     struct {
S
soulseen 已提交
62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
		Create    bool `json:"create,omitempty" description:"create action"`
		Configure bool `json:"configure,omitempty" description:"configure action"`
		Read      bool `json:"read,omitempty" description:"read action"`
		Start     bool `json:"start,omitempty" description:"start action"`
		Stop      bool `json:"stop,omitempty" description:"stop action"`
	} `json:"permissions,omitempty" description:"permissions"`
	EstimatedDurationInMillis      int           `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time, unit is millis"`
	NumberOfFolders                int           `json:"numberOfFolders,omitempty" description:"number of folders"`
	NumberOfPipelines              int           `json:"numberOfPipelines,omitempty" description:"number of pipelines"`
	PipelineFolderNames            []interface{} `json:"pipelineFolderNames,omitempty" description:"pipeline folder names"`
	WeatherScore                   int           `json:"weatherScore,omitempty" description:"the score to description the result of pipeline"`
	BranchNames                    []string      `json:"branchNames,omitempty" description:"branch names"`
	NumberOfFailingBranches        int           `json:"numberOfFailingBranches,omitempty" description:"number of failing branches"`
	NumberOfFailingPullRequests    int           `json:"numberOfFailingPullRequests,omitempty" description:"number of failing pull requests"`
	NumberOfSuccessfulBranches     int           `json:"numberOfSuccessfulBranches,omitempty" description:"number of successful pull requests"`
	NumberOfSuccessfulPullRequests int           `json:"numberOfSuccessfulPullRequests,omitempty" description:"number of successful pull requests"`
Z
Zhuxiaoyang 已提交
78
	ScmSource                      struct {
S
soulseen 已提交
79 80 81
		Class  string      `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		APIURL interface{} `json:"apiUrl,omitempty" description:"api url"`
		ID     string      `json:"id,omitempty" description:"scm source id"`
Z
Zhuxiaoyang 已提交
82
	} `json:"scmSource,omitempty"`
S
soulseen 已提交
83 84
	TotalNumberOfBranches     int `json:"totalNumberOfBranches,omitempty" description:"total number of branches"`
	TotalNumberOfPullRequests int `json:"totalNumberOfPullRequests,omitempty" description:"total number of pull requests"`
S
sunzhu 已提交
85
}
Z
Zhuxiaoyang 已提交
86

Z
Zhuxiaoyang 已提交
87
// GetPipeBranchRun & SearchPipelineRuns
Z
Zhuxiaoyang 已提交
88
type BranchPipelineRun struct {
S
soulseen 已提交
89
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
90 91
	Links struct {
		PrevRun struct {
Z
Zhuxiaoyang 已提交
92 93 94
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"prevRun,omitempty"`
Z
Zhuxiaoyang 已提交
95
		Parent struct {
Z
Zhuxiaoyang 已提交
96 97 98
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"parent,omitempty"`
Z
Zhuxiaoyang 已提交
99
		Tests struct {
Z
Zhuxiaoyang 已提交
100 101 102
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"tests,omitempty"`
Z
Zhuxiaoyang 已提交
103
		Nodes struct {
Z
Zhuxiaoyang 已提交
104 105 106
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"nodes,omitempty"`
Z
Zhuxiaoyang 已提交
107
		Log struct {
Z
Zhuxiaoyang 已提交
108 109 110
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"log,omitempty"`
Z
Zhuxiaoyang 已提交
111
		Self struct {
Z
Zhuxiaoyang 已提交
112 113 114
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
115
		BlueTestSummary struct {
Z
Zhuxiaoyang 已提交
116 117 118
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"blueTestSummary,omitempty"`
Z
Zhuxiaoyang 已提交
119
		Actions struct {
Z
Zhuxiaoyang 已提交
120 121 122
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
123
		Steps struct {
Z
Zhuxiaoyang 已提交
124 125 126
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"steps,omitempty"`
Z
Zhuxiaoyang 已提交
127
		Artifacts struct {
Z
Zhuxiaoyang 已提交
128 129 130
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"artifacts,omitempty"`
Z
Zhuxiaoyang 已提交
131
		NextRun struct {
Z
Zhuxiaoyang 已提交
132 133 134
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"nextRun,omitempty"`
S
soulseen 已提交
135 136 137 138
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions          []interface{} `json:"actions,omitempty" description:"the list of actions"`
	ArtifactsZipFile interface{}   `json:"artifactsZipFile,omitempty" description:"the artifacts zip file"`
	CauseOfBlockage  interface{}   `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
139
	Causes           []struct {
S
soulseen 已提交
140 141 142 143
		Class            string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		ShortDescription string `json:"shortDescription,omitempty" description:"short description"`
		UserID           string `json:"userId,omitempty" description:"user id"`
		UserName         string `json:"userName,omitempty" description:"user name"`
Z
Zhuxiaoyang 已提交
144
	} `json:"causes,omitempty"`
S
soulseen 已提交
145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
	ChangeSet                 []interface{} `json:"changeSet,omitempty" description:"change set"`
	Description               interface{}   `json:"description,omitempty" description:"description of resource"`
	DurationInMillis          int           `json:"durationInMillis,omitempty" description:"duration time in millis"`
	EnQueueTime               string        `json:"enQueueTime,omitempty" description:"enqueue time"`
	EndTime                   string        `json:"endTime,omitempty" description:"end time"`
	EstimatedDurationInMillis int           `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time in millis"`
	ID                        string        `json:"id,omitempty" description:"id"`
	Name                      interface{}   `json:"name,omitempty" description:"name"`
	Organization              string        `json:"organization,omitempty" description:"organization name"`
	Pipeline                  string        `json:"pipeline,omitempty" description:"pipeline name"`
	Replayable                bool          `json:"replayable,omitempty" description:"replayable or not"`
	Result                    string        `json:"result,omitempty" description:"result"`
	RunSummary                string        `json:"runSummary,omitempty" description:"pipeline run summary"`
	StartTime                 string        `json:"startTime,omitempty" description:"start time"`
	State                     string        `json:"state,omitempty" description:"pipeline run state"`
	Type                      string        `json:"type,omitempty" description:"source type"`
Z
Zhuxiaoyang 已提交
161
	Branch                    struct {
S
soulseen 已提交
162 163 164
		IsPrimary bool          `json:"isPrimary,omitempty" description:"primary or not"`
		Issues    []interface{} `json:"issues,omitempty" description:"issues"`
		URL       string        `json:"url,omitempty" description:"url"`
Z
Zhuxiaoyang 已提交
165
	} `json:"branch,omitempty"`
S
soulseen 已提交
166 167 168
	CommitID    string      `json:"commitId,omitempty" description:"commit id"`
	CommitURL   interface{} `json:"commitUrl,omitempty" description:"commit url "`
	PullRequest interface{} `json:"pullRequest,omitempty" description:"pull request"`
S
sunzhu 已提交
169
}
Z
Zhuxiaoyang 已提交
170

Z
Zhuxiaoyang 已提交
171
// GetBranchPipeRunNodes
Z
Zhuxiaoyang 已提交
172
type BranchPipelineRunNodes struct {
S
soulseen 已提交
173
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
174 175
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
176 177 178
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
179
		Actions struct {
Z
Zhuxiaoyang 已提交
180 181 182
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
183
		Steps struct {
Z
Zhuxiaoyang 已提交
184 185 186
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"steps,omitempty"`
S
soulseen 已提交
187 188 189 190 191 192 193 194 195 196 197 198
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions            []interface{} `json:"actions,omitempty" description:"the list of actions"`
	DisplayDescription interface{}   `json:"displayDescription,omitempty" description:"display description"`
	DisplayName        string        `json:"displayName,omitempty" description:"display name"`
	DurationInMillis   int           `json:"durationInMillis,omitempty" description:"duration time in millis"`
	ID                 string        `json:"id,omitempty" description:"id"`
	Input              interface{}   `json:"input,omitempty" description:"input"`
	Result             string        `json:"result,omitempty" description:"result"`
	StartTime          string        `json:"startTime,omitempty" description:"start time"`
	State              string        `json:"state,omitempty" description:"statue"`
	Type               string        `json:"type,omitempty" description:"source type"`
	CauseOfBlockage    interface{}   `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
199
	Edges              []struct {
S
soulseen 已提交
200 201 202
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		ID    string `json:"id,omitempty" description:"id"`
		Type  string `json:"type,omitempty" description:"source type"`
Z
Zhuxiaoyang 已提交
203
	} `json:"edges,omitempty"`
S
soulseen 已提交
204 205
	FirstParent interface{} `json:"firstParent,omitempty" description:"first parent resource"`
	Restartable bool        `json:"restartable,omitempty" description:"restartable or not"`
Z
Zhuxiaoyang 已提交
206
	Steps       []struct {
S
soulseen 已提交
207
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
208 209
		Links struct {
			Self struct {
Z
Zhuxiaoyang 已提交
210 211 212
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
213
			Actions struct {
Z
Zhuxiaoyang 已提交
214 215 216 217
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"actions,omitempty"`
		} `json:"_links,omitempty"`
Z
Zhuxiaoyang 已提交
218
		Actions []struct {
Z
Zhuxiaoyang 已提交
219
			Class string `json:"_class,omitempty"`
Z
Zhuxiaoyang 已提交
220 221
			Links struct {
				Self struct {
Z
Zhuxiaoyang 已提交
222 223 224 225 226
					Class string `json:"_class,omitempty"`
					Href  string `json:"href,omitempty"`
				} `json:"self,omitempty"`
			} `json:"_links,omitempty"`
			URLName string `json:"urlName,omitempty"`
S
soulseen 已提交
227 228
		} `json:"actions,omitempty" description:"references the reachable path to this resource"`
		DisplayDescription interface{} `json:"displayDescription,omitempty" description:"display description"`
S
soulseen 已提交
229
		DisplayName        string      `json:"displayName,omitempty" description:"display name"`
S
soulseen 已提交
230 231 232 233 234 235 236
		DurationInMillis   int         `json:"durationInMillis,omitempty" description:"duration time in millis"`
		ID                 string      `json:"id,omitempty" description:"id"`
		Input              interface{} `json:"input,omitempty" description:"input"`
		Result             string      `json:"result,omitempty" description:"result"`
		StartTime          string      `json:"startTime,omitempty" description:"start time"`
		State              string      `json:"state,omitempty" description:"source state"`
		Type               string      `json:"type,omitempty" description:"source type"`
Z
Zhuxiaoyang 已提交
237
	} `json:"steps,omitempty"`
S
sunzhu 已提交
238
}
Z
Zhuxiaoyang 已提交
239 240 241

// Validate
type Validates struct {
S
soulseen 已提交
242
	CredentialID string `json:"credentialId,omitempty" description:"credential id"`
S
sunzhu 已提交
243
}
Z
Zhuxiaoyang 已提交
244 245 246

// GetSCMOrg
type SCMOrg struct {
S
soulseen 已提交
247
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
248 249
	Links struct {
		Repositories struct {
R
runzexia 已提交
250 251
			Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
			Href  string `json:"href,omitempty" description:"url in api"`
Z
Zhuxiaoyang 已提交
252
		} `json:"repositories,omitempty"`
Z
Zhuxiaoyang 已提交
253
		Self struct {
R
runzexia 已提交
254 255 256
			Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
			Href  string `json:"href,omitempty" description:"self url in api"`
		} `json:"self,omitempty" description:"scm org self info"`
S
soulseen 已提交
257 258 259
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Avatar                      string `json:"avatar,omitempty" description:"avatar url"`
	JenkinsOrganizationPipeline bool   `json:"jenkinsOrganizationPipeline,omitempty" description:"jenkins organization pipeline"`
R
runzexia 已提交
260
	Name                        string `json:"name,omitempty" description:"org name "`
S
sunzhu 已提交
261
}
Z
Zhuxiaoyang 已提交
262 263 264

// GetOrgRepo
type OrgRepo struct {
S
soulseen 已提交
265
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
266 267
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
268 269 270
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
S
soulseen 已提交
271
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
Z
Zhuxiaoyang 已提交
272
	Repositories struct {
S
soulseen 已提交
273
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
274 275
		Links struct {
			Self struct {
Z
Zhuxiaoyang 已提交
276 277 278
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"self,omitempty"`
S
soulseen 已提交
279
		} `json:"_links,omitempty" description:"references the reachable path to this resource"`
Z
Zhuxiaoyang 已提交
280
		Items []struct {
S
soulseen 已提交
281
			Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
282 283
			Links struct {
				Self struct {
Z
Zhuxiaoyang 已提交
284 285 286
					Class string `json:"_class,omitempty"`
					Href  string `json:"href,omitempty"`
				} `json:"self,omitempty"`
S
soulseen 已提交
287 288 289 290
			} `json:"_links,omitempty" description:"references the reachable path to this resource"`
			DefaultBranch string `json:"defaultBranch,omitempty" description:"default branch"`
			Description   string `json:"description,omitempty" description:"description"`
			Name          string `json:"name,omitempty" description:"name"`
Z
Zhuxiaoyang 已提交
291
			Permissions   struct {
S
soulseen 已提交
292 293 294
				Admin bool `json:"admin,omitempty" description:"admin"`
				Push  bool `json:"push,omitempty" description:"push action"`
				Pull  bool `json:"pull,omitempty" description:"pull action"`
Z
Zhuxiaoyang 已提交
295
			} `json:"permissions,omitempty"`
S
soulseen 已提交
296 297
			Private  bool   `json:"private,omitempty" description:"private"`
			FullName string `json:"fullName,omitempty" description:"full name"`
Z
Zhuxiaoyang 已提交
298
		} `json:"items,omitempty"`
S
soulseen 已提交
299 300 301
		LastPage interface{} `json:"lastPage,omitempty" description:"last page"`
		NextPage interface{} `json:"nextPage,omitempty" description:"next page"`
		PageSize int         `json:"pageSize,omitempty" description:"page size"`
Z
Zhuxiaoyang 已提交
302
	} `json:"repositories,omitempty"`
S
sunzhu 已提交
303
}
Z
Zhuxiaoyang 已提交
304 305 306

// StopPipeline
type StopPipe struct {
S
soulseen 已提交
307
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
308 309
	Links struct {
		Parent struct {
Z
Zhuxiaoyang 已提交
310 311 312
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"parent,omitempty"`
Z
Zhuxiaoyang 已提交
313
		Tests struct {
Z
Zhuxiaoyang 已提交
314 315 316
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"tests,omitempty"`
Z
Zhuxiaoyang 已提交
317
		Nodes struct {
Z
Zhuxiaoyang 已提交
318 319 320
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"nodes,omitempty"`
Z
Zhuxiaoyang 已提交
321
		Log struct {
Z
Zhuxiaoyang 已提交
322 323 324
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"log,omitempty"`
Z
Zhuxiaoyang 已提交
325
		Self struct {
Z
Zhuxiaoyang 已提交
326 327 328
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
329
		BlueTestSummary struct {
Z
Zhuxiaoyang 已提交
330 331 332
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"blueTestSummary,omitempty"`
Z
Zhuxiaoyang 已提交
333
		Actions struct {
Z
Zhuxiaoyang 已提交
334 335 336
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
337
		Steps struct {
Z
Zhuxiaoyang 已提交
338 339 340
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"steps,omitempty"`
Z
Zhuxiaoyang 已提交
341
		Artifacts struct {
Z
Zhuxiaoyang 已提交
342 343 344
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"artifacts,omitempty"`
S
soulseen 已提交
345 346 347 348
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions          []interface{} `json:"actions,omitempty" description:"the list of actions."`
	ArtifactsZipFile interface{}   `json:"artifactsZipFile,omitempty" description:"the artifacts zip file"`
	CauseOfBlockage  interface{}   `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
349
	Causes           []struct {
S
soulseen 已提交
350 351
		Class            string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		ShortDescription string `json:"shortDescription,omitempty" description:"short description"`
Z
Zhuxiaoyang 已提交
352
	} `json:"causes,omitempty"`
S
soulseen 已提交
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368
	ChangeSet                 []interface{} `json:"changeSet,omitempty" description:"change set"`
	Description               interface{}   `json:"description,omitempty" description:"description"`
	DurationInMillis          int           `json:"durationInMillis,omitempty" description:"duration time in millis"`
	EnQueueTime               string        `json:"enQueueTime,omitempty" description:"enqueue time"`
	EndTime                   string        `json:"endTime,omitempty" description:"end time"`
	EstimatedDurationInMillis int           `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time in millis"`
	ID                        string        `json:"id,omitempty" description:"id"`
	Name                      interface{}   `json:"name,omitempty" description:"name"`
	Organization              string        `json:"organization,omitempty" description:"organization"`
	Pipeline                  string        `json:"pipeline,omitempty" description:"pipeline"`
	Replayable                bool          `json:"replayable,omitempty" description:"replayable or not"`
	Result                    string        `json:"result,omitempty" description:"result"`
	RunSummary                string        `json:"runSummary,omitempty" description:"pipeline run summary"`
	StartTime                 string        `json:"startTime,omitempty" description:"start time"`
	State                     string        `json:"state,omitempty" description:"State"`
	Type                      string        `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
369
	Branch                    struct {
S
soulseen 已提交
370 371 372
		IsPrimary bool          `json:"isPrimary,omitempty" description:"primary or not"`
		Issues    []interface{} `json:"issues,omitempty" description:"issues"`
		URL       string        `json:"url,omitempty" description:"url"`
Z
Zhuxiaoyang 已提交
373
	} `json:"branch,omitempty"`
S
soulseen 已提交
374 375 376
	CommitID    string      `json:"commitId,omitempty" description:"commit id"`
	CommitURL   interface{} `json:"commitUrl,omitempty" description:"commit url"`
	PullRequest interface{} `json:"pullRequest,omitempty" description:"pull request"`
S
sunzhu 已提交
377
}
Z
Zhuxiaoyang 已提交
378 379 380

// ReplayPipeline
type ReplayPipe struct {
S
soulseen 已提交
381
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
382 383
	Links struct {
		Parent struct {
Z
Zhuxiaoyang 已提交
384 385 386
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"parent,omitempty"`
Z
Zhuxiaoyang 已提交
387
		Tests struct {
Z
Zhuxiaoyang 已提交
388 389 390
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"tests,omitempty"`
Z
Zhuxiaoyang 已提交
391
		Log struct {
Z
Zhuxiaoyang 已提交
392 393 394
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"log,omitempty"`
Z
Zhuxiaoyang 已提交
395
		Self struct {
Z
Zhuxiaoyang 已提交
396 397 398
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
399
		BlueTestSummary struct {
Z
Zhuxiaoyang 已提交
400 401 402
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"blueTestSummary,omitempty"`
Z
Zhuxiaoyang 已提交
403
		Actions struct {
Z
Zhuxiaoyang 已提交
404 405 406
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
407
		Artifacts struct {
Z
Zhuxiaoyang 已提交
408 409 410
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"artifacts,omitempty"`
S
soulseen 已提交
411 412 413 414
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions          []interface{} `json:"actions,omitempty" description:"the list of actions."`
	ArtifactsZipFile interface{}   `json:"artifactsZipFile,omitempty" description:"the artifacts zip file"`
	CauseOfBlockage  string        `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
415
	Causes           []struct {
S
soulseen 已提交
416 417 418 419
		Class            string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		ShortDescription string `json:"shortDescription,omitempty" description:"short description"`
		UserID           string `json:"userId,omitempty" description:"user id"`
		UserName         string `json:"userName,omitempty" description:"user name"`
Z
Zhuxiaoyang 已提交
420
	} `json:"causes,omitempty"`
S
soulseen 已提交
421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437
	ChangeSet                 []interface{} `json:"changeSet,omitempty" description:"change set"`
	Description               interface{}   `json:"description,omitempty" description:"description"`
	DurationInMillis          interface{}   `json:"durationInMillis,omitempty" description:"duration time in millis"`
	EnQueueTime               interface{}   `json:"enQueueTime,omitempty" description:"enqueue time"`
	EndTime                   interface{}   `json:"endTime,omitempty" description:"end time"`
	EstimatedDurationInMillis interface{}   `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time, unit is millis"`
	ID                        string        `json:"id,omitempty" description:"id"`
	Name                      interface{}   `json:"name,omitempty" description:"name"`
	Organization              string        `json:"organization,omitempty" description:"organization"`
	Pipeline                  string        `json:"pipeline,omitempty" description:"pipeline"`
	Replayable                bool          `json:"replayable,omitempty" description:"replayable or not"`
	Result                    string        `json:"result,omitempty" description:"result"`
	RunSummary                interface{}   `json:"runSummary,omitempty" description:"pipeline run summary"`
	StartTime                 interface{}   `json:"startTime,omitempty" description:"start time"`
	State                     string        `json:"state,omitempty" description:"state"`
	Type                      string        `json:"type,omitempty" description:"type"`
	QueueID                   string        `json:"queueId,omitempty" description:"queue id"`
S
sunzhu 已提交
438
}
Z
Zhuxiaoyang 已提交
439 440 441

// GetArtifacts
type Artifacts struct {
S
soulseen 已提交
442
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
443 444
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
445 446 447
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
S
soulseen 已提交
448 449 450 451 452 453 454
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Downloadable bool   `json:"downloadable,omitempty" description:"downloadable or not"`
	ID           string `json:"id,omitempty" description:"id"`
	Name         string `json:"name,omitempty" description:"name"`
	Path         string `json:"path,omitempty" description:"path"`
	Size         int    `json:"size,omitempty" description:"size"`
	URL          string `json:"url,omitempty" description:"The url for Download artifacts"`
S
sunzhu 已提交
455
}
Z
Zhuxiaoyang 已提交
456 457 458

// GetPipeBranch
type PipeBranch struct {
S
soulseen 已提交
459
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
460 461
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
462 463 464
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
465
		Scm struct {
Z
Zhuxiaoyang 已提交
466 467 468
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"scm,omitempty"`
Z
Zhuxiaoyang 已提交
469
		Actions struct {
Z
Zhuxiaoyang 已提交
470 471 472
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
473
		Runs struct {
Z
Zhuxiaoyang 已提交
474 475 476
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"runs,omitempty"`
Z
Zhuxiaoyang 已提交
477
		Trends struct {
Z
Zhuxiaoyang 已提交
478 479 480
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"trends,omitempty"`
Z
Zhuxiaoyang 已提交
481
		Queue struct {
Z
Zhuxiaoyang 已提交
482 483 484
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"queue,omitempty"`
S
soulseen 已提交
485 486 487 488 489 490 491
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions                   []interface{} `json:"actions,omitempty" description:"the list of actions."`
	Disabled                  bool          `json:"disabled,omitempty" description:"disable or not"`
	DisplayName               string        `json:"displayName,omitempty" description:"display name"`
	EstimatedDurationInMillis int           `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time, unit is millis"`
	FullDisplayName           string        `json:"fullDisplayName,omitempty" description:"full display name"`
	FullName                  string        `json:"fullName,omitempty" description:"full name"`
Z
Zhuxiaoyang 已提交
492
	LatestRun                 struct {
S
soulseen 已提交
493
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
494 495
		Links struct {
			PrevRun struct {
Z
Zhuxiaoyang 已提交
496 497 498
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"prevRun,omitempty"`
Z
Zhuxiaoyang 已提交
499
			Parent struct {
Z
Zhuxiaoyang 已提交
500 501 502
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"parent,omitempty"`
Z
Zhuxiaoyang 已提交
503
			Tests struct {
Z
Zhuxiaoyang 已提交
504 505 506
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"tests,omitempty"`
Z
Zhuxiaoyang 已提交
507
			Log struct {
Z
Zhuxiaoyang 已提交
508 509 510
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"log,omitempty"`
Z
Zhuxiaoyang 已提交
511
			Self struct {
Z
Zhuxiaoyang 已提交
512 513 514
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
515
			BlueTestSummary struct {
Z
Zhuxiaoyang 已提交
516 517 518
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"blueTestSummary,omitempty"`
Z
Zhuxiaoyang 已提交
519
			Actions struct {
Z
Zhuxiaoyang 已提交
520 521 522
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
523
			Artifacts struct {
Z
Zhuxiaoyang 已提交
524 525 526
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"artifacts,omitempty"`
S
soulseen 已提交
527 528 529 530
		} `json:"_links,omitempty" description:"references the reachable path to this resource"`
		Actions          []interface{} `json:"actions,omitempty" description:"the list of actions"`
		ArtifactsZipFile string        `json:"artifactsZipFile,omitempty" description:"the artifacts zip file"`
		CauseOfBlockage  interface{}   `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
531
		Causes           []struct {
S
soulseen 已提交
532 533
			Class            string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
			ShortDescription string `json:"shortDescription,omitempty" description:"short description"`
Z
Zhuxiaoyang 已提交
534
		} `json:"causes,omitempty"`
S
soulseen 已提交
535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550
		ChangeSet                 []interface{} `json:"changeSet,omitempty" description:"change set"`
		Description               interface{}   `json:"description,omitempty" description:"description"`
		DurationInMillis          int           `json:"durationInMillis,omitempty" description:"duration time in millis"`
		EnQueueTime               string        `json:"enQueueTime,omitempty" description:"enqueue time"`
		EndTime                   string        `json:"endTime,omitempty" description:"end time"`
		EstimatedDurationInMillis int           `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time in millis"`
		ID                        string        `json:"id,omitempty" description:"id"`
		Name                      interface{}   `json:"name,omitempty" description:"name"`
		Organization              string        `json:"organization,omitempty" description:"organization"`
		Pipeline                  string        `json:"pipeline,omitempty" description:"pipeline"`
		Replayable                bool          `json:"replayable,omitempty" description:"replayable or not"`
		Result                    string        `json:"result,omitempty" description:"result"`
		RunSummary                string        `json:"runSummary,omitempty" description:"pipeline run summary"`
		StartTime                 string        `json:"startTime,omitempty" description:"start run"`
		State                     string        `json:"state,omitempty" description:"state"`
		Type                      string        `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
551
	} `json:"latestRun,omitempty"`
S
soulseen 已提交
552 553
	Name         string `json:"name,omitempty" description:"name"`
	Organization string `json:"organization,omitempty" description:"organization"`
Z
Zhuxiaoyang 已提交
554
	Parameters   []struct {
S
soulseen 已提交
555
		Class                 string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
556
		DefaultParameterValue struct {
S
soulseen 已提交
557 558 559
			Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
			Name  string `json:"name,omitempty" description:"name"`
			Value string `json:"value,omitempty" description:"value"`
Z
Zhuxiaoyang 已提交
560
		} `json:"defaultParameterValue,omitempty"`
S
soulseen 已提交
561 562 563
		Description string `json:"description,omitempty" description:"description"`
		Name        string `json:"name,omitempty" description:"name"`
		Type        string `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
564
	} `json:"parameters,omitempty"`
Z
Zhuxiaoyang 已提交
565
	Permissions struct {
S
soulseen 已提交
566 567 568 569 570
		Create    bool `json:"create,omitempty" description:"create action"`
		Configure bool `json:"configure,omitempty" description:"configure action"`
		Read      bool `json:"read,omitempty" description:"read action"`
		Start     bool `json:"start,omitempty" description:"start action"`
		Stop      bool `json:"stop,omitempty" description:"stop action"`
Z
Zhuxiaoyang 已提交
571
	} `json:"permissions,omitempty"`
S
soulseen 已提交
572
	WeatherScore int `json:"weatherScore,omitempty" description:"the score to description the result of pipeline"`
Z
Zhuxiaoyang 已提交
573
	Branch       struct {
S
soulseen 已提交
574 575 576
		IsPrimary bool          `json:"isPrimary,omitempty" description:"primary or not"`
		Issues    []interface{} `json:"issues,omitempty" description:"issues"`
		URL       string        `json:"url,omitempty" description:"url"`
Z
Zhuxiaoyang 已提交
577
	} `json:"branch,omitempty"`
S
sunzhu 已提交
578
}
Z
Zhuxiaoyang 已提交
579 580 581 582

// RunPipeline
type RunPayload struct {
	Parameters []struct {
S
soulseen 已提交
583 584
		Name  string `json:"name,omitempty" description:"name"`
		Value string `json:"value,omitempty" description:"value"`
Z
Zhuxiaoyang 已提交
585
	} `json:"parameters,omitempty"`
Z
Zhuxiaoyang 已提交
586 587 588
}

type QueuedBlueRun struct {
S
soulseen 已提交
589
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
590 591
	Links struct {
		Parent struct {
Z
Zhuxiaoyang 已提交
592 593 594
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"parent,omitempty"`
Z
Zhuxiaoyang 已提交
595
		Tests struct {
Z
Zhuxiaoyang 已提交
596 597 598
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"tests,omitempty"`
Z
Zhuxiaoyang 已提交
599
		Log struct {
Z
Zhuxiaoyang 已提交
600 601 602
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"log,omitempty"`
Z
Zhuxiaoyang 已提交
603
		Self struct {
Z
Zhuxiaoyang 已提交
604 605 606
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
607
		BlueTestSummary struct {
Z
Zhuxiaoyang 已提交
608 609 610
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"blueTestSummary,omitempty"`
Z
Zhuxiaoyang 已提交
611
		Actions struct {
Z
Zhuxiaoyang 已提交
612 613 614
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
615
		Artifacts struct {
Z
Zhuxiaoyang 已提交
616 617 618
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"artifacts,omitempty"`
S
soulseen 已提交
619 620 621 622
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions          []interface{} `json:"actions,omitempty" description:"the list of actions"`
	ArtifactsZipFile interface{}   `json:"artifactsZipFile,omitempty" description:"the artifacts zip file"`
	CauseOfBlockage  string        `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
623
	Causes           []struct {
S
soulseen 已提交
624 625 626 627
		Class            string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		ShortDescription string `json:"shortDescription,omitempty" description:"short description"`
		UserID           string `json:"userId,omitempty" description:"user id"`
		UserName         string `json:"userName,omitempty" description:"user name"`
Z
Zhuxiaoyang 已提交
628
	} `json:"causes,omitempty"`
S
soulseen 已提交
629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645
	ChangeSet                 []interface{} `json:"changeSet,omitempty" description:"change set"`
	Description               interface{}   `json:"description,omitempty" description:"description"`
	DurationInMillis          interface{}   `json:"durationInMillis,omitempty" description:"duration time in millis"`
	EnQueueTime               interface{}   `json:"enQueueTime,omitempty" description:"enqueue time"`
	EndTime                   interface{}   `json:"endTime,omitempty" description:"end time"`
	EstimatedDurationInMillis interface{}   `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time in millis"`
	ID                        string        `json:"id,omitempty" description:"id"`
	Name                      interface{}   `json:"name,omitempty" description:"name"`
	Organization              string        `json:"organization,omitempty" description:"organization"`
	Pipeline                  string        `json:"pipeline,omitempty" description:"pipeline"`
	Replayable                bool          `json:"replayable,omitempty" description:"replayable or not"`
	Result                    string        `json:"result,omitempty" description:"result"`
	RunSummary                interface{}   `json:"runSummary,omitempty" description:"pipeline run summary"`
	StartTime                 interface{}   `json:"startTime,omitempty" description:"start time"`
	State                     string        `json:"state,omitempty" description:"state"`
	Type                      string        `json:"type,omitempty" description:"type"`
	QueueID                   string        `json:"queueId,omitempty" description:"queue id"`
S
sunzhu 已提交
646
}
Z
Zhuxiaoyang 已提交
647 648

// GetNodeStatus
Z
Zhuxiaoyang 已提交
649
type NodeStatus struct {
S
soulseen 已提交
650
	Class string `json:"_class,omitempty" description:""`
Z
Zhuxiaoyang 已提交
651 652
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
653 654 655
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
656
		Actions struct {
Z
Zhuxiaoyang 已提交
657 658 659
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
660
		Steps struct {
Z
Zhuxiaoyang 已提交
661 662 663
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"steps,omitempty"`
S
soulseen 已提交
664 665 666 667 668 669 670 671 672 673 674 675
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions            []interface{} `json:"actions,omitempty" description:"the list of actions"`
	DisplayDescription interface{}   `json:"displayDescription,omitempty" description:"display description"`
	DisplayName        string        `json:"displayName,omitempty" description:"display name"`
	DurationInMillis   int           `json:"durationInMillis,omitempty" description:"duration time in millis"`
	ID                 string        `json:"id,omitempty" description:"id"`
	Input              interface{}   `json:"input,omitempty" description:"input"`
	Result             string        `json:"result,omitempty" description:"result"`
	StartTime          string        `json:"startTime,omitempty" description:"start time"`
	State              string        `json:"state,omitempty" description:"state"`
	Type               string        `json:"type,omitempty" description:"type"`
	CauseOfBlockage    interface{}   `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
676
	Edges              []struct {
S
soulseen 已提交
677 678 679
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		ID    string `json:"id,omitempty" description:"id"`
		Type  string `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
680
	} `json:"edges,omitempty"`
S
soulseen 已提交
681 682
	FirstParent interface{} `json:"firstParent,omitempty" description:"first parent"`
	Restartable bool        `json:"restartable,omitempty" description:"restartable or not"`
Z
Zhuxiaoyang 已提交
683
	Steps       []struct {
S
soulseen 已提交
684
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
685 686
		Links struct {
			Self struct {
Z
Zhuxiaoyang 已提交
687 688 689
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
690
			Actions struct {
Z
Zhuxiaoyang 已提交
691 692 693
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"actions,omitempty"`
S
soulseen 已提交
694
		} `json:"_links,omitempty" description:"references the reachable path to this resource"`
Z
Zhuxiaoyang 已提交
695
		Actions []struct {
S
soulseen 已提交
696
			Class string `json:"_class,omitempty" description:"references the reachable path to this resource"`
Z
Zhuxiaoyang 已提交
697 698
			Links struct {
				Self struct {
Z
Zhuxiaoyang 已提交
699 700
					Class string `json:"_class,omitempty"`
					Href  string `json:"href,omitempty"`
S
soulseen 已提交
701 702 703
				} `json:"self,omitempty" description:""`
			} `json:"_links,omitempty" description:"references the reachable path to this resource"`
			URLName string `json:"urlName,omitempty" description:"url name"`
Z
Zhuxiaoyang 已提交
704
		} `json:"actions,omitempty"`
S
soulseen 已提交
705 706 707 708 709 710 711 712 713
		DisplayDescription interface{} `json:"displayDescription,omitempty" description:"display description"`
		DisplayName        string      `json:"displayName,omitempty" description:"display name"`
		DurationInMillis   int         `json:"durationInMillis,omitempty" description:"duration time in millis"`
		ID                 string      `json:"id,omitempty" description:"id"`
		Input              interface{} `json:"input,omitempty" description:"input"`
		Result             string      `json:"result,omitempty" description:"result"`
		StartTime          string      `json:"startTime,omitempty" description:"start time"`
		State              string      `json:"state,omitempty" description:"state"`
		Type               string      `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
714
	} `json:"steps,omitempty"`
S
sunzhu 已提交
715
}
Z
Zhuxiaoyang 已提交
716 717 718

// CheckPipeline
type CheckPlayload struct {
S
soulseen 已提交
719
	ID         string `json:"id,omitempty" description:"id"`
Z
Zhuxiaoyang 已提交
720
	Parameters []struct {
S
soulseen 已提交
721 722
		Name  string `json:"name,omitempty" description:"name"`
		Value string `json:"value,omitempty" description:"value"`
Z
Zhuxiaoyang 已提交
723
	} `json:"parameters,omitempty"`
S
soulseen 已提交
724
	Abort bool `json:"abort,omitempty" description:"abort or not"`
S
sunzhu 已提交
725
}
Z
Zhuxiaoyang 已提交
726 727 728

// Getcrumb
type Crumb struct {
S
soulseen 已提交
729 730 731
	Class             string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
	Crumb             string `json:"crumb,omitempty" description:"crumb data"`
	CrumbRequestField string `json:"crumbRequestField,omitempty" description:"crumb request field"`
S
sunzhu 已提交
732
}
Z
Zhuxiaoyang 已提交
733 734 735

// CheckScriptCompile
type CheckScript struct {
R
runzexia 已提交
736 737 738 739
	Column  int    `json:"column,omitempty" description:"column e.g. 0"`
	Line    int    `json:"line,omitempty" description:"line e.g. 0"`
	Message string `json:"message,omitempty" description:"message e.g. success"`
	Status  string `json:"status,omitempty" description:"status e.g. success"`
Z
Zhuxiaoyang 已提交
740 741 742 743
}

// CheckCron
type CheckCronRes struct {
S
soulseen 已提交
744 745
	Result  string `json:"result,omitempty" description:"result"`
	Message string `json:"message,omitempty" description:"message"`
Z
Zhuxiaoyang 已提交
746 747 748 749
}

// GetPipelineRun
type PipelineRun struct {
S
soulseen 已提交
750
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
751 752
	Links struct {
		PrevRun struct {
Z
Zhuxiaoyang 已提交
753 754 755
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"prevRun,omitempty"`
Z
Zhuxiaoyang 已提交
756
		Parent struct {
Z
Zhuxiaoyang 已提交
757 758 759
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"parent,omitempty"`
Z
Zhuxiaoyang 已提交
760
		Tests struct {
Z
Zhuxiaoyang 已提交
761 762 763
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"tests,omitempty"`
Z
Zhuxiaoyang 已提交
764
		Nodes struct {
Z
Zhuxiaoyang 已提交
765 766 767
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"nodes,omitempty"`
Z
Zhuxiaoyang 已提交
768
		Log struct {
Z
Zhuxiaoyang 已提交
769 770 771
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"log,omitempty"`
Z
Zhuxiaoyang 已提交
772
		Self struct {
Z
Zhuxiaoyang 已提交
773 774 775
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
776
		BlueTestSummary struct {
Z
Zhuxiaoyang 已提交
777 778 779
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"blueTestSummary,omitempty"`
Z
Zhuxiaoyang 已提交
780
		Actions struct {
Z
Zhuxiaoyang 已提交
781 782 783
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
784
		Steps struct {
Z
Zhuxiaoyang 已提交
785 786 787
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"steps,omitempty"`
Z
Zhuxiaoyang 已提交
788
		Artifacts struct {
Z
Zhuxiaoyang 已提交
789 790 791
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"artifacts,omitempty"`
S
soulseen 已提交
792 793 794 795
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions          []interface{} `json:"actions,omitempty" description:"the list of actions"`
	ArtifactsZipFile interface{}   `json:"artifactsZipFile,omitempty" description:"the artifacts zip file"`
	CauseOfBlockage  interface{}   `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
796
	Causes           []struct {
S
soulseen 已提交
797 798 799 800
		Class            string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		ShortDescription string `json:"shortDescription,omitempty" description:"short description"`
		UserID           string `json:"userId,omitempty" description:"user id"`
		UserName         string `json:"userName,omitempty" description:"user name"`
Z
Zhuxiaoyang 已提交
801
	} `json:"causes,omitempty"`
S
soulseen 已提交
802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821
	ChangeSet                 []interface{} `json:"changeSet,omitempty" description:"change set"`
	Description               interface{}   `json:"description,omitempty" description:"description"`
	DurationInMillis          int           `json:"durationInMillis,omitempty" description:"duration time in millis"`
	EnQueueTime               string        `json:"enQueueTime,omitempty" description:"enqueue time"`
	EndTime                   string        `json:"endTime,omitempty" description:"end time"`
	EstimatedDurationInMillis int           `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time in millis"`
	ID                        string        `json:"id,omitempty" description:"id"`
	Name                      interface{}   `json:"name,omitempty" description:"name"`
	Organization              string        `json:"organization,omitempty" description:"organization"`
	Pipeline                  string        `json:"pipeline,omitempty" description:"pipeline"`
	Replayable                bool          `json:"replayable,omitempty" description:"replayable or not"`
	Result                    string        `json:"result,omitempty" description:"result"`
	RunSummary                string        `json:"runSummary,omitempty" description:"pipeline run summary"`
	StartTime                 string        `json:"startTime,omitempty" description:"start time"`
	State                     string        `json:"state,omitempty" description:"state"`
	Type                      string        `json:"type,omitempty" description:"type"`
	Branch                    interface{}   `json:"branch,omitempty" description:"branch"`
	CommitID                  interface{}   `json:"commitId,omitempty" description:"commit id"`
	CommitURL                 interface{}   `json:"commitUrl,omitempty" description:"commit url"`
	PullRequest               interface{}   `json:"pullRequest,omitempty" description:"pull request"`
Z
Zhuxiaoyang 已提交
822 823 824
}

// GetBranchPipeRun
Z
Zhuxiaoyang 已提交
825
type BranchPipeline struct {
S
soulseen 已提交
826
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
827 828
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
829 830 831
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
832
		Scm struct {
Z
Zhuxiaoyang 已提交
833 834 835
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"scm,omitempty"`
Z
Zhuxiaoyang 已提交
836
		Actions struct {
Z
Zhuxiaoyang 已提交
837 838 839
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
840
		Runs struct {
Z
Zhuxiaoyang 已提交
841 842 843
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"runs,omitempty"`
Z
Zhuxiaoyang 已提交
844
		Trends struct {
Z
Zhuxiaoyang 已提交
845 846 847
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"trends,omitempty"`
Z
Zhuxiaoyang 已提交
848
		Queue struct {
Z
Zhuxiaoyang 已提交
849 850 851
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"queue,omitempty"`
S
soulseen 已提交
852 853 854 855 856 857 858
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions                   []interface{} `json:"actions,omitempty" description:"the list of actions"`
	Disabled                  bool          `json:"disabled,omitempty" description:"disable or not"`
	DisplayName               string        `json:"displayName,omitempty" description:"display name"`
	EstimatedDurationInMillis int           `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time in millis"`
	FullDisplayName           string        `json:"fullDisplayName,omitempty" description:"full display name"`
	FullName                  string        `json:"fullName,omitempty" description:"full name"`
Z
Zhuxiaoyang 已提交
859
	LatestRun                 struct {
S
soulseen 已提交
860
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
861 862
		Links struct {
			PrevRun struct {
Z
Zhuxiaoyang 已提交
863 864 865
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"prevRun,omitempty"`
Z
Zhuxiaoyang 已提交
866
			Parent struct {
Z
Zhuxiaoyang 已提交
867 868 869
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"parent,omitempty"`
Z
Zhuxiaoyang 已提交
870
			Tests struct {
Z
Zhuxiaoyang 已提交
871 872 873
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"tests,omitempty"`
Z
Zhuxiaoyang 已提交
874
			Log struct {
Z
Zhuxiaoyang 已提交
875 876 877
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"log,omitempty"`
Z
Zhuxiaoyang 已提交
878
			Self struct {
Z
Zhuxiaoyang 已提交
879 880 881
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
882
			BlueTestSummary struct {
Z
Zhuxiaoyang 已提交
883 884 885
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"blueTestSummary,omitempty"`
Z
Zhuxiaoyang 已提交
886
			Actions struct {
Z
Zhuxiaoyang 已提交
887 888 889
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
890
			Artifacts struct {
Z
Zhuxiaoyang 已提交
891 892 893
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"artifacts,omitempty"`
S
soulseen 已提交
894 895 896 897
		} `json:"_links,omitempty" description:"references the reachable path to this resource"`
		Actions          []interface{} `json:"actions,omitempty" description:"the list of actions"`
		ArtifactsZipFile string        `json:"artifactsZipFile,omitempty" description:"the artifacts zip file"`
		CauseOfBlockage  interface{}   `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
898
		Causes           []struct {
S
soulseen 已提交
899 900 901 902
			Class            string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
			ShortDescription string `json:"shortDescription,omitempty" description:"short description"`
			UserID           string `json:"userId,omitempty" description:"user id"`
			UserName         string `json:"userName,omitempty" description:"user name"`
Z
Zhuxiaoyang 已提交
903
		} `json:"causes,omitempty"`
S
soulseen 已提交
904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919
		ChangeSet                 []interface{} `json:"changeSet,omitempty" description:"change set"`
		Description               interface{}   `json:"description,omitempty" description:"description"`
		DurationInMillis          int           `json:"durationInMillis,omitempty" description:"duration time in millis"`
		EnQueueTime               string        `json:"enQueueTime,omitempty" description:"enqueue time"`
		EndTime                   string        `json:"endTime,omitempty" description:"end time"`
		EstimatedDurationInMillis int           `json:"estimatedDurationInMillis,omitempty" description:"estimated duration time in millis"`
		ID                        string        `json:"id,omitempty" description:"id"`
		Name                      interface{}   `json:"name,omitempty" description:"name"`
		Organization              string        `json:"organization,omitempty" description:"organization"`
		Pipeline                  string        `json:"pipeline,omitempty" description:"pipeline"`
		Replayable                bool          `json:"replayable,omitempty" description:"Replayable or not"`
		Result                    string        `json:"result,omitempty" description:"result"`
		RunSummary                string        `json:"runSummary,omitempty" description:"pipeline run summary"`
		StartTime                 string        `json:"startTime,omitempty" description:"start time"`
		State                     string        `json:"state,omitempty" description:"state"`
		Type                      string        `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
920
	} `json:"latestRun,omitempty"`
S
soulseen 已提交
921 922
	Name         string `json:"name,omitempty" description:"name"`
	Organization string `json:"organization,omitempty" description:"organization"`
Z
Zhuxiaoyang 已提交
923
	Parameters   []struct {
S
soulseen 已提交
924
		Class                 string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
925
		DefaultParameterValue struct {
S
soulseen 已提交
926 927 928 929 930 931 932
			Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
			Name  string `json:"name,omitempty" description:"name"`
			Value string `json:"value,omitempty" description:"value"`
		} `json:"defaultParameterValue,omitempty" description:""`
		Description string `json:"description,omitempty" description:"description"`
		Name        string `json:"name,omitempty" description:"name"`
		Type        string `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
933
	} `json:"parameters,omitempty"`
Z
Zhuxiaoyang 已提交
934
	Permissions struct {
S
soulseen 已提交
935 936 937 938 939
		Create    bool `json:"create,omitempty" description:"create action"`
		Configure bool `json:"configure,omitempty" description:"configure action"`
		Read      bool `json:"read,omitempty" description:"read action"`
		Start     bool `json:"start,omitempty" description:"start action"`
		Stop      bool `json:"stop,omitempty" description:"stop action"`
Z
Zhuxiaoyang 已提交
940
	} `json:"permissions,omitempty"`
S
soulseen 已提交
941
	WeatherScore int `json:"weatherScore,omitempty" description:"the score to description the result of pipeline"`
Z
Zhuxiaoyang 已提交
942
	Branch       struct {
S
soulseen 已提交
943 944 945
		IsPrimary bool          `json:"isPrimary,omitempty" description:"primary or not"`
		Issues    []interface{} `json:"issues,omitempty" description:"issues"`
		URL       string        `json:"url,omitempty" description:"url"`
Z
Zhuxiaoyang 已提交
946
	} `json:"branch,omitempty"`
Z
Zhuxiaoyang 已提交
947 948
}

Z
Zhuxiaoyang 已提交
949
// GetPipelineRunNodes
Z
Zhuxiaoyang 已提交
950
type PipelineRunNodes struct {
S
soulseen 已提交
951
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
952 953
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
954 955 956
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
957
		Actions struct {
Z
Zhuxiaoyang 已提交
958 959 960
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
Z
Zhuxiaoyang 已提交
961
		Steps struct {
Z
Zhuxiaoyang 已提交
962 963 964
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"steps,omitempty"`
S
soulseen 已提交
965 966 967 968 969 970 971 972 973 974 975 976 977 978 979
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions            []interface{} `json:"actions,omitempty" description:"the list of actions"`
	DisplayDescription interface{}   `json:"displayDescription,omitempty" description:"display description"`
	DisplayName        string        `json:"displayName,omitempty" description:"display name"`
	DurationInMillis   int           `json:"durationInMillis,omitempty" description:"duration time in mullis"`
	ID                 string        `json:"id,omitempty" description:"id"`
	Input              interface{}   `json:"input,omitempty" description:"input"`
	Result             string        `json:"result,omitempty" description:"result"`
	StartTime          string        `json:"startTime,omitempty" description:"start time"`
	State              string        `json:"state,omitempty" description:"state"`
	Type               string        `json:"type,omitempty" description:"type"`
	CauseOfBlockage    interface{}   `json:"causeOfBlockage,omitempty" description:"cause 0f blockage"`
	Edges              []interface{} `json:"edges,omitempty" description:"edges"`
	FirstParent        interface{}   `json:"firstParent,omitempty" description:"first parent"`
	Restartable        bool          `json:"restartable,omitempty" description:"restartable or not"`
Z
Zhuxiaoyang 已提交
980 981 982
}

// GetNodeSteps
Z
Zhuxiaoyang 已提交
983
type NodeSteps struct {
S
soulseen 已提交
984
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
985 986
	Links struct {
		Self struct {
Z
Zhuxiaoyang 已提交
987 988 989
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
Z
Zhuxiaoyang 已提交
990
		Actions struct {
Z
Zhuxiaoyang 已提交
991 992 993
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
S
soulseen 已提交
994
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
Z
Zhuxiaoyang 已提交
995
	Actions []struct {
S
soulseen 已提交
996
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
997 998
		Links struct {
			Self struct {
Z
Zhuxiaoyang 已提交
999 1000 1001
				Class string `json:"_class,omitempty"`
				Href  string `json:"href,omitempty"`
			} `json:"self,omitempty"`
S
soulseen 已提交
1002 1003
		} `json:"_links,omitempty" description:"references the reachable path to this resource"`
		URLName string `json:"urlName,omitempty" description:"url name"`
Z
Zhuxiaoyang 已提交
1004
	} `json:"actions,omitempty"`
S
soulseen 已提交
1005 1006 1007 1008 1009 1010 1011 1012 1013
	DisplayDescription string      `json:"displayDescription,omitempty" description:"display description"`
	DisplayName        string      `json:"displayName,omitempty" description:"display name"`
	DurationInMillis   int         `json:"durationInMillis,omitempty" description:"duration time in mullis"`
	ID                 string      `json:"id,omitempty" description:"id"`
	Input              interface{} `json:"input,omitempty" description:"input"`
	Result             string      `json:"result,omitempty" description:"result"`
	StartTime          string      `json:"startTime,omitempty" description:"start times"`
	State              string      `json:"state,omitempty" description:"state"`
	Type               string      `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
1014 1015
}

S
soulseen 已提交
1016 1017
// CheckScriptCompile
type ReqScript struct {
S
soulseen 已提交
1018
	Value string `json:"value,omitempty" description:"check value"`
S
soulseen 已提交
1019 1020
}

Z
Zhuxiaoyang 已提交
1021 1022
// ToJenkinsfile requests
type ReqJson struct {
S
soulseen 已提交
1023
	Json string `json:"json,omitempty" description:"json data"`
Z
Zhuxiaoyang 已提交
1024 1025 1026 1027
}

// ToJenkinsfile response
type ResJenkinsfile struct {
S
soulseen 已提交
1028
	Status string `json:"status,omitempty" description:"status e.g. ok"`
Z
Zhuxiaoyang 已提交
1029
	Data   struct {
S
soulseen 已提交
1030
		Result      string `json:"result,omitempty" description:"result e.g. success"`
S
soulseen 已提交
1031
		Jenkinsfile string `json:"jenkinsfile,omitempty" description:"jenkinsfile"`
Z
Zhuxiaoyang 已提交
1032
		Errors      []struct {
S
soulseen 已提交
1033 1034
			Location []string `json:"location,omitempty" description:"err location"`
			Error    string   `json:"error,omitempty" description:"error message"`
Z
Zhuxiaoyang 已提交
1035 1036 1037 1038 1039
		} `json:"errors,omitempty"`
	} `json:"data,omitempty"`
}

type ReqJenkinsfile struct {
S
soulseen 已提交
1040
	Jenkinsfile string `json:"jenkinsfile,omitempty" description:"jenkinsfile"`
Z
Zhuxiaoyang 已提交
1041 1042 1043
}

type ResJson struct {
S
soulseen 已提交
1044
	Status string `json:"status,omitempty" description:"status e.g. ok"`
Z
Zhuxiaoyang 已提交
1045
	Data   struct {
S
soulseen 已提交
1046
		Result string `json:"result,omitempty" description:"result e.g. success"`
Z
Zhuxiaoyang 已提交
1047 1048
		JSON   struct {
			Pipeline struct {
S
soulseen 已提交
1049
				Stages []interface{} `json:"stages,omitempty" description:"stages"`
Z
Zhuxiaoyang 已提交
1050
				Agent  struct {
S
soulseen 已提交
1051
					Type      string `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
1052
					Arguments []struct {
S
soulseen 已提交
1053
						Key   string `json:"key,omitempty" description:"key"`
Z
Zhuxiaoyang 已提交
1054
						Value struct {
S
soulseen 已提交
1055 1056
							IsLiteral bool   `json:"isLiteral,omitempty" description:"is literal or not"`
							Value     string `json:"value,omitempty" description:"value"`
Z
Zhuxiaoyang 已提交
1057 1058 1059 1060 1061 1062 1063
						} `json:"value,omitempty"`
					} `json:"arguments,omitempty"`
				} `json:"agent,omitempty"`
			} `json:"pipeline,omitempty"`
		} `json:"json,omitempty"`
	} `json:"data,omitempty"`
}
Z
Zhuxiaoyang 已提交
1064 1065

type NodesDetail struct {
S
soulseen 已提交
1066
	Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
Z
Zhuxiaoyang 已提交
1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079
	Links struct {
		Self struct {
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"self,omitempty"`
		Actions struct {
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"actions,omitempty"`
		Steps struct {
			Class string `json:"_class,omitempty"`
			Href  string `json:"href,omitempty"`
		} `json:"steps,omitempty"`
S
soulseen 已提交
1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091
	} `json:"_links,omitempty" description:"references the reachable path to this resource"`
	Actions            []interface{} `json:"actions,omitempty" description:"the list of actions"`
	DisplayDescription interface{}   `json:"displayDescription,omitempty" description:"display description"`
	DisplayName        string        `json:"displayName,omitempty" description:"display name"`
	DurationInMillis   int           `json:"durationInMillis,omitempty" description:"duration time in millis"`
	ID                 string        `json:"id,omitempty" description:"id"`
	Input              interface{}   `json:"input,omitempty" description:"input"`
	Result             string        `json:"result,omitempty" description:"result"`
	StartTime          string        `json:"startTime,omitempty" description:"start time"`
	State              string        `json:"state,omitempty" description:"statue"`
	Type               string        `json:"type,omitempty" description:"type"`
	CauseOfBlockage    interface{}   `json:"causeOfBlockage,omitempty" description:"cause of blockage"`
Z
Zhuxiaoyang 已提交
1092
	Edges              []struct {
S
soulseen 已提交
1093 1094 1095
		Class string `json:"_class,omitempty" description:"It’s a fully qualified name and is an identifier of the producer of this resource's capability."`
		ID    string `json:"id,omitempty" description:"id"`
		Type  string `json:"type,omitempty" description:"type"`
Z
Zhuxiaoyang 已提交
1096
	} `json:"edges,omitempty"`
S
soulseen 已提交
1097 1098 1099
	FirstParent interface{} `json:"firstParent,omitempty" description:"first parent"`
	Restartable bool        `json:"restartable,omitempty" description:"restartable or not"`
	Steps       []NodeSteps `json:"steps,omitempty" description:"steps"`
Z
Zhuxiaoyang 已提交
1100 1101 1102
}

type NodesStepsIndex struct {
S
soulseen 已提交
1103 1104
	Id    int         `json:"id,omitempty" description:"id"`
	Steps []NodeSteps `json:"steps,omitempty" description:"steps"`
Z
Zhuxiaoyang 已提交
1105
}