-
Notifications
You must be signed in to change notification settings - Fork 96
/
sw360.thrift
234 lines (204 loc) · 4.85 KB
/
sw360.thrift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
/*
* Copyright Siemens AG, 2014-2017, 2019. Part of the SW360 Portal Project.
* With contributions by Bosch Software Innovations GmbH, 2016.
*
* This program and the accompanying materials are made
* available under the terms of the Eclipse Public License 2.0
* which is available at https://www.eclipse.org/legal/epl-2.0/
*
* SPDX-License-Identifier: EPL-2.0
*/
namespace java org.eclipse.sw360.datahandler.thrift
namespace php sw360.thrift
enum Quadratic {
NA = 0,
YES = 1
}
enum Ternary {
UNDEFINED = 0,
NO = 1,
YES = 2,
}
enum RequestStatus {
SUCCESS = 0,
SENT_TO_MODERATOR = 1,
FAILURE = 2,
IN_USE = 3,
FAILED_SANITY_CHECK = 4,
DUPLICATE = 5,
DUPLICATE_ATTACHMENT = 6,
ACCESS_DENIED = 7,
CLOSED_UPDATE_NOT_ALLOWED = 8,
INVALID_INPUT = 9,
PROCESSING = 10,
NAMINGERROR = 11
}
enum RemoveModeratorRequestStatus {
SUCCESS = 0,
LAST_MODERATOR = 1,
FAILURE = 2,
}
enum AddDocumentRequestStatus {
SUCCESS = 0,
DUPLICATE = 1,
FAILURE = 2,
NAMINGERROR = 3,
INVALID_INPUT = 4
}
exception SW360Exception {
1: required string why,
2: optional i32 errorCode,
}
enum ModerationState {
PENDING = 0,
APPROVED = 1,
REJECTED = 2,
INPROGRESS = 3,
}
enum ClearingRequestState {
NEW = 0,
ACCEPTED = 1,
REJECTED = 2,
IN_QUEUE = 3,
IN_PROGRESS = 4,
CLOSED = 5,
AWAITING_RESPONSE = 6
}
enum ClearingRequestPriority {
LOW = 0,
MEDIUM = 1,
HIGH = 2,
CRITICAL = 3,
}
enum Visibility {
PRIVATE = 0,
ME_AND_MODERATORS = 1,
BUISNESSUNIT_AND_MODERATORS = 2,
EVERYONE = 3
}
enum VerificationState {
NOT_CHECKED = 0,
CHECKED = 1,
INCORRECT = 2,
}
enum ReleaseRelationship {
CONTAINED = 0,
REFERRED = 1,
UNKNOWN = 2,
DYNAMICALLY_LINKED = 3,
STATICALLY_LINKED = 4,
SIDE_BY_SIDE = 5,
STANDALONE = 6,
INTERNAL_USE = 7,
OPTIONAL = 8,
TO_BE_REPLACED = 9,
CODE_SNIPPET = 10,
}
enum MainlineState {
OPEN = 0,
MAINLINE = 1,
SPECIFIC = 2,
PHASEOUT = 3,
DENIED = 4,
}
enum ConfigFor {
FOSSOLOGY_REST = 0,
}
enum ObligationStatus {
OPEN = 0,
ACKNOWLEDGED_OR_FULFILLED = 1,
WILL_BE_FULFILLED_BEFORE_RELEASE = 2,
NOT_APPLICABLE = 3,
DEFERRED_TO_PARENT_PROJECT = 4,
FULFILLED_AND_PARENT_MUST_ALSO_FULFILL = 5,
ESCALATED = 6
}
enum ClearingRequestEmailTemplate {
NEW = 0,
UPDATED = 1,
PROJECT_UPDATED = 2,
NEW_COMMENT = 3,
CLOSED = 4,
REJECTED = 5
}
enum DateRange {
EQUAL = 0,
LESS_THAN_OR_EQUAL_TO = 1,
GREATER_THAN_OR_EQUAL_TO = 2,
BETWEEN = 3
}
struct ConfigContainer {
1: optional string id,
2: optional string revision,
3: required ConfigFor configFor,
4: required map<string, set<string>> configKeyToValues,
}
struct ProjectReleaseRelationship {
1: required ReleaseRelationship releaseRelation,
2: required MainlineState mainlineState,
3: optional string comment,
4: optional string createdOn,
5: optional string createdBy,
}
struct VerificationStateInfo {
1: required string checkedOn,
2: required string checkedBy,
3: optional string comment,
4: required VerificationState verificationState,
}
struct DocumentState {
1: required bool isOriginalDocument;
2: optional ModerationState moderationState;
}
struct RequestSummary {
1: required RequestStatus requestStatus;
2: optional i32 totalAffectedElements;
3: optional i32 totalElements;
4: optional string message;
}
struct AddDocumentRequestSummary {
1: optional AddDocumentRequestStatus requestStatus;
2: optional string id;
3: optional string message;
}
struct ImportBomRequestPreparation {
1: required RequestStatus requestStatus;
2: optional bool isComponentDuplicate;
3: optional bool isReleaseDuplicate;
4: optional string name;
5: optional string version;
6: optional string message;
}
struct CustomProperties {
1: optional string id,
2: optional string revision,
3: optional string type = "customproperties",
4: optional string documentType,
5: map<string, set<string>> propertyToValues;
}
struct RequestStatusWithBoolean {
1: required RequestStatus requestStatus;
2: optional bool answerPositive;
}
struct Comment {
1: required string text,
2: required string commentedBy,
3: optional i64 commentedOn, // timestamp of comment
4: optional bool autoGenerated
}
struct PaginationData {
1: optional i32 rowsPerPage,
2: optional i32 displayStart,
3: optional bool ascending,
4: optional i32 sortColumnNumber,
5: optional i64 totalRowCount
}
/**
* May be used to identify a source where the source can be of type project, component or release.
* Using this type over a string allows the user to see which type of source the id is.
*/
union Source {
1: string projectId
2: string componentId
3: string releaseId
}